View previous topic :: View next topic |
Author |
Message |
cioannou Tux's lil' helper
Joined: 16 Oct 2005 Posts: 82 Location: Greece
|
Posted: Sat Nov 03, 2007 11:54 am Post subject: Setup Cross Compile on AMD64 for Cobalt Qube2 |
|
|
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 |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Sun Nov 04, 2007 2:50 am Post subject: |
|
|
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 |
|
|
cioannou Tux's lil' helper
Joined: 16 Oct 2005 Posts: 82 Location: Greece
|
Posted: Sun Nov 04, 2007 11:20 am Post subject: |
|
|
Thanks a lot, will try it ASAP _________________ If windows fails, who you gonna call? Re-install...... |
|
Back to top |
|
|
cioannou Tux's lil' helper
Joined: 16 Oct 2005 Posts: 82 Location: Greece
|
Posted: Sun Nov 04, 2007 7:51 pm Post subject: |
|
|
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 |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Sun Nov 04, 2007 10:39 pm Post subject: |
|
|
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 |
|
|
cioannou Tux's lil' helper
Joined: 16 Oct 2005 Posts: 82 Location: Greece
|
Posted: Mon Nov 05, 2007 12:51 am Post subject: |
|
|
Thanks a lot, you are always very helpful _________________ If windows fails, who you gonna call? Re-install...... |
|
Back to top |
|
|
|