[Buildroot] [PATCH v2 5/7] altera: change mmcblk0 to sdc
Jan Viktorin
viktorin at rehivetech.com
Tue Oct 20 11:32:23 UTC 2015
It is not very common to have mmcblk0 device on the host PC,
the previous text was quite confusing.
Signed-off-by: Jan Viktorin <viktorin at rehivetech.com>
---
board/altera/readme.txt | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/board/altera/readme.txt b/board/altera/readme.txt
index fdd7316..62c3670 100644
--- a/board/altera/readme.txt
+++ b/board/altera/readme.txt
@@ -106,9 +106,9 @@ Determine the device associated to the SD card :
$ cat /proc/partitions
-let's assume it is /dev/mmcblk0 :
+let's assume it is /dev/sdc :
- $ sudo fdisk /dev/mmcblk0
+ $ sudo fdisk /dev/sdc
Delete all previous partitions with 'd' then create the new partition table,
using these options, pressing enter after each one:
@@ -120,15 +120,15 @@ using these options, pressing enter after each one:
Using the 'p' option, the SD card's partition must look like this :
Device Boot Start End Blocks Id System
-/dev/mmcblk0p1 9000000 9041919 20960 b W95 FAT32
-/dev/mmcblk0p2 4096 8996863 4496384 83 Linux
-/dev/mmcblk0p3 2048 4095 1024 a2 Unknown
+/dev/sdc1 9000000 9041919 20960 b W95 FAT32
+/dev/sdc2 4096 8996863 4496384 83 Linux
+/dev/sdc3 2048 4095 1024 a2 Unknown
Then write the partition table using 'w' and exit.
Make partition one a DOS partition :
- $ sudo mkdosfs /dev/mmcblk0p1
+ $ sudo mkdosfs /dev/sdc1
Install the binaries to the SDcard
----------------------------------
@@ -141,19 +141,19 @@ The partition with type a2 is the partition scan by the first bootloader stage
in the SoCkit ROM to find the next bootloader stage so we must write the signed
preloader and the u-boot binaries in that partition :
- $ sudo dd if=u-boot-spl-signed.bin of=/dev/mmcblk0p3 bs=64k seek=0
- $ sudo dd if=u-boot.img of=/dev/mmcblk0p3 bs=64k seek=4
+ $ sudo dd if=u-boot-spl-signed.bin of=/dev/sdc3 bs=64k seek=0
+ $ sudo dd if=u-boot.img of=/dev/sdc3 bs=64k seek=4
Copy the Linux kernel and its Device tree :
$ sudo mkdir /mnt/sdcard
- $ sudo mount /dev/mmcblk0p1 /mnt/sdcard
+ $ sudo mount /dev/sdc1 /mnt/sdcard
$ sudo cp socfpga.dtb uImage /mnt/sdcard
$ sudo umount /mnt/sdcard
Copy the rootfs :
- $ sudo dd if=rootfs.ext2 of=/dev/mmcblk0p2 bs=64k
+ $ sudo dd if=rootfs.ext2 of=/dev/sdc2 bs=64k
$ sudo sync
It's Done!
--
2.6.1
More information about the buildroot
mailing list