flashrom v0.9.7-r1711 on Darwin 12.4.0 (x86_64)
flashrom is free software, get the source code at http://www.flashrom.org
flashrom was built with libpci 3.2.0, LLVM Clang 4.2 (clang-425.0.28), little endian
Command line (5 args): ~/Downloads/DPCIManager_ML/DPCIManager.app/Contents/MacOS/flashrom -VV -r /var/folders/20/z358b9w11kq_06vpwcv0wtc00000gn/T/DPCI4tPn3W.rom -p internal
Calibrating delay loop... OS timer resolution is 1 usecs, 322M loops per second, 10 myus = 10 us, 100 myus = 102 us, 1000 myus = 1052 us, 10000 myus = 10537 us, 4 myus = 3 us, OK.
Initializing internal programmer
Mapping low megabyte at 0x0000000000000400, unaligned size 0xffc00.
Mapping low megabyte, 0xffc00 bytes at unaligned 0x0000000000000400.
No coreboot table found.
DMI string system-manufacturer: "ASUSTeK Computer Inc. "
DMI string system-product-name: "K50IN "
DMI string system-version: "1.0 "
DMI string baseboard-manufacturer: "ASUSTeK Computer Inc. "
DMI string baseboard-product-name: "K50IN "
DMI string baseboard-version: "1.0 "
DMI string chassis-type: "Notebook"
Laptop detected via DMI.
========================================================================
WARNING! You seem to be running flashrom on an unsupported laptop.
Laptops, notebooks and netbooks are difficult to support and we
recommend to use the vendor flashing utility. The embedded controller
(EC) in these machines often interacts badly with flashing.
See the manpage and http://www.flashrom.org/Laptops for details.
If flash is shared with the EC, erase is guaranteed to brick your laptop
and write may brick your laptop.
Read and probe may irritate your EC and cause fan failure, backlight
failure and sudden poweroff.
You have been warned.
========================================================================
Aborting.
Error: Programmer initialization failed.
flashrom v0.9.7-r1711 on Darwin 12.4.0 (x86_64)
flashrom is free software, get the source code at http://www.flashrom.org
flashrom was built with libpci 3.2.0, LLVM Clang 4.2 (clang-425.0.28), little endian
Command line (5 args): /Volumes/Dados/Apps/DPCIManager_ML/DPCIManager.app/Contents/MacOS/flashrom -VV -r ~/Desktop/Quanta 30D2 F.5A.rom -p internal
Calibrating delay loop... OS timer resolution is 1 usecs, 303M loops per second, 10 myus = 9 us, 100 myus = 94 us, 1000 myus = 1079 us, 10000 myus = 10146 us, 4 myus = 4 us, OK.
Initializing internal programmer
Mapping low megabyte at 0x0000000000000400, unaligned size 0xffc00.
Mapping low megabyte, 0xffc00 bytes at unaligned 0x0000000000000400.
No coreboot table found.
DMI string system-manufacturer: "Hewlett-Packard"
DMI string system-product-name: "HP Pavilion dv6500 Notebook PC "
DMI string system-version: "Rev 1"
DMI string baseboard-manufacturer: "Quanta"
DMI string baseboard-product-name: "30D2"
DMI string baseboard-version: "79.2E"
DMI string chassis-type: "Notebook"
Laptop detected via DMI.
========================================================================
WARNING! You seem to be running flashrom on an unsupported laptop.
Laptops, notebooks and netbooks are difficult to support and we
recommend to use the vendor flashing utility. The embedded controller
(EC) in these machines often interacts badly with flashing.
See the manpage and http://www.flashrom.org/Laptops for details.
If flash is shared with the EC, erase is guaranteed to brick your laptop
and write may brick your laptop.
Read and probe may irritate your EC and cause fan failure, backlight
failure and sudden poweroff.
You have been warned.
========================================================================
Aborting.
Error: Programmer initialization failed.
flashrom v0.9.7-r1711 on Linux 3.10.9-1-ARCH (x86_64)
flashrom is free software, get the source code at
http://www.flashrom.org
flashrom was built with libpci 3.2.0, GCC 4.8.1 20130725 (prerelease),
little endian Command line (2 args): flashrom --programmer=internal -V
Calibrating delay loop... OS timer resolution is 1 usecs, 2493M loops
per second, 10 myus = 10 us, 100 myus = 105 us, 1000 myus = 1007 us,
10000 myus = 10006 us, 4 myus = 6 us, OK. Initializing internal
programmer No coreboot table found. DMI string system-manufacturer:
"TOSHIBA" DMI string system-product-name: "SATELLITE PRO C850-1K0"
DMI string system-version: "PSCBXE-02E00KGR"
DMI string baseboard-manufacturer: "Intel"
DMI string baseboard-product-name: "PLCSF8"
DMI string baseboard-version: "Type2 - Board Version"
DMI string chassis-type: "Notebook"
Laptop detected via DMI.
W836xx enter config mode worked or we were already in config mode.
W836xx leave config mode had no effect. Active config mode, unknown reg
0x20 ID: 02. Please send the output of "flashrom -V" to
flashrom(a)flashrom.org with W836xx: your board name: flashrom -V
as the subject to help us finish support for your Super I/O. Thanks.
========================================================================
WARNING! You seem to be running flashrom on an unsupported laptop.
Laptops, notebooks and netbooks are difficult to support and we
recommend to use the vendor flashing utility. The embedded controller
(EC) in these machines often interacts badly with flashing.
See the manpage and http://www.flashrom.org/Laptops for details.
If flash is shared with the EC, erase is guaranteed to brick your laptop
and write may brick your laptop.
Read and probe may irritate your EC and cause fan failure, backlight
failure and sudden poweroff.
You have been warned.
========================================================================
Aborting.
Error: Programmer initialization failed.
Author: stefanct
Date: Sat Aug 31 00:23:02 2013
New Revision: 1732
URL: http://flashrom.org/trac/flashrom/changeset/1732
Log:
layout: Rename romlayout_t to romentry_t.
The type describes one entry of the whole layout actually.
Using layout_entry_t or something similar would be more correct,
but due to it length we will use "rom" instead of "layout" here and
in upcoming code.
Signed-off-by: Stefan Tauner <stefan.tauner(a)student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner(a)student.tuwien.ac.at>
Modified:
trunk/layout.c
Modified: trunk/layout.c
==============================================================================
--- trunk/layout.c Sat Aug 31 00:22:57 2013 (r1731)
+++ trunk/layout.c Sat Aug 31 00:23:02 2013 (r1732)
@@ -32,10 +32,10 @@
unsigned int end;
unsigned int included;
char name[256];
-} romlayout_t;
+} romentry_t;
/* rom_entries store the entries specified in a layout file and associated run-time data */
-static romlayout_t rom_entries[MAX_ROMLAYOUT];
+static romentry_t rom_entries[MAX_ROMLAYOUT];
static int num_rom_entries = 0; /* the number of valid rom_entries */
/* include_args holds the arguments specified at the command line with -i. They must be processed at some point
@@ -189,12 +189,12 @@
return 0;
}
-romlayout_t *get_next_included_romentry(unsigned int start)
+romentry_t *get_next_included_romentry(unsigned int start)
{
int i;
unsigned int best_start = UINT_MAX;
- romlayout_t *best_entry = NULL;
- romlayout_t *cur;
+ romentry_t *best_entry = NULL;
+ romentry_t *cur;
/* First come, first serve for overlapping regions. */
for (i = 0; i < num_rom_entries; i++) {
@@ -219,7 +219,7 @@
int handle_romentries(const struct flashctx *flash, uint8_t *oldcontents, uint8_t *newcontents)
{
unsigned int start = 0;
- romlayout_t *entry;
+ romentry_t *entry;
unsigned int size = flash->chip->total_size * 1024;
/* If no regions were specified for inclusion, assume
Author: stefanct
Date: Sat Aug 31 00:22:57 2013
New Revision: 1731
URL: http://flashrom.org/trac/flashrom/changeset/1731
Log:
layout: Rename romimages to num_rom_entries.
Since we are planning to support image files for rom entries, rename the
variable used to count the number of known rom entries to avoid confusion.
There is already num_include_args with similar semantics, hence we use
num_rom_entries.
Signed-off-by: Stefan Tauner <stefan.tauner(a)student.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner(a)student.tuwien.ac.at>
Modified:
trunk/layout.c
Modified: trunk/layout.c
==============================================================================
--- trunk/layout.c Fri Aug 30 23:29:45 2013 (r1730)
+++ trunk/layout.c Sat Aug 31 00:22:57 2013 (r1731)
@@ -25,8 +25,6 @@
#include "flash.h"
#include "programmer.h"
-static int romimages = 0;
-
#define MAX_ROMLAYOUT 32
typedef struct {
@@ -36,13 +34,14 @@
char name[256];
} romlayout_t;
-/* include_args lists arguments specified at the command line with -i. They
- * must be processed at some point so that desired regions are marked as
- * "included" in the rom_entries list.
- */
-static char *include_args[MAX_ROMLAYOUT];
-static int num_include_args = 0; /* the number of valid entries. */
+/* rom_entries store the entries specified in a layout file and associated run-time data */
static romlayout_t rom_entries[MAX_ROMLAYOUT];
+static int num_rom_entries = 0; /* the number of valid rom_entries */
+
+/* include_args holds the arguments specified at the command line with -i. They must be processed at some point
+ * so that desired regions are marked as "included" in the rom_entries list. */
+static char *include_args[MAX_ROMLAYOUT];
+static int num_include_args = 0; /* the number of valid include_args. */
#ifndef __LIBPAYLOAD__
int read_romlayout(char *name)
@@ -62,12 +61,12 @@
while (!feof(romlayout)) {
char *tstr1, *tstr2;
- if (romimages >= MAX_ROMLAYOUT) {
+ if (num_rom_entries >= MAX_ROMLAYOUT) {
msg_gerr("Maximum number of ROM images (%i) in layout "
"file reached.\n", MAX_ROMLAYOUT);
return 1;
}
- if (2 != fscanf(romlayout, "%s %s\n", tempstr, rom_entries[romimages].name))
+ if (2 != fscanf(romlayout, "%s %s\n", tempstr, rom_entries[num_rom_entries].name))
continue;
#if 0
// fscanf does not like arbitrary comments like that :( later
@@ -82,13 +81,13 @@
fclose(romlayout);
return 1;
}
- rom_entries[romimages].start = strtol(tstr1, (char **)NULL, 16);
- rom_entries[romimages].end = strtol(tstr2, (char **)NULL, 16);
- rom_entries[romimages].included = 0;
- romimages++;
+ rom_entries[num_rom_entries].start = strtol(tstr1, (char **)NULL, 16);
+ rom_entries[num_rom_entries].end = strtol(tstr2, (char **)NULL, 16);
+ rom_entries[num_rom_entries].included = 0;
+ num_rom_entries++;
}
- for (i = 0; i < romimages; i++) {
+ for (i = 0; i < num_rom_entries; i++) {
msg_gdbg("romlayout %08x - %08x named %s\n",
rom_entries[i].start,
rom_entries[i].end, rom_entries[i].name);
@@ -139,11 +138,11 @@
{
int i;
- if (!romimages)
+ if (num_rom_entries == 0)
return -1;
msg_gspew("Looking for region \"%s\"... ", name);
- for (i = 0; i < romimages; i++) {
+ for (i = 0; i < num_rom_entries; i++) {
if (!strcmp(rom_entries[i].name, name)) {
rom_entries[i].included = 1;
msg_gspew("found.\n");
@@ -166,7 +165,7 @@
return 0;
/* User has specified an area, but no layout file is loaded. */
- if (!romimages) {
+ if (num_rom_entries == 0) {
msg_gerr("Region requested (with -i \"%s\"), "
"but no layout data is available.\n",
include_args[0]);
@@ -198,7 +197,7 @@
romlayout_t *cur;
/* First come, first serve for overlapping regions. */
- for (i = 0; i < romimages; i++) {
+ for (i = 0; i < num_rom_entries; i++) {
cur = &rom_entries[i];
if (!cur->included)
continue;