Page 1 of 1

Auto detect hardware before boot

Posted: 11 May 2013, 09:42
by uyduruq
Hi,
Is it possible to detect hardware (I mean processor type; x86 or x64) before initrd starts? I have built an usb stick with both x86 and x64 modules in it. User needs to choose this on the main page, then porteus boots according to his choice. I want to automate this, and if the system is x64 capable, then x64 porteus will be boot, or if only x86 then x86 porteus will boot.

Re: Auto detect hardware before boot

Posted: 11 May 2013, 17:11
by fanthom
i always thought it wont be possible but seems that our default bootloaded - syslinux - has this feature already :)
please get ifcpu64.c32 from syslinux-4.06 package and follow this wiki (written for pxelinux but maybe works also for extlinux?):
link

Re: Auto detect hardware before boot

Posted: 19 May 2013, 20:38
by uyduruq
Interesting! I will be trying this. Thanks.