Flash the NOR using tftp For Rugged Board A5d2x

Objective:

This guide describes a method of flashing the NOR using tftp for the Rugged Board A5d2x.

Materials:

Hardware:

Software:

  • Ubuntu 16.04

Procedure:

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.10
setenv ipaddr 192.168.0.5
saveenv

Step8: Below commands to flash the all images into NOR flash.

Flash the all images:

sf probe 0
sf erase 0x0 0x2000000

tftp 0x22000000 BOOT.BIN
sf write 0x22000000 0x0 0x10000

tftp 0x21FF0000 u-boot.bin
sf write 0x21FF0000 0x20000 0x80000

tftp 0x21F70000 a5d2x-rugged_board.dtb
sf write 0x21F70000 0xA0000 0x10000

tftp 0x21F60000 zImage
sf write 0x21F60000 0xB0000 0x500000

tftp 0x21A60000 rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs
sf write 0x21A60000 0x5B0000 0x01600000

tftp 0x20460000 data-image-rootfs.jffs2
sf write 0x20460000 0x01BB0000 0x0450000

Step9: Now reset the board.

Step10: Below commands to flash the individual images into NOR flash.

Flash the individual images:

bootstrap:

sf probe
tftp 0x22000000 BOOT.BIN
sf erase 0x0 0x10000
sf write 0x22000000 0x0 0x10000

u-boot:

sf probe
tftp 0x21FF0000 u-boot.bin
sf erase 0x20000 0x80000
sf write 0x21FF0000 0x20000 0x80000

oftree:

sf probe
tftp 0x21F70000 a5d2x-rugged_board.dtb
sf erase 0xA0000 0x10000
sf write 0x21F70000 0xA0000 0x10000

zImage:

sf probe
tftp 0x21F60000 zImage
sf erase 0xB0000 0x500000
sf write 0x21F60000 0xB0000 0x500000

rootfs:

sf probe
tftp 0x21A60000 rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs
sf erase 0x5B0000 0x01600000
sf write 0x21A60000 0x5B0000 0x01600000

data-image:

sf probe
tftp 0x20460000 data-image-rootfs.jffs2
sf erase 0x01BB0000 0x0450000
sf write 0x20460000 0x01BB0000 0x0450000

Step11: RESET the Rugged Board A5d2x. Your Board is READY to use.

Last updated