Advanced firmware upload options
mtd
- Login to Carambola and download binary image to RAM. (Alter IP and path to match your binary image location)
scp test@192.168.0.104:/home/test/carambola_tester/bin/ramips/openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin /tmp
- Perform upgrade procedure.
mtd -r write /tmp/openwrt-ramips-rt305x-carambola-squashfs-sysupgrade.bin firmware
Manual U-boot TFTP flashing
These instructions are for Carambola2 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 Carambola2 with serial console running and connected to PC.
U-Boot 1.1.4-g2dfdea36 (Aug 8 2014 - 10:33:34) ===================================== Caraboot v2.0 (AR9331) U-boot http://www.8devices.com/ ------------------------------------- DRAM: 64 MB Flash: 16 MB Net: eth0, eth1 =====================================
- Press <ESC> to enter U-Boot console, press <Ctrl+C> few times to clear console buffer
Hit ESC key to stop autoboot: 0 ar7240> INTERRUPT> ar7240> <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)
tftpboot 0x80060000 openwrt-ar71xx-generic-carambola2-squashfs-sysupgrade.bin
ar7240> tftpboot 0x80060000 openwrt-ar71xx-generic-carambola2-squashfs-sysupgrade.bin Using eth1 device TFTP from server 192.168.1.20; our IP address is 192.168.1.1 Filename 'openwrt-ar71xx-generic-carambola2-squashfs-sysupgrade.bin'. Load address: 0x80060000 Loading: T T T T T ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ###################################################### done Bytes transferred = 3932164 (3c0004 hex) ar7240>
- 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.
erase 0x9f050000 +${filesize}; cp.b 0x80060000 0x9f050000 ${filesize}
ar7240> erase 0x9f050000 +${filesize}; cp.b 0x80060000 0x9f050000 ${filesize} ............................................................. Copy to Flash... ............................................................done ar7240>
- Flashing is done, you can reset the board
reset