move Jetson Nano EFI\Grub (#4284)

* move Jetson Nano EFI\Grub

* fix dtb for efi

* remove list module initrd curren\edge for Jetson Nano

* rename to  grub-sbc-media
This commit is contained in:
Oleg
2022-10-25 12:28:23 +03:00
committed by GitHub
parent ab7cb8df10
commit d41125a5fd
7 changed files with 116 additions and 120 deletions

View File

@@ -49,7 +49,7 @@ prepare_host() {
elif [[ $(dpkg --print-architecture) == arm64 ]]; then
hostdeps+="gcc-arm-none-eabi libc6 libc6-amd64-cross qemu"
hostdeps+=" gcc-arm-none-eabi libc6 libc6-amd64-cross qemu"
else

View File

@@ -80,13 +80,9 @@ PRE_PREPARE_PARTITIONS
local next=1
# Check if we need UEFI partition
if [[ $UEFISIZE -gt 0 ]]; then
if [[ "${IMAGE_PARTITION_TABLE}" == "gpt" ]]; then
local uefipart=15
# Check if we need BIOS partition
[[ $BIOSSIZE -gt 0 ]] && local biospart=14
else
local uefipart=$((next++))
fi
# Check if we need BIOS partition
[[ $BIOSSIZE -gt 0 ]] && local biospart=$((next++))
local uefipart=$((next++))
fi
# Check if we need boot partition
if [[ -n $BOOTFS_TYPE || $ROOTFS_TYPE != ext4 || $CRYPTROOT_ENABLE == yes ]]; then
@@ -290,7 +286,7 @@ PREPARE_IMAGE_SIZE
echo "rootdev=$rootfs" >> $SDCARD/boot/armbianEnv.txt
fi
echo "rootfstype=$ROOTFS_TYPE" >> $SDCARD/boot/armbianEnv.txt
elif [[ $rootpart != 1 ]]; then
elif [[ $rootpart != 1 ]] && [[ $SRC_EXTLINUX != yes ]]; then
local bootscript_dst=${BOOTSCRIPT##*:}
sed -i 's/mmcblk0p1/mmcblk0p2/' $SDCARD/boot/$bootscript_dst
sed -i -e "s/rootfstype=ext4/rootfstype=$ROOTFS_TYPE/" \