From 9cf7ec5e8273c3aa46c8c0685113a6e1f7d16b75 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 13 Mar 2012 15:19:47 -0500 Subject: [PATCH] unify common bootscripts Signed-off-by: Robert Nelson --- mk_mmc.sh | 140 ++++++++++++++++++------------------------------------ 1 file changed, 45 insertions(+), 95 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index b2ec2d6..a32bd6d 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -599,113 +599,63 @@ function boot_uenv_txt_template { __EOF__ fi -case "$SYSTEM" in - beagle_bx) - -cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ + deviceargs=setenv device_args mpurate=\${mpurate} buddy=\${buddy} buddy2=\${buddy2} musb_hdrc.fifo_mode=5 + loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -uenv_netinstall_cmd + __EOF__ -cat >> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ + optargs=VIDEO_CONSOLE + deviceargs=setenv device_args mpurate=\${mpurate} buddy=\${buddy} buddy2=\${buddy2} musb_hdrc.fifo_mode=5 + loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -uenv_normalboot_cmd - ;; - panda_es) + __EOF__ + ;; + beagle_xm) + cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ + deviceargs=setenv device_args mpurate=\${mpurate} buddy=\${buddy} buddy2=\${buddy2} + loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ + optargs=VIDEO_CONSOLE + deviceargs=setenv device_args mpurate=\${mpurate} buddy=\${buddy} buddy2=\${buddy2} + loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -cat >> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ + deviceargs=setenv device_args + loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -uenv_normalboot_cmd - ;; - bone) + __EOF__ -cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ + optargs=VIDEO_CONSOLE + deviceargs=setenv device_args + loaduimage=run xyz_mmcboot; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -mmc_load_uimage=run xyz_mmcboot; run bootargs_defaults; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -uenv_netinstall_cmd + __EOF__ + ;; + bone) + cat >> ${TEMPDIR}/bootscripts/netinstall.cmd <<-__EOF__ + deviceargs=setenv device_args ip=\${ip_method} + mmc_load_uimage=run xyz_mmcboot; run bootargs_defaults; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} -cat >> ${TEMPDIR}/bootscripts/normal.cmd <> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ + deviceargs=setenv device_args ip=\${ip_method} + mmc_load_uimage=run xyz_mmcboot; run bootargs_defaults; run deviceargs; run mmcargs; bootm \${address_uimage} \${address_uinitrd} + __EOF__ + ;; + esac } function tweak_boot_scripts {