Difference between revisions of "The bootloader U-Boot"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 15: Line 15:
 
Download the IGEP U-Boot sources and follow next steps:
 
Download the IGEP U-Boot sources and follow next steps:
  
  $ wget http://downloads.igep.es/sources/u-boot-arm-2010.06-1.tar.gz
+
  $ wget http://downloads.igep.es/sources/u-boot-arm-2010.06-2.tar.gz
  $ tar xzf u-boot-arm-2010.06-1.tar.gz
+
  $ tar xzf u-boot-arm-2010.06-2.tar.gz
  $ cd u-boot-arm-2010.06-1
+
  $ cd u-boot-arm-2010.06-2
  
 
Configure for your board with,
 
Configure for your board with,
Line 35: Line 35:
  
 
''' CHANGELOG '''
 
''' CHANGELOG '''
 +
* [http://git.igep.es/?p=pub/scm/u-boot-arm.git;a=commit;h=ccba4652f9d2bd32e76770661d5b5762631f2261 2011-03-07 Release 2010.06-2]
 +
** Set MPU to 1GHz and IVA to 800MHz by default for DM3730
 +
** Improve GPMC timming for SMSC LAN9221
 
* [http://git.igep.es/?p=pub/scm/u-boot-arm.git;a=commit;h=e99b5040053d8228b5d58b4542aadea859a37a07 2010-11-03 Release 2010.06-1]
 
* [http://git.igep.es/?p=pub/scm/u-boot-arm.git;a=commit;h=e99b5040053d8228b5d58b4542aadea859a37a07 2010-11-03 Release 2010.06-1]
 
** Improve I2C driver  support
 
** Improve I2C driver  support

Revision as of 14:16, 7 March 2011

U-Boot for IGEP platforms

First of all setup the build environment sourcing this script

$ source /usr/local/poky/eabi-glibc/arm/environment-setup

or

$ source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi

if you have updated your SDK environment to latest version (see Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine)

U-Boot 2010.06-y series (stable)

Download the IGEP U-Boot sources and follow next steps:

$ wget http://downloads.igep.es/sources/u-boot-arm-2010.06-2.tar.gz
$ tar xzf u-boot-arm-2010.06-2.tar.gz
$ cd u-boot-arm-2010.06-2

Configure for your board with,

$ make CROSS_COMPILE=arm-none-linux-gnueabi- <board-config>

where:

  • <board-config> is igep0020_config for IGEP v2 platform.
  • <board-config> is igep0030_config for OMAP3 IGEP module.

Finally, build with

$ make CROSS_COMPILE=arm-none-linux-gnueabi- 

The result will be an u-boot.bin file in local directory.

CHANGELOG

U-Boot 2009.11-y series (stable)

Download the IGEP U-Boot sources and follow next steps:

$ wget http://downloads.igep.es/sources/u-boot-arm-2009.11-2.tar.gz
$ tar xzf u-boot-arm-2009.11-2.tar.gz
$ cd u-boot-arm-2009.11-2

Configure for your board with,

$ make CROSS_COMPILE=arm-none-linux-gnueabi- <board-config>

where:

  • <board-config> is omap3_igep0020_config for IGEP v2 platform.
  • <board-config> is omap3_igep0030_config for OMAP3 IGEP module.

Finally, build with

$ make CROSS_COMPILE=arm-none-linux-gnueabi- 

The result will be an u-boot.bin file in local directory.

CHANGELOG

Annex: default u-boot environment

setenv distro poky
setenv machine igep0020
setenv project poky-image-sato
setenv ethaddr ac:de:48:00:02:54
setenv ipaddr 192.168.254.254
setenv netmask 255.255.255.0
setenv gatewayip 192.168.254.10
setenv serverip 192.168.254.10
setenv addip 'setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}::eth0:'
setenv bootargs-base 'console=ttyS2,115200n8 console=tty0 omapfb.mode=dvi:1024x768MR-16@60'
setenv mmc-bootargs 'setenv bootargs ${bootargs-base} root=/dev/mmcblk0p2 rw rootwait'
setenv mmc-boot 'mmc init 0; if fatload mmc 0 80000000 boot.ini; then source; else if fatload mmc 0 80000000 uImage; then run mmc-bootargs; bootm; fi; fi'
setenv onenand-bootargs 'setenv bootargs ${bootargs-base} root=/dev/mtdblock4 rootfstype=jffs2 ; run addip'
setenv onenand-boot 'run onenand-bootargs; onenand read 80000000 280000 400000 ; bootm 80000000'
setenv nfs-bootargs 'setenv bootargs ${bootargs-base} root=/dev/nfs nfsroot=${serverip}:/srv/nfs/${distro}/${project}/${machine} ; run addip'
setenv nfs-boot 'if ping ${serverip}; then run nfs-bootargs; tftp 0x80000000 ${distro}/${project}/${machine}/uImage; bootm; fi;'
setenv bootcmd 'run mmc-boot; run nfs-boot; run onenand-boot'