RuggedBOARD DevWiki
  • RuggedBOARDs Developer Wiki
  • RB-A5D2x
    • Contents
    • Download BSP and Documents
  • G1: Getting Started
    • RB-Quick Start Guide
    • Test all the RB interfaces in 10 mins in command Line
    • Example Program for Interfaces Using Python 3
  • G2: Programming Guide
    • Software Architecture on RB (Software Stack Diagram)
    • RB Interface/Bus Programming using MRAA
    • RB Peripherals programming using UPM
  • G3: How to Do?
    • Modbus on RB
    • RB as Tiny Web Server
    • MQTT Client on RB
    • SQL Lite DB
    • AWS Green Grass on RB
    • Microsoft Azure on RB
  • G4: Use Cases / Application Notes
    • Smart Energy Meter with AWS cloud
    • IoT Based solution for Plants Water monitoring
    • Weather Monitoring Stations
    • FAQ
  • G5: System development Guide
    • Advance Host setup
    • Flash a Bootable SD Card for Rugged board
    • Flash a NOR with Bootable SD Card For Rugged Board A5d2x
    • Flash the NOR using tftp For Rugged Board A5d2x
    • Yocto Compilation For Rugged Board A5d2x
    • Download the Toolchain for Rugged Board A5d2x
    • How to Add New Package in Yocto(root file system)
    • Generate the SDK(toolchain) using YOCTO
    • How to compile the U-Boot for Rugged Board A5d2x
    • How to compile the kernel for Rugged Board A5d2x
  • RB-i.MX6UL
    • Contents
    • Download BSP and Documents
  • G1: Getting Started
    • RB-Quick Start Guide
    • Test all the RB interfaces in 10 mins in command Line
    • Example Program for Interfaces Using Python 3
  • G2: Programming Guide
    • Software Architecture on RB (Software Stack Diagram)
    • RB Interface/Bus Programming using MRAA
    • RB Peripherals programming using UPM
  • G3: How to Do?
    • Modbus on RB
    • MQTT Client on RB
  • G4: System development Guide
    • Advance Host setup
    • Flash a Bootable SD Card for Rugged board
    • Flash a NAND with Bootable SD Card For Rugged Board i.MX6UL
    • Flash the NAND using tftp For Rugged Board i.MX6UL
    • Yocto Compilation For Rugged Board i.MX6UL
    • Download the Toolchain for Rugged Board i.MX6UL
    • How to Add New Package in Yocto(root file system)
    • Generate the SDK(toolchain) using YOCTO
    • How to compile the Barebox for Rugged Board i.MX6UL
    • How to compile the kernel for Rugged Board i.MX6UL
  • G5 : Help Desk
    • FAQ
Powered by GitBook
On this page
  • Objective:
  • Materials:
  • Hardware:
  • Software:
  • Procedure:
  • Flash the all images:
  • Flash the individual images:

Was this helpful?

  1. G5: System development Guide

Flash the NOR using tftp For Rugged Board A5d2x

PreviousFlash a NOR with Bootable SD Card For Rugged Board A5d2xNextYocto Compilation For Rugged Board A5d2x

Last updated 4 years ago

Was this helpful?

Objective:

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

Materials:

Hardware:

  • PC(Personal computer)/System

  • ​

  • Ethernet Cable to Rugged Board a5d2x​

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.

Rugged Board A5d2x
Rugged Board A5d2x
1KB
tftp-script.sh