aboutsummaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorGravatar Fabio Estevam <fabio.estevam@nxp.com>2016-10-25 14:21:39 -0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-10-25 19:57:20 +0200
commit23e0f3350fbeccf727dd4e87889d9b2875e8e615 (patch)
treec1f2e0a341ae30f0637007479f0caf844a97a820 /board/freescale
parentc490f3b08f12a53a70899fe9fbbf07d3e4f6e4be (diff)
downloadbuildroot-23e0f3350fbeccf727dd4e87889d9b2875e8e615.tar.gz
buildroot-23e0f3350fbeccf727dd4e87889d9b2875e8e615.tar.bz2
imx28evk: Fix the first partition location
When the SD card is connected to the host PC it can be mounted as /dev/mmcblk0 or /dev/sdX, depending on how the SD controller is connected to /the PC. In this case the first partition is /dev/mmcblk0p1, not /dev/mmcblk01. So use the ${PART1} variable to correctly assign this location. [Peter: extend commit meesage] Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/freescale')
-rwxr-xr-xboard/freescale/imx28evk/create-boot-sd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/imx28evk/create-boot-sd.sh b/board/freescale/imx28evk/create-boot-sd.sh
index 5e050cbada..bce221237c 100755
--- a/board/freescale/imx28evk/create-boot-sd.sh
+++ b/board/freescale/imx28evk/create-boot-sd.sh
@@ -71,7 +71,7 @@ sync
# Copy the bootloader at offset 2048
# (We need to skip the partition table in the .sd, too.)
-dd if=output/images/u-boot.sd of=${DEV}1 bs=1M
+dd if=output/images/u-boot.sd of=${PART1} bs=1M
# Prepare a temp dir for mounting partitions
TMPDIR=$(mktemp -d)