On Tuesday 12 June 2007 08:08:01 [EMAIL PROTECTED] wrote: > hello!! > I have a 350MB diskonchip and i want linux on it. I used buildroot to > produce a root filesystem which includes busybox and uclibc libraries. > Buildroot also produces a gcc cross compiler. But i want a native compiler > to run on my diskonchip. I tried to compile gcc-2.95.3 using --with-lib > option using gcc from a knoppix cd i.e I booted from a knoppix CD, mounted > the diskonchip and tried to compile and install gcc-2.95.3. But, > apparently --with-lib option works only for cross compilers. If I dont > include that option, gcc is compiled > using the glibc of knoppix.
Which Disk on Chip are you using? My firmware linux project (http://landley.net/code/firmware) builds a cross compiler and uses it to cross compile a minimal native build environment (which includes a native compiler), and then boots it under qemu. The scripts are generic, the variation between platforms is all in sources/configs (one file per target platform). Right now it does x86, x86-64, mips, mipsel, two arm variants (although they only boot with the 2.6.20 kernel, not 2.6.21, due to a bad interaction between the 2.6.21 kernel's arm scsi driver and qemu's emulated arm scsi card). It also has configs for sparc and powerpc that don't work yet. > I could use a pre-compiled development system which will give me a native > compiler. But I want to compile it myself from the source(and hopefully > learn something along the way :D). How do I compile gcc such that it is > linked to the uclibc libraries on the diskonchip and not the glibc on the > knoppix CD. My thing's a bash script that does all the compilation from source. I tried to make it easy to read. :) Rob _______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
