You are not logged in.

#1 2012-02-21 17:47:46

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

[SOLVED] 64 bit kernel on arch32 bit

What is the best way to run a 64 bit kernel in arch32?,  i dislike the bigger memory usage of apps but read everywhere that 64 bit kernel is the "correct" way.

Last edited by Maki (2012-02-21 23:59:14)


If it ain't broke, broke it then fix it.

Offline

#2 2012-02-21 17:50:51

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: [SOLVED] 64 bit kernel on arch32 bit

Offline

#3 2012-02-21 17:55:36

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: [SOLVED] 64 bit kernel on arch32 bit

Hah, i searched the forum for but couldn't find it, thanks smile


If it ain't broke, broke it then fix it.

Offline

#4 2012-02-21 23:50:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] 64 bit kernel on arch32 bit

If you consider your issue fixed, please remember to mark the thread as solved.

Offline

#5 2012-02-21 23:57:07

Maki
Member
From: Skopje, Macedonia
Registered: 2007-10-16
Posts: 353
Website

Re: [SOLVED] 64 bit kernel on arch32 bit

karol wrote:

If you consider your issue fixed, please remember to mark the thread as solved.

I wrote on the topic JokerBoy gave me, thanks for the hint.


If it ain't broke, broke it then fix it.

Offline

#6 2012-02-22 04:38:45

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED] 64 bit kernel on arch32 bit

Btw, Another way to set arch to 32-bit while running 64-bit kernel is just executing the first process (init) with linux32, instead of changing each line in inittab (as said Allan in the another thread)

/lib/initcpio/init:

-exec env -i "TERM=$TERM" /sbin/switch_root /new_root $init "$@"
+exec env -i "TERM=$TERM" /sbin/switch_root /new_root /usr/bin/linux32 $init "$@"

There is an interesting project about a new compat layer for running 32-bit userspace on 64-bit kernel [#1]

[#1] https://sites.google.com/site/x32abi/

Offline

#7 2012-02-22 05:18:12

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: [SOLVED] 64 bit kernel on arch32 bit

My current way is still to just put lots of linux32's in /etc/inittab, although Gerado's idea looks interesting....      I did also try adding something like:

init="linux32 init"

to the kernel line in grub, but spaces are not acceptable.

Offline

#8 2012-02-22 11:23:38

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED] 64 bit kernel on arch32 bit

Nope, because $init is tested for -x. What works is using /usr/bin/linux32 as $init and /sbin/init as aditional argument $@

init=/usr/bin/linux32 /sbin/init

Offline

Board footer

Powered by FluxBB