瀏覽代碼

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>
Fabio Estevam 8 年之前
父節點
當前提交
23e0f3350f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      board/freescale/imx28evk/create-boot-sd.sh

+ 1 - 1
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)