DART-6UL eMMC: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
* Create partition | * Create partition | ||
<pre>$ fdisk /dev/mmcblk1 | <pre>$ fdisk /dev/mmcblk1 | ||
</pre> | |||
Output: | Output example: | ||
<pre> | <pre> | ||
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel | Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel |
Revision as of 07:24, 28 December 2015
DART-6UL - eMMC
NOTE:
Make sure you booted from sdcard with imx6ul-var-dart-sd_emmc.dtb selected
Make sure you booted from sdcard with imx6ul-var-dart-sd_emmc.dtb selected
NOTE:
nand-recovery supports flashing of eMMC without the requirement of the process below. Just run android-emmc.sh on the command line.
nand-recovery supports flashing of eMMC without the requirement of the process below. Just run android-emmc.sh on the command line.
- Check that the device is up.
$ dmesg | grep mmcblk1
- Output example:
mmcblk1: mmc1:0001 MMC04G 3.52 GiB mmcblk1boot0: mmc1:0001 MMC04G partition 1 16.0 MiB mmcblk1boot1: mmc1:0001 MMC04G partition 2 16.0 MiB mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB mmcblk1: unknown partition table mmcblk1boot1: unknown partition table mmcblk1boot0: unknown partition table
Select the eMMC device number. Number will change if SD card is in.
- Create partition
$ fdisk /dev/mmcblk1
Output example:
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that the previous content won't be recoverable. The number of cylinders for this disk is set to 115456. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)
Created msdos Boot partition:
n p 1 8192 24575 t c
Output:
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-115456, default 1): 8192 Last cylinder or +size or +sizeM or +sizeK (8192-115456, default 115456): 24575 Command (m for help): t Selected partition 1 Hex code (type L to list codes): c Changed system type of partition 1 to c (Win95 FAT32 (LBA))
Create ext3 partition:
Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (1-115456, default 1): 24576 Last cylinder or +size or +sizeM or +sizeK (24576-115456, default 115456): Using default value 115456
Print the partition table:
p
Output example:
Command (m for help): p Disk /dev/mmcblk1: 3783 MB, 3783262208 bytes 4 heads, 16 sectors/track, 115456 cylinders Units = cylinders of 64 * 512 = 32768 bytes Device Boot Start End Blocks Id System /dev/mmcblk1p1 8192 24575 524288 c Win95 FAT32 (LBA) /dev/mmcblk1p2 24576 115456 2908192 83 Linux
Write and exit:
w
Output example:
Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table mmcblk1: p1 p2