AXIOM Beta/AXIOM Beta Software/Firmware

From apertus wiki
Jump to: navigation, search

The entire AXIOM Beta firmware is stored on a Micro SD card. This means the cameras operating system can be swapped out easily and that external recovery of the camera entire software in case anything went wrong eg. during flashing is always possible. It also means that experimental features can easily be tried and tested by just popping in a different card into the camera.

1 Firmware Development Todos

  • update beta apps from github to latest: cmv_hist3, cmv_perf3, cmv_snap3, mimg, lut_conf3, cmv_train3 and/or push any pending code changes of these apps to github
  • give firmware image version number that can also be read from within the firmware (/etc/os-release, echo with /etc/issue at login)
  • "pip3 install bitarray" to solve error reported at the end of kick_manual.sh
  • "pip install pypng" to solve error reported when trying to load darkframe

2 Firmware Backup

The entire camera firmware is stored on a Micro SD card plugged into the Microzed. To back up the entire firmware we plug in the Micro SD card into a Linux PC and do the following:

1. Find out which device the micro SD card is:

cat /proc/partitions
mount

should give you a list of all connected devices. Lets assume in our case that the card is /dev/sdc

2. Make sure the card is unmounted (all 3 partitions):

umount /dev/sdc1
umount /dev/sdc2
umount /dev/sdc3

3. clone the entire card to a file:

ddrescue /dev/sdc sdimage.img sdimage.log


Here is a guide that covers doing the same on Mac and Windows: http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi

3 Firmware Restore

Again you need to know the device path of your sd card, then (assuming in our case its /dev/sdb) run:

sudo dd if=sdimage.img of=/dev/sdb bs=4M