bc10-router/u-boot update

[[bc10]]
[[bc10-router]]
#contents

* Updating u-boot [#r32fecbb]
>
bc10-router uses the boot image for beagleboard of arago-project, and the version of its u-boot is u-boot-2012.04.01. The version of u-boot can be displayed as shown below.~
<Code and Commands>
This indicates that {HOME}/oe/arago/recipes/u-boot/u-boot_2012.04.01.bb is used for the build process. As {HOME}/oe/arago/recipes/u-boot/u-boot_2012.04.01.inc points out, the mainline of u-boot is downloaded form the master branch of repository, git://git.denx.de/u-boot.git, and several patches are applied for beagleboard. The patches, which are used here are listed below.~
- 0001-omap3_beagle-add-usbethaddr-setting-to-enable-networ.patch~
- 0001-OMAP3-Beagle-Set-BOOTDELAY-to-3.patch~
- 0002-am335x-am335x-am3517evm-beagleboard-am37x-Add-CONFIG_CMD_AS.patch~
- 0003-beagleboard-Load-uImage-from-VFAT-by-default.patch~
- 0004-beagleboard-Load-uImage-to-the-default-kernel-linux.patch~
- 0001-omap3_evm-Added-function-calls-to-set-volts-speed-on.patch~
- 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 have more functionalities then before. The patched one is capable of using tftpboot with USB-Ethernet adapter. However,  the u-boot for ARM devices, which has recently been developed and available at [[http://git.denx.de/?p=u-boot/u-boot-arm.git]], includes such functionalities, and this u-boot is now considered as the mainline.~
~
Therefore, u-boot is going to be updated to u-boot-arm. This update of u-boot promises easier update of u-boot and kernel later on. To update u-boot, kernel is updated form 3.7, and the newer kernel can include DeviceTree that works with ARM architecture.~
~
Caution)  The repository of u-boot-arm has only two branches: master and next. Its Tag has not updated for 4 yeas, so it is very difficult to obtain a specific version of u-boot. To work wit a specific version of u-boot, select specific version of u-boot by Tag. The instruction of how to select a version of u-boot is shown later.

** 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.~
<Code and Commands>~

*** Obtain u-boot from the respository [#xecb4f4c]
>
Obtain the 2012 version of u-boot from the repository.~
<Code and Commands>~
After obtaining the source code, set up PATH to Cross Toolchain of ti-sdk-beagleboard-05.05.01.00. Then, execute config for beagleboard.~
<Code and Commands>~
Since the configuration for building beagleboard is completed, execute make to build.~
<Code and Commands>~
Several files are built, yet only u-boot.img is used. Copy u-boot.img to FAT partition of a booting SD file. This is the end of updating process.~

** version [#p5e9c437]
>
To apply the command below, the version of updated u-boot is checked.~
<Code and Commands>

** u-boot commands [#yf031146]
> 
Updated the list of u-boot commands is shown below. This u-boot is capable of booting from tftpboot and nand of OMAP3.~
<Code and Commands>

** The default environment variable of u-boot [#w6043ef8]
>
The list of the pre-set environment variables for u-boot is shown below.~
To use nEnv.txt, modify the configurations of environment variables. ~
<Code and Commands>

** uEnv.txt [#uc574726]
>
To set up uEnv.txt as shown below, bc10 will boot standardly as well as normally.~
<Code and Commands>
As debugging Suspend/Resume and handing no_console_suspend to kernel as an option, uEnv is used as it is shown below.~
<Code and Commands>

** tftpboot [#v071ac68]
>
u-boot includes and handles OMAP EHC, which is done by linaro. This u-boot can deal with tftoboot, so it can handle a USB-Ethernet adapter.~
Its details are written in the document, which is stored at the directory shown below.~
<Code and Commands>
The list of USB-Ethernet adapters, which work with tftpboot, is located at the directory of u-boot-arm/drivers/usb/eith/asx.c. Specifically, these USB-Ethernet adapters have to work with u-boot, which can handle tftpboot. The contents of the list suggest VernderID: ProductID.~
<Code and Commands>
As of January 2013, Buffalo LUA-U2-ATX is easily obtainable in Japan. This USB-Ethernet adapter works with tftpboot.~
To check VenderID and ProductID, apply lsusb. Then, its output is displayed as it is shown below,~
<Code and Commands>
The details of how to build tftpboot is available at [[bc10-router/tftpboot]].~

* Revision History [#m4cf78fb]
>
- 2013-08-09  This article is initially published.


Front page   New List of pages Search Recent changes   RSS of recent changes