updated orangepi_zero_2w_defconfig

This commit is contained in:
wt
2025-04-04 15:06:54 +07:00
parent 641ab89367
commit f1a0d8cbf4
7 changed files with 30 additions and 8 deletions
+5 -1
View File
@@ -20,6 +20,7 @@ sdroot() {
printf "$GREEN** Copy extlinux.conf\n$RESET"
cp -v $root/extlinux/extlinux.conf $sdroot/boot/extlinux
check $? "Copy extlinux.conf"
[ "$ARCH" = "arm64" ] && sed -i "s/zImage/Image/g" $sdroot/boot/extlinux/extlinux.conf
kernel_with_rootfs
uboot
printf "$GREEN** Creating rootfs.ext4\n$RESET"
@@ -74,7 +75,9 @@ sdroot_usable() {
initramfs
cp -v $build/initramfs.img $sdroot/boot
cp -v $build/kernel/linux-6.13.3/arch/$ARCH/boot/zImage $sdroot/boot
KIMAGE=zImage
[ "$ARCH" = "arm64" ] && KIMAGE=Image
cp -v $build/kernel/linux-6.13.3/arch/$ARCH/boot/$KIMAGE $sdroot/boot
uboot
printf "$GREEN** Creating rootfs.ext4\n$RESET"
cd $out
@@ -96,6 +99,7 @@ sdroot_usable() {
check $? "Copy genimage.cfg"
sed -i "s/FILEUUID/$uuid/g" genimage.cfg
sed -i "s/ROOTUUID/$uuid/g" $sdroot/boot/extlinux/extlinux.conf
[ "$ARCH" = "arm64" ] && sed -i "s/zImage/Image/g" $sdroot/boot/extlinux/extlinux.conf
sed -i "s/sdcard.img/sdcard_usable.img/g" genimage.cfg
mkdir -v rootmnt
sudo mount -v rootfs.ext4 rootmnt