How to build customised initrd with flexbuilder (Development Board NXP LS1028ARDB)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to build customised initrd with flexbuilder (Development Board NXP LS1028ARDB)

887 Views
mmxland
Contributor I

Hello.

I am trying to port vyos software router in LS1028ARDB. 
I've compiled custom linux kernel and need to modify init script to mount overlayed filesystem. How can I edit initscript with flexbuilder (or other tools)? Maybe someone have experience in porting vyos on NXP boards?

Any help appreciated.
Thank you.

Tags (3)
0 Kudos
3 Replies

865 Views
yipingwang
NXP TechSupport
NXP TechSupport

What initscript do you want to customize?

You could refer to the following procedure to generate ubuntu main rootfs.

$ flex-builder -i mkrfs

$ flex-builder -c apps

$ flex-builder -i merge-component

Modify init scripts in build/rfs/rootfs_lsdk2012_ubuntu_main_arm64

$ flex-builder -i packrfs

0 Kudos

860 Views
mmxland
Contributor I

Hello.
Thank you for answer.

I need a way to make some filesystem actions before actualy mounting root. I need to make some overlays and mount it as root.

Something like this:
Filesystem  Size          Used       Avail     Use%    Mounted on
/dev/sda1    32G          4.8G       26G      16%       /usr/lib/live/mount/persistence
/dev/loop0   409M        409M      0          100%     /usr/lib/live/mount/rootfs/1.4202108300430.squashfs
tmpfs           998M        0             998M    0%        /usr/lib/live/mount/overlay
overlay        32G          4.8G        26G     16%       /

Normaly linux boot process includes loading initrd image as starting point and launch init script making necessary preparation. 
How can I acheave this?

0 Kudos

844 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could edit /etc/fstab in rootfs filesystem to add the following.

/dev/sda1 /usr/lib/live/mount/persistence ext4 defaults 0 0

0 Kudos