This guide describes a method of flashing the NOR using tftp for the Rugged Board A5d2x.
PC(Personal computer)/System
Ethernet Cable to Rugged Board a5d2x
Ubuntu 16.04
Step1: Following packages need to be install in the host PC.Before installing the below packages, please check your internet(Ethernet Cable) connection.
Ubuntu and Debian:
$ sudo apt-get update$ sudo apt-get -y install git-core flex bison gperf libesd0-dev zip zlib1g-dev build-essential gettext texinfo texi2html fakeroot gnupg libsdl1.2-dev squashfs-tools u-boot-tools expect libncurses5-dev python-dev minicom lrzsz nfs-kernel-server nfs-common portmap patch vim gawk xinetd tftpd tftp qtcreator ctags quilt libncurses5-dev u-boot-tools
Step2: Please install the below additional packages if your Host PC is 64 bit.
$ sudo apt-get install lib32ncurses5 lib32z1 lib32ncurses5-dev lib32readline6-dev lib32z1-dev
Step3: Please download the below script.
Step4: Please run the above script as below
$ sudo su$ sh tftp-script.sh
Step5: Now copy the rugged board a5d2x related images to "/var/lib/tftpboot/" location in your host PC.
Step6: Ethernet cable can connect between Board and Host PC. or we can connect the individual Ethernet cables to Host PC and Rugged Board a5d2x from router.
Step7: Boot the rugged board a5d2x and stop at boot-loader level and follow below commands.
setenv serverip <ip address of your PC> setenv ipaddr <ip address of board> saveenv
Example as below:
setenv serverip 192.168.0.10setenv ipaddr 192.168.0.5saveenv
Step8: Below commands to flash the all images into NOR flash.
sf probe 0sf erase 0x0 0x2000000tftp 0x22000000 BOOT.BINsf write 0x22000000 0x0 0x10000tftp 0x21FF0000 u-boot.binsf write 0x21FF0000 0x20000 0x80000tftp 0x21F70000 a5d2x-rugged_board.dtbsf write 0x21F70000 0xA0000 0x10000tftp 0x21F60000 zImagesf write 0x21F60000 0xB0000 0x500000tftp 0x21A60000 rb-nor-core-image-minimal-rugged-board-a5d2x.squashfssf write 0x21A60000 0x5B0000 0x01600000tftp 0x20460000 data-image-rootfs.jffs2sf write 0x20460000 0x01BB0000 0x0450000
Step9: Now reset the board.
Step10: Below commands to flash the individual images into NOR flash.
bootstrap:
sf probetftp 0x22000000 BOOT.BINsf erase 0x0 0x10000sf write 0x22000000 0x0 0x10000
u-boot:
sf probetftp 0x21FF0000 u-boot.binsf erase 0x20000 0x80000sf write 0x21FF0000 0x20000 0x80000
oftree:
sf probetftp 0x21F70000 a5d2x-rugged_board.dtbsf erase 0xA0000 0x10000sf write 0x21F70000 0xA0000 0x10000
zImage:
sf probetftp 0x21F60000 zImagesf erase 0xB0000 0x500000sf write 0x21F60000 0xB0000 0x500000
rootfs:
sf probetftp 0x21A60000 rb-nor-core-image-minimal-rugged-board-a5d2x.squashfssf erase 0x5B0000 0x01600000sf write 0x21A60000 0x5B0000 0x01600000
data-image:
sf probetftp 0x20460000 data-image-rootfs.jffs2sf erase 0x01BB0000 0x0450000sf write 0x20460000 0x01BB0000 0x0450000
Step11: RESET the Rugged Board A5d2x. Your Board is READY to use.