Advanced firmware upload options

Manual U-boot TFTP flashing

These instructions are for Rambutan board

  • You will need TFTP server running on your PC. On Linux install package 'tftpd-hpa', on Windows - TFTPD32.
  • Put sysupgrade image to your TFTP folder.
  • Reboot or power up Rambutan with serial console running and connected to PC.
U-Boot 2016.01-00029-gbcf8fc0 (May 31 2016 - 16:06:17 +0300)

=========================================
Caraboot v3.1-dev (QCA9557, NAND) U-Boot
http://www.8devices.com/
-----------------------------------------
DRAM:  128 MiB
NAND:  128 MiB
*** Warning - bad CRC, using default environment

Net:   eth0, eth1
Hit <ESC> key to stop autoboot:  0 
  • Press <ESC> to enter U-Boot console, press <Ctrl+C> few times to clear console buffer
Hit <ESC> key to stop autoboot:  0
ath> INTERRUPT>
ath> <INTERRUPT>
ath> <INTERRUPT>
  • Set IP adresses of TFTP server and device (adjust addresses to match your setup):
setenv ipaddr 192.168.1.1; setenv serverip 192.168.1.100
  • Download firmware from TFTP server (file name can be changed if you need)
 ath> tftpboot 80060000 openwrt-8devices-v2.9-ar71xx-nand-rambutan-squashfs-nand-factory.ubi
Using eth0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.1
Filename 'openwrt-8devices-v2.9-ar71xx-nand-rambutan-squashfs-nand-factory.ubi'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####################################################
         5.6 MiB/s
done
Bytes transferred = 4587520 (460000 hex)
ath> 
  • Next step erases old firmware and writes the new one. Only perform it, if previous step was successful and 'Bytes transferred =' matches actual size of firmware image file.
ath> nand erase.part ubi; nand write 80060000 ubi ${filesize}

NAND erase.part: device 0 offset 0x600000, size 0x7a00000
Erasing at 0x7fe0000 -- 100% complete.
OK

NAND write: device 0 offset 0x600000, size 0x460000
 4587520 bytes written: OK
ath> 

* Flashing is done, you can reset the board

reset