bootscripts: specify uboot load cmd directly

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent 7888b8b883
commit 5e6da68c99

@ -21,6 +21,7 @@ boot_image="bootz"
boot_script="uEnv.txt" boot_script="uEnv.txt"
boot_fstype="fat" boot_fstype="fat"
uboot_SCRIPT_ENTRY="loaduimage" uboot_SCRIPT_ENTRY="loaduimage"
uboot_CMD_LOAD="fatload"
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap-psp #http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap-psp
kernel_subarch="omap-psp" kernel_subarch="omap-psp"

@ -23,8 +23,8 @@ boot_name="u-boot.imx"
boot_image="bootz" boot_image="bootz"
boot_script="uEnv.txt" boot_script="uEnv.txt"
boot_fstype="ext2" boot_fstype="ext2"
uboot_CMD_FS_GENERIC=1
uboot_SCRIPT_ENTRY="loaduimage" uboot_SCRIPT_ENTRY="loaduimage"
uboot_CMD_LOAD="load"
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx #http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx
kernel_subarch="imx" kernel_subarch="imx"

@ -23,8 +23,8 @@ boot_name="u-boot.imx"
boot_image="bootz" boot_image="bootz"
boot_script="uEnv.txt" boot_script="uEnv.txt"
boot_fstype="ext2" boot_fstype="ext2"
uboot_CMD_FS_GENERIC=1
uboot_SCRIPT_ENTRY="loaduimage" uboot_SCRIPT_ENTRY="loaduimage"
uboot_CMD_LOAD="load"
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx #http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx
kernel_subarch="imx" kernel_subarch="imx"

@ -26,6 +26,7 @@ boot_scr_wrapper=1
boot_script="uEnv.txt" boot_script="uEnv.txt"
boot_fstype="ext2" boot_fstype="ext2"
uboot_SCRIPT_ENTRY="loaduimage" uboot_SCRIPT_ENTRY="loaduimage"
uboot_CMD_LOAD="ext2load"
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx #http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx
kernel_subarch="imx" kernel_subarch="imx"

@ -21,6 +21,7 @@ boot_image="bootz"
boot_script="uEnv.txt" boot_script="uEnv.txt"
boot_fstype="fat" boot_fstype="fat"
uboot_SCRIPT_ENTRY="loaduimage" uboot_SCRIPT_ENTRY="loaduimage"
uboot_CMD_LOAD="fatload"
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap #http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap
kernel_subarch="omap" kernel_subarch="omap"

@ -21,6 +21,7 @@ boot_image="bootz"
boot_script="uEnv.txt" boot_script="uEnv.txt"
boot_fstype="fat" boot_fstype="fat"
uboot_SCRIPT_ENTRY="loaduimage" uboot_SCRIPT_ENTRY="loaduimage"
uboot_CMD_LOAD="fatload"
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap #http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap
kernel_subarch="omap" kernel_subarch="omap"

@ -360,59 +360,28 @@ 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
mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
xyz_load_image=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_dtb=load mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
__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__
console=DICONSOLE
mmcroot=/dev/ram0 rw mmcroot=FINAL_PART ro
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/netinstall.cmd <<-__EOF__
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ console=DICONSOLE
console=DICONSOLE
mmcroot=/dev/ram0 rw mmcroot=/dev/ram0 rw
boot_fstype=${boot_fstype} xyz_load_image=${uboot_CMD_LOAD} mmc 0:1 ${kernel_addr} \${kernel_file}
xyz_load_image=\${boot_fstype}load mmc 0:1 ${kernel_addr} \${kernel_file} xyz_load_initrd=${uboot_CMD_LOAD} mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
xyz_load_initrd=\${boot_fstype}load mmc 0:1 ${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize} xyz_load_dtb=${uboot_CMD_LOAD} mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
xyz_load_dtb=\${boot_fstype}load mmc 0:1 ${dtb_addr} /dtbs/\${dtb_file}
__EOF__ __EOF__
fi
if [ ! "${need_dtbs}" ] ; then if [ ! "${need_dtbs}" ] ; then
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
@ -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

Loading…
Cancel
Save