Skip to contentSkip to conversation

arch: arm64: configs: Enable UBI and UBIFS

PATCH Superseded [email protected] 3 participants 13 messages Jun 22, 2023 – Jul 3, 2023

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 arch: arm64: configs: Enable UBI and UBIFS

From: Alif Zakuan Yuslaimi <[email protected]>

This patch is to enable UBI and UBIFS in Linux defconfig.

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -0
index a24609e14d50..23a6ebcb1a9e 100644
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m
 CONFIG_IPMI_SI=m
 CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_VIRTIO=y
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y
 CONFIG_TCG_TPM=y
 CONFIG_TCG_TIS=m
 CONFIG_TCG_TIS_SPI=m
Signature · 1 line
2.25.1
#1 lore raw
Quoted 3 lines · On 22/06/2023 10:53, [email protected] wrote:

From: Alif Zakuan Yuslaimi <[email protected]>

This patch is to enable UBI and UBIFS in Linux defconfig.

Why? Which board needs it? It's quite unusual to have this on arm64...

Quoted 12 lines
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +0 -0
index a24609e14d50..23a6ebcb1a9e 100644

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m · line 474

Quoted 5 lines
arch/arm64/configs/defconfig +2 -0
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m
 CONFIG_IPMI_SI=m
 CONFIG_HW_RANDOM=y
 CONFIG_HW_RANDOM_VIRTIO=y
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y

Not modules?

Are you sure you added the lines in appropriate place (matching savedefconfig)?

Best regards,
Krzysztof

#2 lore raw

From: Lee, Kah Jing <[email protected]>

Quoted 15 lines
Quoted 10 lines
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/configs/defconfig index a24609e14d50..23a6ebcb1a9e

100644

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m

Quoted 3 lines
arch/arm64/configs/defconfig +0 -0
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m

CONFIG_IPMI_SI=m

Quoted 5 lines

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m · line 474

Quoted 3 lines

CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y

arch/arm64/configs/defconfig +2 -0
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y

Not modules?

Yes, we need to boot with rootfs with UBIFS.

Quoted 3 lines

Are you sure you added the lines in appropriate place (matching savedefconfig)?

Updated in v2.

Quoted 4 lines

Best regards,
Krzysztof

Thanks.

Regards,
Kah Jing

#3 lore raw
Quoted 3 lines · On 22/06/2023 14:21, [email protected] wrote:

From: Lee, Kah Jing <[email protected]>

Quoted 1 line

You missed my questions.

Quoted 14 lines
Quoted 14 lines
Quoted 9 lines
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/configs/defconfig index a24609e14d50..23a6ebcb1a9e

100644

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m

Quoted 3 lines
arch/arm64/configs/defconfig +0 -0
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m

CONFIG_IPMI_SI=m

Quoted 6 lines
Quoted 5 lines

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m · line 474

Quoted 3 lines

CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y

arch/arm64/configs/defconfig +2 -0
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y

Not modules?

Yes, we need to boot with rootfs with UBIFS.

So you miss init ramdisk.

Best regards,
Krzysztof

#4 lore raw
Quoted 11 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Thursday, 22 June, 2023 8:49 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 6 lines
Quoted 3 lines · On 22/06/2023 14:21, [email protected] wrote:

From: Lee, Kah Jing <[email protected]>

Quoted 1 line

You missed my questions.

Sorry, the reply got truncated.

Quoted 5 lines
Quoted 4 lines · On 22/06/2023 10:53, [email protected] wrote:

From: Alif Zakuan Yuslaimi <[email protected]>

This patch is to enable UBI and UBIFS in Linux defconfig.

Why? Which board needs it? It's quite unusual to have this on arm64...

The ubifs settings is enabled for Agilex and Stratix10 socfpga platform with rootfs mounted from QSPI NOR.

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 9 lines
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/configs/defconfig index a24609e14d50..23a6ebcb1a9e

100644

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m

Quoted 3 lines
arch/arm64/configs/defconfig +0 -0
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m

CONFIG_IPMI_SI=m

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m · line 474

Quoted 3 lines

CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y

arch/arm64/configs/defconfig +2 -0
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y

Not modules?

Yes, we need to boot with rootfs with UBIFS.

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR flash:

