bc10-router/u-boot update
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
bc10-router/u-boot update
[[bc10]]
[[bc10-router]]
#contents
* Updating u-boot [#r32fecbb]
>
bc10-router uses the boot image for beagleboard of arago-...
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
UBOOT_MACHINE = "omap3_beagle_config"
This indicates that {HOME}/oe/arago/recipes/u-boot/u-boot...
- 0001-omap3_beagle-add-usbethaddr-setting-to-enable-netw...
- 0001-OMAP3-Beagle-Set-BOOTDELAY-to-3.patch~
- 0002-am335x-am335x-am3517evm-beagleboard-am37x-Add-CONF...
- 0003-beagleboard-Load-uImage-from-VFAT-by-default.patch~
- 0004-beagleboard-Load-uImage-to-the-default-kernel-linu...
- 0001-omap3_evm-Added-function-calls-to-set-volts-speed-...
- 0002-omap3evm-Make-the-board-start-at-800MHz.patch~
- 0003-beagleboard-Make-xM-rev-C-go-to-800MHz.patch~
~
>
omap3_beagle_config is built by bitbake.
~
The patches shown above enable the mainline u-boot to hav...
~
Therefore, u-boot is going to be updated to u-boot-arm. T...
~
Caution) The repository of u-boot-arm has only two branc...
~
[[http://git.denx.de/u-boot.git/?p=u-boot.git;a=tags]]~
** How to update u-boot [#n4818ff2]
>
This is how to update u-boot. The details are shown below.~
*** Obtaining u-boot-arm from the repository [#t6c25b69]
>
Obtain the source code of u-boot-arm from the repository.~
$ git clone git://git.denx.de/u-boot-arm.git
$ cd u-boot-arm
*** Obtain u-boot from the respository [#xecb4f4c]
>
Obtain the 2012 version of u-boot from the repository.~
$ git clone git://git.denx.de/u-boot.git
$ cd u-boot
$ git checkout refs/tags/v2012.10
After obtaining the source code, set up PATH to Cross Too...
$ export PATH={HOME}/ti-sdk-beagleboard-05.05.01.00/linu...
$ make CROSS_COMPILE=arm-arago-linux-gnueabi- mrproper
$ make CROSS_COMPILE=arm-arago-linux-gnueabi- omap3_beag...
Since the configuration for building beagleboard is compl...
$ make CROSS_COMPILE=arm-arago-linux-gnueabi-
Several files are built, yet only u-boot.img is used. Cop...
** version [#p5e9c437]
>
To apply the command below, the version of updated u-boot...
# version
U-Boot 2012.10-12320-g39826f0 (Oct 22 2012 - 17:03:16)
arm-angstrom-linux-gnueabi-gcc (GCC) 4.5.4 20120305 (pre...
GNU ld (GNU Binutils) 2.20.1.20100303
** u-boot commands [#yf031146]
>
Updated the list of u-boot commands is shown below. This ...
# help
? - alias for 'help'
askenv - get environment variables from stdin
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
dhcp - boot image via network using DHCP/TFTP protocol
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
exit - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls - list files in a directory (default /)
false - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fdt - flattened device tree utility commands
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
go - start application at address 'addr'
gpio - input/set/clear/toggle gpio pins
help - print command description/usage
i2c - I2C sub-system
icache - enable or disable instruction cache
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
led - led - [0|1|green|all] [on|off|toggle]
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtdparts- define flash/nand partitions
mtest - simple RAM read/write test
mw - memory write (fill)
nand - NAND sub-system
nandecc - switch OMAP3 NAND ECC calculation algorithm
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
setexpr - set environment variable as the result of eval...
showvar - print local hushshell variables
sleep - delay execution for some time
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
usb - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
** The default environment variable of u-boot [#w6043ef8]
>
The list of the pre-set environment variables for u-boot ...
To use nEnv.txt, modify the configurations of environment...
# printenv
baudrate=115200
beaglerev=Cx
bootcmd=if mmc rescan ${mmcdev}; then if run userbutton;...
bootdelay=3
bootenv=uEnv.txt
bootfile=uImage.beagle
buddy=none
camera=none
console=ttyO2,115200n8
defaultdisplay=dvi
dieid#=4ada00040000000004037b700d01401a
dvimode=640x480MR-16@60
importbootenv=echo Importing environment from mmc ...; e...
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} /boot/uI...
loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} ${optargs} mp...
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${...
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mpurate=auto
nandargs=setenv bootargs console=${console} ${optargs} m...
nandboot=echo Booting from nand ...; run nandargs; nand ...
nandroot=ubi0:rootfs ubi.mtd=4
nandrootfstype=ubifs
ramargs=setenv bootargs console=${console} ${optargs} mp...
ramboot=echo Booting from ramdisk ...; run ramargs; boot...
ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x8100000...
ramrootfstype=ext2
rdaddr=0x81000000
usbtty=cdc_acm
userbutton=if gpio input 173; then run userbutton_xm; el...
userbutton_nonxm=gpio input 7;
userbutton_xm=gpio input 4;
vram=12M
Environment size: 2283/131068 bytes
** uEnv.txt [#uc574726]
>
To set up uEnv.txt as shown below, bc10 will boot standar...
mmcroot=/dev/mmcblk0p2 rw
uenvcmd=run loaduimagefat; run mmcboot
As debugging Suspend/Resume and handing no_console_suspen...
console=ttyO2,115200n8
mpurate=auto
buddy=none
vram=12M
dvimode=640x480MR-16@60
defaultdisplay=dvi
loadaddr=0x80200000
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mmcargs=setenv bootargs console=${console} ${optargs} mp...
mmcboot=echo Booting from mmc (uEnv.txt configuration) ....
loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage
uenvcmd=run loaduimagefat; run mmcboot
** tftpboot [#v071ac68]
>
u-boot includes and handles OMAP EHC, which is done by li...
Its details are written in the document, which is stored ...
u-boot-arm/doc/README.usb
The list of USB-Ethernet adapters, which work with tftpbo...
static const struct asix_dongle const asix_dongles[] = {
{ 0x05ac, 0x1402, FLAG_TYPE_AX88772 }, /* Apple...
{ 0x07d1, 0x3c05, FLAG_TYPE_AX88772 }, /* D-Lin...
/* Cables-to-Go USB Ethernet Adapter */
{ 0x0b95, 0x772a, FLAG_TYPE_AX88772 },
{ 0x0b95, 0x7720, FLAG_TYPE_AX88772 }, /* Trend...
{ 0x0b95, 0x1720, FLAG_TYPE_AX88172 }, /* SMC */
{ 0x0db0, 0xa877, FLAG_TYPE_AX88772 }, /* MSI -...
{ 0x13b1, 0x0018, FLAG_TYPE_AX88172 }, /* Links...
{ 0x1557, 0x7720, FLAG_TYPE_AX88772 }, /* 0Q0 c...
/* DLink DUB-E100 H/W Ver B1 Alternate */
{ 0x2001, 0x3c05, FLAG_TYPE_AX88772 },
/* ASIX 88772B */
{ 0x0b95, 0x772b, FLAG_TYPE_AX88772B | FLAG_EEPR...
{ 0x0000, 0x0000, FLAG_NONE } /* END - Do not ...
};
As of January 2013, Buffalo LUA-U2-ATX is easily obtainab...
To check VenderID and ProductID, apply lsusb. Then, its o...
Bus 001 Device 004: ID 0b95:7720 ASIX Electronics Corp. ...
The details of how to build tftpboot is available at [[bc...
* Revision History [#m4cf78fb]
>
- 2013-08-09 This article is initially published.
End:
bc10-router/u-boot update
[[bc10]]
[[bc10-router]]
#contents
* Updating u-boot [#r32fecbb]
>
bc10-router uses the boot image for beagleboard of arago-...
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
UBOOT_MACHINE = "omap3_beagle_config"
This indicates that {HOME}/oe/arago/recipes/u-boot/u-boot...
- 0001-omap3_beagle-add-usbethaddr-setting-to-enable-netw...
- 0001-OMAP3-Beagle-Set-BOOTDELAY-to-3.patch~
- 0002-am335x-am335x-am3517evm-beagleboard-am37x-Add-CONF...
- 0003-beagleboard-Load-uImage-from-VFAT-by-default.patch~
- 0004-beagleboard-Load-uImage-to-the-default-kernel-linu...
- 0001-omap3_evm-Added-function-calls-to-set-volts-speed-...
- 0002-omap3evm-Make-the-board-start-at-800MHz.patch~
- 0003-beagleboard-Make-xM-rev-C-go-to-800MHz.patch~
~
>
omap3_beagle_config is built by bitbake.
~
The patches shown above enable the mainline u-boot to hav...
~
Therefore, u-boot is going to be updated to u-boot-arm. T...
~
Caution) The repository of u-boot-arm has only two branc...
~
[[http://git.denx.de/u-boot.git/?p=u-boot.git;a=tags]]~
** How to update u-boot [#n4818ff2]
>
This is how to update u-boot. The details are shown below.~
*** Obtaining u-boot-arm from the repository [#t6c25b69]
>
Obtain the source code of u-boot-arm from the repository.~
$ git clone git://git.denx.de/u-boot-arm.git
$ cd u-boot-arm
*** Obtain u-boot from the respository [#xecb4f4c]
>
Obtain the 2012 version of u-boot from the repository.~
$ git clone git://git.denx.de/u-boot.git
$ cd u-boot
$ git checkout refs/tags/v2012.10
After obtaining the source code, set up PATH to Cross Too...
$ export PATH={HOME}/ti-sdk-beagleboard-05.05.01.00/linu...
$ make CROSS_COMPILE=arm-arago-linux-gnueabi- mrproper
$ make CROSS_COMPILE=arm-arago-linux-gnueabi- omap3_beag...
Since the configuration for building beagleboard is compl...
$ make CROSS_COMPILE=arm-arago-linux-gnueabi-
Several files are built, yet only u-boot.img is used. Cop...
** version [#p5e9c437]
>
To apply the command below, the version of updated u-boot...
# version
U-Boot 2012.10-12320-g39826f0 (Oct 22 2012 - 17:03:16)
arm-angstrom-linux-gnueabi-gcc (GCC) 4.5.4 20120305 (pre...
GNU ld (GNU Binutils) 2.20.1.20100303
** u-boot commands [#yf031146]
>
Updated the list of u-boot commands is shown below. This ...
# help
? - alias for 'help'
askenv - get environment variables from stdin
base - print or set address offset
bdinfo - print Board Info structure
boot - boot default, i.e., run 'bootcmd'
bootd - boot default, i.e., run 'bootcmd'
bootm - boot application image from memory
bootp - boot image via network using BOOTP/TFTP protocol
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dcache - enable or disable data cache
dhcp - boot image via network using DHCP/TFTP protocol
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
exit - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls - list files in a directory (default /)
false - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls - list files in a directory (default /)
fdt - flattened device tree utility commands
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
go - start application at address 'addr'
gpio - input/set/clear/toggle gpio pins
help - print command description/usage
i2c - I2C sub-system
icache - enable or disable instruction cache
imxtract- extract a part of a multi-image
itest - return true/false on integer compare
led - led - [0|1|green|all] [on|off|toggle]
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
ls - list files in a directory (default /)
md - memory display
mm - memory modify (auto-incrementing address)
mmc - MMC sub system
mmcinfo - display MMC info
mtdparts- define flash/nand partitions
mtest - simple RAM read/write test
mw - memory write (fill)
nand - NAND sub-system
nandecc - switch OMAP3 NAND ECC calculation algorithm
nboot - boot from NAND device
nfs - boot image via network using NFS protocol
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
setexpr - set environment variable as the result of eval...
showvar - print local hushshell variables
sleep - delay execution for some time
source - run script from memory
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true - do nothing, successfully
usb - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
** The default environment variable of u-boot [#w6043ef8]
>
The list of the pre-set environment variables for u-boot ...
To use nEnv.txt, modify the configurations of environment...
# printenv
baudrate=115200
beaglerev=Cx
bootcmd=if mmc rescan ${mmcdev}; then if run userbutton;...
bootdelay=3
bootenv=uEnv.txt
bootfile=uImage.beagle
buddy=none
camera=none
console=ttyO2,115200n8
defaultdisplay=dvi
dieid#=4ada00040000000004037b700d01401a
dvimode=640x480MR-16@60
importbootenv=echo Importing environment from mmc ...; e...
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gz
loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} /boot/uI...
loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage
mmcargs=setenv bootargs console=${console} ${optargs} mp...
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${...
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mpurate=auto
nandargs=setenv bootargs console=${console} ${optargs} m...
nandboot=echo Booting from nand ...; run nandargs; nand ...
nandroot=ubi0:rootfs ubi.mtd=4
nandrootfstype=ubifs
ramargs=setenv bootargs console=${console} ${optargs} mp...
ramboot=echo Booting from ramdisk ...; run ramargs; boot...
ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x8100000...
ramrootfstype=ext2
rdaddr=0x81000000
usbtty=cdc_acm
userbutton=if gpio input 173; then run userbutton_xm; el...
userbutton_nonxm=gpio input 7;
userbutton_xm=gpio input 4;
vram=12M
Environment size: 2283/131068 bytes
** uEnv.txt [#uc574726]
>
To set up uEnv.txt as shown below, bc10 will boot standar...
mmcroot=/dev/mmcblk0p2 rw
uenvcmd=run loaduimagefat; run mmcboot
As debugging Suspend/Resume and handing no_console_suspen...
console=ttyO2,115200n8
mpurate=auto
buddy=none
vram=12M
dvimode=640x480MR-16@60
defaultdisplay=dvi
loadaddr=0x80200000
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mmcargs=setenv bootargs console=${console} ${optargs} mp...
mmcboot=echo Booting from mmc (uEnv.txt configuration) ....
loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage
uenvcmd=run loaduimagefat; run mmcboot
** tftpboot [#v071ac68]
>
u-boot includes and handles OMAP EHC, which is done by li...
Its details are written in the document, which is stored ...
u-boot-arm/doc/README.usb
The list of USB-Ethernet adapters, which work with tftpbo...
static const struct asix_dongle const asix_dongles[] = {
{ 0x05ac, 0x1402, FLAG_TYPE_AX88772 }, /* Apple...
{ 0x07d1, 0x3c05, FLAG_TYPE_AX88772 }, /* D-Lin...
/* Cables-to-Go USB Ethernet Adapter */
{ 0x0b95, 0x772a, FLAG_TYPE_AX88772 },
{ 0x0b95, 0x7720, FLAG_TYPE_AX88772 }, /* Trend...
{ 0x0b95, 0x1720, FLAG_TYPE_AX88172 }, /* SMC */
{ 0x0db0, 0xa877, FLAG_TYPE_AX88772 }, /* MSI -...
{ 0x13b1, 0x0018, FLAG_TYPE_AX88172 }, /* Links...
{ 0x1557, 0x7720, FLAG_TYPE_AX88772 }, /* 0Q0 c...
/* DLink DUB-E100 H/W Ver B1 Alternate */
{ 0x2001, 0x3c05, FLAG_TYPE_AX88772 },
/* ASIX 88772B */
{ 0x0b95, 0x772b, FLAG_TYPE_AX88772B | FLAG_EEPR...
{ 0x0000, 0x0000, FLAG_NONE } /* END - Do not ...
};
As of January 2013, Buffalo LUA-U2-ATX is easily obtainab...
To check VenderID and ProductID, apply lsusb. Then, its o...
Bus 001 Device 004: ID 0b95:7720 ASIX Electronics Corp. ...
The details of how to build tftpboot is available at [[bc...
* Revision History [#m4cf78fb]
>
- 2013-08-09 This article is initially published.
Page: