uboot study notes | 07 - transplant uboot 2012.04 to JZ2440 (uboot crop size)

1. Cut method

Currently transplant done step by step uboot.bin file has 327KB, too, can be certain of cutting, will use less than compiled code does not join, uboot.bin reduce the size of the file.

Cutting method is very simple: to modify the board configuration file include/configs/smdk2440.h, remove unnecessary macros .

2. cutting process

Remove USB support

RTC support removal

Remove BOOTP support

Remove DHCP, DATE, USB support command

Remove the file system support

3. recompile the view size

make distclean
make smdk2440_config
make

After the completion of the translation cut to size 217KB, smaller than the previous full 327KB 110KB:

downloaded to the development board to see if it can start in the serial terminal:

Receive more exciting articles and resources push, welcome to subscribe to my micro-channel public number: "mculover666」 .

Published 230 original articles · won praise 605 · views 260 000 +

Guess you like

Origin blog.csdn.net/Mculover666/article/details/104564301