mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
boards/librem_11: Add Librem 11
Add Librem 11 board. Librem 11 uses coreboot graphics init, which is done with FSP GOP. Set a custom keymap for the volume/power keys. Configure the volume keys as up/down arrows (for navigation in fbwhiptail, and for shell history in the Linux console). Configure the power key as Enter. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
5021bec3cd
commit
55155f6558
3
boards/librem_11/initrd/bin/board-init.sh
Executable file
3
boards/librem_11/initrd/bin/board-init.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
set -e -o pipefail
|
||||
loadkeys /etc/librem_11.map
|
5
boards/librem_11/initrd/etc/librem_11.map
Normal file
5
boards/librem_11/initrd/etc/librem_11.map
Normal file
@ -0,0 +1,5 @@
|
||||
keymaps 0-2,4-5,8,12
|
||||
# Use volume and power keys on tablet to navigate menus
|
||||
keycode 114 = Up
|
||||
keycode 115 = Down
|
||||
keycode 116 = Return
|
51
boards/librem_11/librem_11.config
Normal file
51
boards/librem_11/librem_11.config
Normal file
@ -0,0 +1,51 @@
|
||||
# Configuration for librem_11
|
||||
CONFIG_LINUX_CONFIG=config/linux-librem_common-6.1.8.config
|
||||
CONFIG_COREBOOT_CONFIG=config/coreboot-librem_11.config
|
||||
|
||||
export CONFIG_COREBOOT=y
|
||||
export CONFIG_COREBOOT_VERSION=purism
|
||||
export CONFIG_LINUX_VERSION=6.1.8
|
||||
|
||||
CONFIG_CRYPTSETUP2=y
|
||||
CONFIG_FLASHROM=y
|
||||
CONFIG_FLASHTOOLS=y
|
||||
CONFIG_GPG2=y
|
||||
CONFIG_KEXEC=y
|
||||
CONFIG_UTIL_LINUX=y
|
||||
CONFIG_KBD=y
|
||||
CONFIG_KBD_LOADKEYS=y
|
||||
CONFIG_LVM2=y
|
||||
CONFIG_MBEDTLS=y
|
||||
CONFIG_PCIUTILS=y
|
||||
CONFIG_POPT=y
|
||||
CONFIG_QRENCODE=y
|
||||
CONFIG_TPMTOTP=y
|
||||
|
||||
CONFIG_CAIRO=y
|
||||
CONFIG_FBWHIPTAIL=y
|
||||
CONFIG_HOTPKEY=y
|
||||
|
||||
CONFIG_LINUX_USB=y
|
||||
|
||||
export CONFIG_TPM=n
|
||||
export CONFIG_TPM_NO_LUKS_DISK_UNLOCK=y
|
||||
export CONFIG_TOTP_SKIP_QRCODE=y
|
||||
export CONFIG_OEMRESET_OFFER_DEFAULTS=y
|
||||
|
||||
export CONFIG_BOOTSCRIPT=/bin/gui-init
|
||||
export CONFIG_BOOT_REQ_HASH=n
|
||||
export CONFIG_BOOT_REQ_ROLLBACK=n
|
||||
export CONFIG_BOOT_KERNEL_ADD=""
|
||||
export CONFIG_BOOT_KERNEL_REMOVE=""
|
||||
export CONFIG_BOOT_DEV="/dev/nvme0n1p1"
|
||||
export CONFIG_BOARD_NAME="Librem 11"
|
||||
export CONFIG_FLASHROM_OPTIONS="-p internal"
|
||||
export CONFIG_USB_KEYBOARD=y
|
||||
export CONFIG_AUTO_BOOT_TIMEOUT=5
|
||||
export CONFIG_ROOT_DEV="/dev/nvme0n1p2"
|
||||
export CONFIG_ROOT_DIRLIST="bin boot lib sbin usr"
|
||||
export CONFIG_ROOT_CHECK_AT_BOOT="n"
|
||||
|
||||
# Librem 11 builds include firmware for integrated AX201 Wi-Fi, Bluetooth, and
|
||||
# graphics microcontroller.
|
||||
export CONFIG_SUPPORT_BLOB_JAIL=y
|
16
config/coreboot-librem_11.config
Normal file
16
config/coreboot-librem_11.config
Normal file
@ -0,0 +1,16 @@
|
||||
CONFIG_VENDOR_PURISM=y
|
||||
CONFIG_IFD_BIN_PATH="3rdparty/purism-blobs/mainboard/purism/librem_jsl/librem_11/flashdescriptor.bin"
|
||||
CONFIG_ME_BIN_PATH="3rdparty/purism-blobs/mainboard/purism/librem_jsl/librem_11/me.bin"
|
||||
CONFIG_HAVE_IFD_BIN=y
|
||||
CONFIG_BOARD_PURISM_LIBREM_11=y
|
||||
CONFIG_LINUX_COMMAND_LINE="quiet loglevel=2"
|
||||
CONFIG_FSP_M_FILE="3rdparty/purism-blobs/mainboard/purism/librem_jsl/librem_11/fspm.bin"
|
||||
CONFIG_FSP_S_FILE="3rdparty/purism-blobs/mainboard/purism/librem_jsl/librem_11/fsps.bin"
|
||||
CONFIG_CPU_MICROCODE_CBFS_EXTERNAL_BINS=y
|
||||
CONFIG_CPU_UCODE_BINARIES="3rdparty/purism-blobs/mainboard/purism/librem_jsl/cpu_microcode_blob.bin"
|
||||
CONFIG_HAVE_ME_BIN=y
|
||||
CONFIG_ADD_FSP_BINARIES=y
|
||||
CONFIG_PAYLOAD_LINUX=y
|
||||
CONFIG_PAYLOAD_FILE="@BOARD_BUILD_DIR@/bzImage"
|
||||
CONFIG_LINUX_INITRD="@BOARD_BUILD_DIR@/initrd.cpio.xz"
|
||||
CONFIG_CBFS_SIZE=0xC00000
|
@ -88,7 +88,7 @@ export GPG_TTY=/dev/console
|
||||
[ -x /bin/bash ] && /bin/key-init
|
||||
|
||||
# Override CONFIG_USE_BLOB_JAIL if needed and persist via user config
|
||||
if lspci -n | grep -q "8086:2723"; then
|
||||
if lspci -n | grep -E -q "8086:(2723|4df0)"; then
|
||||
if ! cat /etc/config.user 2>/dev/null | grep -q "USE_BLOB_JAIL"; then
|
||||
echo "CONFIG_USE_BLOB_JAIL=y" >> /etc/config.user
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user