Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating MIPS target system in chroot on x86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
legggo
n00b
n00b


Joined: 16 Oct 2005
Posts: 6

PostPosted: Tue Jan 31, 2006 7:57 pm    Post subject: Creating MIPS target system in chroot on x86 Reply with quote

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
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Feb 01, 2006 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message
legggo
n00b
n00b


Joined: 16 Oct 2005
Posts: 6

PostPosted: Wed Feb 01, 2006 5:09 am    Post subject: Mips tarbal Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum