|
|
@ -360,60 +360,29 @@ function boot_uenv_txt_template {
|
|
|
|
__EOF__
|
|
|
|
__EOF__
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${uboot_CMD_FS_GENERIC}" ] ; then
|
|
|
|
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
|
|
|
|
console=SERIAL_CONSOLE
|
|
|
|
console=SERIAL_CONSOLE
|
|
|
|
|
|
|
|
|
|
|
|
mmcroot=FINAL_PART ro
|
|
|
|
mmcroot=FINAL_PART ro
|
|
|
|
mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
|
|
|
|
mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
|
|
|
|
|
|
|
|
|
|
|
|
xyz_load_image=load mmc 0:1 ${kernel_addr} \${kernel_file}
|
|
|
|
xyz_load_image=${uboot_CMD_LOAD} mmc 0:1 ${kernel_addr} \${kernel_file}
|
|
|
|
xyz_load_initrd=load mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
|
|
|
|
xyz_load_initrd=${uboot_CMD_LOAD} mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
|
|
|
|
xyz_load_dtb=load mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
|
|
|
|
xyz_load_dtb=${uboot_CMD_LOAD} mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
|
|
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
|
|
|
|
|
|
|
|
console=SERIAL_CONSOLE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mmcroot=FINAL_PART ro
|
|
|
|
|
|
|
|
mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boot_fstype=${boot_fstype}
|
|
|
|
|
|
|
|
xyz_load_image=\${boot_fstype}load mmc 0:1 ${kernel_addr} \${kernel_file}
|
|
|
|
|
|
|
|
xyz_load_initrd=\${boot_fstype}load mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
|
|
|
|
|
|
|
|
xyz_load_dtb=\${boot_fstype}load mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "${uboot_CMD_FS_GENERIC}" ] ; then
|
|
|
|
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
|
|
|
|
console=DICONSOLE
|
|
|
|
console=DICONSOLE
|
|
|
|
|
|
|
|
|
|
|
|
mmcroot=/dev/ram0 rw
|
|
|
|
mmcroot=/dev/ram0 rw
|
|
|
|
|
|
|
|
|
|
|
|
xyz_load_image=load mmc 0:1 ${kernel_addr} \${kernel_file}
|
|
|
|
xyz_load_image=${uboot_CMD_LOAD} mmc 0:1 ${kernel_addr} \${kernel_file}
|
|
|
|
xyz_load_initrd=load mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
|
|
|
|
xyz_load_initrd=${uboot_CMD_LOAD} mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
|
|
|
|
xyz_load_dtb=load mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
|
|
|
|
xyz_load_dtb=${uboot_CMD_LOAD} mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
|
|
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
|
|
|
|
|
|
|
|
console=DICONSOLE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mmcroot=/dev/ram0 rw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boot_fstype=${boot_fstype}
|
|
|
|
|
|
|
|
xyz_load_image=\${boot_fstype}load mmc 0:1 ${kernel_addr} \${kernel_file}
|
|
|
|
|
|
|
|
xyz_load_initrd=\${boot_fstype}load mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
|
|
|
|
|
|
|
|
xyz_load_dtb=\${boot_fstype}load mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__EOF__
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! "${need_dtbs}" ] ; then
|
|
|
|
if [ ! "${need_dtbs}" ] ; then
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
|
|
|
|
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
|
|
|
|
xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
|
|
|
|
xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
|
|
|
@ -1228,8 +1197,7 @@ function populate_boot {
|
|
|
|
if [ "${boot_scr_wrapper}" ] ; then
|
|
|
|
if [ "${boot_scr_wrapper}" ] ; then
|
|
|
|
cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__
|
|
|
|
cat > ${TEMPDIR}/bootscripts/loader.cmd <<-__EOF__
|
|
|
|
echo "boot.scr -> uEnv.txt wrapper..."
|
|
|
|
echo "boot.scr -> uEnv.txt wrapper..."
|
|
|
|
setenv boot_fstype ${boot_fstype}
|
|
|
|
${uboot_CMD_LOAD} mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt
|
|
|
|
\${boot_fstype}load mmc \${mmcdev}:\${mmcpart} \${loadaddr} uEnv.txt
|
|
|
|
|
|
|
|
env import -t \${loadaddr} \${filesize}
|
|
|
|
env import -t \${loadaddr} \${filesize}
|
|
|
|
run ${uboot_SCRIPT_ENTRY}
|
|
|
|
run ${uboot_SCRIPT_ENTRY}
|
|
|
|
__EOF__
|
|
|
|
__EOF__
|
|
|
@ -1437,6 +1405,7 @@ function check_uboot_type {
|
|
|
|
case "${UBOOT_TYPE}" in
|
|
|
|
case "${UBOOT_TYPE}" in
|
|
|
|
beagle_bx)
|
|
|
|
beagle_bx)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="beagle_bx"
|
|
|
|
SYSTEM="beagle_bx"
|
|
|
|
board="BEAGLEBOARD_BX"
|
|
|
|
board="BEAGLEBOARD_BX"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1449,6 +1418,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
beagle_cx)
|
|
|
|
beagle_cx)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="beagle_cx"
|
|
|
|
SYSTEM="beagle_cx"
|
|
|
|
board="BEAGLEBOARD_CX"
|
|
|
|
board="BEAGLEBOARD_CX"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1467,6 +1437,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
beagle_xm_kms)
|
|
|
|
beagle_xm_kms)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="beagle_xm"
|
|
|
|
SYSTEM="beagle_xm"
|
|
|
|
board="BEAGLEBOARD_XM"
|
|
|
|
board="BEAGLEBOARD_XM"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1480,6 +1451,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
bone)
|
|
|
|
bone)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="bone"
|
|
|
|
SYSTEM="bone"
|
|
|
|
board="BEAGLEBONE_A"
|
|
|
|
board="BEAGLEBONE_A"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1516,6 +1488,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
panda_dtb)
|
|
|
|
panda_dtb)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="panda_dtb"
|
|
|
|
SYSTEM="panda_dtb"
|
|
|
|
board="PANDABOARD"
|
|
|
|
board="PANDABOARD"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1529,6 +1502,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
panda_es)
|
|
|
|
panda_es)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="panda_es"
|
|
|
|
SYSTEM="panda_es"
|
|
|
|
board="PANDABOARD_ES"
|
|
|
|
board="PANDABOARD_ES"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1539,6 +1513,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
panda_es_dtb)
|
|
|
|
panda_es_dtb)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="panda_es_dtb"
|
|
|
|
SYSTEM="panda_es_dtb"
|
|
|
|
board="PANDABOARD_ES"
|
|
|
|
board="PANDABOARD_ES"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1551,6 +1526,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
panda_es_kms)
|
|
|
|
panda_es_kms)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="panda_es"
|
|
|
|
SYSTEM="panda_es"
|
|
|
|
board="PANDABOARD_ES"
|
|
|
|
board="PANDABOARD_ES"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
@ -1565,6 +1541,7 @@ function check_uboot_type {
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
crane)
|
|
|
|
crane)
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
uboot_SCRIPT_ENTRY="loaduimage"
|
|
|
|
|
|
|
|
uboot_CMD_LOAD="fatload"
|
|
|
|
SYSTEM="crane"
|
|
|
|
SYSTEM="crane"
|
|
|
|
board="CRANEBOARD"
|
|
|
|
board="CRANEBOARD"
|
|
|
|
is_omap
|
|
|
|
is_omap
|
|
|
|