{OT} Cross-compiling the kernel

Frank Steinmetzger Warp_7 at gmx.de
Sun Feb 2 22:56:37 GMT 2014


On Sun, Feb 02, 2014 at 07:58:22AM -0500, Gene Heskett wrote:

> > On Sat, Feb 01, 2014 at 12:39:16PM -0500, Gene Heskett wrote:
> > > It would not surprise me to learn that neither nepomuk, soprano, nor
> > > virtuoso-t, can deal with a 30gig database on a 32bit PAE system. 
> > > They have all been segfaulters from the gitgo here.
> > > 
> > > So I am intermittently looking for an alternative.  Including a full
> > > 64 bit kernel build, but the build process makes that impossible.
> > 
> > How so? Special case on your machine? I'm running a 64 bit kernel with
> > an otherwise 32 bit userland on my Atom netbook. All you gotta do is get
> > a 64 bit compiler toolchain (which is quite easily achieved on Gentoo)
> > and pass some parameters to the kernel make.
> [...]
> gentoo eh?  Thats a system I have not yet tried.  I wonder how long it 
> would take to get this system rebuilt in gentoo?

The netbook takes maybe 20 hours to build a KDE update (not full
environment, only kdebase, most of kdepim and some select programs).
The kernel with only the stuff I need takes around 55 minutes (Atom
N450, single core with HT).

> So, what else do I need to change in the build tools dept, to be able to 
> build a working 64 bit kernel?  This is the ubuntu 10.04.4 LTS version of 
> build_essentials. So even the compiler is old, so old it hasn't the ability 
> to build any stack protection bits.

Well, the Gentoo way uses a package called crossdev. You just tell it the
desired architecture and it builds the toolchain (binutils, gcc and
glibc). With those three, I am able to build the kernel.

To actually build the kernel, you have to either set the different
compiler in menuconfig, or pass it as parameter to make. The line from
my Makefile:

cd /usr/src/64 && make -C /usr/src/linux O=`pwd` CROSS_COMPILE=x86_64-pc-linux-gnu- bzImage modules

(I separate build dir from sources dir)

> And before I go charging off to do a gentoo build, what is the first users 
> UID on gentoo?

1000

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.

Even a Bonsai dreams of greatness.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde/attachments/20140202/229fab62/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list