Skip to contentSkip to conversation

arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

PATCH New Prabhakar Kushwaha 4 participants 9 messages Dec 26, 2016 – Jan 23, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

---
 include/configs/ls1012afrdm.h | 5 +++++
 include/configs/ls1012aqds.h  | 4 ++++
 include/configs/ls1012ardb.h  | 4 ++++
 include/configs/ls1021aiot.h  | 3 +++
 include/configs/ls1021aqds.h  | 3 +++
 include/configs/ls1021atwr.h  | 3 +++
 include/configs/ls1043aqds.h  | 4 ++++
 include/configs/ls1043ardb.h  | 4 ++++
 include/configs/ls1046aqds.h  | 4 ++++
 include/configs/ls1046ardb.h  | 4 ++++
 include/configs/ls2080aqds.h  | 3 +++
 include/configs/ls2080ardb.h  | 3 +++
 12 files changed, 44 insertions(+)
include/configs/ls1012afrdm.h +5 -0
index f6f88e8..94f7460 100644
@@ -42,6 +42,11 @@
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS      2
 #endif
 
+#define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 #define CONFIG_CMD_MEMINFO
 #define CONFIG_CMD_MEMTEST
 #define CONFIG_SYS_MEMTEST_START	0x80000000
include/configs/ls1012aqds.h +4 -0
index 0cc1791..ec4b825 100644
@@ -154,6 +154,10 @@
 #define CONFIG_SYS_SCSI_MAX_LUN			1
 #define CONFIG_SYS_SCSI_MAX_DEVICE		(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 						CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 #define CONFIG_PCIE1		/* PCIE controller 1 */
 #define CONFIG_PCIE_LAYERSCAPE	/* Use common FSL Layerscape PCIe code */
 #define FSL_PCIE_COMPAT "fsl,ls1043a-pcie"
include/configs/ls1012ardb.h +4 -0
index 15410dd..1e8cc45 100644
@@ -67,6 +67,10 @@
 #define CONFIG_SYS_SCSI_MAX_LUN			1
 #define CONFIG_SYS_SCSI_MAX_DEVICE		(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 						CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 #define CONFIG_PCIE1		/* PCIE controller 1 */
 #define CONFIG_PCIE_LAYERSCAPE	/* Use common FSL Layerscape PCIe code */
 #define FSL_PCIE_COMPAT "fsl,ls1043a-pcie"
include/configs/ls1021aiot.h +3 -0
index 7af4bc4..a441022 100644
@@ -180,6 +180,9 @@
 
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
 
 /* SPI */
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
include/configs/ls1021aqds.h +3 -0
index 128da8a..86b42dd 100644
@@ -398,6 +398,9 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_GENERIC_MMC
 
 #define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
 
 /* SPI */
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
include/configs/ls1021atwr.h +3 -0
index 1458332..25bebc0 100644
@@ -299,6 +299,9 @@
 #define CONFIG_GENERIC_MMC
 
 #define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
 
 /* SPI */
 #if defined(CONFIG_QSPI_BOOT) || defined(CONFIG_SD_BOOT_QSPI)
include/configs/ls1043aqds.h +4 -0
index 561a05a..431c8f8 100644
@@ -100,6 +100,10 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_DOS_PARTITION
 #define CONFIG_BOARD_LATE_INIT
 
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 /* EEPROM */
 #define CONFIG_ID_EEPROM
 #define CONFIG_SYS_I2C_EEPROM_NXID
include/configs/ls1043ardb.h +4 -0
index 71c26bd..36df331 100644
@@ -310,6 +310,10 @@
 #define SCSI_DEV_ID  0x9170
 #define CONFIG_SCSI_DEV_LIST {SCSI_VEND_ID, SCSI_DEV_ID}
 
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 #include <asm/fsl_secure_boot.h>
 
 #endif /* __LS1043ARDB_H__ */
