Difference between revisions of "CM-T3530: U-Boot: Firmware Update"

From Compulab Mediawiki
Jump to: navigation, search
(Preliminary setup)
 
 
Line 1: Line 1:
{{Warning|Failure in CM-T3530 firmware update may prevent proper boot from on-board NAND flash. It is recommended to create a [[CM-T3530: Linux: Booting from MMC/SD card|bootable MMC/SD card]] before updating CM-T3530 firmware}}
+
#REDIRECT [[CM-T3x: U-Boot: Firmware Update]]
 
 
== Preliminary setup ==
 
* Make sure to power off the CM-T3530 evaluation platform
 
* Connect the host PC to the SB-T35 base-board (connector P12) via the serial cable supplied with the evaluation kit.
 
* Start terminal emulation software on your PC. Set baud rate to 115200 bps, 8 bit per frame, 1 stop bit, no parity, no flow control.
 
* Turn on the CM-T3530 evaluation system. The U-Boot boot-loader will start and you will get a command prompt.
 
{{Note|If the boot settings of your CM-T3530 are different than default, you may need to press and hold ^C while turning the CM-T3530 on, in order to get command prompt.}}
 
CM-T3530 firmware can be updated from an MMC/SD card or using network TFTP download.
 
Both methods are performed from the U-Boot command line.
 
 
 
CM-T3530 Firmware consists of two components: X-Loader and U-Boot. The U-Boot bootloader can be installed and updated independently without updating the existing X-Loader. Please continue to [[CM-T3530: U-Boot: Firmware Update#CM-T3530_U-Boot_Update|CM-T3530 U-Boot Update]] for U-Boot installation instructions.
 
 
 
== CM-T3530 X-Loader Update ==
 
{{Warning|'''X-Loader can be installed only to completely erased NAND flash! The procedure below erases the entire NAND flash!'''}}
 
=== MMC/SD card ===
 
* Copy {{filename|x-load.bin.ift}} from [http://www.compulab.co.il/t3530/download/t3530-uboot.zip U-Boot package for CM-T3530] to the root directory of the MMC/SD card.
 
* Insert the MMC/SD card into the SD socket (P13) on SB-T35.
 
* Start the U-Boot MMC subsystem and check that your storage device is ready and contains the X-Loader binary
 
<pre>
 
CM-T35 # mmc init
 
CM-T35 # fatls mmc 0
 
</pre>
 
* Load the X-Loader into memory
 
<pre>
 
CM-T35 # fatload mmc 0 80a00000 x-load.bin.ift
 
</pre>
 
* Proceed to [[CM-T3530: U-Boot: Firmware Update#Flashing X-Loader|Flashing X-Loader]] section
 
 
 
=== TFTP download ===
 
* Setup TFTP server
 
* Put the X-Loader binary in the root directory of TFTP service
 
* Setup U-Boot networking:
 
<pre>
 
CM-T35 # dhcp
 
</pre>
 
: for dynamic IP configuration, or
 
<pre>
 
CM-T35 # setenv ipaddr <ip address>
 
CM-T35 # setenv serverip <server ip>
 
</pre>
 
: for static IP configuration
 
<pre>
 
CM-T35 # dhcp
 
</pre>
 
: for dynamic IP configuration
 
* Download the X-Loader to the CM-T3530 RAM
 
<pre>
 
CM-T35 # tftp 80a00000 x-load.bin.ift
 
</pre>
 
* Proceed to [[CM-T3530:_U-Boot:_Firmware_Update#Flashing X-Loader|Flashing X-Loader]] section
 
 
 
=== Flashing X-Loader ===
 
{{Warning| Do not reset or power off the CM-T3530 during the update process! Doing so may result in nand flash corruption!}}
 
* Flash the X-Loader onto the on-board NAND flash:
 
<pre>
 
CM-T35 # nandecc hw
 
CM-T35 # nand erase
 
CM-T35 # nand scrub
 
CM-T35 # nand write 80a00000 0 10000
 
</pre>
 
 
 
{{Important|It is essential to install U-Boot immediately after X-Loader update}}
 
 
 
== CM-T3530 U-Boot Update ==
 
=== MMC/SD card ===
 
* Copy {{filename|u-boot.bin}} from [http://www.compulab.co.il/t3530/download/t3530-uboot.zip U-Boot package for CM-T3530] to the root directory of the MMC/SD card.
 
* Insert the MMC/SD card into the SD socket (P13) on SB-T35.
 
* Start the U-Boot MMC subsystem and check that your storage device is ready and contains the U-Boot binary
 
<pre>
 
CM-T35 # mmc init
 
CM-T35 # fatls mmc 0
 
</pre>
 
* Load the U-Boot into the CM-T3530 RAM
 
<pre>
 
CM-T35 # fatload mmc 0 80a00000 u-boot.bin
 
</pre>
 
* Proceed to [[CM-T3530:_U-Boot:_Firmware_Update#Flashing U-Boot|Flashing U-Boot]] section
 
 
 
=== TFTP download ===
 
* Setup TFTP server
 
* Put the U-Boot binary in the root directory of TFTP service
 
* Setup U-Boot networking:
 
<pre>
 
CM-T35 # dhcp
 
</pre>
 
: for dynamic IP configuration, or
 
<pre>
 
CM-T35 # setenv ipaddr <ip address>
 
CM-T35 # setenv serverip <server ip>
 
</pre>
 
: for static IP configuration
 
* Download the U-Boot to the CM-T3530 RAM
 
<pre>
 
CM-T35 # tftp 80a00000 u-boot.bin
 
</pre>
 
* Proceed to [[CM-T3530: U-Boot: Firmware Update#Flashing U-Boot|Flashing U-Boot]] section
 
 
 
=== Flashing U-Boot ===
 
{{Warning| Do not reset or power off the CM-T3530 during the update process! Doing so may result in nand flash corruption!}}
 
* Flash the U-Boot onto the on-board NAND flash:
 
<pre>
 
CM-T35 # nandecc sw
 
CM-T35 # nand erase 80000 40000
 
CM-T35 # nand write 80a00000 80000 40000
 
</pre>
 
* Reset the CM-T3530 evaluation platform
 
 
 
== See also ==
 
 
 
* [[CM-T3530: U-Boot: Firmware Overview]]
 
* [[U-Boot quick reference]]
 
* [[U-Boot images]]
 
* [[CM-T3530: Linux: Getting started|Getting started with Linux on CM-T3530]]
 
* [http://www.denx.de/wiki/U-Boot/Documentation U-Boot documentation]
 
 
 
 
 
[[Category:U-Boot|Firmware Update]]
 
[[Category:CM-T3530|U-Boot: Firmware Update]]
 

Latest revision as of 13:20, 15 December 2010