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'>&#160;</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'>&#160;</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'>&#160;</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=&quot;width:50px;background:white;color:black;&quot; align=&quot;center&quot; | ...</div></td><td class='diff-marker'>&#160;</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=&quot;width:50px;background:white;color:black;&quot; align=&quot;center&quot; | ...</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=&quot;width:<del class="diffchange diffchange-inline">100px</del>;background:green;color:white;&quot; align=&quot;center&quot; | 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=&quot;width:<ins class="diffchange diffchange-inline">200px</ins>;background:green;color:white;&quot; align=&quot;center&quot; | 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=&quot;width:<del class="diffchange diffchange-inline">600px</del>;background:green;color:white;&quot; align=&quot;center&quot; | 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=&quot;width:<ins class="diffchange diffchange-inline">200px</ins>;background:green;color:white;&quot; align=&quot;center&quot; | Default Rootfs (primary)</div></td></tr> <tr><td class='diff-marker'>&#160;</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=&quot;width:600px;background:green;color:white;&quot; align=&quot;center&quot; | Home/Data (primary)</div></td><td class='diff-marker'>&#160;</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=&quot;width:600px;background:green;color:white;&quot; align=&quot;center&quot; | Home/Data (primary)</div></td></tr> <tr><td class='diff-marker'>&#160;</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'>&#160;</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 &quot;<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&amp;action=edit&amp;redlink=1" class="new" title="OPOS8MM (page does not exist)">OPOS8MM</a> module has 4 physical/hardware partitions: {| border=&quot;1&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot;...&quot;</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=&quot;1&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot; summary=&quot;OPOS8MM eMMC partitions&quot;<br /> |----------------<br /> | style=&quot;width:80px;background:orange;&quot; align=&quot;center&quot; | Boot0<br /> | style=&quot;width:80px;background:orange;&quot; align=&quot;center&quot; | Boot1<br /> | style=&quot;background:red;&quot; | RPMB<br /> | style=&quot;width:500px;background:green;color:white;&quot; align=&quot;center&quot; | User Data<br /> |}<br /> <br /> <br /> {| border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; summary=&quot;OPOS8MM eMMC partitions details&quot;<br /> |- style=&quot;background:#efefef;&quot; align=&quot;center&quot;<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=&quot;1&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot; summary=&quot;OPOS8MM eMMC partitions&quot;<br /> |----------------<br /> | style=&quot;width:10px;background:white;color:black;&quot; align=&quot;center&quot; | ...<br /> | style=&quot;width:40px;background:orange;color:white;&quot; align=&quot;center&quot; | SPL<br /> | style=&quot;width:100px;background:white;color:black;&quot; align=&quot;center&quot; | ...<br /> | style=&quot;width:150px;background:orange;color:white;&quot; align=&quot;center&quot; | IMG<br /> | style=&quot;width:150px;background:white;color:black;&quot; align=&quot;center&quot; | ...<br /> |}<br /> <br /> * Linux device: ''/dev/mmcblk0boot0''<br /> {| border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; summary=&quot;Boot0 partition detail&quot;<br /> |- style=&quot;background:#efefef;&quot; align=&quot;center&quot;<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=&quot;1&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot; summary=&quot;OPOS8MM eMMC partitions&quot;<br /> |----------------<br /> | style=&quot;width:50px;background:orange;color:white;&quot; align=&quot;center&quot; | U-Boot env<br /> | style=&quot;width:100px;background:white;color:black;&quot; align=&quot;center&quot; | ...<br /> | style=&quot;width:50px;background:orange;color:white;&quot; align=&quot;center&quot; | U-Boot redundant env<br /> | style=&quot;width:100px;background:white;color:black;&quot; align=&quot;center&quot; | ...<br /> |}<br /> <br /> * Linux device: ''/dev/mmcblk0boot1''<br /> {| border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; summary=&quot;Boot1 partition detail&quot;<br /> |- style=&quot;background:#efefef;&quot; align=&quot;center&quot;<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 &quot;User Data&quot; physical partition:<br /> {| border=&quot;1&quot; cellpadding=&quot;10&quot; cellspacing=&quot;0&quot; summary=&quot;OPOS8MM eMMC partitions&quot;<br /> |----------------<br /> | style=&quot;width:50px;background:white;color:black;&quot; align=&quot;center&quot; | ...<br /> | style=&quot;width:100px;background:green;color:white;&quot; align=&quot;center&quot; | Failsafe/Update (primary)<br /> | style=&quot;width:600px;background:green;color:white;&quot; align=&quot;center&quot; | Default Rootfs (primary)<br /> | style=&quot;width:600px;background:green;color:white;&quot; align=&quot;center&quot; | Home/Data (primary)<br /> |}<br /> <br /> <br /> {| border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; summary=&quot;OPOS8MM eMMC User data partitions details&quot;<br /> |- style=&quot;background:#efefef;&quot; align=&quot;center&quot;<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 ( -&gt; 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 /> &lt;pre class=&quot;apf&quot;&gt;<br /> # resize2fs /dev/mmcblk0p2 # for Rootfs<br /> &lt;/pre&gt;<br /> <br /> * Or with ''apf-config'' command:<br /> &lt;pre class=&quot;apf&quot;&gt;<br /> # apf-config<br /> &lt;/pre&gt;<br /> * In menu:<br /> &lt;pre class=&quot;config&quot;&gt;<br /> | 1 Expand Filesystem(s) OS can then use all eMMC/SD space |<br /> &lt;/pre&gt;<br /> <br /> Rootfs/Boot will then be extended to all the &quot;Rootfs&quot;/&quot;Boot&quot; eMMC partitions space.<br /> <br /> ==Tips==<br /> * Commands to partition ''User Data'' from fdisk on Host PC with [[U-Boot UMS on APF &amp; OPOS|U-Boot UMS]]. '''Check /dev/sdc is your OPOS8MM device otherwise you may destroy your PC partition table !!!''':<br /> &lt;pre class=host&gt;<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 /> &lt;/pre&gt;<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