| Submitter | Joshua Roys |
|---|---|
| Date | 2010-08-30 01:48:52 |
| Message ID | <AANLkTikWSD3R9Ks=27nO5_PBYFeXnmufouQjoVoNnTE9@mail.gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/1809/ |
| State | Superseded |
| Headers | show |
Comments
On 08/30/2010 03:48 AM, Joshua Roys wrote: > > Hello! > > Here's a board enable for you to try. Just patch flashrom (patch -p1 > < patch) and give it another try. Let us know if it worked. > > Thanks, > > Josh The patch gives me a compilation error: cc -MMD -Os -Wall -Wshadow -Werror -D'CONFIG_INTERNAL=1' -D'CONFIG_SERPROG=1' -D'CONFIG_RAYER_SPI=1' -D'CONFIG_BITBANG_SPI=1' -D'CONFIG_NIC3COM=1' -D'CONFIG_GFXNVIDIA=1' -D'CONFIG_SATASII=1' -D'CONFIG_FT2232_SPI=1' -D'CONFIG_DUMMY=1' -D'CONFIG_DRKAISER=1' -D'CONFIG_NICREALTEK=1' -D'CONFIG_BUSPIRATE_SPI=1' -D'NEED_PCI=1' -D'HAVE_UTSNAME=1' -D'FLASHROM_VERSION="0.9.2-r1145"' -o print.o -c print.c print.c:366:93: error: macro "B" requires 5 arguments, but only 4 given print.c:366:2: error: ‘B’ undeclared here (not in a function) make: *** [print.o] Error 1 Bob
On 08/30/2010 03:48 AM, Joshua Roys wrote: > > Here's a board enable for you to try. Just patch flashrom (patch -p1 > < patch) and give it another try. Let us know if it worked. > > Thanks, > > Josh Ok, I compiled the program: there was only a missing "," at line 40 of the patch (after the board name). I'll try tonight and then report back. Many tanks for you help. Bob
On 08/30/2010 03:48 AM, Joshua Roys wrote: > > Hello! > > Here's a board enable for you to try. Just patch flashrom (patch -p1 > < patch) and give it another try. Let us know if it worked. > > Thanks, > > Josh All working after the reboot :) The output was the following: ==================================== flashrom -w P5GD2.1010.ori.rom flashrom v0.9.2-r1145 on Linux 2.6.35-ARCH (i686), built with libpci 3.1.7, GCC 4.5.1, little endian flashrom is free software, get the source code at http://www.flashrom.org Calibrating delay loop... OK. No coreboot table found. Found chipset "Intel ICH6/ICH6R", enabling flash write... OK. This chipset supports the following protocols: FWH. Disabling flash write protection for board "ASUS P5GD2 Premium"... OK. Found chip "SST SST49LF008A" (1024 KB, FWH) at physical address 0xfff00000. Flash image seems to be a legacy BIOS. Disabling checks. Writing flash chip... Erasing flash chip... SUCCESS. Programming page: DONE!ss: 0x000ff000 COMPLETE. Verifying flash... VERIFIED. ==================================== Thanks again for your help. Bob
Patch
diff --git a/board_enable.c b/board_enable.c index ae0fbfa..9a9b0ee 100644 --- a/board_enable.c +++ b/board_enable.c @@ -1329,6 +1329,7 @@ static int intel_ich_gpio19_raise(void) * - ASUS P4B266LM (Sony Vaio PCV-RX650): socket478 + 845D + ICH2 * - ASUS P4C800-E Deluxe: socket478 + 875P + ICH5 * - ASUS P4P800-E Deluxe: Intel socket478 + 865PE + ICH5R + * - ASUS P5GD2 Premium: Intel LGA775 + 915G + ICH6R * - ASUS P5PE-VM: Intel LGA775 + 865G + ICH5 * - Samsung Polaris 32: socket478 + 865P + ICH5 */ @@ -1787,6 +1788,7 @@ const struct board_pciid_enable board_pciid_enables[] = { {0x8086, 0x2570, 0x1043, 0x80A5, 0x105A, 0x24D3, 0x1043, 0x80A6, NULL, NULL, NULL, "ASUS", "P4SD-LA", 0, NT, intel_ich_gpio32_raise}, {0x1039, 0x0661, 0x1043, 0x8113, 0x1039, 0x5513, 0x1043, 0x8087, NULL, NULL, NULL, "ASUS", "P4S800-MX", 512, OK, w836xx_memw_enable_2e}, {0x10B9, 0x1541, 0, 0, 0x10B9, 0x1533, 0, 0, "^P5A$", "asus", "p5a", "ASUS", "P5A", 0, OK, board_asus_p5a}, + {0x8086, 0x266a, 0x1043, 0x80a6, 0x8086, 0x2668, 0x1043, 0x813d, NULL, NULL, NULL, "ASUS", "P5GD2 Premium", 0, OK, intel_ich_gpio21_raise}, {0x10DE, 0x0030, 0x1043, 0x818a, 0x8086, 0x100E, 0x1043, 0x80EE, NULL, NULL, NULL, "ASUS", "P5ND2-SLI Deluxe", 0, OK, nvidia_mcp_gpio10_raise}, {0x8086, 0x24dd, 0x1043, 0x80a6, 0x8086, 0x2570, 0x1043, 0x8157, NULL, NULL, NULL, "ASUS", "P5PE-VM", 0, OK, intel_ich_gpio21_raise}, {0x8086, 0x3590, 0x1028, 0x016c, 0x1000, 0x0030, 0x1028, 0x016c, NULL, NULL, NULL, "Dell", "PowerEdge 1850", 0, OK, intel_ich_gpio23_raise}, diff --git a/print.c b/print.c index 4871cc8..dfeec50 100644 --- a/print.c +++ b/print.c @@ -363,6 +363,7 @@ const struct board_info boards_known[] = { B("ASUS", "P5B-Deluxe", 1, "http://www.asus.com/product.aspx?P_ID=bswT66IBSb2rEWNa", NULL), B("ASUS", "P5BV-M", 0, "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B-VM/", NULL), B("ASUS", "P5GC-MX/1333", 1, "http://www.asus.com/product.aspx?P_ID=PYvbfOokwxUzJky3", NULL), + B("ASUS", "P5GD2 Premium" 1, "http://www.asus.it/product.aspx?P_ID=lRKaz1Rb6Xb0OFM7", NULL), B("ASUS", "P5KC", 1, "http://www.asus.com/product.aspx?P_ID=fFZ8oUIGmLpwNMjj", NULL), B("ASUS", "P5L-MX", 1, "http://www.asus.com/product.aspx?P_ID=X70d3NCzH2DE9vWH", NULL), B("ASUS", "P5ND2-SLI Deluxe", 1, "http://www.asus.com/product.aspx?P_ID=WY7XroDuUImVbgp5", NULL),