DART-6UL eMMC: Difference between revisions
From Variscite Wiki
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
Select the eMMC device number. Number will change if SD card is in. | Select the eMMC device number. Number will change if SD card is in. | ||
* Create partition | * Create partition | ||
<pre> | <pre> root@imx6ul-var-dart:~# fdisk /dev/mmcblk1 | ||
root@ | |||
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 | ||
Building a new DOS disklabel. Changes will remain in memory only, | Building a new DOS disklabel. Changes will remain in memory only, | ||
Line 29: | Line 25: | ||
The number of cylinders for this disk is set to | The number of cylinders for this disk is set to 115456. | ||
There is nothing wrong with that, but this is larger than 1024, | There is nothing wrong with that, but this is larger than 1024, | ||
and could in certain setups cause problems with: | and could in certain setups cause problems with: | ||
Line 42: | Line 38: | ||
p | p | ||
Partition number (1-4): 1 | Partition number (1-4): 1 | ||
First cylinder (1- | First cylinder (1-115456, default 1): Using default value 1 | ||
Last cylinder or +size or +sizeM or +sizeK (1- | Last cylinder or +size or +sizeM or +sizeK (1-115456, default 115456): Using default value 115456 | ||
Command (m for help): q | |||
root@imx6ul-var-dart:~# fdisk /dev/mmcblk1 | |||
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) | |||
Command (m for help): p | Command (m for help): p | ||
Disk /dev/mmcblk1: | Disk /dev/mmcblk1: 3783 MB, 3783262208 bytes | ||
4 heads, 16 sectors/track, | 4 heads, 16 sectors/track, 115456 cylinders | ||
Units = cylinders of 64 * 512 = 32768 bytes | Units = cylinders of 64 * 512 = 32768 bytes | ||
Device Boot Start End Blocks Id System | Device Boot Start End Blocks Id System | ||
/dev/ | |||
Command (m for help): d | |||
No partition is defined yet! | |||
Command (m for help): q | |||
root@imx6ul-var-dart:~# | |||
root@imx6ul-var-dart:~# | |||
root@imx6ul-var-dart:~# fdisk /dev/mmcblk0 | |||
Command (m for help): p | |||
Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes | |||
246 heads, 62 sectors/track, 1020 cylinders | |||
Units = cylinders of 15252 * 512 = 7809024 bytes | |||
Device Boot Start End Blocks Id System | |||
/dev/mmcblk0p1 2 4 22878 83 Linux | |||
/dev/mmcblk0p2 5 973 7389594 83 Linux | |||
Command (m for help): q | |||
root@imx6ul-var-dart:~# fdisk /dev/mmcblk1 | |||
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) | |||
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)) | |||
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 | |||
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 | |||
Command (m for help): w | Command (m for help): w | ||
The partition table has been altered. | The partition table has been altered. | ||
Calling ioctl() to re-read partition table | Calling ioctl() to re-read partition table | ||
mmcblk1: p1 | mmcblk1: p1 p2 | ||
</pre> | </pre> |
Revision as of 07:17, 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
root@imx6ul-var-dart:~# fdisk /dev/mmcblk1 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) 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): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-115456, default 115456): Using default value 115456 Command (m for help): q root@imx6ul-var-dart:~# fdisk /dev/mmcblk1 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) 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 Command (m for help): d No partition is defined yet! Command (m for help): q root@imx6ul-var-dart:~# root@imx6ul-var-dart:~# root@imx6ul-var-dart:~# fdisk /dev/mmcblk0 Command (m for help): p Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes 246 heads, 62 sectors/track, 1020 cylinders Units = cylinders of 15252 * 512 = 7809024 bytes Device Boot Start End Blocks Id System /dev/mmcblk0p1 2 4 22878 83 Linux /dev/mmcblk0p2 5 973 7389594 83 Linux Command (m for help): q root@imx6ul-var-dart:~# fdisk /dev/mmcblk1 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) 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)) 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 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 Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table mmcblk1: p1 p2