FAQ_MA35_Family_NAND Flash Rootfs Size

Post Reply
ytliu6
Posts: 95
Joined: 08 Nov 2022, 10:28

23 Apr 2024, 15:10

Default NAND Flash rootfs is 100MB and part of space is occupied by UBIFS, so it may not be enough. This FAQ would guide you how to extend the rootfs size.

Please verify the "maximum logical eraseblock count" in Buildroot menuconfig. The default value is 2800, which corresponds to a maximum rootfs size of 2800 multiplied by 0x1F000 (339 MB). If you require a larger size, kindly adjust it to a larger value.

Code: Select all

$ make menuconfig
Filesystem images --->
   (2800) maximum logical eraseblock count
Modify the rootfs size in the device tree NAND Flash node from 0x6400000 to 0xC800000 (100MB to 200MB).

Code: Select all

&nand {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_nand>;
	partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;
 
			uboot@0 {
				label = "nand-uboot";
				reg = <0x0000000 0x300000>;
				read-only;
			};
			uboot-env@300000 {
				label = "nand-uboot-env";
				reg = <0x300000 0xC0000>;
			};
			device-tree@3c0000 {
				label = "nand-device-tree";
				reg = <0x3C0000 0x40000>;
			};
			kernel@400000 {
				label = "nand-kernel";
				reg = <0x400000 0x1800000>;
			};
			rootfs@1c00000 {
				label = "nand-rootfs";
				reg = <0x1C00000 0xC800000>;
			};
		};
};
Final step, don’t forget to rebuild the image.

Code: Select all

$ make linux-rebuild && make
#NAND #Rootfs #UBIFS

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests