From mboxrd@z Thu Jan 1 00:00:00 1970 From: Graeme Russ Date: Thu, 04 Dec 2008 21:06:55 +1100 Subject: [U-Boot] u-boot.lds i686-pc-linux-gnu-ld section .start16 overlapssection .text In-Reply-To: <49EF8B38CAABF74C8FFEA1405FDFBE9241E9BC@suzexch01.taihootech.com> References: <49EF8B38CAABF74C8FFEA1405FDFBE9241E9BC@suzexch01.taihootech.com> Message-ID: <4937ABBF.2010205@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Lance Zhang wrote: >> Have a look at u-boot.map - This file is generated by the linker and it > will >tell you exactly where it put everything >> Also, .text section (the one that holds all the code) looks to be very > big: >> 0x06011b85 - 0x05fe0000 = 0x31b85 (~200kB) > > Graeme, Thank you very much. > > I know the root cause, the Ethernet driver use lots of address space. I > ported the driver from a Linux driver (wireless Linux Ethernet driver), > just modified some u-boot incompatible functions. And the codes are very > large. I will remove some codes > > > But when I remove the Ethernet module, I looked the System.map file and > found that I can only use 6312 bytes space. It will be difficult for me Hmm, I have 170kB free - minus 128kB (assuming you're using a 128kB flash rather than my 256kB) leaves 42kB, so you are using ~36kB more than my 86kB Looks like you may have some places to carve out some code. > to reduce the wireless Ethernet driver into 6312bytes. Anyway Thanks for > the explanations. Good luck, glad to be of service > > Lance Zhang Graeme