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 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
1
sf probe 0
2
sf erase 0x0 0x2000000
3
4
fatload mmc 1 0x22000000 BOOT.BIN
5
sf write 0x22000000 0x0 0x10000
6
7
fatload mmc 1 0x21FF0000 u-boot.bin
8
sf write 0x21FF0000 0x20000 0x80000
9
10
fatload mmc 1 0x21F70000 a5d2x-rugged_board.dtb
11
sf write 0x21F70000 0xA0000 0x10000
12
13
fatload mmc 1 0x21F60000 zImage
14
sf write 0x21F60000 0xB0000 0x500000
15
16
fatload mmc 1 0x21A60000 rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs
17
sf write 0x21A60000 0x5B0000 0x01600000
18
19
fatload mmc 1 0x20460000 data-image-rootfs.jffs2
20
sf write 0x20460000 0x01BB0000 0x0450000
Copied!
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:
1
sf probe
2
fatload mmc 1 0x22000000 BOOT.BIN
3
sf erase 0x0 0x10000
4
sf write 0x22000000 0x0 0x10000
Copied!
Output of flashing the BOOT.BIN shown below:
u-boot:
1
sf probe
2
fatload mmc 1 0x21FF0000 u-boot.bin
3
sf erase 0x20000 0x80000
4
sf write 0x21FF0000 0x20000 0x80000
Copied!
Output of flashing the u-boot.bin shown below:
oftree:
1
sf probe
2
fatload mmc 1 0x21F70000 a5d2x-rugged_board.dtb
3
sf erase 0xA0000 0x10000
4
sf write 0x21F70000 0xA0000 0x10000
Copied!
Output of flashing the a5d2x-rugged_board.dtb shown below:
zImage:
1
sf probe
2
fatload mmc 1 0x21F60000 zImage
3
sf erase 0xB0000 0x500000
4
sf write 0x21F60000 0xB0000 0x500000
Copied!
Output of flashing the zImage shown below:
rootfs:
1
sf probe
2
fatload mmc 1 0x21A60000 rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs
3
sf erase 0x5B0000 0x01600000
4
sf write 0x21A60000 0x5B0000 0x01600000
Copied!
Output of flashing the rb-nor-core-image-minimal-rugged-board-a5d2x.squashfs shown below:
data-image:
1
sf probe
2
fatload mmc 1 0x20460000 data-image-rootfs.jffs2
3
sf erase 0x01BB0000 0x0450000
4
sf write 0x20460000 0x01BB0000 0x0450000
Copied!
Output of flashing the data-image-rootfs.jffs2 shown below:
  • RESET the Rugged Board A5d2x. Your Board is READY to use.