Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setup Cross Compile on AMD64 for Cobalt Qube2
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
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Sat Nov 03, 2007 11:54 am    Post subject: Setup Cross Compile on AMD64 for Cobalt Qube2 Reply with quote

Tried the Gentoo wiki but didn't manage to find any info related to Cobalt Qube2 crosscompile.

Are you aware of any information on how to setup my AMD64 machine in order to compile Cobalt Qube 2 kernels on it?

Thanks
_________________
If windows fails, who you gonna call? Re-install......
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 Nov 04, 2007 2:50 am    Post subject: Reply with quote

crossdev is the tool you're after. You'll find it in the sys-devel category.

Install it, then run crossdev -t mipsel-unknown-linux-gnu -s1 to compile a kernel-only compiler for the Cobalt Qube2. You can also use mips64el... if you want to compile 64-bit kernels.

The procedure then is to merge the mips-sources ebuild on your box (put the line sys-kernel/mips-sources ~mips in your /etc/portage/package.keywords) and pass CROSS_COMPILE=mipsel-unknown-linux-gnu (or mips64el...) when running make.
_________________
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
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Sun Nov 04, 2007 11:20 am    Post subject: Reply with quote

Thanks a lot, will try it ASAP
_________________
If windows fails, who you gonna call? Re-install......
Back to top
View user's profile Send private message
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Sun Nov 04, 2007 7:51 pm    Post subject: Reply with quote

I was just before typing "make" and thought of this.

How should I handle modules? Or I should build all modules "in-kernel"?
_________________
If windows fails, who you gonna call? Re-install......
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 Nov 04, 2007 10:39 pm    Post subject: Reply with quote

With modules... if you specify INSTALL_MOD_PATH when building the kernel, it will place your kernel modules in that directory. It has to be an absolute path however -- I made the mistake of running make modules INSTALL_MOD_PATH=root, and wound up with some modules in ./root, more in ./kernel/root, some others in ./drivers/root, more in ./drivers/net/root....etc.

The easiest thing for me I've found... is to create a root/boot directory in the top of your source tree, then install everything into that... like this:

Code:
$ mkdir -p root/boot
$ make modules INSTALL_MOD_PATH=$PWD/root

(For cobalt)
$ gzip -9v vmlinux
$ mv vmlinux.gz root/boot/vmlinux-WW.XX.YY.ZZ.gz


Then I bundle the whole lot up, and transfer it using rsync over ssh:
Code:
$ rsync -aP root/ root@qube.local:/

_________________
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
cioannou
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2005
Posts: 82
Location: Greece

PostPosted: Mon Nov 05, 2007 12:51 am    Post subject: Reply with quote

Thanks a lot, you are always very helpful
_________________
If windows fails, who you gonna call? Re-install......
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