Skip to contentSkip to conversation

configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

PATCH Superseded Sumit Garg 3 participants 6 messages Aug 25, 2017 – Sep 7, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sumit Garg

author
#0 lore raw

PATCH v2 1/1 configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot.

---

Changes in v2:
Instead of adding CMD_EXT4_WRITE option in each defconfig, added this option in Kconfig.

 board/freescale/common/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
board/freescale/common/Kconfig +2 -0
index 53b606e..3496eed 100644
@@ -6,6 +6,8 @@ config CHAIN_OF_TRUST
 	select SPL_BOARD_INIT if (ARM && SPL)
 	select SHA_HW_ACCEL
 	select SHA_PROG_HW_ACCEL
+	select CMD_EXT4
+	select CMD_EXT4_WRITE
 	bool
 	default y
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 6 lines · Sumit Garg

As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot.

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/20170826/de002a2e/attachment.sig>
#2 lore raw

PATCH v2 1/1 configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

In reply to Sumit Garg
Quoted 20 lines · Sumit Garg

As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot.

---

Changes in v2:
Instead of adding CMD_EXT4_WRITE option in each defconfig, added this option in Kconfig.

  board/freescale/common/Kconfig | 2 ++
  1 file changed, 2 insertions(+)
board/freescale/common/Kconfig +0 -0
index 53b606e..3496eed 100644

board/freescale/common/Kconfig config CHAIN_OF_TRUST · line 12

Quoted 7 lines
board/freescale/common/Kconfig +2 -0
@@ -6,6 +6,8 @@ config CHAIN_OF_TRUST
  	select SPL_BOARD_INIT if (ARM && SPL)
  	select SHA_HW_ACCEL
  	select SHA_PROG_HW_ACCEL
+	select CMD_EXT4
+	select CMD_EXT4_WRITE
  	bool
  	default y

Are you going to need this for all PowerPC platforms? This changes increases 3K in text section.

Will Ruchika confirm?

York

author
#3 lore raw

PATCH v2 1/1 configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 41 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, September 06, 2017 9:47 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; trini at konsulko.com
Subject: Re: [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 20 lines · Sumit Garg

As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot.

---

Changes in v2:
Instead of adding CMD_EXT4_WRITE option in each defconfig, added this option in Kconfig.

  board/freescale/common/Kconfig | 2 ++
  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/freescale/common/Kconfig index 53b606e..3496eed 100644

board/freescale/common/Kconfig config CHAIN_OF_TRUST · line 12

Quoted 7 lines
board/freescale/common/Kconfig +2 -0
@@ -6,6 +6,8 @@ config CHAIN_OF_TRUST
  	select SPL_BOARD_INIT if (ARM && SPL)
  	select SHA_HW_ACCEL
  	select SHA_PROG_HW_ACCEL
+	select CMD_EXT4
+	select CMD_EXT4_WRITE
  	bool
  	default y

Are you going to need this for all PowerPC platforms? This changes increases 3K in text section.

Quoted 3 lines

Will Ruchika confirm?

York

We don't need this option on PowerPC platforms as we currently don't support distro boot on PowerPC platforms. So we can enable this option for ARM platforms only.

Sumit

#4 lore raw

PATCH v2 1/1 configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 41 lines · Sumit Garg
Quoted 41 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, September 06, 2017 9:47 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; trini at konsulko.com
Subject: Re: [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 20 lines · Sumit Garg

As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot.

---

Changes in v2:
Instead of adding CMD_EXT4_WRITE option in each defconfig, added this option in Kconfig.

   board/freescale/common/Kconfig | 2 ++
   1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/freescale/common/Kconfig index 53b606e..3496eed 100644

board/freescale/common/Kconfig config CHAIN_OF_TRUST · line 12

Quoted 7 lines
board/freescale/common/Kconfig +2 -0
@@ -6,6 +6,8 @@ config CHAIN_OF_TRUST
   	select SPL_BOARD_INIT if (ARM && SPL)
   	select SHA_HW_ACCEL
   	select SHA_PROG_HW_ACCEL
+	select CMD_EXT4
+	select CMD_EXT4_WRITE
   	bool
   	default y

Are you going to need this for all PowerPC platforms? This changes increases 3K in text section.

Quoted 6 lines
Quoted 3 lines

Will Ruchika confirm?

York

We don't need this option on PowerPC platforms as we currently don't support distro boot on PowerPC platforms. So we can enable this option for ARM platforms only.

Please update the patch to enable these options selectively.

York

author
#5 lore raw

PATCH v2 1/1 configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 55 lines

-----Original Message-----
From: York Sun
Sent: Thursday, September 07, 2017 9:01 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; trini at konsulko.com
Subject: Re: [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 45 lines · Sumit Garg
Quoted 44 lines

-----Original Message-----
From: York Sun
Sent: Wednesday, September 06, 2017 9:47 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; trini at konsulko.com
Subject: Re: [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

Quoted 20 lines · Sumit Garg

As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot.

---

Changes in v2:
Instead of adding CMD_EXT4_WRITE option in each defconfig, added this option in Kconfig.

   board/freescale/common/Kconfig | 2 ++
   1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/board/freescale/common/Kconfig index 53b606e..3496eed 100644

board/freescale/common/Kconfig config CHAIN_OF_TRUST · line 12

Quoted 7 lines
board/freescale/common/Kconfig +2 -0
@@ -6,6 +6,8 @@ config CHAIN_OF_TRUST
   	select SPL_BOARD_INIT if (ARM && SPL)
   	select SHA_HW_ACCEL
   	select SHA_PROG_HW_ACCEL
+	select CMD_EXT4
+	select CMD_EXT4_WRITE
   	bool
   	default y

Are you going to need this for all PowerPC platforms? This changes increases 3K in text section.

Will Ruchika confirm?

York

Quoted 7 lines
Quoted 2 lines

We don't need this option on PowerPC platforms as we currently don't support distro boot on PowerPC platforms. So we can enable this option for

ARM platforms only.

Please update the patch to enable these options selectively.

York

Sure I will send this change in v3.

Sumit