[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs rw rootwait

Is it possible to mount the ubifs rootfs with the ubifs=m config during boot? Thanks.

Quoted 5 lines

Best regards,
Krzysztof

Thanks.

Regards,
Lee, Kah Jing

#5 lore raw
Quoted 19 lines · Kah Jing
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 9 lines
---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/configs/defconfig index a24609e14d50..23a6ebcb1a9e

100644

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m

Quoted 3 lines
arch/arm64/configs/defconfig +0 -0
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m

CONFIG_IPMI_SI=m

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m · line 474

Quoted 3 lines

CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y

arch/arm64/configs/defconfig +2 -0
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y

Not modules?

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Yes, we need to boot with rootfs with UBIFS.

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR flash:

[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs rw rootwait

Is it possible to mount the ubifs rootfs with the ubifs=m config during boot?

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Best regards,
Krzysztof

#6 lore raw
Quoted 35 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Friday, 23 June, 2023 6:18 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 23 lines · Kah Jing
Quoted 23 lines
Quoted 15 lines
Quoted 15 lines
Quoted 10 lines

Signed-off-by: Alif Zakuan Yuslaimi
<[email protected]>

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/configs/defconfig index a24609e14d50..23a6ebcb1a9e

100644

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m

Quoted 3 lines
arch/arm64/configs/defconfig +0 -0
@@ -470,6 +470,8 @@ CONFIG_IPMI_DEVICE_INTERFACE=m

CONFIG_IPMI_SI=m

Quoted 6 lines
Quoted 5 lines

arch/arm64/configs/defconfig CONFIG_IPMI_DEVICE_INTERFACE=m · line 474

Quoted 3 lines

CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_VIRTIO=y

arch/arm64/configs/defconfig +2 -0
+CONFIG_MTD_UBI=y
+CONFIG_UBIFS_FS=y

Not modules?

Yes, we need to boot with rootfs with UBIFS.

So you miss init ramdisk.

Quoted 8 lines
Quoted 1 line

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 1 line

Is it possible to mount the ubifs rootfs with the ubifs=m config during boot?

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page - http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel module) and specify proper kernel boot arguments and make the kernel mount UBIFS on boot.'

It seems like we need UBIFS config to be compiled as kernel built-in. The kernel module would work if we mounted UBIFS as filesystem device after rootfs mounted, but not as rootfs.
Let me know if that understanding is correct.
Thanks.

Quoted 4 lines

Best regards,
Krzysztof

Regards,
Lee, Kah Jing

#7 lore raw
Quoted 5 lines · Kah Jing
Quoted 5 lines
Quoted 2 lines
Quoted 1 line

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Is it possible to mount the ubifs rootfs with the ubifs=m config during boot?

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page - http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel module) and specify proper kernel boot arguments and make the kernel mount UBIFS on boot.'

Why? Module loaded by initramfs would also understand cmdline arguments, right?

Best regards,
Krzysztof

#8 lore raw
Quoted 28 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Saturday, 24 June, 2023 3:30 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 7 lines · Kah Jing
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 1 line

Is it possible to mount the ubifs rootfs with the ubifs=m config during

boot?

Quoted 8 lines
Quoted 3 lines

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page -
http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel module) and specify proper kernel boot arguments and make the kernel

Quoted 4 lines

mount UBIFS on boot.'

Why? Module loaded by initramfs would also understand cmdline arguments, right?

The suggestion is to use initramfs for rootfs -> remount UBIFS as chroot? The concern is additional initrd image and steps to store in the limited NOR flash (256MB, Boot data + Uboot - ~66MB, UBIFS image - ~88MB, kernel.itb - ~10MB = 164MB).
With the mounting Rootfs from UBIFS volume, we can skip the initrd step, and save some space for the user operations.
Let me know if I understands that correctly.

Quoted 3 lines

Best regards,
Krzysztof

Thanks.

Regards,
Lee, Kah Jing

#9 lore raw
Quoted 32 lines · Kah Jing
Quoted 28 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Saturday, 24 June, 2023 3:30 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 7 lines · Kah Jing
Quoted 7 lines
Quoted 3 lines
Quoted 1 line

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 1 line

Is it possible to mount the ubifs rootfs with the ubifs=m config during

boot?

Quoted 8 lines
Quoted 3 lines

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page -
http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel module) and specify proper kernel boot arguments and make the kernel

Quoted 4 lines

mount UBIFS on boot.'

Why? Module loaded by initramfs would also understand cmdline arguments, right?

Quoted 7 lines

The suggestion is to use initramfs for rootfs -> remount UBIFS as chroot? The concern is additional initrd image and steps to store in the limited NOR flash (256MB, Boot data + Uboot - ~66MB, UBIFS image - ~88MB, kernel.itb - ~10MB = 164MB).
With the mounting Rootfs from UBIFS volume, we can skip the initrd step, and save some space for the user operations.
Let me know if I understands that correctly.

arm64 defconfig creates huge development config for all platforms, so why would you ever use it in resource-constrained system? It would barely fit. defconfig modules take 50 MB alone and you don't need most of them.

I think you misunderstood the purpose of this defconfig and now try to apply some arguments for different use cases.

Best regards,
Krzysztof

#10 lore raw
Quoted 54 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, 26 June, 2023 4:39 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 34 lines · Kah Jing
Quoted 30 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Saturday, 24 June, 2023 3:30 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 8 lines · Kah Jing
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 2 lines

Is it possible to mount the ubifs rootfs with the ubifs=m config during

boot?

Quoted 9 lines
Quoted 3 lines

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page -
http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel
module) and specify proper kernel boot arguments and make the kernel

Quoted 4 lines

mount UBIFS on boot.'

Why? Module loaded by initramfs would also understand cmdline arguments, right?

Quoted 7 lines

