View previous topic :: View next topic |
Author |
Message |
legggo n00b
Joined: 16 Oct 2005 Posts: 6
|
Posted: Tue Jan 31, 2006 7:57 pm Post subject: Creating MIPS target system in chroot on x86 |
|
|
Hello.
I'd like to create minimal gentoo based system bootable from cf (something uclibc based like tinygentoo - http://gentoo-wiki.com/TinyGentoo ) on my x86 box for a MIPS based device ( http://www.routerboard.com/rb500.html ). Build it in chrooted environment using cross compilation.
I tried to use experimental uclibc stage3 ( stage3-x86-uclibc-2005.0.tar.bz2 ) with linking uclibc/mips ( ln -snf /usr/portage/profiles/uclibc/mips/ /etc/make.profile ) but I did not suceed - after running ' emerge -uDN world ' I get:
.....
>>> Source unpacked.
HOSTCC scripts/basic/fixdep
as: unrecognized option `-Qy'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
!!! ERROR: sys-kernel/mips-headers-2.6.11-r1 failed.
......
when emerging sys-kernel/mips-headers-2.6.11-r1
Any hints or ideas, how to make this properly? Which stage to use? Which profile to use?
Thanks
Legggo |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Feb 01, 2006 2:15 am Post subject: |
|
|
I have not done any cross-compiling, but I am pretty sure you would have to start with a mips stage tarball, not an x86 one. |
|
Back to top |
|
|
legggo n00b
Joined: 16 Oct 2005 Posts: 6
|
Posted: Wed Feb 01, 2006 5:09 am Post subject: Mips tarbal |
|
|
But how to use it? I tried following: I've created a x86-uclibc chroot - just to have a uclibc environment. And I've created in it /mips, where there I have extracted mipsel stage3.
My make.conf in uclibc gentoo chroot is:
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CXXFLAGS="-Os -pipe"
FEATURES="ccache"
USE="make-symlinks minimal"
My make conf inside /mips is:
CFLAGS="-Os -pipe"
CHOST="mipsel-gentoo-linux-uclibc"
CXXFLAGS="-Os -pipe"
I entered uclibc chroot, emerged sys-devel/mips32 and tried:
ROOT=/mips emerge baselayout-lite uclibc busybox
But during compilation I've seen: i386-gentoo-linux-uclibc-strip -x -R .note -R .comment strncasecmp.o
, etc.... so 'ROOT' is ignorred - regarding make.conf.
I copied /mips/etc/make.conf to /etc/make.conf -> to have host spec. mipsel-gentoo-linux-uclibc
I tried again ROOT=/mips emerge baselayout-lite uclibc busybox and
checking for mipsel-gentoo-linux-uclibc-gcc... no
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
No success
How to use the mips tarball correctly? I'd like to use emerge and tools around to create a / with apps.
Thanks
Legggo |
|
Back to top |
|
|
|