-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
83 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 912ba711f3d740c0797edc1de9d1ee2d9b907f6e Mon Sep 17 00:00:00 2001 | ||
From 1616438ea56412aa7948701ebd8516d1438b8d13 Mon Sep 17 00:00:00 2001 | ||
From: Ayoub Zaki <[email protected]> | ||
Date: Wed, 27 Dec 2023 15:05:24 +0700 | ||
Subject: [PATCH 1/4] add signature nodes to dts files | ||
|
@@ -10,7 +10,7 @@ Signed-off-by: Ayoub Zaki <[email protected]> | |
2 files changed, 16 insertions(+) | ||
|
||
diff --git a/arch/arm/dts/stm32mp157c-dk2.dts b/arch/arm/dts/stm32mp157c-dk2.dts | ||
index 41d01a769c2..21c450a7719 100644 | ||
index 55126617bf..ae2bbeb130 100644 | ||
--- a/arch/arm/dts/stm32mp157c-dk2.dts | ||
+++ b/arch/arm/dts/stm32mp157c-dk2.dts | ||
@@ -18,6 +18,14 @@ | ||
|
@@ -29,7 +29,7 @@ index 41d01a769c2..21c450a7719 100644 | |
ethernet0 = ðernet0; | ||
serial3 = &usart2; | ||
diff --git a/arch/arm/dts/stm32mp157f-dk2.dts b/arch/arm/dts/stm32mp157f-dk2.dts | ||
index c07a360f687..552f4edb6ee 100644 | ||
index f18aa8c35f..cd93eed192 100644 | ||
--- a/arch/arm/dts/stm32mp157f-dk2.dts | ||
+++ b/arch/arm/dts/stm32mp157f-dk2.dts | ||
@@ -18,6 +18,14 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
From 0c4a60782d0863240e0ed579e107c5ffd1e5aac5 Mon Sep 17 00:00:00 2001 | ||
From a92099b60b60d201f6a419de0a61968967718d1e Mon Sep 17 00:00:00 2001 | ||
From: Ayoub Zaki <[email protected]> | ||
Date: Wed, 27 Dec 2023 15:06:02 +0700 | ||
Date: Wed, 31 Jul 2024 17:49:33 +0200 | ||
Subject: [PATCH 2/4] shift kernel load address | ||
|
||
Signed-off-by: Ayoub Zaki <[email protected]> | ||
|
@@ -9,18 +9,18 @@ Signed-off-by: Ayoub Zaki <[email protected]> | |
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/include/configs/stm32mp15_common.h b/include/configs/stm32mp15_common.h | ||
index bd8e16bc1b9..ecd00327c29 100644 | ||
index 50a989332d..55ad90c54d 100644 | ||
--- a/include/configs/stm32mp15_common.h | ||
+++ b/include/configs/stm32mp15_common.h | ||
@@ -123,7 +123,7 @@ | ||
@@ -114,7 +114,7 @@ | ||
* 1M fdt, 1M script, 1M pxe and 1M for overlay | ||
* and the ramdisk at the end. | ||
*/ | ||
-#define __KERNEL_ADDR_R __stringify(0xc2000000) | ||
+#define __KERNEL_ADDR_R __stringify(0xc8000000) | ||
#define __FDT_ADDR_R __stringify(0xc4000000) | ||
#define __SCRIPT_ADDR_R __stringify(0xc4100000) | ||
#define __PXEFILE_ADDR_R __stringify(0xc4200000) | ||
#define __FDT_ADDR_R __stringify(0xc6000000) | ||
#define __SCRIPT_ADDR_R __stringify(0xc6100000) | ||
#define __PXEFILE_ADDR_R __stringify(0xc6200000) | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
From 100981de9788ee6a854685ce39c6043963076d18 Mon Sep 17 00:00:00 2001 | ||
From d63dbde80546af992b6dfde0eadc3f3cf7e80187 Mon Sep 17 00:00:00 2001 | ||
From: Ayoub Zaki <[email protected]> | ||
Date: Wed, 27 Dec 2023 15:07:18 +0700 | ||
Date: Wed, 31 Jul 2024 17:50:34 +0200 | ||
Subject: [PATCH 3/4] rework CONFIG_EXTRA_ENV_SETTINGS | ||
|
||
Signed-off-by: Ayoub Zaki <[email protected]> | ||
|
@@ -9,10 +9,10 @@ Signed-off-by: Ayoub Zaki <[email protected]> | |
1 file changed, 29 insertions(+), 13 deletions(-) | ||
|
||
diff --git a/include/configs/stm32mp15_st_common.h b/include/configs/stm32mp15_st_common.h | ||
index e9bfbc482ef..3218118d8df 100644 | ||
index 7b0ed0a121..39c97b13e0 100644 | ||
--- a/include/configs/stm32mp15_st_common.h | ||
+++ b/include/configs/stm32mp15_st_common.h | ||
@@ -28,21 +28,24 @@ | ||
@@ -28,28 +28,44 @@ | ||
* for nor boot, distro boot on SD card = mmc0 ONLY ! | ||
*/ | ||
#define ST_STM32MP1_BOOTCMD "bootcmd_stm32mp=" \ | ||
|
@@ -49,8 +49,7 @@ index e9bfbc482ef..3218118d8df 100644 | |
#undef CONFIG_EXTRA_ENV_SETTINGS | ||
#define CONFIG_EXTRA_ENV_SETTINGS \ | ||
STM32MP_MEM_LAYOUT \ | ||
@@ -50,7 +53,20 @@ | ||
STM32MP_PARTS_DEFAULT \ | ||
ST_STM32MP1_BOOTCMD \ | ||
BOOTENV \ | ||
STM32MP_EXTRA \ | ||
- STM32MP_BOARD_EXTRA_ENV | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
From 52a49165ed1c44a42fee1d9ba393044ada5e8e8b Mon Sep 17 00:00:00 2001 | ||
From 93c29bdf97040789b477575dbbbfdeefd239d50a Mon Sep 17 00:00:00 2001 | ||
From: Ayoub Zaki <[email protected]> | ||
Date: Wed, 27 Dec 2023 15:07:36 +0700 | ||
Subject: [PATCH 4/4] rework stm32mp15x defconfig | ||
Date: Wed, 31 Jul 2024 17:55:07 +0200 | ||
Subject: [PATCH] rework stm32mp15x defconfig | ||
|
||
Signed-off-by: Ayoub Zaki <[email protected]> | ||
--- | ||
configs/stm32mp15_defconfig | 26 ++++++++++++++++---------- | ||
1 file changed, 16 insertions(+), 10 deletions(-) | ||
|
||
diff --git a/configs/stm32mp15_defconfig b/configs/stm32mp15_defconfig | ||
index be25aaa7885..5908a573b2d 100644 | ||
index 5f3fbac002..03c1e59040 100644 | ||
--- a/configs/stm32mp15_defconfig | ||
+++ b/configs/stm32mp15_defconfig | ||
@@ -2,14 +2,15 @@ CONFIG_ARM=y | ||
@@ -2,14 +2,14 @@ CONFIG_ARM=y | ||
CONFIG_ARCH_STM32MP=y | ||
CONFIG_TFABOOT=y | ||
CONFIG_SYS_MALLOC_F_LEN=0x80000 | ||
-CONFIG_ENV_OFFSET=0x900000 | ||
CONFIG_ENV_SECT_SIZE=0x40000 | ||
+CONFIG_ENV_OFFSET=0x280000 | ||
CONFIG_ENV_SECT_SIZE=0x40000 | ||
CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1" | ||
CONFIG_SYS_PROMPT="STM32MP> " | ||
+CONFIG_BOOTCOUNT_BOOTLIMIT=3 | ||
CONFIG_DDR_CACHEABLE_SIZE=0x8000000 | ||
CONFIG_CMD_STM32KEY=y | ||
CONFIG_TARGET_ST_STM32MP15X=y | ||
|
@@ -30,15 +29,7 @@ index be25aaa7885..5908a573b2d 100644 | |
CONFIG_CMD_STM32PROG=y | ||
# CONFIG_ARMV7_NONSEC is not set | ||
CONFIG_SYS_LOAD_ADDR=0xc2000000 | ||
@@ -43,6 +44,7 @@ CONFIG_CMD_USB=y | ||
CONFIG_CMD_USB_MASS_STORAGE=y | ||
CONFIG_SYS_DISABLE_AUTOLOAD=y | ||
CONFIG_CMD_BMP=y | ||
+CONFIG_CMD_BOOTCOUNT=y | ||
CONFIG_CMD_CACHE=y | ||
CONFIG_CMD_EFIDEBUG=y | ||
CONFIG_CMD_TIME=y | ||
@@ -54,19 +56,14 @@ CONFIG_CMD_EXT4_WRITE=y | ||
@@ -60,17 +60,10 @@ CONFIG_CMD_EXT4_WRITE=y | ||
CONFIG_CMD_LOG=y | ||
CONFIG_CMD_UBI=y | ||
CONFIG_OF_LIVE=y | ||
|
@@ -54,25 +45,15 @@ index be25aaa7885..5908a573b2d 100644 | |
CONFIG_SYS_RELOC_GD_ENV_ADDR=y | ||
-CONFIG_SYS_MMC_ENV_DEV=-1 | ||
-CONFIG_ENV_MMC_USE_DT=y | ||
+# CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG is not set | ||
CONFIG_TFTP_TSIZE=y | ||
CONFIG_STM32_ADC=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
CONFIG_CLK_SCMI=y | ||
CONFIG_SET_DFU_ALT_INFO=y | ||
CONFIG_USB_FUNCTION_FASTBOOT=y | ||
@@ -164,6 +161,7 @@ CONFIG_BMP_16BPP=y | ||
CONFIG_BMP_24BPP=y | ||
CONFIG_BMP_32BPP=y | ||
CONFIG_WDT=y | ||
@@ -187,3 +180,16 @@ CONFIG_FWU_MULTI_BANK_UPDATE=y | ||
CONFIG_FWU_MDATA_V2=y | ||
# CONFIG_TOOLS_MKEFICAPSULE is not set | ||
# CONFIG_TOOLS_MKFWUMDATA is not set | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_WDT_STM32MP=y | ||
CONFIG_WDT_ARM_SMC=y | ||
CONFIG_WDT_STM32MP=y | ||
# CONFIG_BINMAN_FDT is not set | ||
@@ -174,3 +169,11 @@ CONFIG_ERRNO_STR=y | ||
# CONFIG_LMB_USE_MAX_REGIONS is not set | ||
CONFIG_LMB_MEMORY_REGIONS=2 | ||
CONFIG_LMB_RESERVED_REGIONS=16 | ||
+CONFIG_VIDEO_LOGO=y | ||
+CONFIG_SPLASH_SCREEN=y | ||
+CONFIG_SPLASH_SCREEN_ALIGN=y | ||
|
@@ -81,10 +62,8 @@ index be25aaa7885..5908a573b2d 100644 | |
+CONFIG_ECDSA=y | ||
+CONFIG_ECDSA_VERIFY=y | ||
+CONFIG_OF_CONTROL=y | ||
+CONFIG_ENV_WRITEABLE_LIST=y | ||
+CONFIG_ENV_FLAGS_LIST_DEFAULT="active_system:dw" | ||
+CONFIG_ENV_FLAGS_LIST_STATIC="active_system:dw" | ||
|
||
+# CONFIG_ENV_WRITEABLE_LIST=y | ||
+# CONFIG_ENV_FLAGS_LIST_DEFAULT="active_system:dw" | ||
+# CONFIG_ENV_FLAGS_LIST_STATIC="active_system:dw" | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
require linux-stm32.inc | ||
|
||
LINUX_VERSION = "6.1.28" | ||
LINUX_VERSION = "6.1.82" | ||
SRCBRANCH = "v6.1-stm32mp" | ||
SRCREV = "7928f69738d2e57ee2a0dba6e9e680a3bf75ded9" | ||
SRCREV = "4c4175804a542f40c50d091cc694bb0b186728a0" | ||
|
||
LIC_FILES_CHKSUM = "file://${S}/COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
|
||
SRC_URI += "file://defconfig" | ||
SRC_URI += "https://cdn.kernel.org/pub/linux/kernel/projects/rt/6.1/older/patch-6.1.28-rt10.patch.gz;sha256sum=e3686855cd31a6856d40ea3601422e5ebb073d4733263c1f1e7d506a84dcd6c6" | ||
SRC_URI += "https://cdn.kernel.org/pub/linux/kernel/projects/rt/6.1/older/patch-6.1.82-rt27.patch.gz;sha256sum=5381b4f6da5f13aa285bd980c8af695366bc3e330aa377ea0e01699270c8696f" | ||
SRC_URI += "${@bb.utils.contains('MACHINE_FEATURES', 'rt', 'file://rt-preempt.cfg', '', d)}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters