From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Wed, 04 Mar 2009 13:40:29 +0100 Subject: [U-Boot] How to Remove the padding bits from u-boot.bin In-Reply-To: <5ae31d3b0903032122t7e689978j2d6ba0a14314efa0@mail.gmail.com> References: <5ae31d3b0903032122t7e689978j2d6ba0a14314efa0@mail.gmail.com> Message-ID: <49AE76BD.2050204@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de kuldeep nigam wrote: > Hi All, > I am using MIP405T board and trying to reduce the size of u-boot.bin > by disabling the drivers that i didn't need. But the image size is not > changing because it is padding all 1's at the end of the image. Can anyone > tell me how to remove these padding bits. try to change CONFIG_SYS_FLASH_BASE and CONFIG_SYS_MONITOR_LEN in the board config file: #define CONFIG_SYS_FLASH_BASE 0xFFFC0000 #define CONFIG_SYS_MONITOR_LEN (256 * 1024) Best regards, Anatolij