Difference between revisions of "AXIOM Beta/Firmware Flashing"

From apertus wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
Download the latest Firmware 2.0 from: https://github.com/apertus-open-source-cinema/axiom-firmware/releases  
Download the latest Firmware 2.0 from: https://github.com/apertus-open-source-cinema/axiom-firmware/releases  


==Method using Commandline==
==Firmware Flashing using Commandline==
You need to first unpack the sd.dd.xz with the xz tool (or some other tool which can handle XZ data).
You need to first unpack the sd.dd.xz with the xz tool (or some other tool which can handle XZ data).


Line 18: Line 18:
After flashing put the Micro SD card into the AXIOM Beta Microzed SD card slot and power up the Beta.
After flashing put the Micro SD card into the AXIOM Beta Microzed SD card slot and power up the Beta.


==Method using Ether GUI==
==Firmware Flashing using Etcher GUI==
If yo prefer using a graphical user interface download and use: https://www.balena.io/etcher/  
If yo prefer using a graphical user interface download and use: https://www.balena.io/etcher/  


After flashing put the Micro SD card into the AXIOM Beta Microzed SD card slot and power up the Beta.
After flashing put the Micro SD card into the AXIOM Beta Microzed SD card slot and power up the Beta.


==Resize Main Partition==
Optionally after booting the AXIOM Beta for the first time and logging in you can resize the partition to fill the entire Micro SD card:
run as root (Firmware 2.0):
axiom_grow_fs.sh


=Firmware Backup=
=Firmware Backup=

Latest revision as of 18:38, 11 April 2024

1 Notes/Preparations

The entire camera firmware is stored on a Micro SD card that's plugged into the Microzed. To flash a new version of the firmware shut down the AXIOM Beta and take out the Micro SD card. We recommend to keep one original firmware image around so we suggest acquiring a new Micro SD card with at least 16GB. Note that if you flash new firmware onto a previously used Micro SD card all data on it will be overwritten, so if you have any files or changes to scripts/software on the AXIOM Beta make sure to first create a backup or copy your data/files somewhere else.

Download the latest Firmware 2.0 from: https://github.com/apertus-open-source-cinema/axiom-firmware/releases

1.1 Firmware Flashing using Commandline

You need to first unpack the sd.dd.xz with the xz tool (or some other tool which can handle XZ data).

$ xz -k -d sd.dd.xz

Then you need to write the sd.dd image to the SD card, for example like this (this assumes that /dev/sdx is the device for the new SD card).

$ dd if=sd.dd of=/dev/sdx bs=128k status=progress

After flashing put the Micro SD card into the AXIOM Beta Microzed SD card slot and power up the Beta.

1.2 Firmware Flashing using Etcher GUI

If yo prefer using a graphical user interface download and use: https://www.balena.io/etcher/

After flashing put the Micro SD card into the AXIOM Beta Microzed SD card slot and power up the Beta.

1.3 Resize Main Partition

Optionally after booting the AXIOM Beta for the first time and logging in you can resize the partition to fill the entire Micro SD card:

run as root (Firmware 2.0):

axiom_grow_fs.sh

2 Firmware Backup

The entire camera firmware is stored on a Micro SD card that's plugged into the Microzed. To back up the entire firmware we plug 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. Let's 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


For Mac and Windows see this guide: http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi