This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5718: Saving changes to rootfs

Part Number: AM5718

Hi, I made a launch from intramfs. How to save changes to the rootfs kernel? Like for example in Alpine Linux via the command lbu(local backup).

I saw similar threads where people ran alpine on your platform and I understand that this goes beyond alpine support. But still, how to run an alpine on a platform? There you need to do something with the bootloader or recompile the kernel?

  • Hi,

    I'm sorry this is beyond the scope of what we can provide.

    You may find better options in the general open source communities.

    Thank you.

  • August SorokVosmogo said:

    Part Number: AM5718

    Hi, I made a launch from intramfs. How to save changes to the rootfs kernel? Like for example in Alpine Linux via the command lbu(local backup).

    I saw similar threads where people ran alpine on your platform and I understand that this goes beyond alpine support. But still, how to run an alpine on a platform? There you need to do something with the bootloader or recompile the kernel?

    This is a fairly generic Linux question. I think you just need to look at the mkinitramfs. For Alpine, it looks like that is at https://github.com/alpinelinux/mkinitfs

    Typically, what is called initramfs is a compressed cpio archive, so the process of mounting, modifying, and saving down the image is different than what you'd have on a ramdisk. Therefore, you really need to look at the tools to make a compressed cpio archive and have those available on the system you are using to edit the contents. I'm not sure those are available within the Alpine images.

    The instructions for using 'lbu' (https://wiki.alpinelinux.org/wiki/Alpine_local_backup) are generic and not AM57x-specific in any way.

     

  • I tried to unzip the archive from the image where the cpio archive is stored and got a lot of directories and in two directories there was a file system structure. 
    Thanks for the answer