Browse Source

remove dependency on blank_kernel.img

Hal Emmerich 3 years ago
parent
commit
1c66e49277
1 changed files with 4 additions and 4 deletions
  1. 4 4
      scripts/InstallScripts/FlashKernelPart.sh

+ 4 - 4
scripts/InstallScripts/FlashKernelPart.sh

@@ -23,9 +23,6 @@
 # eMMC device name
 emmc_devname=mmcblk2
 #
-# Blank kernel image
-blnk=./blank_kernel
-#
 # Actual kernel image (.kpart)
 kimg=./vmlinux.kpart
 #
@@ -134,7 +131,10 @@ read ans
        die "Aborted by user. Kernel untouched." 1
 
 # put the kernel in the kernel partition
-dd if="$blnk" of="$kpart" conv=notrunc ||
+#blank the kernel partition first, with 32MiB of zeros
+kernel_size=65536
+block_size=512
+dd if=/dev/zero of="$kpart" conv=notrunc bs=512 count=$kernel_size ||
     die "FAILED to flash blank kernel on $kpart!" 255
 
 dd if="$kimg" of="$kpart" conv=notrunc ||