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

Documentation for building Ubuntu for VisionFive 2

Open caizixian opened this issue 2 years ago • 2 comments

Thanks for the Ubuntu image. I successfully got it working with my VisionFive 2 board. I'm just wondering whether you can provide instructions on how to build a new image. I'd like to build new images when updated upstream SDKs are released, such as https://github.com/starfive-tech/VisionFive2/releases/tag/VF2_v2.8.0

caizixian avatar Feb 01 '23 02:02 caizixian

  1. get buildroot v2.8.0 sdcard.img, ubuntu cloud image root.tgz, img-gpu-powervr-bin-1.17.6210866.tar.gz
  2. sudo decompress ubuntu to folder ub-22, don't make change on it for re-use
  3. mountCombinedImage, sudo backup firmware module fstab, unmountCombinedImage
  4. fdisk -> get disk layout
  5. dd resize sdcard.img
  6. change rootfs par size of disk layout file, then load
  7. mountCombinedImage, format rootfs par
  8. sudo cp -a ub-22/* rootfs
  9. copy_kernel /full-path/rootfs-tools/backup rootfs
  10. decompress gpu driver and copy to rootfs if you can handle it
  11. copy vendor vf2 config.sh, change as you need
  12. simple job don't need mountDev, just sudo chroot rootfs and run config.sh. if you need change systemd daemon service or install software, you need do so
  13. unmountCombinedImage

initdc avatar Feb 01 '23 11:02 initdc

Thanks, I think understand the rough workflow now. I will give it a try.

caizixian avatar Feb 02 '23 03:02 caizixian