You are not logged in.

#1 2008-04-19 16:07:49

zosodk69
Member
Registered: 2005-01-30
Posts: 30

makepkg kernel26 for different architecture

I've got a pretty fast laptop running arch64.  I've also got an old PIII I've been using as a router.  I normally run a custom kernel on the PIII.  I was wondering if it's possible to makepkg the kernel on my new x64 machine for an x86 machine.


-=[dave]=-

Offline

#2 2008-04-19 16:26:29

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: makepkg kernel26 for different architecture

Get yourself a chroot with arch32 in it. There should be some stuff about it in the wiki. With that you can compile anything for i686, including the kernel.

Offline

#3 2008-04-19 19:34:49

zosodk69
Member
Registered: 2005-01-30
Posts: 30

Re: makepkg kernel26 for different architecture

I have tried this though I may have done something wrong.  I've (mostly) stayed faithful to the instructions here:http://wiki.archlinux.org/index.php/Arc … bit_system

When I do a makepkg to make the kernel in the chroot environment I get:
arch/x86/kernel/asm-offsets.c:1: error: code model 'kernel' not supported in the 32 bit mode
arch/x86/kernel/asm-offsets.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


-=[dave]=-

Offline

#4 2008-04-19 19:45:16

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: makepkg kernel26 for different architecture

ah, you have to use linux32 (is that missing in the howto)? Just do 'linux32 chroot' instead of 'chroot' or 'linux32 dchroot' if you use dchroot.

Offline

#5 2008-04-20 13:30:26

zosodk69
Member
Registered: 2005-01-30
Posts: 30

Re: makepkg kernel26 for different architecture

EXACTLY RIGHT!!!  Thank you good sir.


-=[dave]=-

Offline

Board footer

Powered by FluxBB