hwpack: imx51-babbage: use new (v2013.01-rc) CMD_FS_GENERIC (load) over (ext2load/fatload)

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent 48650f6c57
commit bd39f3bea7

@ -23,6 +23,7 @@ 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
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx #http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx
kernel_subarch="imx" kernel_subarch="imx"

@ -358,6 +358,20 @@ function boot_uenv_txt_template {
__EOF__ __EOF__
fi fi
if [ "${uboot_CMD_FS_GENERIC}" ] ; then
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
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__ cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
console=SERIAL_CONSOLE console=SERIAL_CONSOLE
@ -370,7 +384,21 @@ function boot_uenv_txt_template {
xyz_load_dtb=\${boot_fstype}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 [ "${uboot_CMD_FS_GENERIC}" ] ; then
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
console=DICONSOLE
mmcroot=/dev/ram0 rw
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/netinstall.cmd <<-__EOF__ cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
console=DICONSOLE console=DICONSOLE
@ -382,6 +410,7 @@ function boot_uenv_txt_template {
xyz_load_dtb=\${boot_fstype}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__

Loading…
Cancel
Save