[U-Boot-Users] u-boot size reduction tips!

Hi, I am trying to reduce the size of the bootloader and my own utilities.
Firstly i tried understanding the flow of u-boot.
I tried removing the networking support.
i removed the NETWORKING related #defines in my config file omap5912osk.h Then i did #define CONFIG_COMMANDS (CONFIG_CMD_DFL & ~CFG_CMD_NET)
Then i changed the makefiles to avoid making libnet.a
However, on compiling i do get linker errors. i need to go and manually comment out code that is referring to getenv_IPaddr and so on.
Not sure if this is way we remove the features in u-boot.
I just want a minimum bootloader + serial port: which translates to: 1) basic bootloading 2) serial port driver. 3) Enabling serial port commands
How does one go about it?. Any guidelines?.
Any advices or pointers?.
Regards, sriram

In message 8bf247760607150708i69d57109nd6fe6859395b0501@mail.gmail.com you wrote:
I tried removing the networking support.
i removed the NETWORKING related #defines in my config file omap5912osk.h Then i did #define CONFIG_COMMANDS (CONFIG_CMD_DFL & ~CFG_CMD_NET)
OK.
Then i changed the makefiles to avoid making libnet.a
This is NOT necessary. There is never a need to modify any Makefuiles just when changing the configurastion of a board.
However, on compiling i do get linker errors.
Then some of your changes were not consistent.
Not sure if this is way we remove the features in u-boot.
Just edit your board config file and don't enable anythign you don't want or need.
I just want a minimum bootloader + serial port: which translates to: 1) basic bootloading 2) serial port driver. 3) Enabling serial port commands
Note that the size of the serial port vcommandslike loads, loadb or loady is pretty big. You might save more space by keeping network support and droppping the serial download commands instead.
How does one go about it?. Any guidelines?. Any advices or pointers?.
Just edit your config file.
Best regards,
Wolfgang Denk

On Sun, 16 Jul 2006 16:43:11 +0200, Wolfgang Denk wrote:
In message 8bf247760607150708i69d57109nd6fe6859395b0501@mail.gmail.com you wrote:
I just want a minimum bootloader + serial port: which translates to: 1) basic bootloading 2) serial port driver. 3) Enabling serial port commands
Note that the size of the serial port vcommandslike loads, loadb or loady is pretty big. You might save more space by keeping network support and droppping the serial download commands instead.
If you do need serial download support, consider applying my patch from 6. July (Message-ID: pan.2006.07.06.15.16.31.51589@alarsen.net); it allows you to select loadb (Kermit) without loady (YModem).
Cheers Anders
participants (3)
-
Anders Larsen
-
Ram
-
Wolfgang Denk