include/configs/ls1046aqds.h +4 -0
index 29e0aa5..3618a06 100644
@@ -143,6 +143,10 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_DOS_PARTITION
 #define CONFIG_BOARD_LATE_INIT
 
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 /* EEPROM */
 #define CONFIG_ID_EEPROM
 #define CONFIG_SYS_I2C_EEPROM_NXID
include/configs/ls1046ardb.h +4 -0
index 2fe8fc1..42597ac 100644
@@ -225,6 +225,10 @@
 #define CONFIG_SYS_SCSI_MAX_LUN			1
 #define CONFIG_SYS_SCSI_MAX_DEVICE		(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 						CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+
 #define CONFIG_BOOTCOMMAND		"sf probe 0:0;sf read $kernel_load" \
 					"$kernel_start $kernel_size;" \
 					"bootm $kernel_load"
include/configs/ls2080aqds.h +3 -0
index 838568f..b3872b5 100644
@@ -63,6 +63,9 @@ unsigned long get_board_ddr_clk(void);
 #define CONFIG_SYS_SCSI_MAX_LUN			1
 #define CONFIG_SYS_SCSI_MAX_DEVICE		(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 						CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
 
 /* undefined CONFIG_FSL_DDR_SYNC_REFRESH for simulator */
 
include/configs/ls2080ardb.h +3 -0
index 31df781..9ffb48c 100644
@@ -71,6 +71,9 @@ unsigned long get_board_sys_clk(void);
 #define CONFIG_SYS_SCSI_MAX_LUN			1
 #define CONFIG_SYS_SCSI_MAX_DEVICE		(CONFIG_SYS_SCSI_MAX_SCSI_ID * \
 						CONFIG_SYS_SCSI_MAX_LUN)
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
 
 /* undefined CONFIG_FSL_DDR_SYNC_REFRESH for simulator */
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Hi Prabhakar Kushwaha,

Quoted 6 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

Quoted 13 lines
---
 include/configs/ls1012afrdm.h | 5 +++++
 include/configs/ls1012aqds.h  | 4 ++++
 include/configs/ls1012ardb.h  | 4 ++++
 include/configs/ls1021aiot.h  | 3 +++
 include/configs/ls1021aqds.h  | 3 +++
 include/configs/ls1021atwr.h  | 3 +++
 include/configs/ls1043aqds.h  | 4 ++++
 include/configs/ls1043ardb.h  | 4 ++++
 include/configs/ls1046aqds.h  | 4 ++++
 include/configs/ls1046ardb.h  | 4 ++++
 include/configs/ls2080aqds.h  | 3 +++
 include/configs/ls2080ardb.h  | 3 +++

I'm not sure this is the expected way today...

Quoted 7 lines
 12 files changed, 44 insertions(+)
include/configs/ls1012afrdm.h +0 -0
index f6f88e8..94f7460 100644

include/configs/ls1012afrdm.h line 49

Quoted 8 lines
include/configs/ls1012afrdm.h +5 -0
@@ -42,6 +42,11 @@
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS      2
 #endif
 
+#define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+

These are the common (not board specific) things and I think today we expect it to come through the Kconfig instead of the old config files.

[...]

Signature · 2 lines
Regards,
Igor.
#2 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Quoted 35 lines · Igor Grinberg

Hi Prabhakar Kushwaha,

Quoted 6 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

Quoted 13 lines
---
 include/configs/ls1012afrdm.h | 5 +++++
 include/configs/ls1012aqds.h  | 4 ++++
 include/configs/ls1012ardb.h  | 4 ++++
 include/configs/ls1021aiot.h  | 3 +++
 include/configs/ls1021aqds.h  | 3 +++
 include/configs/ls1021atwr.h  | 3 +++
 include/configs/ls1043aqds.h  | 4 ++++
 include/configs/ls1043ardb.h  | 4 ++++
 include/configs/ls1046aqds.h  | 4 ++++
 include/configs/ls1046ardb.h  | 4 ++++
 include/configs/ls2080aqds.h  | 3 +++
 include/configs/ls2080ardb.h  | 3 +++

