initrd/bin/talos-init: send IPL complete message to BMC

BMC awaits this message before it takes control over CPU fans speed.

Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
This commit is contained in:
Krystian Hebel 2023-02-15 21:26:45 +01:00
parent 3c6efd1f47
commit 9550d2b541
No known key found for this signature in database
GPG Key ID: 6CD35B07297B3CF9
2 changed files with 13 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export CONFIG_USB_KEYBOARD=y
export CONFIG_BOOT_EXTRA_TTYS="tty0"
export CONFIG_TPM=y
export CONFIG_BOOTSCRIPT=/bin/gui-init
export CONFIG_BOOTSCRIPT=/bin/talos-init
export CONFIG_BOOT_REQ_HASH=n
export CONFIG_BOOT_REQ_ROLLBACK=n
export CONFIG_BOOT_KERNEL_REMOVE="quiet"

12
initrd/bin/talos-init Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# BMC on Talos must be informed that OS has been started in order to enable fan
# control. This is done by writing 0xFE to I/O ports 0x81 and 0x82 (in that
# order) through LPC connected to first CPU. LPC I/O space of first CPU is
# mapped to memory at 0x80060300D0010000, I/O port number has to be added to
# this address. Write can be performed using busybox's devmem applet.
devmem 0x80060300D0010081 8 254
devmem 0x80060300D0010082 8 254
# Proceed with standard init path
exec /bin/gui-init