wiki:FirmwareUpdate
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
Last modified 19 months ago Last modified on 18.02.2016 17:42:27

Firmware update

You can make a firmware update via a TFTP server over the network or via a USB flash drive. We prefer to do it over the USB flash drive. For this you need a cable to put external power on the flash drive. There is no power at start-up(uboot) at the USB port of the C-Cube. FW_USB_cable.pdf

Kernel update

To update the kernel use the terminal line on the 10pol MIL connector. The Termial Software could be minicom(linux) and hyperterm(windows). Make the flash drive connection with a fat file system on the drive and the boot_ccube_VX_X.img on it.boot_ccube_1_4.img

At reboot with terminal connection press a key at your keyboard to stop for uboot:

Hit any key to stop autoboot:  0                                                
U-Boot> 

usb start

fatls usb 0 # shows the content of the usb drive

fatls mmc 0 # shows the content of the kernel partition on the ccube

fatload usb 0:1 0x22000000 boot_ccube_1_4.img  # load the image to ram

mmc write 0x22000000 800 10000 # write the image to the internal sd-card

usb stop

boot

*fatload takes 2 minutes

Root filesystem update

The rootfs is on an external USB Drive with a ext4 filesystem. The USB flash drive is connected to the C-Cube and get external Power. Load local kernel plus external(USB) root-fs, copy rootfs to the internal SDcard.

At reboot with terminal connection press a key at your keyboard to stop for uboot:

Hit any key to stop autoboot:  0                                                
U-Boot>   

U-Boot> fatload mmc 0:1 0x22000000 zImage                                       
reading zImage                                                                  
1860992 bytes read in 193 ms (9.2 MiB/s)                                        
U-Boot> fatload mmc 0:1 0x27FF0000 /dtbs/at91-ariag25.dtb                       
reading /dtbs/at91-ariag25.dtb                                                  
16988 bytes read in 7 ms (2.3 MiB/s)                                    

U-Boot> setenv bootargs console=ttyS0,115200n8 root="/dev/sda2 ro" rootfstype="ext4 rootwait" rootdelay=1

U-Boot> bootz 0x22000000 - 0x27FF0000                                           
## Flattened Device Tree blob at 27ff0000                                       
   Booting using the fdt blob at 0x27ff0000                                     
   Loading Device Tree to 27dfb000, end 27e02217 ... OK                         
                                                                                
Starting kernel ...                                                             
                                                                           

Login and copy the rootfs to the internal sdcard:

Debian GNU/Linux 7 aria ttyS0                                                   
                                                                                
aria login: 


CCUBE                                                                           
root@aria:~#

mount /dev/mmcblk0p2 /mnt

Upload new FW from external computer:

daniel@pavlof:/$ sudo rsync  --delete --exclude={"/dev/*","proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found","etc/hostname"} -aXe ssh /home/daniel/CCUBE/V1.3/  root@192.168.1.46:/mnt
[sudo] password for daniel: 
root@192.168.1.46's password: 




On the C-Cube again:

reboot
depmod -a

Attachments