I'm not sure this is the expected way today...

Quoted 10 lines
 12 files changed, 44 insertions(+)
include/configs/ls1012afrdm.h +0 -0
index f6f88e8..94f7460 100644
@@ -42,6 +42,11 @@
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS      2
 #endif
 
Quoted 8 lines

include/configs/ls1012afrdm.h line 49

Quoted 5 lines
include/configs/ls1012afrdm.h +5 -0
+#define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+

These are the common (not board specific) things and I think today we expect it to come through the Kconfig instead of the old config files.

Igor,

They are not totally common. The board has to support the device. I would recommend to use Kconfig as well if such config is in Kconfig. However it is not the case here.

York

#3 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Quoted 45 lines · york sun
Quoted 35 lines · Igor Grinberg

Hi Prabhakar Kushwaha,

Quoted 6 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

Quoted 13 lines
---
 include/configs/ls1012afrdm.h | 5 +++++
 include/configs/ls1012aqds.h  | 4 ++++
 include/configs/ls1012ardb.h  | 4 ++++
 include/configs/ls1021aiot.h  | 3 +++
 include/configs/ls1021aqds.h  | 3 +++
 include/configs/ls1021atwr.h  | 3 +++
 include/configs/ls1043aqds.h  | 4 ++++
 include/configs/ls1043ardb.h  | 4 ++++
 include/configs/ls1046aqds.h  | 4 ++++
 include/configs/ls1046ardb.h  | 4 ++++
 include/configs/ls2080aqds.h  | 3 +++
 include/configs/ls2080ardb.h  | 3 +++

I'm not sure this is the expected way today...

Quoted 10 lines
 12 files changed, 44 insertions(+)
include/configs/ls1012afrdm.h +0 -0
index f6f88e8..94f7460 100644
@@ -42,6 +42,11 @@
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS      2
 #endif
 
Quoted 8 lines

include/configs/ls1012afrdm.h line 49

Quoted 5 lines
include/configs/ls1012afrdm.h +5 -0
+#define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+

These are the common (not board specific) things and I think today we expect it to come through the Kconfig instead of the old config files.

Quoted 5 lines

Igor,

They are not totally common. The board has to support the device. I would recommend to use Kconfig as well if such config is in Kconfig. However it is not the case here.

Right. They are not in Kconfig yet...
We are making efforts to move stuff to Kconfig. Care to land a hand and move these ones to Kconfig?

Signature · 2 lines
Regards,
Igor.
#4 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Quoted 48 lines · Igor Grinberg
Quoted 47 lines · york sun
Quoted 35 lines · Igor Grinberg

Hi Prabhakar Kushwaha,

Quoted 6 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

Quoted 13 lines
---
 include/configs/ls1012afrdm.h | 5 +++++
 include/configs/ls1012aqds.h  | 4 ++++
 include/configs/ls1012ardb.h  | 4 ++++
 include/configs/ls1021aiot.h  | 3 +++
 include/configs/ls1021aqds.h  | 3 +++
 include/configs/ls1021atwr.h  | 3 +++
 include/configs/ls1043aqds.h  | 4 ++++
 include/configs/ls1043ardb.h  | 4 ++++
 include/configs/ls1046aqds.h  | 4 ++++
 include/configs/ls1046ardb.h  | 4 ++++
 include/configs/ls2080aqds.h  | 3 +++
 include/configs/ls2080ardb.h  | 3 +++

I'm not sure this is the expected way today...

Quoted 10 lines
 12 files changed, 44 insertions(+)
include/configs/ls1012afrdm.h +0 -0
index f6f88e8..94f7460 100644
@@ -42,6 +42,11 @@
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS      2
 #endif
 
Quoted 8 lines

include/configs/ls1012afrdm.h line 49

Quoted 5 lines
include/configs/ls1012afrdm.h +5 -0
+#define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+

These are the common (not board specific) things and I think today we expect it to come through the Kconfig instead of the old config files.

Igor,

