I am developing a Linux device using alix 2d13.
I developed a script that takes care of creating the image file, creating partitions, installing the bootloader (syslinux), kernel and initrd, and that takes care of the root filesystem files to the right of the partition.
The configuration files are located on the tmpfs file system and are created at system startup using software that reads an XML file that is located on its own section.
I am looking for a way to update the file system, and I examined two solutions:
- A firmware update is a compressed file that can contain a kernel, initrd and / or rootfs partition, so when restarting initrd will make sure that the rootfs image is in the correct partition;
- A firmware update is a compressed file that can contain two tar archives, one for download and one for the root file system.
Each solution has its advantages: - the image of the file system will allow me to delete any unused files, but you need a lot of time, and it will quickly destroy the compact flash memory; - the archive is smaller, it takes less time to update, but in a short time I will have caos in the root file system.
An alternative solution would be to place a list of files and add a pre / post update script to the tar archive, so any file that is not in the list of files will be deleted.
What do you think?
linux buildroot firmware
Daniele Salvatore Albano Mar 02 2018-11-12T00: 00Z
source share