mirror of https://github.com/parazyd/arm-sdk.git
Automatically dd u-boot on pinephone and pinetab.
This commit is contained in:
parent
cf48703321
commit
c9888cfa97
|
|
@ -58,7 +58,7 @@ prebuild() {
|
||||||
|
|
||||||
postbuild() {
|
postbuild() {
|
||||||
fn postbuild
|
fn postbuild
|
||||||
req=(device_name compiler)
|
req=(device_name compiler loopdevice)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
notice "executing $device_name postbuild"
|
notice "executing $device_name postbuild"
|
||||||
|
|
@ -94,6 +94,9 @@ EOF
|
||||||
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
|
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \
|
||||||
|
bs=1024 conv=notrunc,nocreat
|
||||||
|
|
||||||
postbuild-clean
|
postbuild-clean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ prebuild() {
|
||||||
|
|
||||||
postbuild() {
|
postbuild() {
|
||||||
fn postbuild
|
fn postbuild
|
||||||
req=(device_name compiler)
|
req=(device_name compilerl loopdevice)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
notice "executing $device_name postbuild"
|
notice "executing $device_name postbuild"
|
||||||
|
|
@ -92,6 +92,9 @@ EOF
|
||||||
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
|
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \
|
||||||
|
bs=1024 conv=notrunc,nocreat
|
||||||
|
|
||||||
postbuild-clean
|
postbuild-clean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ prebuild() {
|
||||||
|
|
||||||
postbuild() {
|
postbuild() {
|
||||||
fn postbuild
|
fn postbuild
|
||||||
req=(device_name compiler)
|
req=(device_name compiler loopdevice)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
notice "executing $device_name postbuild"
|
notice "executing $device_name postbuild"
|
||||||
|
|
@ -92,6 +92,9 @@ EOF
|
||||||
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
|
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \
|
||||||
|
bs=1024 conv=notrunc,nocreat
|
||||||
|
|
||||||
postbuild-clean
|
postbuild-clean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue