remove dependency on blank_kernel.img
This commit is contained in:
parent
6b95ef7a42
commit
1c66e49277
@ -23,9 +23,6 @@
|
|||||||
# eMMC device name
|
# eMMC device name
|
||||||
emmc_devname=mmcblk2
|
emmc_devname=mmcblk2
|
||||||
#
|
#
|
||||||
# Blank kernel image
|
|
||||||
blnk=./blank_kernel
|
|
||||||
#
|
|
||||||
# Actual kernel image (.kpart)
|
# Actual kernel image (.kpart)
|
||||||
kimg=./vmlinux.kpart
|
kimg=./vmlinux.kpart
|
||||||
#
|
#
|
||||||
@ -134,7 +131,10 @@ read ans
|
|||||||
die "Aborted by user. Kernel untouched." 1
|
die "Aborted by user. Kernel untouched." 1
|
||||||
|
|
||||||
# put the kernel in the kernel partition
|
# 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
|
die "FAILED to flash blank kernel on $kpart!" 255
|
||||||
|
|
||||||
dd if="$kimg" of="$kpart" conv=notrunc ||
|
dd if="$kimg" of="$kpart" conv=notrunc ||
|
||||||
|
Loading…
Reference in New Issue
Block a user