User Tools

Site Tools


Sidebar

Launch of Linino.org

wiki:bootloader

U-boot configuration

* To setup the TFTP server and TFTP client IP address at the u-boot prompt:

setenv serverip <tftp-server-ip>; setenv ipaddr <linino-board-ip>;

let's suppose that your tftp server has the ip 192.168.215.214 and your Linino board has the ip 192.168.215.99, in this case we'll have:

setenv serverip 192.168.215.214; setenv ipaddr 192.168.215.99;

* To transfer the u-boot, kernel, rootfs and ART in the DDR2 RAM and save it on the SPI Flash follow the following commands

* u-boot

tftp 0x80060000 openwrt-ar71xx-generic-linino-u-boot.bin; 

The output of the command could be

linino> tftp 0x80060000 openwrt-ar71xx-generic-linino-u-boot.bin
Using eth0 device
TFTP from server 192.168.215.214; our IP address is 192.168.215.99
Filename 'doghunter/openwrt-ar71xx-generic-linino-u-boot.bin'.
Load address: 0x80060000
Loading: ####################################
done
Bytes transferred = 181852 (2c65c hex)

In case of FAIL, try to understand if the ethernet connection is present and if the file is in the right position on the tftp server.

linino> tftp 0x80060000 openwrt-ar71xx-generic-linino-u-boot.bin
Using eth0 device
TFTP from server 192.168.215.214; our IP address is 192.168.215.99
Filename 'doghunter/openwrt-ar71xx-generic-linino-u-boot.bin'.
Load address: 0x80060000
Loading: *
TFTP error: 'File not found' (1)
Starting again

eth1 link down
FAIL

if the file was properly downloaded you can proceed erasing the flash and copying the new boot.

DON'T erase the boot partition if the new boot is not properly loaded in RAM otherwise you'll brick the board!!

erase 0x9f000000 +0x40000;
cp.b $fileaddr 0x9f000000 $filesize;

If also the UBoot environment partition need to be erased, in order to apply the new default environment, it is possible to delete it with the command:

erase 0x9f040000 +0x10000;
reset;

After the board reboot a message like *** Warning - bad CRC, using default environment will appear on the console. To avoid the warning message give the following command on the UBoot console

saveenv

* kernel

tftp 0x80060000 openwrt-ar71xx-generic-linino-16M-kernel.bin;
erase 0x9fEa0000 +0x140000;
cp.b $fileaddr 0x9fea0000 $filesize;

* rootfs

tftp 0x80060000 openwrt-ar71xx-generic-linino-16M-rootfs-squashfs.bin
erase 0x9f050000 +0xE50000;
cp.b $fileaddr 0x9f050000 $filesize;

* ART (Atheros calibration raw file )

tftp 0x80060000 art-linino.bin
erase 0x9fff0000 +0x10000;
cp.b $fileaddr 0x9fff0000 $filesize

* and to boot the new image

bootm 0x9fea0000 
/var/www/wiki.linino.org/data/pages/wiki/bootloader.txt · Last modified: 2015/06/11 05:17 by administrator

2014 © dog hunter llc and the Linino Community. Linino.org is a dog hunter sponsored community project. Credits