rootfs-tools icon indicating copy to clipboard operation
rootfs-tools copied to clipboard

Nice script, more info?

Open Lewiscowles1986 opened this issue 2 years ago • 1 comments

This seems quite cool. Thanks for sharing. If I understand the deps correctly, this is building using a qemu environment to make modifications, which can then be written to an image.

What is not clear is if this is simply overlaying specific folders from the starfive boot image onto an existing SUSE / Ubuntu for the StarFive VisionFive 2 builds.

Are there perhaps local branches you may be willing to push to GitHub?

Lewiscowles1986 avatar Dec 22 '22 08:12 Lewiscowles1986

Hello:

qemu-user-static for cross-arch chroot supporting.

Build which kind of disk image (single partition or combined image) deps the devkit needs. You can just edit the origin disk image if disk space is ok. Otherwise you may need create a new blank image by dd. Combined image aslo can be created by dd, you just need load disk layout file by fdisk.

Porting linux distro, you need the kernel firmware fstab etc, so backup them first of all. Then copy the prebuilt linux distro root files. After file operation, you may need some configuration, like user password, extra software.

Then flash it, boot it, debug it, re-edit someting...

It's pretty easy task after this tool handling some dirty work, so have fun!

initdc avatar Dec 22 '22 10:12 initdc