Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-13 Thread Måns Rullgård
Allen Martin writes: >> > only option I found that worked was to use an armv4 toolchain for >> > the armv4 bits and armv7 toolchain for the armv7 bits. >> I'm not an expert in this area, but this cannot be the right >> approach. Did you try asking on the binutils mailing list? This is >> where

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-12 Thread Wolfgang Denk
Dear Allen Martin, In message <3c7a7aca8617d24290826ec008b5cd08510f030...@hqmail03.nvidia.com> you wrote: > > > Did you try asking on the binutils mailing list? This is where > > experts should be available... > > I drilled down on this some more and I found that with an armv4t > linker I can f

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-12 Thread Allen Martin
> > only option I found that worked was to use an armv4 toolchain for > the > > armv4 bits and armv7 toolchain for the armv7 bits. > > I'm not an expert in this area, but this cannot be the right > approach. > Did you try asking on the binutils mailing list? This is where > experts should be avai

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-11 Thread Wolfgang Denk
Dear Allen, In message <3c7a7aca8617d24290826ec008b5cd08510f030...@hqmail03.nvidia.com> you wrote: > > So the particular problem that pushed me over the edge on this was > trying to apply the ARM thumb patches that Aneesh V posted. As I > discovered, it's not the compiler but the linker that inse

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-11 Thread Allen Martin
> > How would others feel about a CROSS_COMPILE_SPL variable that allowed > > one to override the toolchain used during the SPL build? > > This makes no sense to me. The need to use a specific tool chain for > some SoC type usuallyonly comes into play when dealing with user space > code, i. e. wh

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-11 Thread Wolfgang Denk
Dear Allen, In message <3c7a7aca8617d24290826ec008b5cd08510f030...@hqmail03.nvidia.com> you wrote: > > The tegra build of u-boot currently is a single image that executes > on both the arm7tdmi and cortex A9, but it's quite fragile because we > use a armv7 toolchain and have be careful about com

[U-Boot] using different architecture / toolchain for SPL build

2012-04-10 Thread Allen Martin
I'm trying to solve a problem we've had in the tegra build of u-boot for a while. Tegra2/3 have an integrated arm7tdmi in addition to the cortex A9. Initial boot of the system is always to the arm7tdmi which is responsible for turning on the clocks and power rails for the A9 and then taking it