The suggestion is to use initramfs for rootfs -> remount UBIFS as chroot? The concern is additional initrd image and steps to store in the limited NOR flash (256MB, Boot data + Uboot - ~66MB, UBIFS image - ~88MB, kernel.itb - ~10MB = 164MB).
With the mounting Rootfs from UBIFS volume, we can skip the initrd step, and save some space for the user operations.
Let me know if I understands that correctly.

Quoted 6 lines

arm64 defconfig creates huge development config for all platforms, so why would you ever use it in resource-constrained system? It would barely fit. defconfig modules take 50 MB alone and you don't need most of them.

I think you misunderstood the purpose of this defconfig and now try to apply some arguments for different use cases.

Understood the point. In this case, I would drop this defconfig patch, and document it for customers to enable through menuconfig.

Will proceed to send the v3 for only dts changes.
Thanks for the time.

Quoted 3 lines

Best regards,
Krzysztof

Regards,
Lee, Kah Jing

#11 lore raw
Quoted 58 lines · Kah Jing
Quoted 58 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Monday, 26 June, 2023 4:39 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 34 lines · Kah Jing
Quoted 30 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Saturday, 24 June, 2023 3:30 PM
To: Lee, Kah Jing <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH 2/2] arch: arm64: configs: Enable UBI and UBIFS

Quoted 8 lines · Kah Jing
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 2 lines

Is it possible to mount the ubifs rootfs with the ubifs=m config during

boot?

Quoted 9 lines
Quoted 3 lines

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page -
http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel
module) and specify proper kernel boot arguments and make the kernel

Quoted 4 lines

mount UBIFS on boot.'

Why? Module loaded by initramfs would also understand cmdline arguments, right?

Quoted 7 lines

The suggestion is to use initramfs for rootfs -> remount UBIFS as chroot? The concern is additional initrd image and steps to store in the limited NOR flash (256MB, Boot data + Uboot - ~66MB, UBIFS image - ~88MB, kernel.itb - ~10MB = 164MB).
With the mounting Rootfs from UBIFS volume, we can skip the initrd step, and save some space for the user operations.
Let me know if I understands that correctly.

arm64 defconfig creates huge development config for all platforms, so why would you ever use it in resource-constrained system? It would barely fit. defconfig modules take 50 MB alone and you don't need most of them.

Quoted 8 lines
Quoted 2 lines

I think you misunderstood the purpose of this defconfig and now try to apply some arguments for different use cases.

Understood the point. In this case, I would drop this defconfig patch, and document it for customers to enable through menuconfig.

Will proceed to send the v3 for only dts changes.
Thanks for the time.

Quoted 1 line

You can still have the defconfig build them as modules. Then you can include them in your initramfs.

Dinh

#12 lore raw
Quoted 42 lines
Quoted 32 lines
Quoted 32 lines
Quoted 31 lines
Quoted 20 lines · Kah Jing
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

So you miss init ramdisk.

Currently we are using the bootargs to mount the rootfs from QSPI NOR

flash:

Quoted 1 line
[    0.000000] Kernel command line: earlycon panic=-1 ubi.mtd=1

root=ubi0:rootfs rootfstype=ubifs rw rootwait

Quoted 2 lines

Is it possible to mount the ubifs rootfs with the ubifs=m config during

boot?

Quoted 10 lines
Quoted 3 lines

I think yes. rootfs devices are for example modules, so filesystem can be as well.

Was going through mtd ubifs page -
http://www.linux-mtd.infradead.org/faq/ubifs.html
Quoted: 'In order to mount UBIFS as the root file system, you have to compile UBIFS into the kernel (instead of compiling it as a kernel
module) and specify proper kernel boot arguments and make the kernel

Quoted 4 lines

mount UBIFS on boot.'

Why? Module loaded by initramfs would also understand cmdline arguments, right?

The suggestion is to use initramfs for rootfs -> remount UBIFS as chroot? The concern is additional initrd image and steps to store in the limited NOR flash (256MB, Boot data + Uboot - ~66MB, UBIFS image - ~88MB, kernel.itb - ~10MB = 164MB).
With the mounting Rootfs from UBIFS volume, we can skip the initrd step, and save some space for the user operations.
Let me know if I understands that correctly.

Quoted 2 lines
Quoted 2 lines

arm64 defconfig creates huge development config for all platforms, so why would you ever use it in resource-constrained system? It would

barely fit.

Quoted 7 lines
Quoted 4 lines

defconfig modules take 50 MB alone and you don't need most of them.

I think you misunderstood the purpose of this defconfig and now try to apply some arguments for different use cases.

Understood the point. In this case, I would drop this defconfig patch, and document it for customers to enable through menuconfig.

Quoted 6 lines
Quoted 3 lines

Will proceed to send the v3 for only dts changes.
Thanks for the time.

Quoted 1 line

You can still have the defconfig build them as modules. Then you can include them in your initramfs.

Understood, but we can maintain it as the wiki steps since previously for JFFS2 is part of the rocketboard page for users to follow to enable from menuconfig. Thanks.

Quoted 2 lines

Dinh

Regards,
Lee, Kah Jing