commit 56a3d4288dad060802bbe41549d58bfc6744e7f8 parent 63163a07724ed5b816534f2e6dc0b01f59f2080d Author: parazyd <parazyd@dyne.org> Date: Mon, 20 May 2019 20:31:21 +0200 Flash u-boot in image_pack_dist where applicable. Diffstat:
M | zlibs/imaging | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/zlibs/imaging b/zlibs/imaging @@ -104,7 +104,7 @@ image_partition_raw_dos() { parted $workdir/${image_name}.img --script -- mkpart primary ${parted_boot} parted $workdir/${image_name}.img --script -- mkpart primary ${parted_root} [ -n "$bootable_part" ] && \ - parted "$workdir/${image_name}.img" --script -- set "$bootable_part" boot on + parted "$workdir/${image_name}.img" --script -- set "$bootable_part" boot on ## get loopdevice (see ./helpers) findloopdev @@ -161,6 +161,14 @@ image_pack_dist() { sleep 1 } + case "$device_name" in + pinephone-dontbeevil) + notice "dd-ing u-boot bootloader to image" + sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" \ + of="$loopdevice" bs=1024 seek=8 || zerr + ;; + esac + sudo partx -dv $loopdevice || { die "partx failed to remove $loopdevice" zerr