Skip to contentSkip to conversation

: Enable UBIFS support

PATCH Superseded [email protected] 3 participants 8 messages Jun 22, 2023 – Jun 24, 2023

Subsystems (3)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover : Enable UBIFS support

From: Kah Jing Lee <[email protected]>

Hi,
The patchset is to update the qspi mtd partition range for UBIFS on socfpga platform - Agilex and Stratix10 boards.
The subsequent patch is enable the UBIFS in defconfig.

Alif Zakuan Yuslaimi (2):
arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS
arm64: defconfig: Enable UBI and UBIFS

---
v2: Update subject prefix and defconfig config place
---

 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 8 ++++----
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts     | 8 ++++----
 arch/arm64/configs/defconfig                           | 2 ++
 3 files changed, 10 insertions(+), 8 deletions(-)

base-commit: dad9774deaf1cf8e8f7483310dfb2690310193d2

Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS

From: Alif Zakuan Yuslaimi <[email protected]>

This patch is to update the QSPI flash layout to support UBIFS in mtd root partition.

---
v2: Update subject prefix

---
 arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts | 8 ++++----
 arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts     | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts +4 -4
index 38ae674f2f02..12b960b9183c 100644
@@ -202,12 +202,12 @@ partitions {
 
 			qspi_boot: partition@0 {
 				label = "Boot and fpga data";
-				reg = <0x0 0x03FE0000>;
+				reg = <0x0 0x04200000>;
 			};
 
-			qspi_rootfs: partition@3FE0000 {
-				label = "Root Filesystem - JFFS2";
-				reg = <0x03FE0000 0x0C020000>;
+			root: partition@4200000 {
+				label = "Root Filesystem - UBIFS";
+				reg = <0x04200000 0x0BE00000>;
 			};
 		};
 	};
arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts +4 -4
index 07c3f8876613..608017e6e36a 100644
@@ -128,12 +128,12 @@ partitions {
 
 			qspi_boot: partition@0 {
 				label = "Boot and fpga data";
-				reg = <0x0 0x03FE0000>;
+				reg = <0x0 0x04200000>;
 			};
 
-			qspi_rootfs: partition@3FE0000 {
-				label = "Root Filesystem - JFFS2";
-				reg = <0x03FE0000 0x0C020000>;
+			root: partition@4200000 {
+				label = "Root Filesystem - UBIFS";
+				reg = <0x04200000 0x0BE00000>;
 			};
 		};
 	};
Signature · 1 line
2.25.1
#6 lore raw

PATCH v2 2/2 arm64: defconfig: Enable UBI and UBIFS

In reply to [email protected]

From: Alif Zakuan Yuslaimi <[email protected]>

This patch is to enable UBI and UBIFS in Linux defconfig for socfpga Agilex and Stratix10 platform.

---
v2: Update subject prefix and align defconfig config place

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -0
index a24609e14d50..8c3c6fd20d77 100644
@@ -267,6 +267,7 @@ CONFIG_MTD_NAND_BRCMNAND=m
 CONFIG_MTD_NAND_FSL_IFC=y
 CONFIG_MTD_NAND_QCOM=y
 CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_UBI=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_NBD=m
 CONFIG_VIRTIO_BLK=y
@@ -1444,6 +1445,7 @@ CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_HUGETLBFS=y
 CONFIG_CONFIGFS_FS=y
 CONFIG_EFIVAR_FS=y
+CONFIG_UBIFS_FS=y
 CONFIG_SQUASHFS=y
 CONFIG_NFS_FS=y
 CONFIG_NFS_V4=y
Signature · 1 line
2.25.1
#7 lore raw

Re: [PATCH v2 2/2] arm64: defconfig: Enable UBI and UBIFS

Quoted 18 lines · On 22/06/2023 14:36, [email protected] wrote:

From: Alif Zakuan Yuslaimi <[email protected]>

This patch is to enable UBI and UBIFS in Linux defconfig for socfpga Agilex and Stratix10 platform.

---
v2: Update subject prefix and align defconfig config place

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +0 -0
index a24609e14d50..8c3c6fd20d77 100644

arch/arm64/configs/defconfig CONFIG_MTD_NAND_BRCMNAND=m · line 270

