<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Expanding rootfs from uboot. in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1950828#M25417</link>
    <description>&lt;P&gt;Greetings everyone.&lt;/P&gt;&lt;P&gt;I have been trying to expand root filesystem in iMX8MP-LPDDR4-EVK. I built a image with Yocto and it has root partition of around 7 GB. Flashing this image into eMMC leaves nearly 23GB of unused space. So, I tried expanding online with parted and resize2fs tools. The partition expands successfully but I encountered problems when trying to expand the rootfs.&lt;/P&gt;&lt;P&gt;So, I went through some similar topics and found&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/yocto-Resizing-rootfs-on-first-boot/m-p/948143/highlight/true#M141829" target="_self"&gt;this post.&lt;/A&gt;&amp;nbsp;In one of the comments, u-boot was mentioned to be a way to resize partition. But I could not find any articles. I am looking for some guidance on how to expand rootfs through u-boot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I tried implementing&amp;nbsp;&lt;A href="https://gijs-de-jong.nl/posts/raspberry-pi-file-system-resize-on-first-boot/" target="_self"&gt;the file system expansion mechanism used in Raspberry Pi.&lt;/A&gt;&amp;nbsp; I was skeptic about the result and as expected, it did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if any further information are required.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 08:06:21 GMT</pubDate>
    <dc:creator>bgaurav1718</dc:creator>
    <dc:date>2024-09-10T08:06:21Z</dc:date>
    <item>
      <title>Expanding rootfs from uboot.</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1950828#M25417</link>
      <description>&lt;P&gt;Greetings everyone.&lt;/P&gt;&lt;P&gt;I have been trying to expand root filesystem in iMX8MP-LPDDR4-EVK. I built a image with Yocto and it has root partition of around 7 GB. Flashing this image into eMMC leaves nearly 23GB of unused space. So, I tried expanding online with parted and resize2fs tools. The partition expands successfully but I encountered problems when trying to expand the rootfs.&lt;/P&gt;&lt;P&gt;So, I went through some similar topics and found&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/yocto-Resizing-rootfs-on-first-boot/m-p/948143/highlight/true#M141829" target="_self"&gt;this post.&lt;/A&gt;&amp;nbsp;In one of the comments, u-boot was mentioned to be a way to resize partition. But I could not find any articles. I am looking for some guidance on how to expand rootfs through u-boot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I tried implementing&amp;nbsp;&lt;A href="https://gijs-de-jong.nl/posts/raspberry-pi-file-system-resize-on-first-boot/" target="_self"&gt;the file system expansion mechanism used in Raspberry Pi.&lt;/A&gt;&amp;nbsp; I was skeptic about the result and as expected, it did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if any further information are required.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 08:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1950828#M25417</guid>
      <dc:creator>bgaurav1718</dc:creator>
      <dc:date>2024-09-10T08:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Expanding rootfs from uboot.</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1951165#M25421</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please check this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Resize-rootfs-of-Yocto-image/td-p/1426528" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Resize-rootfs-of-Yocto-image/td-p/1426528&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1951165#M25421</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-09-10T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expanding rootfs from uboot.</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1951612#M25425</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;Thank you for the reference.&lt;/P&gt;&lt;P&gt;I tried the method and got following errors.&lt;/P&gt;&lt;P&gt;After expanding the partition (I expanded just a little as test) , I could not run the command&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;e2fsck -f /dev/mmcblk2p2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The tool complains about the partition being mounted.&lt;/P&gt;&lt;P&gt;Despite this, I tried expanding the rootfs using&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;resize2fs /dev/mmcblkp2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;I got a message stating "There are errors in the filesystem, so online resizing is not allowed."&lt;/P&gt;&lt;P&gt;I have attached the error screenshot.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have encountered this error previously as well. So I though it would be a good idea to resize the partition and rootfs through U-Boot.&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 02:53:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Expanding-rootfs-from-uboot/m-p/1951612#M25425</guid>
      <dc:creator>bgaurav1718</dc:creator>
      <dc:date>2024-09-11T02:53:50Z</dc:date>
    </item>
  </channel>
</rss>

