Home > Uncategorized > Updating the u-boot in i.MX6 file

Updating the u-boot in i.MX6 file

November 16th, 2012

In case you have a corrupt u-boot or if you wish to update to new u-boot in SabreLite board from Boundary Devices here are the steps.

1. Compile your u-boot and make your u-boot.bin file available to tftpboot directory.
2. Make sure tftpboot is working. You need to install tftboot in your host machine.
3. The the serverip address and the IP address of the Sabre Lite board.

REFERENCEDESIGNER# setenv serverip 192.168.0.132
REFERENCEDESIGNER# setenv serverip 192.168.0.129
REFERENCEDESIGNER# saveenv

4. If your board boots up - that is good news. Transfer the u-boot file using tftp

REFERENCEDESIGNER# tftpboot 192.168.0.132:u-boot.bin

tftp 192.168.0.132:u-boot.bin
FEC: Link is Up 796d
Using FEC0 device
TFTP from server 192.168.0.132; our IP address is 192.168.0.129
Filename 'u-boot.bin'.
Load address: 0x10800000
Loading: ####################################
done
Bytes transferred = 179944 (2bee8 hex)

Notice the size of the file in the end - 0x2BEE8

Use the the sf commands to program the flash

REFERENCEDESIGNER# sf probe 1
REFERENCEDESIGNER# sf erase 0 0x40000
REFERENCEDESIGNER# sf write 0x10800000 0 0x2BEE8

The first parameter of the sf write command is the location where it gets the file to write. The second is the offset in the SPI Flash were writing needs to start. The last parameter is the size of the file.

If your Flash is not booting you will have to set the switch for USB boot. You the use the imx usb loader to load the flash through the USB. Basically you will have to download the imx USB loader and compile it. Then you give the command

#./imx_usb u-boot.bin

and your board will boot giving output on the Serial Port.

Uncategorized

  1. No comments yet.
  1. No trackbacks yet.