Linux Debian support - 64bit kernel on 32bit debian

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > October 2007 > 64bit kernel on 32bit debian





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author 64bit kernel on 32bit debian
Damjan

2007-09-29, 7:14 am

I just installed i386 (32bit) Debian 4.0 (etch) on a Intel Q6600 cpu based
board with 4GB. I'd rather use 32bit user-space because of compatibility
issues but would like to use a 64bit kernel (memory management in the
kernel is easier when it's 64bit).

So, is there a 64bit kernel in some i386 repositories.. or can someone
suggest what do I need to compile a 64bit kernel myself. (I guess I'd need
a 64bit cross-compiler).


--
damjan
Darren Salt

2007-09-29, 1:12 pm

I demand that Damjan may or may not have written...

> I just installed i386 (32bit) Debian 4.0 (etch) on a Intel Q6600 cpu based
> board with 4GB. I'd rather use 32bit user-space because of compatibility
> issues but would like to use a 64bit kernel (memory management in the
> kernel is easier when it's 64bit).


> So, is there a 64bit kernel in some i386 repositories.


$ apt-cache search linux-image amd

> or can someone suggest what do I need to compile a 64bit kernel myself.


kernel-package is useful since it makes it easy to build kernel .debs:
$ fakeroot make-kpkg kernel-image
$ fakeroot make-kpkg kernel-image --arch amd64 --cross-compile -

> (I guess I'd need a 64bit cross-compiler).


You don't - look in gcc's man page for the -m32 and -m64 options.

--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Burn less waste. Use less packaging. Waste less. USE FEWER RESOURCES.

int main() { while (1) cout << "Hello world!" << endl; }
Damjan

2007-09-29, 1:12 pm

Darren Salt wrote:

> I demand that Damjan may or may not have written...
>
>
>
> $ apt-cache search linux-image amd


Thanks ... I installed "linux-image-amd64"

>
> kernel-package is useful since it makes it easy to build kernel .debs:
> $ fakeroot make-kpkg kernel-image
> $ fakeroot make-kpkg kernel-image --arch amd64 --cross-compile -


So with this can I compile a newer kernel (2.6.22.9 for ex) with my
own .config?

>
> You don't - look in gcc's man page for the -m32 and -m64 options.


Great.


--
damjan
Darren Salt

2007-09-29, 1:12 pm

I demand that Damjan may or may not have written...

> Darren Salt wrote:
[vbcol=seagreen]
[vbcol=seagreen]
[vbcol=seagreen]
> Thanks ... I installed "linux-image-amd64"


Presumably, it's now up and running with the kernel package upon which that
depends...?

[vbcol=seagreen]
[vbcol=seagreen]
> So with this can I compile a newer kernel (2.6.22.9 for ex) with my own
> .config?


You should be able to. I recently built 2.6.22.9 with the -hrt6 patch for
amd64 (there were a few rejects when applying that patch, but nothing which I
couldn't fix up).

You might need to upgrade udev, though version 105 will probably be fine so
long as CONFIG_SYSFS_DEPRECATED=y.

[snip]
--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + At least 4000 million too many people. POPULATION LEVEL IS UNSUSTAINABLE.

Uhura of Borg: "Assimilation frequencies have been established..."
Damjan

2007-10-01, 1:13 am

Darren Salt wrote:

> I demand that Damjan may or may not have written...
>
>
>
>
>
> Presumably, it's now up and running with the kernel package upon which
> that depends...?


yes it's up and running.

I also installed linux-headers-2.6-amd64 so that I can compile drivers for
it... and I also installed libc6-amd64 and libc6-dev-amd64 because the
zaptel (asterisk drivers) required it.

We'll see how it goes.
[vbcol=seagreen]

make ARCH=x86_64 menuconfig
and
make ARCH=x86_64

is good enough for custom builds

--
damjan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com