Difference between revisions of "EMMC OPOS6UL"
From ArmadeusWiki
(creation) |
(→User Data partition layout) |
||
Line 64: | Line 64: | ||
== User Data partition layout == | == User Data partition layout == | ||
− | There are | + | There are 3 partitions on the "User Data" physical partition: |
{| border="1" cellpadding="10" cellspacing="0" summary="OPOS6UL eMMC partitions" | {| border="1" cellpadding="10" cellspacing="0" summary="OPOS6UL eMMC partitions" | ||
|---------------- | |---------------- | ||
| style="width:50px;background:white;color:black;" align="center" | ... | | style="width:50px;background:white;color:black;" align="center" | ... | ||
− | | style="width:100px;background:green;color:white;" align="center" | | + | | style="width:100px;background:green;color:white;" align="center" | Failsafe (primary) |
− | | style="width:600px;background:green;color:white;" align="center" | Rootfs | + | | style="width:600px;background:green;color:white;" align="center" | Rootfs (extended) |
+ | | style="width:600px;background:green;color:white;" align="center" | Home/Data (extended) | ||
|} | |} | ||
Line 79: | Line 80: | ||
|MBR || NA || NA || 0 || 0 || 512 bytes (1 block) || Master Boot Record. (Don't touch it :-) ) | |MBR || NA || NA || 0 || 0 || 512 bytes (1 block) || Master Boot Record. (Don't touch it :-) ) | ||
|---------------- | |---------------- | ||
− | | | + | |Failsafe || mmc 0:1 || /dev/mmcblk0p1 || 2k (0x800)|| 4 || 32MBytes || system to restore your board in case of problem |
+ | |---------------- | ||
+ | |Rootfs || mmc 0:2 || /dev/mmcblk0p2 || 32M+2k (0x)|| 4 || 2GBytes || the rootfs is on this partition (ext4 formatted) | ||
+ | |---------------- | ||
+ | |Home/Data || mmc 0:3 || /dev/mmcblk0p3 || (0x)|| 4 || Rest of space (~1,8GBytes) || HOME is on this partition (ext4 formatted) | ||
|---------------- | |---------------- | ||
|} | |} | ||
Line 85: | Line 90: | ||
* By default, when flashed from U-Boot, rootfs and boot are only occupying the size of the .ext4 images used during flashing. If you want to increase the rootfs/boot size to all available free space then, after Linux has booted, use the following commands: | * By default, when flashed from U-Boot, rootfs and boot are only occupying the size of the .ext4 images used during flashing. If you want to increase the rootfs/boot size to all available free space then, after Linux has booted, use the following commands: | ||
<pre class="apf"> | <pre class="apf"> | ||
− | # resize2fs /dev/ | + | # resize2fs /dev/mmcblk0p2 # for Rootfs |
</pre> | </pre> | ||
Revision as of 13:58, 12 September 2016
OPOS6UL eMMC layout
By default, the 4GB eMMC on OPOS6UL module has 4 physical/hardware partitions:
Boot0 | Boot1 | RPMB | User Data |
Name | U-Boot name | Size | Comment |
---|---|---|---|
boot0 | mmc dev 0 1 | 2MBytes | U-Boot is installed on this partition |
boot1 | mmc dev 0 2 | 2MBytes | Not used |
rpmb | mmc dev 0 3 | 512KBytes | Not used |
User Data | mmc dev 0 0 | remaining space | Kernel, device tree and rootfs |
Boot0 partition layout
. | SPL | IMG | ... | ENV1 | ... | ENV2 | ... |
- Linux device: /dev/mmcblk2boot0
Offset (blocks) | Offset (bytes) | Size (bytes) | Comment |
---|---|---|---|
0 | 0 | 1 KB (0x400) | Free |
0x02 | 1 KB (0x400) | 68 KB | U-Boot SPL (apf6-u-boot.spl) |
0x8a | 69 KB (0x11400) | 512 KB | U-Boot IMG (apf6-u-boot.img) |
Free | |||
0x800 (2048) | 1024 KB (0x100000) | 10 KB (0x2800) | U-Boot environment |
Free | |||
0xc00 (3072) | 1536 KB (0x180000) | 10 KB (0x2800) | Redundant U-Boot environment |
Free |
User Data partition layout
There are 3 partitions on the "User Data" physical partition:
... | Failsafe (primary) | Rootfs (extended) | Home/Data (extended) |
Name | U-Boot device | Linux device | Offset (bytes) | Offset (blocks) | Size | Comment |
---|---|---|---|---|---|---|
MBR | NA | NA | 0 | 0 | 512 bytes (1 block) | Master Boot Record. (Don't touch it :-) ) |
Failsafe | mmc 0:1 | /dev/mmcblk0p1 | 2k (0x800) | 4 | 32MBytes | system to restore your board in case of problem |
Rootfs | mmc 0:2 | /dev/mmcblk0p2 | 32M+2k (0x) | 4 | 2GBytes | the rootfs is on this partition (ext4 formatted) |
Home/Data | mmc 0:3 | /dev/mmcblk0p3 | (0x) | 4 | Rest of space (~1,8GBytes) | HOME is on this partition (ext4 formatted) |
- By default, when flashed from U-Boot, rootfs and boot are only occupying the size of the .ext4 images used during flashing. If you want to increase the rootfs/boot size to all available free space then, after Linux has booted, use the following commands:
# resize2fs /dev/mmcblk0p2 # for Rootfs
- Or with apf-config command
# apf-config
- in menu:
| 1 Expand Filesystem(s) OS can then use all eMMC/SD space |
Rootfs/Boot will then be extended to all the "Rootfs"/"Boot" eMMC partitions space.