Flash a NOR with Bootable SD Card For Rugged Board A5d2x

Objective:

This guide describes a method of flashing an SD card with a bootable images for the Rugged Board A5d2x then flashing the NOR images to NOR flash from sdcard. The demonstration image file is a customized Linux® distribution created using the Yocto project. This article assumes a Linux Ubuntu-based host, though the steps are similar for Windows®, macOS® and most Linux distributions.

Materials:

Hardware:

Software:

Files:

Use your own binary images or choose an appropriate binary images from this link with the below name.

  • BOOT.BIN

  • u-boot.bin

  • a5d2x-rugged_board.dtb

  • zImage

  • rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs

  • data-image-rootfs.jffs2

Connection Diagram:

Procedure:

  • Create the bootable sdcard and copy the files in boot partition as follows → Create the bootable sdcard for Rugged Board A5d2x from Flash a Bootable SD Card for the Rugged Board A5d2x → Get the mentioned files from above for NOR from this link and copy the all NOR based images to NOR folder(Create the folder with name of NOR) in boot partition of sdcard.

  • Insert the sdcard to Rugged Board A5d2x sdcard slot and give the power supply by connecting the usb cable between your PC and Board.

  • Open minicom and Boot the Board by pressing the RESET button and stop at bootloader level by pressing any key on keyboard as below

  • Enter the below commands to flash entire NOR flash images

sf probe 0
sf erase 0x0 0x2000000
fatload mmc 1 0x22000000 NOR/BOOT.BIN
sf write 0x22000000 0x0 0x10000
fatload mmc 1 0x21FF0000 NOR/u-boot.bin
sf write 0x21FF0000 0x20000 0x80000
fatload mmc 1 0x21F70000 NOR/a5d2x-rugged_board.dtb
sf write 0x21F70000 0xA0000 0x10000
fatload mmc 1 0x21F60000 NOR/zImage
sf write 0x21F60000 0xB0000 0x500000
fatload mmc 1 0x21A60000 NOR/rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs
sf write 0x21A60000 0x5B0000 0x01600000
fatload mmc 1 0x20460000 NOR/data-image-rootfs.jffs2
sf write 0x20460000 0x01BB0000 0x0450000

Now remove the sdcard from the Rugged Board A5d2x sdcard slot and reset the board. Output of flashing the NOR images shown below:

  • Also we can flash the single images by using below commands

bootstrap:

sf probe
fatload mmc 1 0x22000000 NOR/BOOT.BIN
sf erase 0x0 0x10000
sf write 0x22000000 0x0 0x10000

Output of flashing the BOOT.BIN shown below:

u-boot:

sf probe
fatload mmc 1 0x21FF0000 NOR/u-boot.bin
sf erase 0x20000 0x80000
sf write 0x21FF0000 0x20000 0x80000

Output of flashing the u-boot.bin shown below:

oftree:

sf probe
fatload mmc 1 0x21F70000 NOR/a5d2x-rugged_board.dtb
sf erase 0xA0000 0x10000
sf write 0x21F70000 0xA0000 0x10000

Output of flashing the a5d2x-rugged_board.dtb shown below:

zImage:

sf probe
fatload mmc 1 0x21F60000 NOR/zImage
sf erase 0xB0000 0x500000
sf write 0x21F60000 0xB0000 0x500000

Output of flashing the zImage shown below:

rootfs:

sf probe
fatload mmc 1 0x21A60000 NOR/rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs
sf erase 0x5B0000 0x01600000
sf write 0x21A60000 0x5B0000 0x01600000

Output of flashing the rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs shown below:

data-image:

sf probe
fatload mmc 1 0x20460000 NOR/data-image-rootfs.jffs2
sf erase 0x01BB0000 0x0450000
sf write 0x20460000 0x01BB0000 0x0450000

Output of flashing the data-image-rootfs.jffs2 shown below:

  • RESET the Rugged Board A5d2x. Your Board is READY to use.