commit c9888cfa9743cb157c5542b5bdd8af56fc5ad3bc
parent cf48703321eb4c661871af96932a186ae4f04fd5
Author: parazyd <parazyd@dyne.org>
Date: Mon, 24 Feb 2020 12:19:30 +0100
Automatically dd u-boot on pinephone and pinetab.
Diffstat:
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git 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
@@ -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
@@ -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
}