mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT
@ 2018-04-26 17:56 Alexander Kurz
  2018-04-26 17:56 ` [PATCH 2/2] ARM omap beagle defconfig: remove trace initcalls Alexander Kurz
  2018-05-02 10:28 ` [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Kurz @ 2018-04-26 17:56 UTC (permalink / raw)
  To: barebox, Sascha Hauer; +Cc: Alexander Kurz

The first stage loader must run in SRAM and is limited in size.
Remove unused support to load drivers from DT at this stage and
save precious 9kB of code size.
Regenerating the defconfig removes CONFIG_TEXT_BASE.

Signed-off-by: Alexander Kurz <akurz@blala.de>
---
 arch/arm/configs/omap3530_beagle_xload_defconfig | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/arm/configs/omap3530_beagle_xload_defconfig b/arch/arm/configs/omap3530_beagle_xload_defconfig
index d36aaf319..2105c0b9d 100644
--- a/arch/arm/configs/omap3530_beagle_xload_defconfig
+++ b/arch/arm/configs/omap3530_beagle_xload_defconfig
@@ -8,7 +8,6 @@ CONFIG_THUMB2_BAREBOX=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
 CONFIG_ARM_UNWIND=y
 CONFIG_MMU=y
-CONFIG_TEXT_BASE=0x0
 CONFIG_STACK_SIZE=0xc00
 CONFIG_MALLOC_SIZE=0x0
 CONFIG_MALLOC_DUMMY=y
@@ -18,7 +17,6 @@ CONFIG_SHELL_NONE=y
 # CONFIG_ERRNO_MESSAGES is not set
 # CONFIG_TIMESTAMP is not set
 CONFIG_CONSOLE_SIMPLE=y
-CONFIG_OFDEVICE=y
 CONFIG_DRIVER_SERIAL_NS16550=y
 CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
 # CONFIG_SPI is not set
@@ -36,7 +34,6 @@ CONFIG_MCI=y
 CONFIG_MCI_STARTUP=y
 # CONFIG_MCI_WRITE is not set
 CONFIG_MCI_OMAP_HSMMC=y
-# CONFIG_PINCTRL is not set
 # CONFIG_FS_RAMFS is not set
 # CONFIG_FS_DEVFS is not set
 CONFIG_FS_FAT=y
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM omap beagle defconfig: remove trace initcalls
  2018-04-26 17:56 [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT Alexander Kurz
@ 2018-04-26 17:56 ` Alexander Kurz
  2018-05-02 10:28 ` [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Kurz @ 2018-04-26 17:56 UTC (permalink / raw)
  To: barebox, Sascha Hauer; +Cc: Alexander Kurz

Debug output may be switched on when needed, but should not be on by default.
Regenerating the defconfig removes CONFIG_TEXT_BASE.

Signed-off-by: Alexander Kurz <akurz@blala.de>
---
 arch/arm/configs/omap3530_beagle_defconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/configs/omap3530_beagle_defconfig b/arch/arm/configs/omap3530_beagle_defconfig
index b454cf2b4..cf7914855 100644
--- a/arch/arm/configs/omap3530_beagle_defconfig
+++ b/arch/arm/configs/omap3530_beagle_defconfig
@@ -5,7 +5,6 @@ CONFIG_THUMB2_BAREBOX=y
 CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
 CONFIG_ARM_UNWIND=y
 CONFIG_MMU=y
-CONFIG_TEXT_BASE=0x0
 CONFIG_MALLOC_SIZE=0x0
 CONFIG_MALLOC_TLSF=y
 CONFIG_KALLSYMS=y
@@ -26,7 +25,6 @@ CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
 CONFIG_RESET_SOURCE=y
 CONFIG_DEBUG_LL=y
 CONFIG_DEBUG_OMAP_UART_PORT=3
-CONFIG_DEBUG_INITCALLS=y
 CONFIG_CMD_DMESG=y
 CONFIG_LONGHELP=y
 CONFIG_CMD_IOMEM=y
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT
  2018-04-26 17:56 [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT Alexander Kurz
  2018-04-26 17:56 ` [PATCH 2/2] ARM omap beagle defconfig: remove trace initcalls Alexander Kurz
@ 2018-05-02 10:28 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2018-05-02 10:28 UTC (permalink / raw)
  To: Alexander Kurz; +Cc: barebox

On Thu, Apr 26, 2018 at 05:56:44PM +0000, Alexander Kurz wrote:
> The first stage loader must run in SRAM and is limited in size.
> Remove unused support to load drivers from DT at this stage and
> save precious 9kB of code size.
> Regenerating the defconfig removes CONFIG_TEXT_BASE.
> 
> Signed-off-by: Alexander Kurz <akurz@blala.de>
> ---
>  arch/arm/configs/omap3530_beagle_xload_defconfig | 3 ---
>  1 file changed, 3 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/arch/arm/configs/omap3530_beagle_xload_defconfig b/arch/arm/configs/omap3530_beagle_xload_defconfig
> index d36aaf319..2105c0b9d 100644
> --- a/arch/arm/configs/omap3530_beagle_xload_defconfig
> +++ b/arch/arm/configs/omap3530_beagle_xload_defconfig
> @@ -8,7 +8,6 @@ CONFIG_THUMB2_BAREBOX=y
>  CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
>  CONFIG_ARM_UNWIND=y
>  CONFIG_MMU=y
> -CONFIG_TEXT_BASE=0x0
>  CONFIG_STACK_SIZE=0xc00
>  CONFIG_MALLOC_SIZE=0x0
>  CONFIG_MALLOC_DUMMY=y
> @@ -18,7 +17,6 @@ CONFIG_SHELL_NONE=y
>  # CONFIG_ERRNO_MESSAGES is not set
>  # CONFIG_TIMESTAMP is not set
>  CONFIG_CONSOLE_SIMPLE=y
> -CONFIG_OFDEVICE=y
>  CONFIG_DRIVER_SERIAL_NS16550=y
>  CONFIG_DRIVER_SERIAL_NS16550_OMAP_EXTENSIONS=y
>  # CONFIG_SPI is not set
> @@ -36,7 +34,6 @@ CONFIG_MCI=y
>  CONFIG_MCI_STARTUP=y
>  # CONFIG_MCI_WRITE is not set
>  CONFIG_MCI_OMAP_HSMMC=y
> -# CONFIG_PINCTRL is not set
>  # CONFIG_FS_RAMFS is not set
>  # CONFIG_FS_DEVFS is not set
>  CONFIG_FS_FAT=y
> -- 
> 2.11.0
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-02 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 17:56 [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT Alexander Kurz
2018-04-26 17:56 ` [PATCH 2/2] ARM omap beagle defconfig: remove trace initcalls Alexander Kurz
2018-05-02 10:28 ` [PATCH 1/2] ARM omap beagle xload_defconfig: do not load drivers from DT Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox