Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
looking for mipsel live-cd (or something that boots gentoo)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Fri Feb 18, 2005 7:58 pm    Post subject: looking for mipsel live-cd (or something that boots gentoo) Reply with quote

Hi,
I'm trying to build Gentoo on a mipsel machine, so I'm looking for a mipsel live-cd.
Sofar I only found the regular mips live-cd (Big Endian).

Alternatively, I can setup a cross-compile toolchain but I've never done this before and the task seems rather daunting. I also don't have weeks to figure it all out.

If someone has a simple howto for crosscompiling a Gentoo environment then I would be happy to try it out. I did find several guides to cross compiling but again, those all require modifying scripts to fit the Gentoo directory structure. I'm not that familiar with Gentoo.
The closest I could find to crosscompiling Gentoo is the 'crossdev' package but that fails with:
Quote:
$ crossdev --arch=mipsel

* No valid binutils packages were found. If you're using unstable packages, then this means
that no binutils packages were found with unstable keywords. Mark a package as unstable, or use
stable packages.

Odd, since I do have the latest stable binutils. There must be some other requirement.
Quote:
$ emerge -p -v binutils

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild R ] sys-devel/binutils-2.15.92.0.2-r1 -bootstrap -build -debug -multitarget +nls (-uclibc) 10,824 kB

Hmm, does this means it should be build with bootstrap, build, multitarget, uclibc flags?
Someone mentioned that crossdev is deprecated but I didn't find a better alternative.
Any help would be greatly appreciated.
_________________
* most bugs can be reduced to either dependency or state *

Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Sun Feb 20, 2005 11:35 am    Post subject: Reply with quote

What sort of machine are you installing Gentoo on?... MIPS machines come in all shapes and sizes, right from the humble IP12 Iris Indigo -- which was SGI's big break into the workstation market, through IP22 Indy/Indigo 2/Challenge S, IP26 Indigo 2 Power, IP28 Indigo 2 Extereme... the IP30 Octane & IP32 O2... and there have been many since. A couple (e.g. the Iris Indigo, Fuel & Tezro) don't run Linux at all (allthough people are working on that), and even the ones that do -- they all require special kernel & userlands to run.

The only supported mipsel-arch platform on Gentoo at the moment is the Cobalt servers (Qube 2, Raq 2, and OEM-branded clones like Seagate NasRAQ & Gateway Microserver). These are Little Endian MIPS IV (QED RM5231 to be exact) -- so if your machine is also MIPS IV, then you might be able to cheat and use a Cobalt userland. If it's a MIPS III however (e.g. R4[046]00-class, or the Toshiba R5900 CPU in the PlayStation 2) you're out of luck. The only thing I can suggest is looking into the buildroot utility on the µClibc website, then cludge a Gentoo userland on top of that.
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Mon Feb 21, 2005 6:45 pm    Post subject: Reply with quote

Eh sorry, should have mentioned that.
The box is a broadcom 'Swarm', running MIPS-III
http://www.linux-mips.org/wiki/index.php/Swarm

Although by default it runs Big Endian, the intention is to use it to build a mipsel Gentoo system.
It is supposed to be supported by Linux (kernel) and it runs with Debian.
_________________
* most bugs can be reduced to either dependency or state *

Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3
Back to top
View user's profile Send private message
Redhatter
Retired Dev
Retired Dev


Joined: 20 Sep 2003
Posts: 548
Location: Brisbane, QLD, Australia

PostPosted: Tue Feb 22, 2005 12:13 am    Post subject: Reply with quote

Unfortunately you're stuck between a rock and a hard place.

Looking around, there's a MIPS III Big Endian stage, and MIPS IV in both Little and Big endian, but there's no MIPS III Little Endian stages anywhere.
IIRC these boxes come with some version of MontaVista's Hard Hat Linux, so you might be able to coax portage onto that and kludge something there, but otherwise there's no clean way to do this.

This is the way I'd approach it.

1. Get the board running some version of Linux -- Debian, Hard Hat, µClinux... whatever.
2. Compile and install portage by hand (the ebuild might be useful here)
3. Put together a chroot environment (called the seed). The buildroot utility on the µClibc website may help here.
4. Configure portage for the little endian MIPS III target
5. Emerge catalyst
6. Use catalyst to produce a few stages that you can use to build up a proper Gentoo system.

Kumba would be the authority as he had to do something similar to get Cobalt servers running. At the time, the only distributions that supported them was Cobalt OS (ancient Linux distro based on Red Hat 5.0 -- purely for use on Cobalt servers) and Debian (even then, it was not an official port).
_________________
Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...

Gentoo/MIPS Cobalt developer, Mozilla herd member.
Back to top
View user's profile Send private message
zaai
Apprentice
Apprentice


Joined: 24 Jul 2004
Posts: 175

PostPosted: Tue Feb 22, 2005 6:12 am    Post subject: Reply with quote

Thanks Redhatter,
So the first step is to get gcc, uclibc and portage running in a chroot environment.
Looks like good advice. I'll give it a try.
_________________
* most bugs can be reduced to either dependency or state *

Athlon64 X2 4800+ on Asus M2N SLI deluxe with 4GB Dual channel
video nVidia GForce 7300 GS 512MB (snail); xorg-7.2
kernel 2.6.24-gentoo-r3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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