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 (_HID, "BMA222E")
34 Name (RBUF, ResourceTemplate ()
59 ASL Optimizing Compiler version 20140214-64 [Mar 29 2014]
60 Copyright (c) 2000 - 2014 Intel Corporation
62 ASL Input: minnomax.asl - 30 lines, 614 bytes, 7 keywords
63 AML Output: minnowmax.aml - 165 bytes, 6 named objects, 1 executable opcodes
78 "kernel/firmware/acpi" path. Multiple files can be used and this will translate
85 # They must be put into a /kernel/firmware/acpi directory inside the
90 mkdir -p kernel/firmware/acpi
91 cp ssdt.aml kernel/firmware/acpi
95 find kernel | cpio -H newc --create > /boot/instrumented_initrd
109 command line parameter can be used (the name has a limitation of 16 characters).
110 The argument for the option is the variable name to use. If there are multiple
111 variables with the same name but with different vendor GUIDs, all of them will
115 used. It is enabled and mounted by default in /sys/firmware/efi/efivars in all
118 Creating a new file in /sys/firmware/efi/efivars will automatically create a new
119 EFI variable. Updating a file in /sys/firmware/efi/efivars will update the EFI
120 variable. Please note that the file name needs to be specially formatted as
121 "Name-GUID" and that the first 4 bytes in the file (little-endian format)
129 #!/bin/sh -e
131 while [ -n "$1" ]; do
133 "-f") filename="$2"; shift;;
134 "-g") guid="$2"; shift;;
135 *) name="$1";;
142 echo "Syntax: ${0##*/} -f filename [ -g guid ] name"
146 [ -n "$name" -a -f "$filename" ] || usage
148 EFIVARFS="/sys/firmware/efi/efivars"
150 [ -d "$EFIVARFS" ] || exit 2
152 if stat -tf $EFIVARFS | grep -q -v de5e81e4; then
153 mount -t efivarfs none $EFIVARFS
157 [ -n "$guid" ] || guid=$(find "$EFIVARFS" -name "$name-*" | head -n1 | cut -f2- -d-)
160 [ -n "$guid" ] || guid="$(cat /proc/sys/kernel/random/uuid)"
164 /bin/echo -ne "\007\000\000\000" | cat - $filename > $tmp
165 dd if=$tmp of="$EFIVARFS/$name-$guid" bs=$(stat -c %s $tmp)