imx6sabresd/create-boot-sd.sh: allow usage for i.MX53
authorEric Benard <eric@eukrea.com>
Mon, 20 Oct 2014 12:46:16 +0000 (14:46 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 24 Oct 2014 23:04:08 +0000 (01:04 +0200)
this script permits the generation of an sdcard that will boot on
and i.MX53 QSB with a recent bootloader (now supported by buildroot).

Tested on an i.MX53 QSB and an i.MX53 QSB-R

Signed-off-by: Eric BĂ©nard <eric@eukrea.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/freescale/imx53loco/create-boot-sd.sh [new symlink]
board/freescale/imx6sabresd/create-boot-sd.sh

diff --git a/board/freescale/imx53loco/create-boot-sd.sh b/board/freescale/imx53loco/create-boot-sd.sh
new file mode 120000 (symlink)
index 0000000..3083fd2
--- /dev/null
@@ -0,0 +1 @@
+../imx6sabresd/create-boot-sd.sh
\ No newline at end of file
index 9930b1eed35af1645018882a1a781c05206d0c6f..af45115c722fde75e386219504cf503fa1dc6f2d 100755 (executable)
@@ -7,9 +7,7 @@ PROGNAME=$(basename $0)
 
 usage()
 {
-    echo "Create an SD card that boots on an i.MX6DL SABRESD board."
-    echo "It is supposed to work also for the i.MX6Q SABRESD board, but"
-    echo "it this is not tested."
+    echo "Create an SD card that boots on an i.MX53/6 board."
     echo
     echo "Note: all data on the the card will be completely deleted!"
     echo "Use with care!"
@@ -77,8 +75,8 @@ TMPDIR=$(mktemp -d)
 # FAT partition: kernel and DTBs
 mkfs.vfat ${PART1}
 mount ${PART1} ${TMPDIR}
-cp output/images/uImage ${TMPDIR}/
-cp output/images/*.dtb  ${TMPDIR}/
+cp output/images/*Image ${TMPDIR}/
+cp output/images/*.dtb  ${TMPDIR}/ || true
 sync
 umount ${TMPDIR}