From 1c66e4927725f870569108403c9a9210ea134e83 Mon Sep 17 00:00:00 2001 From: Hal Emmerich Date: Fri, 19 Jun 2020 16:35:45 -0500 Subject: [PATCH] remove dependency on blank_kernel.img --- scripts/InstallScripts/FlashKernelPart.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/InstallScripts/FlashKernelPart.sh b/scripts/InstallScripts/FlashKernelPart.sh index aabfd0b..277f766 100755 --- a/scripts/InstallScripts/FlashKernelPart.sh +++ b/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 ||