Quoted 8 lines
Quoted 3 lines

They are not totally common. The board has to support the device. I would recommend to use Kconfig as well if such config is in Kconfig. However it is not the case here.

Right. They are not in Kconfig yet...
We are making efforts to move stuff to Kconfig. Care to land a hand and move these ones to Kconfig?

Can't promise. I have been doing just that for powerpc. Still have many left.

York

#5 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Quoted 53 lines · york sun
Quoted 52 lines · Igor Grinberg
Quoted 50 lines · york sun
Quoted 35 lines · Igor Grinberg

Hi Prabhakar Kushwaha,

Quoted 6 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

Quoted 13 lines
---
 include/configs/ls1012afrdm.h | 5 +++++
 include/configs/ls1012aqds.h  | 4 ++++
 include/configs/ls1012ardb.h  | 4 ++++
 include/configs/ls1021aiot.h  | 3 +++
 include/configs/ls1021aqds.h  | 3 +++
 include/configs/ls1021atwr.h  | 3 +++
 include/configs/ls1043aqds.h  | 4 ++++
 include/configs/ls1043ardb.h  | 4 ++++
 include/configs/ls1046aqds.h  | 4 ++++
 include/configs/ls1046ardb.h  | 4 ++++
 include/configs/ls2080aqds.h  | 3 +++
 include/configs/ls2080ardb.h  | 3 +++

I'm not sure this is the expected way today...

Quoted 10 lines
 12 files changed, 44 insertions(+)
include/configs/ls1012afrdm.h +0 -0
index f6f88e8..94f7460 100644
@@ -42,6 +42,11 @@
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS      2
 #endif
 
Quoted 8 lines

include/configs/ls1012afrdm.h line 49

Quoted 5 lines
include/configs/ls1012afrdm.h +5 -0
+#define CONFIG_DOS_PARTITION
+#define CONFIG_PARTITION_UUIDS
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_GPT
+

These are the common (not board specific) things and I think today we expect it to come through the Kconfig instead of the old config files.

Igor,

They are not totally common. The board has to support the device. I would recommend to use Kconfig as well if such config is in Kconfig. However it is not the case here.

Quoted 7 lines
Quoted 4 lines

Right. They are not in Kconfig yet...
We are making efforts to move stuff to Kconfig. Care to land a hand and move these ones to Kconfig?

Can't promise. I have been doing just that for powerpc. Still have many left.

Yeah, great job on those patches! Thanks!
I think it is still worth waiting instead of applying and moving afterwards...

Signature · 2 lines
Regards,
Igor.
Applied
#6 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

In reply to Prabhakar Kushwaha
Quoted 7 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

---

Applied to fsl-qoriq master, awaiting upstream. Thanks.

York

#7 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Quoted 10 lines · york sun
Quoted 7 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

---

Applied to fsl-qoriq master, awaiting upstream. Thanks.

Well, of course it is your call, but that's sad.
Why not request people to move things to Kconfig?

I would suggest removing these from scripts/config_whitelist.txt...

Signature · 2 lines
Regards,
Igor.
#8 lore raw

PATCH 1/1 arm: layerscape: Enable UUID & GPT partition for NXP's ARM SoC

Quoted 10 lines · Igor Grinberg
Quoted 9 lines · york sun
Quoted 7 lines · Prabhakar Kushwaha

Enable UUID and GPT partition support for NXP's ARM based SoCs i.e. LS1012A, LS1021A, LS1043A, LS1046A and LS2080A.

Also enable DOS partition for LS1012AFRDM boards.

---

Quoted 6 lines
Quoted 1 line

Applied to fsl-qoriq master, awaiting upstream. Thanks.

Well, of course it is your call, but that's sad.
Why not request people to move things to Kconfig?

I would suggest removing these from scripts/config_whitelist.txt...

The problem with the partition table and related options is that it ends up being a non-trivial conversion to do and remain size neutral. Patrick, have you had a chance to look at your patch again? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170123/d7f4d096/attachment.sig>