Advanced firmware upload options

mtd

  • Login to Lima and download binary image to RAM. (Alter IP and path to match your binary image location)
scp test@192.168.0.104:/home/test/openwrt-8devices-v2.9-ar71xx-generic-lima-squashfs-sysupgrade.bin /tmp
  • Perform upgrade procedure.
mtd -r write /tmp/openwrt-8devices-v2.9-ar71xx-generic-lima-squashfs-sysupgrade.bin firmware

Manual U-boot TFTP flashing

These instructions are for Lima 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 Lima with serial console running and connected to PC.
U-Boot 1.1.4-g4ef14f8b-dirty (Apr 11 2016 - 14:56:54)

=====================================
Caraboot v2.5-dev (QCA9531) U-boot
http://www.8devices.com/
-------------------------------------
DRAM:  128 MB
Flash: 64 MB
Net:   eth0, eth1
=====================================

Hit '<ESC>' key(s) to stop autoboot:  0 
ath> 
  • Press <ESC> to enter U-Boot console, press <Ctrl+C> few times to clear console buffer
Hit '<ESC>' key(s) to stop autoboot:  0
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.20
  • Download firmware from TFTP server (file name can be changed if you need)
  ath> tftpboot 0x80060000 openwrt-8devices-v2.9-ar71xx-generic-lima-squashfs-sysupgrade.bin
eth0 link down
enet1 port1 up
dup 1 speed 1000
Using eth1 device
TFTP from server 192.168.1.20; our IP address is 192.168.1.1
Filename 'openwrt-8devices-v2.9-ar71xx-generic-lima-squashfs-sysupgrade.bin'.
Load address: 0x80060000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 3932164 (3c0004 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> sf erase 0xC0000 +${filesize}; sf write 0x80060000 0xC0000 ${filesize}
SF: 4194304 bytes @ 0xc0000 Erased: OK
SF: 3932164 bytes @ 0xc0000 Written: OK
ath>
  • Flashing is done, you can reset the board
reset