[U-Boot] [PATCH 1/3] ARM: omapl138_lcdk: Separate BSS in SPL

In preparation to use full device tree support, SPL can separate BSS from text region.
This patch enables SPL_SEPARATE_BSS.
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 16287a4ac2..cceb0c408e 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -20,6 +20,7 @@ CONFIG_VERSION_VARIABLE=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xb5 CONFIG_SPL_NAND_SUPPORT=y CONFIG_HUSH_PARSER=y

Driver model requires a malloc pool to allocate memory before relocations to operate serial and some other devices. This patch increases the pool size to 2K.
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index cceb0c408e..376bb9f953 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -8,6 +8,7 @@ CONFIG_SYS_DA850_PLL1_PLLDIV3=0x8003 CONFIG_TI_COMMON_CMD_OPTIONS=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x800 CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_NR_DRAM_BANKS=1

niedz., 10 lis 2019 o 15:01 Adam Ford aford173@gmail.com napisał(a):
Driver model requires a malloc pool to allocate memory before relocations to operate serial and some other devices. This patch increases the pool size to 2K.
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index cceb0c408e..376bb9f953 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -8,6 +8,7 @@ CONFIG_SYS_DA850_PLL1_PLLDIV3=0x8003 CONFIG_TI_COMMON_CMD_OPTIONS=y CONFIG_SPL_LIBCOMMON_SUPPORT=y CONFIG_SPL_LIBGENERIC_SUPPORT=y +CONFIG_SYS_MALLOC_F_LEN=0x800 CONFIG_SPL_MMC_SUPPORT=y CONFIG_SPL_SERIAL_SUPPORT=y CONFIG_NR_DRAM_BANKS=1 -- 2.20.1
Tested-by: Bartosz Golaszewski bgolaszewski@baylibre.com Reviewed-by: Bartosz Golaszewski bgolaszewski@baylibre.com

On Sun, Nov 10, 2019 at 08:01:32AM -0600, Adam Ford wrote:
Driver model requires a malloc pool to allocate memory before relocations to operate serial and some other devices. This patch increases the pool size to 2K.
Signed-off-by: Adam Ford aford173@gmail.com Tested-by: Bartosz Golaszewski bgolaszewski@baylibre.com Reviewed-by: Bartosz Golaszewski bgolaszewski@baylibre.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index cceb0c408e..376bb9f953 100644
Applied to u-boot/master, thanks!

In order to further prepare for full device tree support in SPL, this patch enables both SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE. Both of these are already enabled in U-Boot, so SPL will have the same functionality
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 376bb9f953..c95d06b551 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -44,6 +44,8 @@ CONFIG_ENV_IS_IN_NAND=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DM=y CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_SPL_OF_TRANSLATE=y CONFIG_DM_GPIO=y CONFIG_DA8XX_GPIO=y CONFIG_DM_I2C=y

niedz., 10 lis 2019 o 15:01 Adam Ford aford173@gmail.com napisał(a):
In order to further prepare for full device tree support in SPL, this patch enables both SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE. Both of these are already enabled in U-Boot, so SPL will have the same functionality
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 376bb9f953..c95d06b551 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -44,6 +44,8 @@ CONFIG_ENV_IS_IN_NAND=y CONFIG_NET_RANDOM_ETHADDR=y CONFIG_DM=y CONFIG_SPL_DM=y +CONFIG_SPL_DM_SEQ_ALIAS=y +CONFIG_SPL_OF_TRANSLATE=y CONFIG_DM_GPIO=y CONFIG_DA8XX_GPIO=y CONFIG_DM_I2C=y -- 2.20.1
Tested-by: Bartosz Golaszewski bgolaszewski@baylibre.com Reviewed-by: Bartosz Golaszewski bgolaszewski@baylibre.com

On Sun, Nov 10, 2019 at 08:01:33AM -0600, Adam Ford wrote:
In order to further prepare for full device tree support in SPL, this patch enables both SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE. Both of these are already enabled in U-Boot, so SPL will have the same functionality
Signed-off-by: Adam Ford aford173@gmail.com Tested-by: Bartosz Golaszewski bgolaszewski@baylibre.com Reviewed-by: Bartosz Golaszewski bgolaszewski@baylibre.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 376bb9f953..c95d06b551 100644
Applied to u-boot/master, thanks!

niedz., 10 lis 2019 o 15:01 Adam Ford aford173@gmail.com napisał(a):
In preparation to use full device tree support, SPL can separate BSS from text region.
This patch enables SPL_SEPARATE_BSS.
Signed-off-by: Adam Ford aford173@gmail.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 16287a4ac2..cceb0c408e 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -20,6 +20,7 @@ CONFIG_VERSION_VARIABLE=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y +CONFIG_SPL_SEPARATE_BSS=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xb5 CONFIG_SPL_NAND_SUPPORT=y CONFIG_HUSH_PARSER=y -- 2.20.1
Tested-by: Bartosz Golaszewski bgolaszewski@baylibre.com Reviewed-by: Bartosz Golaszewski bgolaszewski@baylibre.com

On Sun, Nov 10, 2019 at 08:01:31AM -0600, Adam Ford wrote:
In preparation to use full device tree support, SPL can separate BSS from text region.
This patch enables SPL_SEPARATE_BSS.
Signed-off-by: Adam Ford aford173@gmail.com Tested-by: Bartosz Golaszewski bgolaszewski@baylibre.com Reviewed-by: Bartosz Golaszewski bgolaszewski@baylibre.com
diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 16287a4ac2..cceb0c408e 100644
Applied to u-boot/master, thanks!
participants (3)
-
Adam Ford
-
Bartosz Golaszewski
-
Tom Rini