Re: [U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

2008-10-14 Thread Trent Piepho
On Tue, 14 Oct 2008, Wolfgang Denk wrote: > In message <[EMAIL PROTECTED]> you wrote: >> >> This is where bss goes when u-boot is linked. It gets relocated to a >> different address in ram. > > Where is defined which address it is, then? It is determined at run time. Look in cpu/mpc85xx/start.S

Re: [U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

2008-10-14 Thread Wolfgang Denk
Dear Trent, In message <[EMAIL PROTECTED]> you wrote: > > > Where is bss then, if you try to locate it beyond the end of physical > > memory? To the best of my understanding there are two possibilities: > > tool chains running on a 32 bit host will simply wrapr addresses > > around, i. e. st

Re: [U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

2008-10-14 Thread Trent Piepho
On Tue, 14 Oct 2008, Wolfgang Denk wrote: > In message <[EMAIL PROTECTED]> you wrote: >> >> B) The U-Boot image is over 4MB in size. The image size for this is from >> TEXT_BASE to the end of the reset vector. It's not the size of the U-Boot >> code as there could be a huge gap between the end of

Re: [U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

2008-10-14 Thread Trent Piepho
On Tue, 14 Oct 2008, Wolfgang Denk wrote: > Dear Trent Piepho, > > In message <[EMAIL PROTECTED]> you wrote: >> >> B) The U-Boot image is over 4MB in size. The image size for this is from >> TEXT_BASE to the end of the reset vector. It's not the size of the U-Boot >> code as there could be a huge

Re: [U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

2008-10-14 Thread Wolfgang Denk
Dear Trent Piepho, In message <[EMAIL PROTECTED]> you wrote: > > B) The U-Boot image is over 4MB in size. The image size for this is from > TEXT_BASE to the end of the reset vector. It's not the size of the U-Boot > code as there could be a huge gap between the end of the code and the reset > v

[U-Boot] [PATCH 2/4] Merge all mpc85xx platforms to use a single ld script

2008-10-13 Thread Trent Piepho
They are all the same except for the flash size and some copyright comments. The combined script assumes a flash bank size of 4 MB, which work for all current platforms. This assumtion is only a problem if: A) The flash bank is less than 4 MB and it is mapped to a location that not aligned to th