• Home
  • Raw
  • Download

Lines Matching +full:firmware +full:- +full:name

1 .. SPDX-License-Identifier: GPL-2.0
7 In order to support ACPI open-ended hardware configurations (e.g. development
8 boards) we need a way to augment the ACPI configuration provided by the firmware
13 recompiling the firmware image with updated ACPI tables, neither is practical:
15 access to firmware tools which are often not publicly available.
18 way to augment firmware ACPI configuration is by dynamically loading
33 Name (_ADR, Zero)
34 Name (_HID, "BMA222E")
38 Name (RBUF, ResourceTemplate ()
60 ASL Optimizing Compiler version 20140214-64 [Mar 29 2014]
61 Copyright (c) 2000 - 2014 Intel Corporation
63 ASL Input: minnomax.asl - 30 lines, 614 bytes, 7 keywords
64 AML Output: minnowmax.aml - 165 bytes, 6 named objects, 1 executable opcodes
79 "kernel/firmware/acpi" path. Multiple files can be used and this will translate
86 # They must be put into a /kernel/firmware/acpi directory inside the
91 mkdir -p kernel/firmware/acpi
92 cp ssdt.aml kernel/firmware/acpi
96 find kernel | cpio -H newc --create > /boot/instrumented_initrd
109 parameter can be used. The argument for the option is the variable name to
110 use. If there are multiple variables with the same name but with different
114 used. It is enabled and mounted by default in /sys/firmware/efi/efivars in all
117 Creating a new file in /sys/firmware/efi/efivars will automatically create a new
118 EFI variable. Updating a file in /sys/firmware/efi/efivars will update the EFI
119 variable. Please note that the file name needs to be specially formatted as
120 "Name-GUID" and that the first 4 bytes in the file (little-endian format)
128 #!/bin/sh -e
130 while ! [ -z "$1" ]; do
132 "-f") filename="$2"; shift;;
133 "-g") guid="$2"; shift;;
134 *) name="$1";;
141 echo "Syntax: ${0##*/} -f filename [ -g guid ] name"
145 [ -n "$name" -a -f "$filename" ] || usage
147 EFIVARFS="/sys/firmware/efi/efivars"
149 [ -d "$EFIVARFS" ] || exit 2
151 if stat -tf $EFIVARFS | grep -q -v de5e81e4; then
152 mount -t efivarfs none $EFIVARFS
156 [ -n "$guid" ] || guid=$(find "$EFIVARFS" -name "$name-*" | head -n1 | cut -f2- -d-)
159 [ -n "$guid" ] || guid="$(cat /proc/sys/kernel/random/uuid)"
163 /bin/echo -ne "\007\000\000\000" | cat - $filename > $tmp
164 dd if=$tmp of="$EFIVARFS/$name-$guid" bs=$(stat -c %s $tmp)