Thanks Rob, I downloaded cross-compiler-armv4tl and I can build with it but I still have my original problem. I get "BINFMT_FLAT: bad header magic" when I run busybox on my hardware. It doesn't matter if I compile with arm-linux or armv4tl I still get the error.
I guess I wasn't clear about my problem. I have been able to build busybox if I just use CROSS_COMPILER="arm-linux-". But I was getting the BINFMT_FLAT error when I ran it so I thought I needed to add -elf2flt to the CFLAGS and that's when I get the linking errors. So my real problem is why do I get BINFMT_FLAT? Does this have something to do with the version of uClinux I run on my board? Any other thoughts on why I cannot run on my hardware? What other information could I provide that would be helpful? Thanks, Gary -----Original Message----- From: Rob Landley [mailto:[email protected]] Sent: Tuesday, March 02, 2010 2:12 PM To: [email protected] Cc: Gary Altenberg Subject: Re: Problems building for ARM. On Monday 01 March 2010 16:40:04 Gary Altenberg wrote: > Hello, > > I have been attempting to build the latest release of Busybox for an Arm 7 > board. I am running uClinux using a LPC2468. When I try to build I get: Do you mean armv7 instruction set or "arm 7" as in arm7tdmi chip (which is armv4t instruction set?) I have an armv4tl toolchain lying around at http://impactlinux.com/fwl/downloads/binaries which built the binaries in http://busybox.net/downloads/binaries/1.16.0/ just fine... make menuconfig PATH=/blah/cross-compiler-armv4tl/bin:$PATH make CROSS_COMPILE=armv4tl- > /usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld.real: > Warning: gc-sections option ignored > /usr/local/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld.real: > error: no memory region specified for loadable section `.plt' > collect2: ld returned 1 exit status > make: *** [busybox_unstripped] Error 1 Your toolchain is complaining about its internal linker script. Doesn't look like a busybox issue to me. Rob -- Latency is more important than throughput. It's that simple. - Linus Torvalds _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
