uboot build and flash shortcuts
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
19f833d541
commit
29e8311307
|
@ -0,0 +1,84 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo Starting uboot \'$1\'
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
clean)
|
||||||
|
echo fucking clean
|
||||||
|
echo fucking clean
|
||||||
|
echo fucking clean
|
||||||
|
make distclean
|
||||||
|
rm -rf [A-Za-z]*
|
||||||
|
git reset --hard
|
||||||
|
echo fucking clean
|
||||||
|
echo fucking clean
|
||||||
|
echo fucking clean
|
||||||
|
;;
|
||||||
|
build)
|
||||||
|
make pinebook_defconfig
|
||||||
|
cp ../jcarr-pinebook/u-boot/bl31.bin .
|
||||||
|
make all -j6
|
||||||
|
;;
|
||||||
|
flash)
|
||||||
|
if [ -f u-boot-sunxi-with-spl.bin ]; then
|
||||||
|
scp u-boot-sunxi-with-spl.bin witserial:/boot/
|
||||||
|
scp examples/standalone/hello_world witserial:/boot/
|
||||||
|
scp examples/standalone/hello_world.bin witserial:/boot/
|
||||||
|
scp examples/standalone/hello_world.srec witserial:/boot/
|
||||||
|
|
||||||
|
ssh witserial /root/pinebook/reflash-uboot.sh
|
||||||
|
ssh witserial reboot
|
||||||
|
else
|
||||||
|
echo uboot did not successfully compile
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
stop|status)
|
||||||
|
echo stop or status $1
|
||||||
|
;;
|
||||||
|
start)
|
||||||
|
echo try start
|
||||||
|
if [ -f /lib/lsb/init-functions ]; then
|
||||||
|
echo init-functions exists
|
||||||
|
else
|
||||||
|
log_action_begin_msg () {
|
||||||
|
echo -n "$@... "
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo something else $1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit
|
||||||
|
|
||||||
|
if [ -f /bin/setupcon ]; then
|
||||||
|
echo setupcon exists
|
||||||
|
fi
|
||||||
|
exit
|
||||||
|
|
||||||
|
jcarr-fucking-clean:
|
||||||
|
make distclean
|
||||||
|
rm -rf [A-Za-z]*
|
||||||
|
git reset --hard
|
||||||
|
|
||||||
|
jcarr-push:
|
||||||
|
git add --all
|
||||||
|
-git commit -a
|
||||||
|
@echo
|
||||||
|
@echo do not push this test branch
|
||||||
|
@echo
|
||||||
|
|
||||||
|
jcarr-build-prep:
|
||||||
|
make pinebook_defconfig
|
||||||
|
cp ../jcarr-pinebook/u-boot/bl31.bin .
|
||||||
|
|
||||||
|
jcarr-build:
|
||||||
|
make all -j6
|
||||||
|
ping -c 3 witserial
|
||||||
|
|
||||||
|
jcarr-build-debug:
|
||||||
|
make all V=1
|
||||||
|
|
||||||
|
jcarr-reflash-uboot:
|
Loading…
Reference in New Issue