Gentoo Archives: gentoo-amd64

From: Bo Andresen <bo.andresen@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] upgrading from 2005.0 x86, to 2006.0 amd64
Date: Fri, 10 Mar 2006 15:15:00
Message-Id: 200603101611.27378.bo.andresen@gmail.com
In Reply to: [gentoo-amd64] upgrading from 2005.0 x86, to 2006.0 amd64 by Mike Williams
1 On Friday 10 March 2006 14:51, Mike Williams wrote:
2 > At the moment it's happily running a 32bit kernel, with 32bit userland.
3 > From my experimentation last night, I suspect I will need to boot an amd64
4 > livecd to compile a proper 64bit kernel, which will enable me to compile a
5 > 64bit toolchain.
6 > Could not compile a 64bit kernel, or a multilib gcc, from the 32bit kernel.
7
8 You might want to have a look at this recent thread from the gentoo-user
9 mailing list. Boyd helped me to compile a 64 bit kernel from 32 bit kernel
10 and user land using a cross compiler. It was actually quite easy. The 64 bit
11 user land I got from the amd64 stage3 tarball. This was a fresh install but
12 using a 32 bit live cd.
13
14 http://groups.google.com/group/linux.gentoo.user/browse_thread/thread/e4629ea8751a9ab4/815dbc64722b7d49%23815dbc64722b7d49?sa=X&oi=groupsr&start=1&num=3
15
16 I think the important steps for compiling a 64 bit kernel were:
17
18 To get a working cross compiler:
19 #emerge crossdev
20 #crossdev -s1 -t x86_64
21
22 To configure a 64 bit kernel using that cross compiler:
23 #cd /usr/src/linux
24 #make ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu-
25
26 In my case the include/asm symlink pointed towards asm-386
27 # ls -ld include/asm
28 lrwxrwxrwx 1 root root 10 Feb 24 14:27 include/asm -> asm-386
29
30 If it does you can fix it by:
31 # ln -sfn include/asm-x86_64 include/asm
32
33 Compile 64 bit kernel:
34 #make ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu-
35 #make ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu- modules_install
36
37 --
38 Bo Andresen
39 --
40 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] upgrading from 2005.0 x86, to 2006.0 amd64 "Boyd Stephen Smith Jr." <bss03@××××××××××.net>