Home
last modified time | relevance | path

Searched full:hwid (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/external/vboot_reference/tests/
Dvboot_display_tests.c45 strcpy(gbb_data + gbb->hwid_offset, "Test HWID"); in ResetMocks()
100 char hwid[VB_REGION_HWID_LEN]; in DebugInfoTest() local
107 /* HWID should come from the gbb */ in DebugInfoTest()
109 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
110 TEST_EQ(strcmp(hwid, "Test HWID"), 0, "HWID"); in DebugInfoTest()
115 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
116 TEST_EQ(strcmp(hwid, "{INVALID}"), 0, "HWID bad gbb"); in DebugInfoTest()
121 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
122 TEST_EQ(strcmp(hwid, "{INVALID}"), 0, "HWID missing"); in DebugInfoTest()
127 VbRegionReadHWID(&cparams, hwid, sizeof(hwid)); in DebugInfoTest()
[all …]
/external/vboot_reference/scripts/image_signing/
Dmake_dev_firmware.sh8 # image or system live firmware (EEPROM), and assign proper HWID, FLAGS as well.
98 # Converts HWID from $1 to proper format with "DEV" extension
100 local hwid="$1"
101 local hwid_no_dev="${hwid% DEV}"
103 # NOTE: Some DEV firmware image files may put GUID in HWID.
106 if [ "$hwid" != "$hwid_no_dev" ]; then
107 hwid="$hwid_no_dev"
109 local hwid_dev="$hwid DEV"
222 debug_msg "Extract current HWID"
224 old_hwid="$(gbb_utility --get --hwid "$IMAGE" 2>"$EXEC_LOG" |
[all …]
/external/autotest/server/site_tests/firmware_TPMExtend/
Dfirmware_TPMExtend.py70 'Skip testing HWID digest in PCR1 due to firmware version')
72 logging.info('Verifying HWID digest in PCR1')
73 hwid = self.faft_client.system.run_shell_command_get_output(
74 'crossystem hwid')[0]
75 logging.debug('HWID reported by device is: %s', hwid)
76 if not self._check_pcr(1, hashlib.sha256(_encode_text(hwid))):
78 'PCR1 was not extended with SHA256 of HWID!')
Dcontrol9 PURPOSE = "Ensure TPM PCRs have been correctly extended with boot mode and HWID"
22 encodes the current boot mode and the HWID, respectively.
/external/vboot_reference/tests/futility/
Dtest_gbb_utility.sh24 # HWID length should include the terminating null - this is too long
25 if ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDEF" ${TMP}.blob; then
29 ${FUTILITY} gbb_utility -s --hwid="0123456789ABCDE" ${TMP}.blob
104 # (HWID) 0x0080 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 00
123 # HWID not null-terminated is invalid
127 # HWID of length zero is okay
130 # And HWID of length 1 consisting only of '\0' is okay, too.
134 # zero-length HWID not null-terminated is invalid
162 # hwid: offset + size == end of file is okay; beyond is invalid
189 if ${FUTILITY} gbb_utility -s --hwid="A" ${TMP}.blob.bad; then false; fi
[all …]
/external/chromium-trace/catapult/third_party/pyserial/serial/tools/
Dlist_ports.py43 for port, desc, hwid in comports():
44 if r.search(port) or r.search(desc) or r.search(hwid):
45 yield port, desc, hwid
88 for port, desc, hwid in iterator:
92 print(" hwid: %s" % (hwid,))
/external/python/pyserial/serial/tools/
Dlist_ports_common.py42 self.hwid = 'n/a'
53 self.hwid = 'LINK={}'.format(os.path.realpath(device))
73 """update description and hwid from USB data"""
75 self.hwid = self.usb_info()
94 """Item access: backwards compatible -> (port, desc, hwid)"""
100 return self.hwid
Dlist_ports.py47 port, desc, hwid = info
48 if r.search(port) or r.search(desc) or r.search(hwid):
94 for n, (port, desc, hwid) in enumerate(iterator, 1):
99 sys.stdout.write(" hwid: {}\n".format(hwid))
/external/vboot_reference/firmware/include/
Dregion.h45 * @param hwid Place to put HWID, which will be null-terminated
46 * @param max_size Maximum size of HWID including terminated null
52 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid,
Dbmpblk_header.h102 uint32_t tag; /* Tag it as a special image, like HWID */
121 TAG_HWID_RTOL, /* "right-to-left", ie, right-justified HWID */
133 * ASCII HWID should be displayed. For RENDER_HWID, the image coordinates
134 * specify upper-left corner of the HWID string. For RENDER_HWID_RTOL, they
137 #define RENDER_HWID "$HWID"
138 #define RENDER_HWID_RTOL "$HWID.rtol"
Dgbb_header.h30 /* v1.2 - added field to hold sha256 digest of the HWID */
32 /* Maximum length of a HWID in bytes, counting terminating null. */
84 uint32_t hwid_offset; /* HWID */
/external/vboot_reference/firmware/lib/
Dregion-kernel.c65 VbError_t VbRegionReadHWID(VbCommonParams *cparams, char *hwid, in VbRegionReadHWID() argument
73 *hwid = '\0'; in VbRegionReadHWID()
74 StrnAppend(hwid, "{INVALID}", max_size); in VbRegionReadHWID()
81 VBDEBUG(("VbHWID(): invalid hwid size\n")); in VbRegionReadHWID()
86 VBDEBUG(("VbDisplayDebugInfo(): invalid hwid offset/size\n")); in VbRegionReadHWID()
89 ret = VbRegionReadGbb(cparams, gbb->hwid_offset, gbb->hwid_size, hwid); in VbRegionReadHWID()
Dvboot_display.c221 char hwid[256]; in VbDisplayScreenFromGBB() local
267 VbRegionReadHWID(cparams, hwid, sizeof(hwid)); in VbDisplayScreenFromGBB()
268 text_to_show = hwid; in VbDisplayScreenFromGBB()
510 char hwid[256]; in VbDisplayDebugInfo() local
520 VbRegionReadHWID(cparams, hwid, sizeof(hwid)); in VbDisplayDebugInfo()
521 used += StrnAppend(buf + used, "HWID: ", DEBUG_INFO_SIZE - used); in VbDisplayDebugInfo()
522 used += StrnAppend(buf + used, hwid, DEBUG_INFO_SIZE - used); in VbDisplayDebugInfo()
/external/autotest/server/hosts/
Dcros_repair_unittest.py26 (cros_repair.HWIDVerifier, 'hwid', ('ssh', )),
87 'ext4'), ('power', 'rwfw', 'fwstatus', 'python', 'hwid', 'cros',
91 'python', 'hwid', 'cros', 'dev_default_boot', 'stop_start_ui',
95 'rwfw', 'fwstatus', 'python', 'hwid', 'cros', 'dev_default_boot',
123 (cros_repair.HWIDVerifier, 'hwid', ('ssh', )),
175 ('power', 'rwfw', 'fwstatus', 'python', 'hwid', 'cros',
180 ('power', 'rwfw', 'fwstatus', 'python', 'hwid', 'cros',
185 'ext4'), ('power', 'rwfw', 'fwstatus', 'python', 'hwid', 'cros',
190 'python', 'hwid', 'cros', 'dev_default_boot', 'jetstream_tpm',
203 'hwid',
/external/vboot_reference/futility/
Dcmd_gbb_utility.c30 " --hwid \tReport hardware id (default).\n" in print_help()
32 " --digest \tReport digest of hwid (>= v1.2)\n" in print_help()
41 " --hwid=HWID \tThe new hardware id to be changed.\n" in print_help()
53 " %s --set --hwid='New Model' -k key.bin" in print_help()
75 {"hwid", 0, NULL, OPT_HWID},
377 opt_has_arg("hwid", 0); in do_gbb_utility()
382 opt_has_arg("hwid", 1); in do_gbb_utility()
401 /* --hwid is optional: null might be okay */ in do_gbb_utility()
462 /* With no args, show the HWID */ in do_gbb_utility()
516 fprintf(stderr, "\nERROR: missing new HWID value\n"); in do_gbb_utility()
[all …]
/external/python/pyserial/documentation/
Dtools.rst32 USB devices (e.g. the :attr:`ListPortInfo.hwid` string contains `VID:PID`,
39 will include ``LINK`` in their ``hwid`` string. This implies that the same
58 ``description`` and ``hwid`` are searched (case insensitive). The function
66 access for backwards compatibility, as in ``port, desc, hwid = info``.
82 .. attribute:: hwid
150 hwid: PNP0501
153 hwid: USB VID:PID=10C4:EA60 SER=0001 LOCATION=2-1.6
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c169 __u8 hwid = 7; in erspan_set_tunnel() local
173 md.u.md2.hwid = hwid & 0xf; in erspan_set_tunnel()
174 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in erspan_set_tunnel()
213 bpf_printk("\tdirection %d hwid %x timestamp %u\n", in erspan_get_tunnel()
215 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in erspan_get_tunnel()
249 __u8 hwid = 17; in ip4ip6erspan_set_tunnel() local
253 md.u.md2.hwid = hwid & 0xf; in ip4ip6erspan_set_tunnel()
254 md.u.md2.hwid_upper = (hwid >> 4) & 0x3; in ip4ip6erspan_set_tunnel()
294 bpf_printk("\tdirection %d hwid %x timestamp %u\n", in ip4ip6erspan_get_tunnel()
296 (md.u.md2.hwid_upper << 4) + md.u.md2.hwid, in ip4ip6erspan_get_tunnel()
/external/autotest/client/bin/
Dsite_sysinfo.py448 # Get the hwid (hardware ID), if applicable.
450 keyval["hwid"] = utils.system_output('crossystem hwid')
452 # The hwid may not be available (e.g, when running on a VM).
454 # we expect the hwid to not be avilable, and we can proceed in this
455 # case. Otherwise, the hwid is missing unexpectedly.
459 'HWID not available; not logging it as a test keyval.')
461 logging.exception('HWID expected but could not be identified; '
/external/autotest/server/cros/
Dfactory_install_test.py46 # string with a single argument (the name of the HWID cfg).
53 mkdir -p "$MOUNT_DIR/dev_image/share/chromeos-hwid"
54 echo %s > "$MOUNT_DIR/dev_image/share/chromeos-hwid/cfg"
87 Returns the HWID cfg, used to select a test list.
191 # Create a pseudo-HWID-updater that merely sets the HWID to "vm" or
/external/autotest/site_utils/deployment/prepare/
Ddut.py587 hwid = host.run('crossystem hwid', ignore_status=True).stdout
590 if not hwid and not serial_number:
592 'Failed to retrieve HWID and SerialNumber from host %s' %
597 if not hwid:
598 raise Exception('Failed to retrieve HWID from host %s' % host.hostname)
600 info.attributes['HWID'] = hwid
604 logging.info("Reading HWID and SerialNumber completed successfully.")
/external/autotest/server/cros/servo/
Dfirmware_programmer.py150 """Program the firmware but preserve VPD and HWID."""
209 # HWID is inside the RO portion. Don't preserve HWID if we keep RO.
211 # Read original HWID. The output format is:
214 'futility gbb -g --hwid %s' % self._gbb)
217 # Write HWID to new firmware
218 self._servo_host.run("futility gbb -s --hwid='%s' %s" %
/external/vboot_reference/tests/bitmaps/
Dcase_badbmp.yaml8 $HWID: FontFile.bin
14 - [100, 100, $HWID]
/external/vboot_reference/utility/
Dvbutil_what_keys74 local hwid matchh rootkey matchn recoverykey matchr
76 hwid=$(futility gbb_utility --hwid "$file" | sed -e 's/^.*: *//') || return
77 matchh=$(grep "$hwid" "$0" 2>/dev/null | sed -e 's/^# //')
89 echo "$space hwid: ${matchh:-$hwid}"
/external/kernel-headers/original/uapi/linux/
Derspan.h30 hwid:4; member
35 __u8 hwid:4, member
/external/libxkbcommon/test/data/rules/
Dxkb.dtd56 <!ELEMENT hwList (hwId+)>
58 <!ELEMENT hwId (#PCDATA)>

12345678910>>...14