Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 78 lines (55 sloc) 1.32 KB
#!/bin/sh
## hyphop ##
. ./,config
#export LOGO_BMP=$bdir/logo.bmp
ok=1
#dtc="dtc.bin -W no-unit_address_vs_reg"
arm-openwrt-linux-gcc -v 2>&1 | grep -q musl- || {
echo "[e] arm gcc not ready! try to fix it
./uboot_clear_all
./uboot_prepare
" 1>&2
exit 1
}
[ -f $src/Makefile ] || {
echo "[e] uboot source not ready
./uboot_clear_all
./uboot_prepare
" 1>&2
exit 1
}
[ "$ok" ] && {
echo "[i] build uboot + args $uboot_make_args"
#CONFIG_LZ4=1
time make -C $src $uboot_make_args $@ > $logs/uboot.log || {
echo "[i] try to fix errors first";
exit 1
}
echo "[i] info"
}
uboot=`readlink u-boot-sunxi-with-spl.bin`
uboot_size=`stat --printf %s $uboot`
echo "[i] uboot size: $uboot_size bytes => $uboot"
#ls -l1 $uboot
for addr in `grep -E "linux_logo$" $src/u-boot.sym`; do
mizy_logo_addr=$addr
break
done
#mizy_logo_addr_f=.mizy_logo_addr
f=`readlink $mizy_logo_addr_f`
d=`dirname $f`
[ -d $d ] || mkdir -p $d
echo -n $mizy_logo_addr > $mizy_logo_addr_f
echo "[i] miZy logo addr: $mizy_logo_addr => $mizy_logo_addr_f => $f"
#file $uboot
./tools/uboot_fel_imp $uboot
p=$PWD
[ -d ../miZy/ ] && cd ../miZy/ && ./uboot_fix_run
cd $p
uboot_there=`readlink $uboot_mizy`
cmd="cp $uboot $uboot_there"
echo $cmd
$cmd && echo "[i] ok
get compiled uboot there:
$uboot_mizy => $uboot_there
"
You can’t perform that action at this time.