Skip to contentSkip to conversation

ARM: omapl138_lcdk: Separate BSS in SPL

PATCH New Adam Ford 3 participants 9 messages Nov 10, 2019 – Dec 4, 2019

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

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.

configs/omapl138_lcdk_defconfig +1 -0
index 16287a4ac2..cceb0c408e 100644
@@ -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
Signature · 1 line
2.20.1
author
#1 lore raw

PATCH 2/3 ARM: omapl138_lcdk: Increase malloc pool before relocation

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.

configs/omapl138_lcdk_defconfig +1 -0
index cceb0c408e..376bb9f953 100644
@@ -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
Signature · 1 line
2.20.1
#2 lore raw

PATCH 2/3 ARM: omapl138_lcdk: Increase malloc pool before relocation

niedz., 10 lis 2019 o 15:01 Adam Ford <[email protected]> napisaÅ‚(a):

Quoted 20 lines

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.

configs/omapl138_lcdk_defconfig +1 -1
index cceb0c408e..376bb9f953 100644
@@ -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
--
Quoted 2 lines

2.20.1

#3 lore raw

PATCH 2/3 ARM: omapl138_lcdk: Increase malloc pool before relocation

In reply to Adam Ford

configs/omapl138_lcdk_defconfig

Quoted 10 lines · Adam Ford

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.

configs/omapl138_lcdk_defconfig +0 -0
index cceb0c408e..376bb9f953 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191203/1994955b/attachment.sig>
author
#4 lore raw

PATCH 3/3 ARM: omapl138_lcdk: Enable SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE

In reply to Adam Ford

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

configs/omapl138_lcdk_defconfig +2 -0
index 376bb9f953..c95d06b551 100644
@@ -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
Signature · 1 line
2.20.1
#5 lore raw

PATCH 3/3 ARM: omapl138_lcdk: Enable SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE

niedz., 10 lis 2019 o 15:01 Adam Ford <[email protected]> napisaÅ‚(a):

Quoted 22 lines

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

configs/omapl138_lcdk_defconfig +2 -1
index 376bb9f953..c95d06b551 100644
@@ -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
--
Quoted 2 lines

2.20.1

#6 lore raw

PATCH 3/3 ARM: omapl138_lcdk: Enable SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE

In reply to Adam Ford

configs/omapl138_lcdk_defconfig

Quoted 11 lines · Adam Ford

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

configs/omapl138_lcdk_defconfig +0 -0
index 376bb9f953..c95d06b551 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191203/67c13a49/attachment.sig>
#7 lore raw

PATCH 1/3 ARM: omapl138_lcdk: Separate BSS in SPL

In reply to Adam Ford

niedz., 10 lis 2019 o 15:01 Adam Ford <[email protected]> napisaÅ‚(a):

Quoted 21 lines

In preparation to use full device tree support, SPL can separate BSS from text region.

This patch enables SPL_SEPARATE_BSS.

configs/omapl138_lcdk_defconfig +1 -1
index 16287a4ac2..cceb0c408e 100644
@@ -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
--
Quoted 2 lines

2.20.1

#8 lore raw

PATCH 1/3 ARM: omapl138_lcdk: Separate BSS in SPL

In reply to Adam Ford

configs/omapl138_lcdk_defconfig

Quoted 11 lines · Adam Ford

In preparation to use full device tree support, SPL can separate BSS from text region.

This patch enables SPL_SEPARATE_BSS.

configs/omapl138_lcdk_defconfig +0 -0
index 16287a4ac2..cceb0c408e 100644

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191203/49ecfa91/attachment.sig>