From ce18c67a5cb764bad42a53b76cdd5e1c1d72e1de Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 22 Aug 2012 10:48:25 -0500 Subject: [PATCH] mx6qsabrelite: now supports boards that had the iMX6DQ_SPI_to_uSDHC3.bin flashed to nand Signed-off-by: Robert Nelson --- README | 2 +- mk_mmc.sh | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/README b/README index 80f07de..a9d8ef1 100644 --- a/README +++ b/README @@ -21,7 +21,7 @@ Required Options: mx53loco - mx51evk_dtb - mx53loco_dtb - - mx6q_sabrelite - + mx6qsabrelite - Optional: --distro diff --git a/mk_mmc.sh b/mk_mmc.sh index d2fb897..3199f7c 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -653,7 +653,7 @@ function boot_uenv_txt_template { __EOF__ ;; - mx6q_sabrelite) + mx6qsabrelite) cat >> ${TEMPDIR}/bootscripts/normal.cmd <<-__EOF__ optargs=VIDEO_CONSOLE expansion_args=setenv expansion @@ -1106,9 +1106,9 @@ function dd_to_drive { echo "Using parted to create BOOT Partition" echo "-----------------------------" if [ "x${boot_fstype}" == "xfat" ] ; then - parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 10 100 + parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 ${boot_startmb} 100 else - parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext2 10 100 + parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext2 ${boot_startmb} 100 fi } @@ -1116,9 +1116,9 @@ function no_boot_on_drive { echo "Using parted to create BOOT Partition" echo "-----------------------------" if [ "x${boot_fstype}" == "xfat" ] ; then - parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 1 100 + parted --script ${PARTED_ALIGN} ${MMC} mkpart primary fat16 ${boot_startmb} 100 else - parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext2 1 100 + parted --script ${PARTED_ALIGN} ${MMC} mkpart primary ext2 ${boot_startmb} 100 fi } @@ -1385,6 +1385,7 @@ function is_imx { boot_name="u-boot.imx" dd_seek="1" dd_bs="1024" + boot_startmb="10" SUBARCH="imx" @@ -1586,17 +1587,17 @@ function check_uboot_type { SERIAL_MODE=1 need_dtbs=1 ;; - mx6q_sabrelite) - SYSTEM="mx6q_sabrelite" - BOOTLOADER="MX6Q_SABRELITE_D" + mx6qsabrelite) + SYSTEM="mx6qsabrelite" + BOOTLOADER="MX6QSABRELITE_D" is_imx SERIAL="ttymxc1" SERIAL_CONSOLE="${SERIAL},115200" boot="bootm" USE_UIMAGE=1 - unset bootloader_location - unset spl_name - unset boot_name + dd_seek="2" + dd_bs="512" + boot_startmb="2" kernel_addr="0x10000000" initrd_addr="0x12000000" load_addr="0x10008000" @@ -1627,7 +1628,7 @@ function check_uboot_type { mx53loco - mx51evk_dtb - mx53loco_dtb - - mx6q_sabrelite - + mx6qsabrelite - ----------------------------- __EOF__ exit @@ -1741,7 +1742,7 @@ function usage { mx53loco - mx51evk_dtb - mx53loco_dtb - - mx6q_sabrelite - + mx6qsabrelite - Optional: --distro