From c9888cfa9743cb157c5542b5bdd8af56fc5ad3bc Mon Sep 17 00:00:00 2001 From: parazyd Date: Mon, 24 Feb 2020 12:19:30 +0100 Subject: [PATCH] Automatically dd u-boot on pinephone and pinetab. --- boards/pinephone-dontbeevil.sh | 5 ++++- boards/pinephone.sh | 5 ++++- boards/pinetab.sh | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/boards/pinephone-dontbeevil.sh b/boards/pinephone-dontbeevil.sh index 57daba6..3e19ff8 100644 --- a/boards/pinephone-dontbeevil.sh +++ b/boards/pinephone-dontbeevil.sh @@ -58,7 +58,7 @@ prebuild() { postbuild() { fn postbuild - req=(device_name compiler) + req=(device_name compiler loopdevice) ckreq || return 1 notice "executing $device_name postbuild" @@ -94,6 +94,9 @@ EOF sudo mkimage -C none -A arm -T script -d boot.txt boot.scr popd + sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \ + bs=1024 conv=notrunc,nocreat + postbuild-clean } diff --git a/boards/pinephone.sh b/boards/pinephone.sh index d17c55a..dc86128 100644 --- a/boards/pinephone.sh +++ b/boards/pinephone.sh @@ -56,7 +56,7 @@ prebuild() { postbuild() { fn postbuild - req=(device_name compiler) + req=(device_name compilerl loopdevice) ckreq || return 1 notice "executing $device_name postbuild" @@ -92,6 +92,9 @@ EOF sudo mkimage -C none -A arm -T script -d boot.txt boot.scr popd + sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \ + bs=1024 conv=notrunc,nocreat + postbuild-clean } diff --git a/boards/pinetab.sh b/boards/pinetab.sh index 83cd06f..c64d054 100644 --- a/boards/pinetab.sh +++ b/boards/pinetab.sh @@ -56,7 +56,7 @@ prebuild() { postbuild() { fn postbuild - req=(device_name compiler) + req=(device_name compiler loopdevice) ckreq || return 1 notice "executing $device_name postbuild" @@ -92,6 +92,9 @@ EOF sudo mkimage -C none -A arm -T script -d boot.txt boot.scr popd + sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \ + bs=1024 conv=notrunc,nocreat + postbuild-clean }