mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 01:38:56 +00:00
9a72749675
Updated cbmem searches for CBMEM exposed by kernel in sysfs before trying to read it from memory directly. As such, there is no need for pointing to that file explicitly. New coreboot revision also fixes output of 'cbmem -t' caused by wrong endianness. Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
17 lines
657 B
Bash
Executable File
17 lines
657 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
|
|
|
|
# Proceed with standard init path
|
|
exec /bin/gui-init
|