http://armadeus.org/wiki/index.php?action=history&feed=atom&title=EMMC_OPOS8MM
EMMC OPOS8MM - Revision history
2026-06-29T09:56:44Z
Revision history for this page on the wiki
MediaWiki 1.26.3
http://armadeus.org/wiki/index.php?title=EMMC_OPOS8MM&diff=14955&oldid=prev
SebastienSz: /* User Data partition layout */
2020-10-14T07:32:03Z
<p><span dir="auto"><span class="autocomment">User Data partition layout</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 07:32, 14 October 2020</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l88" >Line 88:</td>
<td colspan="2" class="diff-lineno">Line 88:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|----------------</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|----------------</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| style="width:50px;background:white;color:black;" align="center" | ...</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| style="width:50px;background:white;color:black;" align="center" | ...</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| style="width:<del class="diffchange diffchange-inline">100px</del>;background:green;color:white;" align="center" | Failsafe/Update (primary)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| style="width:<ins class="diffchange diffchange-inline">200px</ins>;background:green;color:white;" align="center" | Failsafe/Update (primary)</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>| style="width:<del class="diffchange diffchange-inline">600px</del>;background:green;color:white;" align="center" | Default Rootfs (primary)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>| style="width:<ins class="diffchange diffchange-inline">200px</ins>;background:green;color:white;" align="center" | Default Rootfs (primary)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| style="width:600px;background:green;color:white;" align="center" | Home/Data (primary)</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>| style="width:600px;background:green;color:white;" align="center" | Home/Data (primary)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>|}</div></td></tr>
</table>
SebastienSz
http://armadeus.org/wiki/index.php?title=EMMC_OPOS8MM&diff=14954&oldid=prev
SebastienSz: Created page with "Category: eMMC = OPOS8MM eMMC layout = By default, the 4GB eMMC on OPOS8MM module has 4 physical/hardware partitions: {| border="1" cellpadding="10" cellspacing="0"..."
2020-10-13T15:25:37Z
<p>Created page with "<a href="/wiki/index.php?title=Category:EMMC" title="Category:EMMC">Category: eMMC</a> = OPOS8MM eMMC layout = By default, the 4GB eMMC on <a href="/wiki/index.php?title=OPOS8MM&action=edit&redlink=1" class="new" title="OPOS8MM (page does not exist)">OPOS8MM</a> module has 4 physical/hardware partitions: {| border="1" cellpadding="10" cellspacing="0"..."</p>
<p><b>New page</b></p><div>[[Category: eMMC]]<br />
<br />
= OPOS8MM eMMC layout =<br />
<br />
By default, the 4GB eMMC on [[OPOS8MM]] module has 4 physical/hardware partitions:<br />
<br />
{| border="1" cellpadding="10" cellspacing="0" summary="OPOS8MM eMMC partitions"<br />
|----------------<br />
| style="width:80px;background:orange;" align="center" | Boot0<br />
| style="width:80px;background:orange;" align="center" | Boot1<br />
| style="background:red;" | RPMB<br />
| style="width:500px;background:green;color:white;" align="center" | User Data<br />
|}<br />
<br />
<br />
{| border="1" cellpadding="5" cellspacing="0" summary="OPOS8MM eMMC partitions details"<br />
|- style="background:#efefef;" align="center"<br />
!Name || U-Boot name || Size || Comment<br />
|----------------<br />
|boot0 || mmc dev 0 1 || 2MBytes || U-Boot is installed on this partition<br />
|----------------<br />
|boot1 || mmc dev 0 2 || 2MBytes || U-Boot env is installed on this partition<br />
|----------------<br />
|rpmb || mmc dev 0 3 || 512KBytes || Not used<br />
|----------------<br />
|User Data || mmc dev 0 0 || remaining space (~3,7GBytes) || Kernel, device tree and rootfs<br />
|----------------<br />
|}<br />
<br />
== Boot0 partition layout ==<br />
{| border="1" cellpadding="10" cellspacing="0" summary="OPOS8MM eMMC partitions"<br />
|----------------<br />
| style="width:10px;background:white;color:black;" align="center" | ...<br />
| style="width:40px;background:orange;color:white;" align="center" | SPL<br />
| style="width:100px;background:white;color:black;" align="center" | ...<br />
| style="width:150px;background:orange;color:white;" align="center" | IMG<br />
| style="width:150px;background:white;color:black;" align="center" | ...<br />
|}<br />
<br />
* Linux device: ''/dev/mmcblk0boot0''<br />
{| border="1" cellpadding="5" cellspacing="0" summary="Boot0 partition detail"<br />
|- style="background:#efefef;" align="center"<br />
! Offset (blocks) || Offset (bytes) || Size (bytes) || Comment<br />
|----------------<br />
||| || || Free<br />
|----------------<br />
|0x42 || 33 KiB (0x8400) || 215 KiB || U-Boot SPL (opos8mm-u-boot.spl)<br />
|----------------<br />
||| || || Free<br />
|----------------<br />
|0x300 || 384 KiB (0x6000) || ~700 KiB || U-Boot IMG (opos8mm-u-boot.itb)<br />
|----------------<br />
||| || || Free<br />
|----------------<br />
|}<br />
<br />
== Boot1 partition layout ==<br />
{| border="1" cellpadding="10" cellspacing="0" summary="OPOS8MM eMMC partitions"<br />
|----------------<br />
| style="width:50px;background:orange;color:white;" align="center" | U-Boot env<br />
| style="width:100px;background:white;color:black;" align="center" | ...<br />
| style="width:50px;background:orange;color:white;" align="center" | U-Boot redundant env<br />
| style="width:100px;background:white;color:black;" align="center" | ...<br />
|}<br />
<br />
* Linux device: ''/dev/mmcblk0boot1''<br />
{| border="1" cellpadding="5" cellspacing="0" summary="Boot1 partition detail"<br />
|- style="background:#efefef;" align="center"<br />
! Offset (blocks) || Offset (bytes) || Size (bytes) || Comment<br />
|----------------<br />
|0 || 0 || 16 KiB || U-Boot environment<br />
|----------------<br />
||| || || Free<br />
|----------------<br />
||| || 16 KiB || U-Boot redundant environment<br />
|----------------<br />
||| || || Free<br />
|----------------<br />
|}<br />
<br />
== RPMB partition layout ==<br />
* Not used !<br />
<br />
== User Data partition layout ==<br />
<br />
There are 3 partitions on the "User Data" physical partition:<br />
{| border="1" cellpadding="10" cellspacing="0" summary="OPOS8MM eMMC partitions"<br />
|----------------<br />
| style="width:50px;background:white;color:black;" align="center" | ...<br />
| style="width:100px;background:green;color:white;" align="center" | Failsafe/Update (primary)<br />
| style="width:600px;background:green;color:white;" align="center" | Default Rootfs (primary)<br />
| style="width:600px;background:green;color:white;" align="center" | Home/Data (primary)<br />
|}<br />
<br />
<br />
{| border="1" cellpadding="5" cellspacing="0" summary="OPOS8MM eMMC User data partitions details"<br />
|- style="background:#efefef;" align="center"<br />
!Name || U-Boot device || Linux device || Offset (bytes) || Offset (sectors/blocs) || Size || Comment<br />
|----------------<br />
|MBR || NA || NA || 0 || 0 || 512 bytes (1 block) || Master Boot Record + some spare space ( -> Don't touch it :-) )<br />
|----------------<br />
|Failsafe || mmc 0:1 || /dev/mmcblk0p1 || 1M || 2048 (0x800) || 512 MBytes (1048576 sectors) || system/rootfs to restore your board in case of problem or setup a safe update mechanism (ext4 formatted)<br />
|----------------<br />
|Rootfs || mmc 0:2 || /dev/mmcblk0p2 || || 1050624 (0x10800) || 512 MBytes (1048576 sectors) || the default booted rootfs is on this partition (ext4 formatted)<br />
|----------------<br />
|Home/Data || mmc 0:3 || /dev/mmcblk0p3 || || 2099200 (0x200800) || Rest of space: ~2,7 GBytes (5634048 sectors) || HOME can be stored on this partition (ext4 formatted)<br />
|----------------<br />
|}<br />
<br />
* 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:<br />
<pre class="apf"><br />
# resize2fs /dev/mmcblk0p2 # for Rootfs<br />
</pre><br />
<br />
* Or with ''apf-config'' command:<br />
<pre class="apf"><br />
# apf-config<br />
</pre><br />
* In menu:<br />
<pre class="config"><br />
| 1 Expand Filesystem(s) OS can then use all eMMC/SD space |<br />
</pre><br />
<br />
Rootfs/Boot will then be extended to all the "Rootfs"/"Boot" eMMC partitions space.<br />
<br />
==Tips==<br />
* Commands to partition ''User Data'' from fdisk on Host PC with [[U-Boot UMS on APF & OPOS|U-Boot UMS]]. '''Check /dev/sdc is your OPOS8MM device otherwise you may destroy your PC partition table !!!''':<br />
<pre class=host><br />
$ sudo echo -e 'size=512MiB,type=0x83\nsize=512MiB,type=0x83\ntype=0x83' | sfdisk /dev/sdc<br />
<br />
$ sudo mkfs.ext4 -O ^64bit,^metadata_csum,uninit_bg /dev/sdc1<br />
$ sudo mkfs.ext4 -O ^64bit,^metadata_csum,uninit_bg /dev/sdc2<br />
$ sudo mkfs.ext4 -O ^64bit,^metadata_csum,uninit_bg /dev/sdc3<br />
<br />
</pre><br />
<br />
==Links==<br />
* [http://fr.slideshare.net/linaroorg/intro-to-emmc http://fr.slideshare.net/linaroorg/intro-to-emmc]<br />
* https://fr.wikipedia.org/wiki/Master_boot_record ou http://poloastucien.free.fr/mbr_fat_secteurs_boot_h.html</div>
SebastienSz