Board specific configuration scripts, called kernel scripts or simply kscripts, are used to enable the user to select what services to include, and how to connect those services to devices. The scripts contain a sequence of operations to perform while starting the firmware. An operation is specified by a single operation command word and a set of arguments. All lines that start with a `#' are treated as comments. The following operations are available:
load MODULEconnect PATHset VARIABLE PATHstdoutstderrstdinBelow is a complete (bogus) example of a kscript that loads a set of modules, connects the PCI IDE controller, which will also connect any possible disks that it detects. After that it will set console handles to the first serial console on the PCI ISA bridge.
# board kscript: bogus-example.kscript
load cpuio-i386.efi
load pci-rb+i386t1.efi
load pci-bus.efi
load pci-ide.efi
load disk-io.efi
load pci-isa.efi
load ser-ns16550.efi
# connect IDE controller
connect /pciroot(0)/pci(1,1)
# connect stdout and stderr
set stdout /pciroot(0)/pci(0,1)/acpi(PNP0503,0)
set stderr /pciroot(0)/pci(0,1)/acpi(PNP0503,0)
# connect stdin
set stdin /pciroot(0)/pci(0,1)/acpi(PNP0503,0)