Quoted 4 lines
arch/arm64/configs/defconfig +1 -0
@@ -267,6 +267,7 @@ CONFIG_MTD_NAND_BRCMNAND=m
 CONFIG_MTD_NAND_FSL_IFC=y
 CONFIG_MTD_NAND_QCOM=y
 CONFIG_MTD_SPI_NOR=y
+CONFIG_MTD_UBI=y

=m

(and wait till discussion finished)

arch/arm64/configs/defconfig CONFIG_TMPFS_POSIX_ACL=y · line 1448

Quoted 8 lines
arch/arm64/configs/defconfig +1 -0
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_NBD=m
 CONFIG_VIRTIO_BLK=y
@@ -1444,6 +1445,7 @@ CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_HUGETLBFS=y
 CONFIG_CONFIGFS_FS=y
 CONFIG_EFIVAR_FS=y
+CONFIG_UBIFS_FS=y

Also =m

Best regards,
Krzysztof

#3 lore raw

RE: [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS

Quoted 17 lines

-----Original Message-----
From: Markus Elfring <[email protected]>
Sent: Thursday, 22 June, 2023 9:05 PM
To: Yuslaimi, Alif Zakuan <[email protected]>; Lee, Kah Jing <[email protected]>; [email protected]; kernel- [email protected]; Catalin Marinas <[email protected]>; Conor Dooley <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Will Deacon <[email protected]>
Cc: LKML <[email protected]>; [email protected]
Subject: Re: [PATCH v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS

Quoted 2 lines

This patch is to update the QSPI flash layout to support UBIFS in mtd root partition.

Quoted 8 lines

Please replace this sentence by an imperative change suggestion.

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Docu
mentation/process/submitting-patches.rst?h=v6.4-rc7#n94

Regards,
Markus

Updated in v3 - Commit message:
Update the QSPI flash layout to support UBIFS in mtd root partition.
Flash layout is updated in order to store non-UBIFS related boot and fpga data in qspi_boot(mtd0) while keep the rootfs with UBIFS in the root partition(mtd1).

Thanks.

Regards,
Kah Jing

#4 lore raw

Re: [cocci] [v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS

Quoted 4 lines

Updated in v3 - Commit message:
Update the QSPI flash layout to support UBIFS in mtd root partition.
Flash layout is updated in order to store non-UBIFS related boot and fpga data in qspi_boot(mtd0) while keep the rootfs with UBIFS in the root partition(mtd1).

I got the impression that this change description is also improvable a bit. How do you think about a wording variant like the following?

Non-UBIFS related boot and fpga data should be stored in qspi_boot (mtd0) while keeping the rootfs with UBIFS in the root partition “mtd1”. Thus update the QSPI flash layout to support UBIFS in the mtd root partition.

Will similar adjustments become helpful for subsequent update steps?

Regards,
Markus

#5 lore raw

RE: [v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS

Quoted 23 lines

-----Original Message-----
From: Markus Elfring <[email protected]>
Sent: Friday, 23 June, 2023 7:04 PM
To: Lee, Kah Jing <[email protected]>; Yuslaimi, Alif Zakuan <[email protected]>; [email protected]; kernel- [email protected]; Catalin Marinas <[email protected]>; Conor Dooley <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Will Deacon <[email protected]>
Cc: LKML <[email protected]>; [email protected]
Subject: Re: [v2 1/2] arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS

Quoted 4 lines

Updated in v3 - Commit message:
Update the QSPI flash layout to support UBIFS in mtd root partition. Flash layout is updated in order to store non-UBIFS related boot and fpga data in qspi_boot(mtd0) while keep the rootfs with UBIFS in the root

partition(mtd1).

I got the impression that this change description is also improvable a bit. How do you think about a wording variant like the following?

Quoted 6 lines

Non-UBIFS related boot and fpga data should be stored in qspi_boot (mtd0) while keeping the rootfs with UBIFS in the root partition “mtd1”. Thus update the QSPI flash layout to support UBIFS in the mtd root partition.

Will similar adjustments become helpful for subsequent update steps?

Sounds good to me. Will update the commit message for v3. Thanks.

Quoted 3 lines

Regards,
Markus

Regards,
Lee, Kah Jing