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_script="uEnv.txt"
boot_fstype="ext2"
uboot_CMD_FS_GENERIC=1
#http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx
kernel_subarch="imx"

@ -358,30 +358,59 @@ function boot_uenv_txt_template {
__EOF__
fi
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
console=SERIAL_CONSOLE
if [ "${uboot_CMD_FS_GENERIC}" ] ; then
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
console=SERIAL_CONSOLE
mmcroot=FINAL_PART ro
mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
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}
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__
__EOF__
cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__
console=DICONSOLE
else
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__
console=SERIAL_CONSOLE
mmcroot=/dev/ram0 rw
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}
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__
__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__
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
cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__

Loading…
Cancel
Save