mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
abd99a0f28
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
21 lines
815 B
Bash
Executable File
21 lines
815 B
Bash
Executable File
#!/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
|
|
|
|
# Disable fast-reset which doesn't reset TPM and results in different values of
|
|
# PRCs every time.
|
|
nvram -p ibm,skiboot --update-config fast-reset=0
|
|
|
|
# Alias for cbmem to remove need for '-f' option in every call
|
|
echo "alias cbmem='cbmem -f /sys/firmware/cbmem'" >> $HOME/.profile
|
|
export ENV=$HOME/.profile
|
|
|
|
# Proceed with standard init path
|
|
exec /bin/gui-init
|