Difference between revisions of "Ifcpu64.c32"

From Syslinux Wiki
Jump to: navigation, search
m (Category added)
(Wiki formatting. Remove unneeded Category and section headers. Typos. Minor rewording.)
Line 1: Line 1:
 
[[Category:Comboot]]
 
[[Category:Comboot]]
[[Category:Move To Scripting Engine]]
 
 
[[Category:Modules]]
 
[[Category:Modules]]
 
+
'''ifcpu64.c32''' is a comboot module for Syslinux that checks the CPU flags for 64-bitness  
= About =
+
(and optionally for 32-bit PAE support) and loads the appropriate label  
'''ifcpu64.c32''' is a comboot module for Syslinux that check's the CPU flags for 64-bitness (and optionally for 32-bit PAE support) and loads the appropriate label in a pxelinux.cfg file.
+
of/in the Syslinux configuration file.
  
 
This is only available in Syslinux 3.71 or later.
 
This is only available in Syslinux 3.71 or later.
  
= Requirements =  
+
== Requirements ==
 
* working Syslinux environment
 
* working Syslinux environment
 
* two kernel images  
 
* two kernel images  
 
* one 32bit environment or an additional 64bit environment
 
* one 32bit environment or an additional 64bit environment
  
= Syntax =  
+
== Syntax ==
 +
{|
 +
|
 
  ifcpu64.c32 64bit-label [-- pae-label] -- 32bit-label
 
  ifcpu64.c32 64bit-label [-- pae-label] -- 32bit-label
 +
|}
  
The use of '''--''' is required! The PAE is also optional.
+
The use of '''<tt>--</tt>''' is required! The PAE is optional.
  
 
== Example ==
 
== Example ==
Here is an example pxelinux.cfg file for booting
+
Here is a config file:
 +
{|
 +
|
 
<pre>
 
<pre>
 
label ifcpu64-1
 
label ifcpu64-1
 
   kernel ifcpu64.c32
 
   kernel ifcpu64.c32
 
   append system_64 -- system_32
 
   append system_64 -- system_32
 
+
 
label system_64
 
label system_64
 
   kernel kernel64
 
   kernel kernel64
 
   append initrd=ramfs.x86_64.cgz root=/dev/ram0
 
   append initrd=ramfs.x86_64.cgz root=/dev/ram0
 
+
 
label system_32
 
label system_32
 
   kernel kernel32
 
   kernel kernel32
 
   append initrd=ramfs.x86.cgz root=/dev/ram0
 
   append initrd=ramfs.x86.cgz root=/dev/ram0
 
 
</pre>
 
</pre>
 +
|}
  
= Further Reading =
+
== See Also ==
None
+
* [[Ifcpu.c32]]: Detect specific CPU's features and act accordingly
 
+
= See Also =
+
* [[Ifcpu.c32]] 64 - Detection of 64bits capable CPUs
+

Revision as of 12:19, 26 January 2019

ifcpu64.c32 is a comboot module for Syslinux that checks the CPU flags for 64-bitness (and optionally for 32-bit PAE support) and loads the appropriate label of/in the Syslinux configuration file.

This is only available in Syslinux 3.71 or later.

Requirements

  • working Syslinux environment
  • two kernel images
  • one 32bit environment or an additional 64bit environment

Syntax

ifcpu64.c32 64bit-label [-- pae-label] -- 32bit-label

The use of -- is required! The PAE is optional.

Example

Here is a config file:

label ifcpu64-1
  kernel ifcpu64.c32
  append system_64 -- system_32
 
label system_64
  kernel kernel64
  append initrd=ramfs.x86_64.cgz root=/dev/ram0
 
label system_32
  kernel kernel32
  append initrd=ramfs.x86.cgz root=/dev/ram0

See Also

  • Ifcpu.c32: Detect specific CPU's features and act accordingly