Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Documentation on Crossdev
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
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Fri May 19, 2006 1:24 pm    Post subject: Documentation on Crossdev Reply with quote

I got a second (though very small, literally) desktop a while a go, and emerged crossdev on it.
Now I only know the "old" crossdev and knew how to use that one, but the new version seems te work differently.

I tried looking for documentation on how to use it's command lines to build a kernel crossdev, but I can't figure out how.

Can anyone tell me where to find documentation, or at least tell me how to built a kernel creator?
This way I can finally start testing out my O2 RM7000 with recent kernels again.
Also, my Qube2 could use an upgrade on it's kernel I think...

Anyways, thanks in advance!
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Wed May 24, 2006 4:58 am    Post subject: Easy as a pie... Reply with quote

It should easy as doing
Code:
# cd /usr/portage/sys-devel/gcc
# ebuild /usr/portage/sys-devel/gcc-x.x.x.x.ebuild compile
# cd /var/tmp/portage/gcc-x.x.x/work/gcc-x.x.x
# ./configure --target=mips-rm7000-linux-gnu
# make
# make install

Check your /usr/local/bin for mips-rm7000-linux-gnu-gcc

You may want to check Dan Kegel's crosscompile website...
_________________
Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3)
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Wed May 24, 2006 5:01 am    Post subject: Reply with quote

Sorry for the last post... for KERNEL build, you will need to download a MIPS-tweaked linux tarball.

Then just use
Code:
#make menuconfig

to select the specific MIPS platform.

Sometime, you can edit the Makefile and force the ARCH=mips and set the CROSSCOMPILE=mips-rm7000-linux-gnu
_________________
Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3)
Back to top
View user's profile Send private message
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Wed May 24, 2006 5:38 am    Post subject: Reply with quote

I know about getting a MIPS linux tarball etc, but I need to know how to built the toolchain using crossdev.
Sorry about the confusion there.

With the older version it was something like:
Code:
crossdev --arch=mips --kernel --gcc-version=something etc etc

I was missing most of the options in the resent version.
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
Back to top
View user's profile Send private message
egberts
Guru
Guru


Joined: 04 Nov 2003
Posts: 357
Location: Dimmed Cathode Ray Tube

PostPosted: Wed May 24, 2006 6:26 am    Post subject: Reply with quote

I use ptxdist-0.10 to get all my cross-environment needs (root file system, toolchains, kernels and applications).

It is not yet gentoo... but it is arguably the closest thing one can get up and quick for a complete cross-compile build environment.
_________________
Clusters of Fry's Special, AMD 2200, 2 GB DDR, 220 GB (2008.1/desktop, stage 1, -O3) x8
HP Compaq Fry's SPecial, AMD 2100, 2 GB DDR, 260 GB (2008.0/server, stage 1, -O3)
Ultra Sparc 5, 256MB, 3GB (2006.1/server, stage 1, -O3)
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: Wed May 24, 2006 11:41 pm    Post subject: Re: Documentation on Crossdev Reply with quote

freshy98 wrote:
I got a second (though very small, literally) desktop a while a go, and emerged crossdev on it.
Now I only know the "old" crossdev and knew how to use that one, but the new version seems te work differently.

I tried looking for documentation on how to use it's command lines to build a kernel crossdev, but I can't figure out how.

Can anyone tell me where to find documentation, or at least tell me how to built a kernel creator?
This way I can finally start testing out my O2 RM7000 with recent kernels again.
Also, my Qube2 could use an upgrade on it's kernel I think...

Anyways, thanks in advance!


crossdev --help tells all. :-)

Code:
beast ~ # crossdev --help
Usage: crossdev [options] --target TARGET

Options:
    --b, --binutils ver   Specify version of binutils to use
    --g, --gcc ver        Specify version of gcc to use
    --k, --kernel ver     Specify version of kernel headers to use
    --l, --libc ver       Specify version of libc to use
    -C, --clean target    Uninstall specified target
    -b, -d, -p, -v, -q    Options to pass to emerge (see emerge(1))
Stage Options:
    -s0, --stage0         Build just binutils
    -s1, --stage1         Also build a C compiler (no libc/C++)
    -s2, --stage2         Also build kernel headers
    -s3, --stage3         Also build the C library (no C++)
    -s4, --stage4         Also build a C++ compiler [default]
Extra Fun (must be run after above stages):
    --ex-only             Skip the stage steps above
    --ex-gcc              Build extra gcc targets (gcj/ada/etc...)
    --ex-gdb              Build a cross gdb

Target (-t):   takes the form: ARCH-VENDOR-OS-LIBC
    Run 'crossdev -t help' for examples


So in other words... you're after... crossdev -s1 -t mips64-unknown-linux-gnu for your O2's cross compiler, and crossdev -s1 -t mipsel-unknown-linux-gnu for your Qube2's cross compiler (or mips64el... 64-bit works too).

For the Qube2, if you want to save yourself some time updating the kernel, I have a binary for 2.6.16.4 on my devspace -- see my site below. :-) I've also got an R5000 O2 kernel there, but I'm not sure how compatable that is with RM7000 (being the rare beasts that they are).
_________________
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
freshy98
Apprentice
Apprentice


Joined: 11 Jul 2002
Posts: 274
Location: The Netherlands

PostPosted: Wed May 24, 2006 11:58 pm    Post subject: Reply with quote

Then that's what changed. No longer a --kernel but a -s1 for a C compiler etc.

I will build the RM7K kernel myself. Got some config files for it here somewhere...
The Qube2 is my firewall, so I need to make lots of changes probably. I also got a config for that one ofcourse.
Not sure what the binary gives me here. Don't use Linux too much.

The R5K kernel won't work on RM7K at all. Been there, done that.
I just wanna see if SCSI finally work, since that was what the main problem was about 1.5 years ago.
_________________
Mac Pro single quad 2.8GHz, 6GB RAM, 8800GT. MacBook. Plus way too many SUN/Cobatl/SGI and a lonely Alpha.
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