编译启动脚本6x_bootscript
http://git.boundarydevices.com/bootscript.php
a_script=0x10800000
a_zImage=0x10800000
a_fdt=0x13000000
a_ramdisk=0x13800000
a_initrd=0x13a00000
setenv initrd_high 0xffffffff
dtbname=imx6q-sabresd-roadj.dtb;
if load ${dtype} ${disk}:1 ${a_script} uEnv.txt ; then
env import -t ${a_script} ${filesize}
fi
if itest.s x == x${bootdir} ; then
bootdir=/
fi
if itest.s x${bootpart} == x ; then
bootpart=1
fi
if load ${dtype} ${disk}:${bootpart} ${a_fdt} ${bootdir}${dtbname} ; then
fdt addr ${a_fdt}
setenv fdt_high 0xffffffff
else
echo "!!!! Error loading ${bootdir}${dtbname}";
exit;
fi
run cmd_lvds
cmd_xxx_present=1;
setenv bootargs enable_wait_mode=off
setenv bootargs "$bootargs console=ttymxc0,115200 vmalloc=400M consoleblank=0 vt.global_cursor_default=0 cma=384M rootwait"
#setenv bootargs "${bootargs} console=${console},115200 vmalloc=400M consoleblank=0 rootfstype=ext4 rootwait fixrtc"
bpart=2
setenv bootargs "${bootargs} root=/dev/mmcblk${disk}p${bpart}"
if itest.s "x" != "x${gpumem}" ; then
setenv bootargs ${bootargs} galcore.contiguousSize=${gpumem}
fi
if itest.s "x" != "x${cma}" ; then
setenv bootargs ${bootargs} cma=${cma}
fi
if itest.s "x" != "x${show_fdt}" ; then
fdt print /
fi
if itest.s "x" != "x${show_env}" ; then
printenv
fi
if load ${dtype} ${disk}:${bootpart} ${a_zImage} /zImage ; then
bootz ${a_zImage} - ${a_fdt}
fi
echo "Error loading kernel image"