blob: a3fef19e840e2b0fb4971bc4e59fc7340adfb0cd [file] [log] [blame]
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +00001/*
2 * This file is part of the flashrom project.
3 *
4 * Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
5 * Copyright (C) 2009 Carl-Daniel Hailfinger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#include <string.h>
23#include <stdlib.h>
24#include <time.h>
25#include "flash.h"
26#include "flashchips.h"
27
28struct board_info_url {
29 const char *vendor;
30 const char *name;
31 const char *url;
32};
33
34struct board_info_notes {
35 const char *vendor;
36 const char *name;
37 const char *note;
38};
39
40const char *wiki_header = "= Supported devices =\n\n\
41<div style=\"margin-top:0.5em; padding:0.5em 0.5em 0.5em 0.5em; \
42background-color:#eeeeee; align:right; border:1px solid #aabbcc;\"><small>\n\
43Please do '''not''' edit these tables in the wiki directly, they are \
44generated by pasting '''flashrom -z''' output.<br />\
45'''Last update:''' %s(generated by flashrom %s)\n</small></div>\n";
46
47const char *chipset_th = "{| border=\"0\" style=\"font-size: smaller\"\n\
48|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
49! align=\"left\" | Southbridge\n! align=\"left\" | PCI IDs\n\
50! align=\"left\" | Status\n\n";
51
52const char *board_th = "{| border=\"0\" style=\"font-size: smaller\" \
53valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
54! align=\"left\" | Mainboard\n! align=\"left\" | Status\n\n";
55
56const char *board_th2 = "{| border=\"0\" style=\"font-size: smaller\" \
57valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
58! align=\"left\" | Mainboard\n! align=\"left\" | Required option\n\
59! align=\"left\" | Status\n\n";
60
61const char *board_intro = "\
62\n== Supported mainboards ==\n\n\
63In general, it is very likely that flashrom works out of the box even if your \
64mainboard is not listed below.\n\nThis is a list of mainboards where we have \
65verified that they either do or do not need any special initialization to \
66make flashrom work (given flashrom supports the respective chipset and flash \
67chip), or that they do not yet work at all. If they do not work, support may \
68or may not be added later.\n\n\
69Mainboards which don't appear in the list may or may not work (we don't \
70know, someone has to give it a try). Please report any further verified \
71mainboards on the [[Mailinglist|mailing list]].\n";
72
73const char *chip_th = "{| border=\"0\" style=\"font-size: smaller\" \
74valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
75! align=\"left\" | Device\n! align=\"left\" | Size / KB\n\
76! align=\"left\" | Type\n! align=\"left\" colspan=\"4\" | Status\n\n\
77|- bgcolor=\"#6699ff\"\n| colspan=\"4\" | &nbsp;\n\
Carl-Daniel Hailfinger26f72a12010-01-18 07:02:19 +000078| Probe\n| Read\n| Erase\n| Write\n\n";
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +000079
80const char *programmer_section = "\
81\n== Supported programmers ==\n\nThis is a list \
82of supported PCI devices flashrom can use as programmer:\n\n{| border=\"0\" \
83valign=\"top\"\n| valign=\"top\"|\n\n{| border=\"0\" style=\"font-size: \
84smaller\" valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
85! align=\"left\" | Device\n! align=\"left\" | PCI IDs\n\
86! align=\"left\" | Status\n\n";
87
88const char *laptop_intro = "\n== Supported laptops/notebooks ==\n\n\
89In general, flashing laptops is more difficult because laptops\n\n\
90* often use the flash chip for stuff besides the BIOS,\n\
91* often have special protection stuff which has to be handled by flashrom,\n\
92* often use flash translation circuits which need drivers in flashrom.\n\n\
93<div style=\"margin-top:0.5em; padding:0.5em 0.5em 0.5em 0.5em; \
94background-color:#ff6666; align:right; border:1px solid #000000;\">\n\
95'''IMPORTANT:''' At this point we recommend to '''not''' use flashrom on \
96untested laptops unless you have a means to recover from a flashing that goes \
97wrong (a working backup flash chip and/or good soldering skills).\n</div>\n";
98
99/* Please keep these lists alphabetically ordered by vendor/board. */
100const struct board_info_url boards_url[] = {
101 /* Verified working boards that don't need write-enables. */
102 { "Abit", "AX8", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?DEFTITLE=Y&fMTYPE=Socket%20939&pMODEL_NAME=AX8" },
103 { "Abit", "Fatal1ty F-I90HD", "http://www.abit.com.tw/page/de/motherboard/motherboard_detail.php?pMODEL_NAME=Fatal1ty+F-I90HD&fMTYPE=LGA775" },
104 { "Advantech", "PCM-5820", "http://www.emacinc.com/sbc_pc_compatible/pcm_5820.htm" },
105 { "ASI", "MB-5BLMP", "http://www.hojerteknik.com/winnet.htm" },
106 { "ASRock", "A770CrossFire", "http://www.asrock.com/mb/overview.asp?Model=A770CrossFire&s=AM2\%2b" },
Idwer Volleringfcd070e2009-12-01 12:55:18 +0000107 { "ASRock", "K8S8X", "http://www.asrock.com/mb/overview.asp?Model=K8S8X" },
Zachary O Dillard9bd5eec2009-12-14 04:11:12 +0000108 { "ASRock", "M3A790GXH/128M" "http://www.asrock.com/MB/overview.asp?Model=M3A790GXH/128M" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000109 { "ASUS", "A7N8X Deluxe", "http://www.asus.com/Product.aspx?P_ID=wAsRYm41KTp78MFC" },
110 { "ASUS", "A7N8X-E Deluxe", "http://www.asus.com/products.aspx?l1=3&l2=13&l3=56&l4=0&model=217&modelmenu=1" },
111 { "ASUS", "A7V400-MX", "http://www.asus.com.tw/products.aspx?l1=3&l2=13&l3=63&l4=0&model=228&modelmenu=1" },
112 { "ASUS", "A7V8X-MX", "http://www.asus.com.tw/products.aspx?l1=3&l2=13&l3=64&l4=0&model=229&modelmenu=1" },
113 { "ASUS", "A8N-E", "http://www.asus.com.tw/products.aspx?l1=3&l2=15&l3=171&l4=0&model=455&modelmenu=2" },
114 { "ASUS", "A8NE-FM/S", "http://www.hardwareschotte.de/hardware/preise/proid_1266090/preis_ASUS+A8NE-FM" },
115 { "ASUS", "A8N-SLI", "http://asus.com/product.aspx?P_ID=J9FKa8z2xVId3pDK" },
116 { "ASUS", "A8N-SLI Premium", "http://www.asus.com.tw/products.aspx?l1=3&l2=15&l3=148&l4=0&model=539&modelmenu=1" },
117 { "ASUS", "A8V Deluxe", "http://www.asus.com/product.aspx?P_ID=tvpdgPNCPaABZRVU" },
118 { "ASUS", "A8V-E Deluxe", "http://www.asus.com.tw/products.aspx?l1=3&l2=15&l3=143&l4=0&model=376&modelmenu=1" },
119 { "ASUS", "A8V-E SE", "http://www.asus.com.tw/products.aspx?l1=3&l2=15&l3=143&l4=0&model=576&modelmenu=1" },
Idwer Vollering7a0d9472009-11-16 14:13:09 +0000120 { "ASUS", "K8V", "http://www.asus.com/product.aspx?P_ID=fG2KZOWF7v6MRFRm" },
121 { "ASUS", "K8V SE Deluxe", "http://www.asus.com/product.aspx?P_ID=65HeDI8XM1u6Uy6o" },
Idwer Volleringfcd070e2009-12-01 12:55:18 +0000122 { "ASUS", "K8V-X SE", "http://asus.com/product.aspx?P_ID=lzDXlbBVHkdckHVr" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000123 { "ASUS", "M2A-MX", "http://www.asus.com/products.aspx?l1=3&l2=101&l3=583&l4=0&model=1909&modelmenu=1" },
124 { "ASUS", "M2A-VM", "http://www.asus.com.tw/products.aspx?l1=3&l2=101&l3=496&l4=0&model=1568&modelmenu=1" },
125 { "ASUS", "M2N-E", "http://www.asus.com/products.aspx?l1=3&l2=101&l3=308&l4=0&model=1181&modelmenu=1" },
126 { "ASUS", "M2V", "http://asus.com/Product.aspx?P_ID=OqYlEDFfF6ZqZGvp" },
Uwe Hermann57146142009-09-25 01:22:42 +0000127 { "ASUS", "M3A78-EM", "http://www.asus.com/product.aspx?P_ID=KjpYqzmAd9vsTM2D" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000128 { "ASUS", "P2B", "http://www.motherboard.cz/mb/asus/P2B.htm" },
129 { "ASUS", "P2B-D", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-d/" },
130 { "ASUS", "P2B-DS", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-ds/" },
131 { "ASUS", "P2B-F", "http://www.motherboard.cz/mb/asus/P2B-F.htm" },
132 { "ASUS", "P2L97-S", "http://www.motherboard.cz/mb/asus/P2L97-S.htm" },
133 { "ASUS", "P5B-Deluxe", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B-Deluxe/" },
134 { "ASUS", "P5KC", "http://www.asus.com/product.aspx?P_ID=fFZ8oUIGmLpwNMjj" },
135 { "ASUS", "P5L-MX", "http://www.asus.com/product.aspx?P_ID=X70d3NCzH2DE9vWH" },
136 { "ASUS", "P6T Deluxe V2", "http://www.asus.com/product.aspx?P_ID=iRlP8RG9han6saZx" },
137 { "A-Trend", "ATC-6220", "http://www.motherboard.cz/mb/atrend/atc6220.htm" },
138 { "BCOM", "WinNET100", "http://www.coreboot.org/BCOM_WINNET100" },
Idwer Volleringfcd070e2009-12-01 12:55:18 +0000139 { "DFI", "Blood-Iron P35 T2RL", "http://lp.lanparty.com.tw/portal/CM/cmproduct/XX_cmproddetail/XX_WbProdsWindow?itemId=516&downloadFlag=false&action=1" },
Idwer Vollering7a0d9472009-11-16 14:13:09 +0000140 { "Elitegroup", "K7S5A", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=279&CategoryID=1&DetailName=Specification&MenuID=1&LanID=0" },
Uwe Hermann57146142009-09-25 01:22:42 +0000141 { "Elitegroup", "P6VAP-A+", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=117&CategoryID=1&DetailName=Specification&MenuID=1&LanID=0" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000142 { "GIGABYTE", "GA-6BXC", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ClassValue=Motherboard&ProductID=1445&ProductName=GA-6BXC" },
143 { "GIGABYTE", "GA-6BXDU", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=1429" },
144 { "GIGABYTE", "GA-6ZMA", "http://www.gigabyte.de/Support/Motherboard/BIOS_Model.aspx?ProductID=3289" },
145 { "GIGABYTE", "GA-EX58-UD4P", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2986" },
146 { "GIGABYTE", "GA-EP35-DS3L", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2778" },
Raúl Soriano8111e7f2010-03-14 00:00:14 +0000147 { "GIGABYTE", "GA-MA69VM-S2", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2500" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000148 { "GIGABYTE", "GA-MA790GP-DS4H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2887" },
149 { "GIGABYTE", "GA-MA78GPM-DS2H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2859" },
Uwe Hermann57146142009-09-25 01:22:42 +0000150 { "GIGABYTE", "GA-MA770T-UD3P", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=3096" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000151 { "Intel", "EP80759", NULL },
152 { "Jetway", "J7F4K1G5D-PB", "http://www.jetway.com.tw/jetway/system/productshow2.asp?id=389&proname=J7F4K1G5D-P" },
Uwe Hermann14b3e1e2009-10-06 20:23:29 +0000153 { "MSI", "MS-6153", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&cat2_no=&cat3_no=&prod_no=336" },
154 { "MSI", "MS-6156", "http://uk.ts.fujitsu.com/rl/servicesupport/techsupport/boards/Motherboards/MicroStar/Ms6156/MS6156.htm" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000155 { "MSI", "MS-6570 (K7N2)", "http://www.msi-computer.de/index.php?func=proddesc&prod_no=519&maincat_no=1" },
156 { "MSI", "MS-7065", "http://browse.geekbench.ca/geekbench2/view/53114" },
157 { "MSI", "MS-7168 (Orion)", "http://support.packardbell.co.uk/uk/item/index.php?i=spec_orion&pi=platform_honeymoon_istart" },
158 { "MSI", "MS-7236 (945PL Neo3)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1173" },
159 { "MSI", "MS-7255 (P4M890M)", "http://www.tcsbahamas.com/P4M89.htm" },
160 { "MSI", "MS-7345 (P35 Neo2-FIR)","http://www.msi.com/index.php?func=prodcpusupport&maincat_no=1&cat2_no=170&cat3_no=&prod_no=1261" },
Uwe Hermann57146142009-09-25 01:22:42 +0000161 { "MSI", "MS-7368 (K9AG Neo2-Digital)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1241" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000162 { "NEC", "PowerMate 2000", "http://support.necam.com/mobilesolutions/hardware/Desktops/pm2000/celeron/" },
163 { "PC Engines", "Alix.1c", "http://pcengines.ch/alix1c.htm" },
164 { "PC Engines", "Alix.2c2", "http://pcengines.ch/alix2c2.htm" },
165 { "PC Engines", "Alix.2c3", "http://pcengines.ch/alix2c3.htm" },
166 { "PC Engines", "Alix.3c3", "http://pcengines.ch/alix3c3.htm" },
167 { "PC Engines", "Alix.3d3", "http://pcengines.ch/alix3d3.htm" },
168 { "RCA", "RM4100", "http://www.settoplinux.org/index.php?title=RCA_RM4100" },
169 { "Sun", "Blade x6250", "http://www.sun.com/servers/blades/x6250/" },
170 { "Supermicro", "H8QC8", "http://www.supermicro.com/Aplus/motherboard/Opteron/nforce/H8QC8.cfm" },
Uwe Hermann012b3a12010-01-31 20:13:06 +0000171 { "Tekram", "P6Pro-A5", "http://www.motherboard.cz/mb/tekram/P6Pro-A5.htm" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000172 { "Thomson", "IP1000", "http://www.settoplinux.org/index.php?title=Thomson_IP1000" },
173 { "TriGem", "Lomita", "http://www.e4allupgraders.info/dir1/motherboards/socket370/lomita.shtml" },
174 { "T-Online", "S-100", "http://wiki.freifunk-hannover.de/T-Online_S_100" },
175 { "Tyan", "iS5375-1U", "http://www.tyan.com/product_board_detail.aspx?pid=610" },
176 { "Tyan", "S1846", "http://www.tyan.com/archive/products/html/tsunamiatx.html" },
177 { "Tyan", "S2466", "http://www.tyan.com/product_board_detail.aspx?pid=461" },
178 { "Tyan", "S2881", "http://www.tyan.com/product_board_detail.aspx?pid=115" },
179 { "Tyan", "S2882", "http://www.tyan.com/product_board_detail.aspx?pid=121" },
180 { "Tyan", "S2882-D", "http://www.tyan.com/product_board_detail.aspx?pid=127" },
181 { "Tyan", "S2891", "http://www.tyan.com/product_board_detail.aspx?pid=144" },
182 { "Tyan", "S2892", "http://www.tyan.com/product_board_detail.aspx?pid=145" },
183 { "Tyan", "S2895", "http://www.tyan.com/archive/products/html/thunderk8we.html" },
184 { "Tyan", "S3095", "http://www.tyan.com/product_board_detail.aspx?pid=181" },
185 { "Tyan", "S5180", "http://www.tyan.com/product_board_detail.aspx?pid=456" },
186 { "Tyan", "S5191", "http://www.tyan.com/product_board_detail.aspx?pid=343" },
187 { "Tyan", "S5197", "http://www.tyan.com/product_board_detail.aspx?pid=349" },
188 { "Tyan", "S5211", "http://www.tyan.com/product_board_detail.aspx?pid=591" },
189 { "Tyan", "S5211-1U", "http://www.tyan.com/product_board_detail.aspx?pid=593" },
190 { "Tyan", "S5220", "http://www.tyan.com/product_board_detail.aspx?pid=597" },
191 { "Tyan", "S5375", "http://www.tyan.com/product_board_detail.aspx?pid=566" },
192 { "Tyan", "S5376G2NR/S5376WAG2NR","http://www.tyan.com/product_board_detail.aspx?pid=605" },
193 { "Tyan", "S5377", "http://www.tyan.com/product_SKU_spec.aspx?ProductType=MB&pid=642&SKU=600000017" },
194 { "Tyan", "S5397", "http://www.tyan.com/product_board_detail.aspx?pid=560" },
195 { "VIA", "EPIA-EX15000G", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&motherboard_id=450" },
196 { "VIA", "EPIA-LN", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=473" },
197 { "VIA", "EPIA-M700", "http://via.com.tw/servlet/downloadSvl?motherboard_id=670&download_file_id=3700" },
198 { "VIA", "EPIA-NX15000G", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&motherboard_id=470" },
199 { "VIA", "NAB74X0", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=590" },
200 { "VIA", "pc2500e", "http://www.via.com.tw/en/initiatives/empowered/pc2500_mainboard/index.jsp" },
201 { "VIA", "VB700X", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=490" },
202
203 /* Verified working boards that DO need write-enables. */
Uwe Hermann14b3e1e2009-10-06 20:23:29 +0000204 { "Abit", "IP35", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=LGA775&pMODEL_NAME=IP35" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000205 { "Acorp", "6A815EPD", "http://web.archive.org/web/20021206163652/www.acorp.com.tw/English/default.asp" },
206 { "agami", "Aruma", "http://web.archive.org/web/20080212111524/http://www.agami.com/site/ais-6000-series" },
207 { "Albatron", "PM266A Pro", "http://www.albatron.com.tw/English/Product/MB/pro_detail.asp?rlink=Overview&no=56" }, /* FIXME */
208 { "AOpen", "vKM400Am-S", "http://usa.aopen.com/products_detail.aspx?Auno=824" },
209 { "Artec Group", "DBE61", "http://wiki.thincan.org/DBE61" },
210 { "Artec Group", "DBE62", "http://wiki.thincan.org/DBE62" },
211 { "ASUS", "A7V600-X", "http://www.asus.com/product.aspx?P_ID=L2XYS0rmtCjeOr4k" },
Uwe Hermann14b3e1e2009-10-06 20:23:29 +0000212 { "ASUS", "A7V8X", "http://www.asus.com/product.aspx?P_ID=qfpaGrAy2kLVo0f2" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000213 { "ASUS", "A7V8X-MX SE", "http://www.asus.com/product.aspx?P_ID=1guVBT1qV5oqhHyZ" },
Russ Dillbd622d12010-03-09 16:57:06 +0000214 { "ASUS", "A7V8X-X", "http://www.asus.com/product.aspx?P_ID=YcXfRrWHZ9RKoVmw" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000215 { "ASUS", "P4B266", "http://www.ciao.co.uk/ASUS_Intel_845D_Chipset_P4B266__5409807#productdetail" },
Michael Karcher6499d5a2010-03-17 06:19:23 +0000216 { "ASUS", "P4C800-E Deluxe", "http://www.asus.com/product.aspx?P_ID=cFuVCr9bXXCckmcK" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000217 { "ASUS", "P4P800-E Deluxe", "http://www.asus.com/product.aspx?P_ID=INIJUvLlif7LHp3g" },
Uwe Hermann14b3e1e2009-10-06 20:23:29 +0000218 { "ASUS", "P5ND2-SLI Deluxe", "http://www.asus.com/product.aspx?P_ID=WY7XroDuUImVbgp5" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000219 { "ASUS", "P5A", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock7/ali/p5a/" },
220 { "Biostar", "P4M80-M4", "http://www.biostar-usa.com/mbdetails.asp?model=p4m80-m4" },
Uwe Hermann14b3e1e2009-10-06 20:23:29 +0000221 { "Dell", "PowerEdge 1850", "http://support.dell.com/support/edocs/systems/pe1850/en/index.htm" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000222 { "Elitegroup", "K7VTA3", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=264&CategoryID=1&DetailName=Specification&MenuID=52&LanID=0" },
223 { "EPoX", "EP-8K5A2", "http://www.epox.com/product.asp?ID=EP-8K5A2" },
Uwe Hermann14b3e1e2009-10-06 20:23:29 +0000224 { "EPoX", "EP-8RDA3+", "http://www.epox.com/product.asp?ID=EP-8RDA3plus" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000225 { "EPoX", "EP-BX3", "http://www.epox.com/product.asp?ID=EP-BX3" },
226 { "GIGABYTE", "GA-2761GXDK", "http://www.computerbase.de/news/hardware/mainboards/amd-systeme/2007/mai/gigabyte_dtx-mainboard/" },
227 { "GIGABYTE", "GA-7VT600", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=1666" },
228 { "GIGABYTE", "GA-7ZM", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=1366" },
229 { "GIGABYTE", "GA-K8N-SLI", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=1928" },
230 { "GIGABYTE", "GA-M57SLI-S4", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Overview.aspx?ProductID=2287&ModelName=GA-M57SLI-S4" },
231 { "GIGABYTE", "GA-M61P-S3", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2434" },
232 { "GIGABYTE", "GA-MA78G-DS3H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2800" }, /* TODO: Rev 1.x or 2.x? */
233 { "GIGABYTE", "GA-MA78GM-S2H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2758" }, /* TODO: Rev. 1.0, 1.1, or 2.x? */
234 { "GIGABYTE", "GA-MA790FX-DQ6", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID=2690" },
235 { "HP", "DL145 G3", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00816835&lang=en&cc=us&taskId=101&prodSeriesId=3219755&prodTypeId=15351" },
236 { "IBM", "x3455", "http://www-03.ibm.com/systems/x/hardware/rack/x3455/index.html" },
237 { "Intel", "D201GLY", "http://www.intel.com/support/motherboards/desktop/d201gly/index.htm" },
238 { "IWILL", "DK8-HTX", "http://web.archive.org/web/20060507170150/http://www.iwill.net/product_2.asp?p_id=98" },
239 { "Kontron", "986LCD-M", "http://de.kontron.com/products/boards+and+mezzanines/embedded+motherboards/miniitx+motherboards/986lcdmmitx.html" },
240 { "Mitac", "6513WU", "http://web.archive.org/web/20050313054828/http://www.mitac.com/micweb/products/tyan/6513wu/6513wu.htm" },
241 { "MSI", "MS-6590 (KT4 Ultra)", "http://www.msicomputer.com/product/p_spec.asp?model=KT4_Ultra&class=mb" },
242 { "MSI", "MS-6702E (K8T Neo2-F)","http://www.msicomputer.com/product/p_spec.asp?model=K8T_Neo2-F&class=mb" },
243 { "MSI", "MS-6712 (KT4V)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&cat2_no=&cat3_no=&prod_no=505" },
244 { "MSI", "MS-7046", "http://www.heimir.de/ms7046/" },
245 { "MSI", "MS-7135 (K8N Neo3)", "http://www.msi-computer.de/index.php?func=proddesc&prod_no=170&maincat_no=1" },
246 { "Shuttle", "AK38N", "http://eu.shuttle.com/en/desktopdefault.aspx/tabid-36/558_read-9889/" },
247 { "Soyo", "SY-7VCA", "http://www.tomshardware.com/reviews/12-socket-370-motherboards,196-15.html" },
248 { "Tyan", "S2498 (Tomcat K7M)", "http://www.tyan.com/archive/products/html/tomcatk7m.html" },
249 { "VIA", "EPIA-CN", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=400" },
250 { "VIA", "EPIA M/MII/...", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&motherboard_id=202" }, /* EPIA-MII link for now */
251 { "VIA", "EPIA-N/NL", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&motherboard_id=221" }, /* EPIA-N link for now */
252 { "VIA", "EPIA SP", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&motherboard_id=261" },
253 { "VIA", "PC3500G", "http://www.via.com.tw/en/initiatives/empowered/pc3500_mainboard/index.jsp" },
254
255 /* Verified non-working boards (for now). */
256 { "Abit", "IS-10", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?pMODEL_NAME=IS-10&fMTYPE=Socket+478" },
257 { "ASRock", "K7VT4A+", "http://www.asrock.com/mb/overview.asp?Model=K7VT4A%%2b&s=" },
258 { "ASUS", "MEW-AM", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock370/810/mew-am/" },
259 { "ASUS", "MEW-VM", "http://www.elhvb.com/mboards/OEM/HP/manual/ASUS%20MEW-VM.htm" },
260 { "ASUS", "P3B-F", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p3b-f/" },
261 { "ASUS", "P5B", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B/" },
262 { "ASUS", "P5BV-M", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B-VM/" },
263 { "Biostar", "M6TBA", "ftp://ftp.biostar-usa.com/manuals/M6TBA/" },
264 { "Boser", "HS-6637", "http://www.boser.com.tw/manual/HS-62376637v3.4.pdf" },
265 { "DFI", "855GME-MGF", "http://www.dfi.com.tw/portal/CM/cmproduct/XX_cmproddetail/XX_WbProdsWindow?action=e&downloadType=&windowstate=normal&mode=view&downloadFlag=false&itemId=433" },
266 { "FIC", "VA-502", "ftp://ftp.fic.com.tw/motherboard/manual/socket7/va-502/" },
267 { "MSI", "MS-6178", "http://www.msi-technology.de/index.php?func=proddesc&prod_no=343&maincat_no=1" },
268 { "MSI", "MS-7260 (K9N Neo)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=255" },
269 { "Soyo", "SY-5VD", "http://www.soyo.com/content/Downloads/163/&c=80&p=464&l=English" },
270 { "Sun", "Fire x4540", "http://www.sun.com/servers/x64/x4540/" },
271 { "Sun", "Fire x4150", "http://www.sun.com/servers/x64/x4150/" },
272 { "Sun", "Fire x4200", "http://www.sun.com/servers/entry/x4200/" },
273 { "Sun", "Fire x4600", "http://www.sun.com/servers/x64/x4600/" },
274
275 /* Verified working laptops. */
276 { "Lenovo", "3000 V100 TF05Cxx", "http://www5.pc.ibm.com/europe/products.nsf/products?openagent&brand=Lenovo3000Notebook&series=Lenovo+3000+V+Series#viewallmodelstop" },
277
278 /* Verified non-working laptops (for now). */
279 { "Acer", "Aspire One", NULL },
280 { "ASUS", "Eee PC 701 4G", "http://www.asus.com/product.aspx?P_ID=h6SPd3tEzLEsrEiS" },
281 { "Dell", "Latitude CPi A366XT", "http://www.coreboot.org/Dell_Latitude_CPi_A366XT" },
282 { "HP/Compaq", "nx9010", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00348514" },
283 { "IBM/Lenovo", "Thinkpad T40p", "http://www.thinkwiki.org/wiki/Category:T40p" },
284 { "IBM/Lenovo", "240", "http://www.stanford.edu/~bresnan//tp240.html" },
285
286 { NULL, NULL, 0 },
287};
288
289/* Please keep these lists alphabetically ordered by vendor/board. */
290const struct board_info_notes boards_notes[] = {
291 /* Verified working boards that don't need write-enables. */
292 { "ASI", "MB-5BLMP", "Used in the IGEL WinNET III thin client." },
Idwer Volleringfcd070e2009-12-01 12:55:18 +0000293 { "ASRock", "K8S8X", "The Super I/O isn't found on this board. See http://www.flashrom.org/pipermail/flashrom/2009-November/000937.html." },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000294 { "ASUS", "A8V-E SE", "See http://www.coreboot.org/pipermail/coreboot/2007-October/026496.html." },
295 { "ASUS", "M2A-VM", "See http://www.coreboot.org/pipermail/coreboot/2007-September/025281.html." },
296 { "BCOM", "WinNET100", "Used in the IGEL-316 thin client." },
Idwer Vollering7a0d9472009-11-16 14:13:09 +0000297 { "GIGABYTE", "GA-7ZM", "Works fine if you remove jumper JP9 on the board and disable the flash protection BIOS option." },
298 { "ASUS", "M2N-E", "If the machine doesn't come up again after flashing, try resetting the NVRAM(CMOS). The MAC address of the onboard network card will change to the value stored in the new image, so backup the old address first. See http://www.flashrom.org/pipermail/flashrom/2009-November/000879.html" },
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000299
300 /* Verified working boards that DO need write-enables. */
301 { "Acer", "Aspire One", "See http://www.coreboot.org/pipermail/coreboot/2009-May/048041.html." },
302
303 /* Verified non-working boards (for now). */
304 { "MSI", "MS-6178", "Immediately powers off if you try to hot-plug the chip. However, this does '''not''' happen if you use coreboot." },
305 { "MSI", "MS-7260 (K9N Neo)", "Interestingly flashrom does not work when the vendor BIOS is booted, but it ''does'' work flawlessly when the machine is booted with coreboot." },
306
307 /* Verified working laptops. */
308 /* None which need comments, yet... */
309
310 /* Verified non-working laptops (for now). */
311 { "Acer", "Aspire One", "http://www.coreboot.org/pipermail/coreboot/2009-May/048041.html" },
312 { "ASUS", "Eee PC 701 4G", "It seems the chip (25X40VSIG) is behind some SPI flash translation layer (likely in the EC, the ENE KB3310)." },
313 { "Dell", "Latitude CPi A366XT", "The laptop immediately powers off if you try to hot-swap the chip. It's not yet tested if write/erase would work on this laptop." },
314 { "HP/Compaq", "nx9010", "Hangs upon '''flashrom -V''' (needs hard power-cycle then)." },
315 { "IBM/Lenovo", "Thinkpad T40p", "Seems to (partially) work at first, but one block/sector cannot be written which then leaves you with a bricked laptop. Maybe this can be investigated and fixed in software later." },
316
317 { NULL, NULL, 0 },
318};
319
320static int url(const char *vendor, const char *board)
321{
322 int i;
323 const struct board_info_url *b = boards_url;
324
325 for (i = 0; b[i].vendor != NULL; i++) {
326 if (!strcmp(vendor, b[i].vendor) && !strcmp(board, b[i].name))
327 return i;
328 }
329
330 return -1;
331}
332
333static int note(const char *vendor, const char *board)
334{
335 int i;
336 const struct board_info_notes *n = boards_notes;
337
338 for (i = 0; n[i].vendor != NULL; i++) {
339 if (!strcmp(vendor, n[i].vendor) && !strcmp(board, n[i].name))
340 return i;
341 }
342
343 return -1;
344}
345
346void print_supported_chipsets_wiki(void)
347{
348 int i, j, enablescount = 0, color = 1;
349 const struct penable *e;
350
351 for (e = chipset_enables; e->vendor_name != NULL; e++)
352 enablescount++;
353
354 printf("\n== Supported chipsets ==\n\nTotal amount of supported "
355 "chipsets: '''%d'''\n\n{| border=\"0\" valign=\"top\"\n| "
356 "valign=\"top\"|\n\n%s", enablescount, chipset_th);
357
358 e = chipset_enables;
359 for (i = 0, j = 0; e[i].vendor_name != NULL; i++, j++) {
360 /* Alternate colors if the vendor changes. */
361 if (i > 0 && strcmp(e[i].vendor_name, e[i - 1].vendor_name))
362 color = !color;
363
364 printf("|- bgcolor=\"#%s\" valign=\"top\"\n| %s || %s "
365 "|| %04x:%04x || %s\n", (color) ? "eeeeee" : "dddddd",
366 e[i].vendor_name, e[i].device_name,
367 e[i].vendor_id, e[i].device_id,
368 (e[i].status == OK) ? "{{OK}}" : "?");
369
370 /* Split table in three columns. */
371 if (j >= (enablescount / 3 + 1)) {
372 printf("\n|}\n\n| valign=\"top\"|\n\n%s", chipset_th);
373 j = 0;
374 }
375 }
376
377 printf("\n|}\n\n|}\n");
378}
379
380static void wiki_helper(const char *heading, const char *status,
381 int cols, const struct board_info boards[])
382{
383 int i, j, k, c, boardcount = 0, color = 1, num_notes = 0;
384 const struct board_info *b;
385 const struct board_info_url *u = boards_url;
386 char *notes = calloc(1, 1);
387 char tmp[900 + 1];
388
389 for (b = boards; b->vendor != NULL; b++)
390 boardcount++;
391
392 printf("\n'''%s'''\n\nTotal amount of boards: '''%d'''\n\n"
393 "{| border=\"0\" valign=\"top\"\n| valign=\"top\"|\n\n%s",
394 heading, boardcount, board_th);
395
396 for (i = 0, j = 0, b = boards; b[i].vendor != NULL; i++, j++) {
397 /* Alternate colors if the vendor changes. */
398 if (i > 0 && strcmp(b[i].vendor, b[i - 1].vendor))
399 color = !color;
400
401 k = url(b[i].vendor, b[i].name);
402 c = note(b[i].vendor, b[i].name);
403
404 printf("|- bgcolor=\"#%s\" valign=\"top\"\n| %s || %s%s %s%s ||"
405 " {{%s}}", (color) ? "eeeeee" : "dddddd", b[i].vendor,
406 (k != -1 && u[k].url) ? "[" : "",
407 (k != -1 && u[k].url) ? u[k].url : "",
408 b[i].name, (k != -1 && u[k].url) ? "]" : "", status);
409
410 if (c != -1) {
411 printf("<sup>%d</sup>\n", num_notes + 1);
412 snprintf((char *)&tmp, 900, "<sup>%d</sup> %s<br />\n",
413 1 + num_notes++, boards_notes[c].note);
414 notes = strcat_realloc(notes, (char *)&tmp);
415 } else {
416 printf("\n");
417 }
418
419 /* Split table in 'cols' columns. */
420 if (j >= (boardcount / cols + 1)) {
421 printf("\n|}\n\n| valign=\"top\"|\n\n%s", board_th);
422 j = 0;
423 }
424 }
425
426 printf("\n|}\n\n|}\n");
427
428 if (num_notes > 0)
429 printf("\n<small>\n%s</small>\n", notes);
430 free(notes);
431}
432
433static void wiki_helper2(const char *heading, int cols)
434{
435 int i, j, k, boardcount = 0, color = 1;
436 struct board_pciid_enable *b;
437 const struct board_info_url *u = boards_url;
438
439 for (b = board_pciid_enables; b->vendor_name != NULL; b++)
440 boardcount++;
441
442 printf("\n'''%s'''\n\nTotal amount of boards: '''%d'''\n\n"
443 "{| border=\"0\" valign=\"top\"\n| valign=\"top\"|\n\n%s",
444 heading, boardcount, board_th2);
445
446 b = board_pciid_enables;
447 for (i = 0, j = 0; b[i].vendor_name != NULL; i++, j++) {
448 /* Alternate colors if the vendor changes. */
449 if (i > 0 && strcmp(b[i].vendor_name, b[i - 1].vendor_name))
450 color = !color;
451
452 k = url(b[i].vendor_name, b[i].board_name);
453
454 printf("|- bgcolor=\"#%s\" valign=\"top\"\n| %s || %s%s %s%s "
455 "|| %s%s%s%s || {{OK}}\n", (color) ? "eeeeee" : "dddddd",
456 b[i].vendor_name, (k != -1 && u[k].url) ? "[" : "",
457 (k != -1 && u[k].url) ? u[k].url : "", b[i].board_name,
458 (k != -1 && u[k].url) ? "]" : "",
459 (b[i].lb_vendor) ? "-m " : "&mdash;",
460 (b[i].lb_vendor) ? b[i].lb_vendor : "",
461 (b[i].lb_vendor) ? ":" : "",
462 (b[i].lb_vendor) ? b[i].lb_part : "");
463
464 /* Split table in three columns. */
465 if (j >= (boardcount / cols + 1)) {
466 printf("\n|}\n\n| valign=\"top\"|\n\n%s", board_th2);
467 j = 0;
468 }
469 }
470
471 printf("\n|}\n\n|}\n");
472}
473
474void print_supported_boards_wiki(void)
475{
476 printf("%s", board_intro);
477 wiki_helper("Known good (worked out of the box)", "OK", 3, boards_ok);
478 wiki_helper2("Known good (with write-enable code in flashrom)", 3);
479 wiki_helper("Not supported (yet)", "No", 3, boards_bad);
480
481 printf("%s", laptop_intro);
482 wiki_helper("Known good (worked out of the box)", "OK", 1, laptops_ok);
483 wiki_helper("Not supported (yet)", "No", 1, laptops_bad);
484}
485
486void print_supported_chips_wiki(void)
487{
488 int i = 0, c = 1, chipcount = 0;
489 struct flashchip *f, *old = NULL;
490 uint32_t t;
491
492 for (f = flashchips; f->name != NULL; f++)
493 chipcount++;
494
495 printf("\n== Supported chips ==\n\nTotal amount of supported "
496 "chips: '''%d'''\n\n{| border=\"0\" valign=\"top\"\n"
497 "| valign=\"top\"|\n\n%s", chipcount, chip_th);
498
499 for (f = flashchips; f->name != NULL; f++, i++) {
500 /* Don't print "unknown XXXX SPI chip" entries. */
501 if (!strncmp(f->name, "unknown", 7))
502 continue;
503
504 /* Alternate colors if the vendor changes. */
505 if (old != NULL && strcmp(old->vendor, f->vendor))
506 c = !c;
507
508 t = f->tested;
509 printf("|- bgcolor=\"#%s\" valign=\"top\"\n| %s || %s || %d "
510 "|| %s || {{%s}} || {{%s}} || {{%s}} || {{%s}}\n",
511 (c == 1) ? "eeeeee" : "dddddd", f->vendor, f->name,
512 f->total_size, flashbuses_to_text(f->bustype),
513 (t & TEST_OK_PROBE) ? "OK" :
514 (t & TEST_BAD_PROBE) ? "No" : ((c) ? "?2" : "?"),
515 (t & TEST_OK_READ) ? "OK" :
516 (t & TEST_BAD_READ) ? "No" : ((c) ? "?2" : "?"),
517 (t & TEST_OK_ERASE) ? "OK" :
518 (t & TEST_BAD_ERASE) ? "No" : ((c) ? "?2" : "?"),
519 (t & TEST_OK_WRITE) ? "OK" :
520 (t & TEST_BAD_WRITE) ? "No" : ((c) ? "?2" : "?"));
521
522 /* Split table into three columns. */
523 if (i >= (chipcount / 3 + 1)) {
524 printf("\n|}\n\n| valign=\"top\"|\n\n%s", chip_th);
525 i = 0;
526 }
527
528 old = f;
529 }
530
531 printf("\n|}\n\n|}\n");
532}
533
534void print_supported_pcidevs_wiki(struct pcidev_status *devs)
535{
536 int i = 0;
537 static int c = 0;
538
539 /* Alternate colors if the vendor changes. */
540 c = !c;
541
542 for (i = 0; devs[i].vendor_name != NULL; i++) {
543 printf("|- bgcolor=\"#%s\" valign=\"top\"\n| %s || %s || "
544 "%04x:%04x || {{%s}}\n", (c) ? "eeeeee" : "dddddd",
545 devs[i].vendor_name, devs[i].device_name,
546 devs[i].vendor_id, devs[i].device_id,
Michael Karcher84486392010-02-24 00:04:40 +0000547 (devs[i].status == NT) ? (c) ? "?2" : "?" : "OK");
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000548 }
549}
550
Carl-Daniel Hailfingerf5292052009-11-17 09:57:34 +0000551void print_supported_wiki(void)
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000552{
553 time_t t = time(NULL);
554
555 printf(wiki_header, ctime(&t), flashrom_version);
556 print_supported_chips_wiki();
557 print_supported_chipsets_wiki();
558 print_supported_boards_wiki();
559 printf("%s", programmer_section);
560#if NIC3COM_SUPPORT == 1
561 print_supported_pcidevs_wiki(nics_3com);
562#endif
Uwe Hermann2b5cb512009-10-06 20:25:48 +0000563#if GFXNVIDIA_SUPPORT == 1
564 print_supported_pcidevs_wiki(gfx_nvidia);
565#endif
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000566#if DRKAISER_SUPPORT == 1
Uwe Hermann07c54c82009-09-25 01:31:51 +0000567 print_supported_pcidevs_wiki(drkaiser_pcidev);
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000568#endif
569#if SATASII_SUPPORT == 1
570 print_supported_pcidevs_wiki(satas_sii);
571#endif
Uwe Hermannddd5c9e2010-02-21 21:17:00 +0000572#if ATAHPT_SUPPORT == 1
573 print_supported_pcidevs_wiki(ata_hpt);
574#endif
Carl-Daniel Hailfinger9c8476b2009-09-16 12:19:03 +0000575 printf("\n|}\n");
576}
577