to install directly to a connected sdcard
sudo ./build.sh -d /dev/sdX
sudo ./build.sh -d /dev/mmcblkX
to create an image
truncate -s 8G image.raw
sudo losetup -Pf image.raw
sudo ./build.sh -d /dev/loopX
sudo losetup -d /dev/loopX
NOTE: default credentials are root / altlinux
shellcheck -x build.sh
cd prereq/boot
dtc -I dts -O dtb -o jh7110-starfive-visionfive-2-v1.3b-8G.dtb jh7110-starfive-visionfive-2-v1.3b-8G.dts
## To decompile existing
# dtc -I dtb -O dts some.dtb -o some.dts
# dtc -I dtb -O dts /sys/firmware/fdt -o some.dts
#
## Please note that /sys/firmware/fdt contains serial numbers, MACs and other stuff specific to your board
- https://www.altlinux.org/StarFive_VisionFive_v2 --- contains guide for an older image
- starfive-tech/VisionFive2#20 (comment) --- a guide on fixing 8G board having only 4G MemTotal on Linux