Hello All!
I'm requesting for your comments for this change.
With this patch boards info is stored in one common place. Previously, the information about different boards was spreaded between few different places, and manual synchronization was required (which already led to some discrepancies between them). So with this patch marking new boards as working based on user's status reports would me much easy than before.
Additionally, there is no artificial separation of boards for 'working', 'working with board enable procedure' and 'does not working' - all boards are listed in one big table with proper status mark. This should improve usability, because user would no longer require to traverse all these lists while checking the status of his board.
I also ensured that boards are sorted alphabetically and changed name for Albatron's PM266A board to match one, listed among boards which requires write-enable (PM266A Pro).
Signed-off-by: Peter Lemenkov lemenkov@gmail.com --- board.h | 235 ++++++++++++++++++++++++++++++++ board_enable.c | 6 +- flash.h | 9 -- print.c | 255 +++++------------------------------- print_wiki.c | 407 +++++--------------------------------------------------- 5 files changed, 305 insertions(+), 607 deletions(-) create mode 100644 board.h
diff --git a/board.h b/board.h new file mode 100644 index 0000000..92a8d36 --- /dev/null +++ b/board.h @@ -0,0 +1,235 @@ +#ifndef __BOARD_H__ +#define __BOARD_H__ + +#if INTERNAL_SUPPORT == 1 + +struct board_info { + const char *vendor; + const char *name; + const char *url; + const char *note; + int working; + int write_enable; +}; + +/* Please keep this list alphabetically ordered by vendor/board. */ +const static struct board_info boards_known[] = { +#if defined(__i386__) || defined(__x86_64__) + /* Verified working boards that don't need write-enables. */ + { "A-Trend", "ATC-6220", "http://www.motherboard.cz/mb/atrend/atc6220.htm", NULL, 1, 0 }, + { "Abit", "AX8", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?DEFTITLE=Y...", NULL, 1, 0 }, + { "Abit", "Fatal1ty F-I90HD", "http://www.abit.com.tw/page/de/motherboard/motherboard_detail.php?pMODEL_NAM...", NULL, 1, 0 }, + { "Abit", "IP35", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=LGA...", NULL, 1, 1 }, + { "Abit", "IP35 Pro", "http://www.abit.com.tw/page/de/motherboard/motherboard_detail.php?fMTYPE=LGA...", NULL, 1, 1 }, + { "Abit", "IS-10", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?pMODEL_NAM...", NULL, 0, 0 }, + { "Abit", "NF7-S", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=Soc...", NULL, 1, 1 }, + { "Abit", "VT6X4", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=Slo...", NULL, 1, 1 }, + { "Acorp", "6A815EPD", "http://web.archive.org/web/20021206163652/www.acorp.com.tw/English/default.a...", NULL, 1, 1 }, + { "Advantech", "PCM-5820", "http://www.emacinc.com/sbc_pc_compatible/pcm_5820.htm", NULL, 1, 0 }, + { "agami", "Aruma", "http://web.archive.org/web/20080212111524/http://www.agami.com/site/ais-6000...", NULL, 1, 1 }, + { "Albatron", "PM266A Pro", "http://www.albatron.com.tw/English/Product/MB/pro_detail.asp?rlink=Overview&...", NULL, 1, 1 }, /* FIXME */ + { "AOpen", "vKM400Am-S", "http://usa.aopen.com/products_detail.aspx?Auno=824", NULL, 1, 1 }, + { "Artec Group", "DBE61", "http://wiki.thincan.org/DBE61", NULL, 1, 1 }, + { "Artec Group", "DBE62", "http://wiki.thincan.org/DBE62", NULL, 1, 1 }, + { "ASI", "MB-5BLMP", "http://www.hojerteknik.com/winnet.htm", "Used in the IGEL WinNET III thin client.", 1, 0 }, + { "ASRock", "A770CrossFire", "http://www.asrock.com/mb/overview.asp?Model=A770CrossFire&s=AM2%5C%2b", NULL, 1, 0 }, + { "ASRock", "K7VT4A+", "http://www.asrock.com/mb/overview.asp?Model=K7VT4A%%2b&s=", NULL, 0, 0 }, + { "ASRock", "K8S8X", "http://www.asrock.com/mb/overview.asp?Model=K8S8X", "The Super I/O isn't found on this board. See http://www.flashrom.org/pipermail/flashrom/2009-November/000937.html.", 1, 0 }, + { "ASRock", "P4i65GV", NULL, NULL, 1, 1}, + { "ASRock", "M3A790GXH/128M", "http://www.asrock.com/MB/overview.asp?Model=M3A790GXH/128M", NULL, 1, 0 }, + { "ASUS", "A7N8X Deluxe", "http://www.asus.com/product.aspx?P_ID=wAsRYm41KTp78MFC", NULL, 1, 0 }, + { "ASUS", "A7N8X-E Deluxe", "http://www.asus.com/product.aspx?P_ID=TmQtPJv4jIxmL9C2", NULL, 1, 0 }, + { "ASUS", "A7V133", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socka/kt133a/a7v133/", NULL, 1, 0 }, + { "ASUS", "A7V400-MX", "http://www.asus.com/product.aspx?P_ID=hORgEHRBDLMfwAwx", NULL, 1, 0 }, + { "ASUS", "A7V600-X", "http://www.asus.com/product.aspx?P_ID=L2XYS0rmtCjeOr4k", NULL, 1, 1 }, + { "ASUS", "A7V8X", "http://www.asus.com/product.aspx?P_ID=qfpaGrAy2kLVo0f2", NULL, 1, 1 }, + { "ASUS", "A7V8X-MX", "http://www.asus.com/product.aspx?P_ID=SEJOOYqfuQPitx2H", NULL, 1, 0 }, + { "ASUS", "A7V8X-MX SE", "http://www.asus.com/product.aspx?P_ID=1guVBT1qV5oqhHyZ", NULL, 1, 1 }, + { "ASUS", "A7V8X-X", "http://www.asus.com/product.aspx?P_ID=YcXfRrWHZ9RKoVmw", NULL, 1, 1 }, + { "ASUS", "A8N-E", "http://www.asus.com/product.aspx?P_ID=DzbA8hgqchMBOVRz", NULL, 1, 0 }, + { "ASUS", "A8N-SLI", "http://www.asus.com/product.aspx?P_ID=J9FKa8z2xVId3pDK", NULL, 1, 0 }, + { "ASUS", "A8N-SLI Premium", "http://www.asus.com/product.aspx?P_ID=nbulqxniNmzf0mH1", NULL, 1, 0 }, + { "ASUS", "A8NE-FM/S", "http://www.hardwareschotte.de/hardware/preise/proid_1266090/preis_ASUS+A8NE-...", NULL, 1, 0 }, + { "ASUS", "A8V Deluxe", "http://www.asus.com/product.aspx?P_ID=tvpdgPNCPaABZRVU", NULL, 1, 0 }, + { "ASUS", "A8V-E Deluxe", "http://www.asus.com/product.aspx?P_ID=hQBPIJWEZnnGAZEh", NULL, 1, 0 }, + { "ASUS", "A8V-E SE", "http://www.asus.com/product.aspx?P_ID=VMfiJJRYTHM4gXIi", "See http://www.coreboot.org/pipermail/coreboot/2007-October/026496.html.", 1, 0 }, + { "ASUS", "K8V", "http://www.asus.com/product.aspx?P_ID=fG2KZOWF7v6MRFRm", NULL, 1, 0 }, + { "ASUS", "K8V SE Deluxe", "http://www.asus.com/product.aspx?P_ID=65HeDI8XM1u6Uy6o", NULL, 1, 0 }, + { "ASUS", "K8V-X SE", "http://www.asus.com/product.aspx?P_ID=lzDXlbBVHkdckHVr", NULL, 1, 0 }, + { "ASUS", "M2A-MX", "http://www.asus.com/product.aspx?P_ID=BmaOnPewi1JgltOZ", NULL, 1, 0 }, + { "ASUS", "M2A-VM", "http://www.asus.com/product.aspx?P_ID=St3pWpym8xXpROQS", "See http://www.coreboot.org/pipermail/coreboot/2007-September/025281.html.", 1, 0 }, + { "ASUS", "M2N-E", "http://www.asus.com/product.aspx?P_ID=NFlvt10av3F7ayQ9", "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", 1, 0 }, + { "ASUS", "M2NBP-VM CSM", "http://www.asus.com/product.aspx?P_ID=MnOfzTGd2KkwG0rF", NULL, 1, 1 }, + { "ASUS", "M2V", "http://www.asus.com/product.aspx?P_ID=OqYlEDFfF6ZqZGvp", NULL, 1, 0 }, + { "ASUS", "M2V-MX", "http://www.asus.com/product.aspx?P_ID=7grf8Ci4yxnqzt3z", NULL, 1, 1 }, + { "ASUS", "M3A78-EM", "http://www.asus.com/product.aspx?P_ID=KjpYqzmAd9vsTM2D", NULL, 1, 0 }, + { "ASUS", "MEW-AM", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock370/810/mew-am/", NULL, 0, 0 }, + { "ASUS", "MEW-VM", "http://www.elhvb.com/mboards/OEM/HP/manual/ASUS%20MEW-VM.htm", NULL, 0, 0 }, + { "ASUS", "P2B", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b/", NULL, 1, 0 }, + { "ASUS", "P2B-D", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-d/", NULL, 1, 0 }, + { "ASUS", "P2B-DS", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-ds/", NULL, 1, 0 }, + { "ASUS", "P2B-F", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-d/", NULL, 1, 0 }, + { "ASUS", "P2L97-S", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440lx/p2l97-s/", NULL, 1, 0 }, + { "ASUS", "P3B-F", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p3b-f/", NULL, 0, 0 }, + { "ASUS", "P4B266", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock478/p4b266/", NULL, 1, 1 }, + { "ASUS", "P4B266-LM", "http://esupport.sony.com/US/perl/swu-list.pl?mdl=PCVRX650", NULL, 1, 1 }, + { "ASUS", "P4C800-E Deluxe", "http://www.asus.com/product.aspx?P_ID=cFuVCr9bXXCckmcK", NULL, 1, 1 }, + { "ASUS", "P4P800-E Deluxe", "http://www.asus.com/product.aspx?P_ID=INIJUvLlif7LHp3g", NULL, 1, 1 }, + { "ASUS", "P5A", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock7/ali/p5a/", NULL, 1, 1 }, + { "ASUS", "P5B", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B/", NULL, 1, 0 }, + { "ASUS", "P5B-Deluxe", "http://www.asus.com/product.aspx?P_ID=bswT66IBSb2rEWNa", NULL, 1, 0 }, + { "ASUS", "P5BV-M", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B-VM/", NULL, 0, 0 }, + { "ASUS", "P5KC", "http://www.asus.com/product.aspx?P_ID=fFZ8oUIGmLpwNMjj", NULL, 1, 0 }, + { "ASUS", "P5L-MX", "http://www.asus.com/product.aspx?P_ID=X70d3NCzH2DE9vWH", NULL, 1, 0 }, + { "ASUS", "P5ND2-SLI Deluxe", "http://www.asus.com/product.aspx?P_ID=WY7XroDuUImVbgp5", NULL, 1, 1 }, + { "ASUS", "P6T Deluxe", "http://www.asus.com/product.aspx?P_ID=vXixf82co6Q5v0BZ", NULL, 1, 0 }, + { "ASUS", "P6T Deluxe V2", "http://www.asus.com/product.aspx?P_ID=iRlP8RG9han6saZx", NULL, 1, 0 }, + { "BCOM", "WinNET100", "http://www.coreboot.org/BCOM_WINNET100", "Used in the IGEL-316 thin client.", 1, 0 }, + { "Biostar", "M6TBA", "ftp://ftp.biostar-usa.com/manuals/M6TBA/", NULL, 0, 0 }, + { "Biostar", "P4M80-M4", "http://www.biostar-usa.com/mbdetails.asp?model=p4m80-m4", NULL, 1, 1 }, + { "Boser", "HS-6637", "http://www.boser.com.tw/manual/HS-62376637v3.4.pdf", NULL, 0, 0 }, + { "Dell", "PowerEdge 1850", "http://support.dell.com/support/edocs/systems/pe1850/en/index.htm", NULL, 1, 1 }, + { "DFI", "855GME-MGF", "http://www.dfi.com.tw/portal/CM/cmproduct/XX_cmproddetail/XX_WbProdsWindow?a...", NULL, 0, 0 }, + { "DFI", "Blood-Iron P35 T2RL", "http://lp.lanparty.com.tw/portal/CM/cmproduct/XX_cmproddetail/XX_WbProdsWind...", NULL, 1, 0 }, + { "Elitegroup", "K7S5A", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=279&a...", NULL, 1, 0 }, + { "Elitegroup", "K7S6A", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=77&am...", NULL, 1, 1 }, + { "Elitegroup", "K7VTA3", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=264&a...", NULL, 1, 1 }, + { "Elitegroup", "P6VAP-A+", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=117&a...", NULL, 1, 0 }, + { "EPoX", "EP-8K5A2", "http://www.epox.com/product.asp?ID=EP-8K5A2", NULL, 1, 1 }, + { "EPoX", "EP-8RDA3+", "http://www.epox.com/product.asp?ID=EP-8RDA3plus", NULL, 1, 1 }, + { "EPoX", "EP-BX3", "http://www.epox.com/product.asp?ID=EP-BX3", NULL, 1, 1 }, + { "FIC", "VA-502", "ftp://ftp.fic.com.tw/motherboard/manual/socket7/va-502/", NULL, 0, 0 }, + { "GIGABYTE", "GA-2761GXDK", "http://www.computerbase.de/news/hardware/mainboards/amd-systeme/2007/mai/gig...", NULL, 1, 0 }, + { "GIGABYTE", "GA-6BXC", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-6BXDU", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-6ZMA", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-7VT600", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 1 }, + { "GIGABYTE", "GA-7ZM", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", "Works fine if you remove jumper JP9 on the board and disable the flash protection BIOS option.", 1, 1 }, + { "GIGABYTE", "GA-965P-DS4", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-EP35-DS3L", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-EX58-UD4P", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-K8N-SLI", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 1 }, + { "GIGABYTE", "GA-M57SLI-S4", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-M61P-S3", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-MA69VM-S2", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-MA770T-UD3P", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-MA78G-DS3H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, /* TODO: Rev 1.x or 2.x? */ + { "GIGABYTE", "GA-MA78GM-S2H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, /* TODO: Rev. 1.0, 1.1, or 2.x? */ + { "GIGABYTE", "GA-MA78GPM-DS2H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-MA790FX-DQ6", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "GIGABYTE", "GA-MA790GP-DS4H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID...", NULL, 1, 0 }, + { "HP", "DL145 G3", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c0081...", NULL, 1, 1 }, + { "HP", "Vectra VL400 PC", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c0006...", NULL, 1, 1 }, + { "HP", "Vectra VL420 SFF PC", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c0006...", NULL, 1, 1 }, + { "IBM", "x3455", "http://www-03.ibm.com/systems/x/hardware/rack/x3455/index.html", NULL, 1, 1 }, + { "Intel", "D201GLY", "http://www.intel.com/support/motherboards/desktop/d201gly/index.htm", NULL, 1, 1 }, + { "Intel", "EP80759", NULL, NULL, 1, 0 }, + { "IWILL", "DK8-HTX", "http://web.archive.org/web/20060507170150/http://www.iwill.net/product_2.asp...", NULL, 1, 1 }, + { "Jetway", "J7F4K1G5D-PB", "http://www.jetway.com.tw/jetway/system/productshow2.asp?id=389&proname=J...", NULL, 1, 0 }, + { "Kontron", "986LCD-M", "http://de.kontron.com/products/boards+and+mezzanines/embedded+motherboards/m...", NULL, 1, 1 }, + { "Mitac", "6513WU", "http://web.archive.org/web/20050313054828/http://www.mitac.com/micweb/produc...", NULL, 1, 1 }, + { "MSI", "MS-6153", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=336", NULL, 1, 0 }, + { "MSI", "MS-6156", "http://uk.ts.fujitsu.com/rl/servicesupport/techsupport/boards/Motherboards/M...", NULL, 1, 0 }, + { "MSI", "MS-6178", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=343", "Immediately powers off if you try to hot-plug the chip. However, this does '''not''' happen if you use coreboot.", 0, 0 }, + { "MSI", "MS-6330 (K7T Turbo)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=327", NULL, 1, 0 }, + { "MSI", "MS-6570 (K7N2)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=519", NULL, 1, 0 }, + { "MSI", "MS-6590 (KT4 Ultra)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=502", NULL, 1, 1 }, + { "MSI", "MS-6702E (K8T Neo2-F)","http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=588", NULL, 1, 1 }, + { "MSI", "MS-6712 (KT4V)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=505", NULL, 1, 1 }, + { "MSI", "MS-7005 (651M-L)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=559", NULL, 1, 1 }, + { "MSI", "MS-7046", "http://www.heimir.de/ms7046/", NULL, 1, 1 }, + { "MSI", "MS-7065", "http://browse.geekbench.ca/geekbench2/view/53114", NULL, 1, 0 }, + { "MSI", "MS-7135 (K8N Neo3)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=170", NULL, 1, 1 }, + { "MSI", "MS-7168 (Orion)", "http://support.packardbell.co.uk/uk/item/index.php?i=spec_orion&pi=platf...", NULL, 1, 0 }, + { "MSI", "MS-7236 (945PL Neo3)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1173", NULL, 1, 0 }, + { "MSI", "MS-7255 (P4M890M)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1082", NULL, 1, 0 }, + { "MSI", "MS-7260 (K9N Neo)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=255", "Interestingly flashrom does not work when the vendor BIOS is booted, but it ''does'' work flawlessly when the machine is booted with coreboot.", 0, 0 }, + { "MSI", "MS-7312 (K9MM-V)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1104", NULL, 1, 0 }, + { "MSI", "MS-7345 (P35 Neo2-FIR)","http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1261", NULL, 1, 0 }, + { "MSI", "MS-7368 (K9AG Neo2-Digital)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1241", NULL, 1, 0 }, + { "MSI", "MS-7376 (K9A2 Platinum)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1332", NULL, 1, 0 }, + { "NEC", "PowerMate 2000", "http://support.necam.com/mobilesolutions/hardware/Desktops/pm2000/celeron/", NULL, 1, 0 }, + { "Nokia", "IP530", NULL, NULL, 1, 1}, + { "PC Engines", "Alix.1c", "http://pcengines.ch/alix1c.htm", NULL, 1, 0 }, + { "PC Engines", "Alix.2c2", "http://pcengines.ch/alix2c2.htm", NULL, 1, 0 }, + { "PC Engines", "Alix.2c3", "http://pcengines.ch/alix2c3.htm", NULL, 1, 0 }, + { "PC Engines", "Alix.3c3", "http://pcengines.ch/alix3c3.htm", NULL, 1, 0 }, + { "PC Engines", "Alix.3d3", "http://pcengines.ch/alix3d3.htm", NULL, 1, 0 }, + { "PC Engines", "WRAP.2E", "http://pcengines.ch/wrap2e1.htm", NULL, 1, 0 }, + { "RCA", "RM4100", "http://www.settoplinux.org/index.php?title=RCA_RM4100", NULL, 1, 0 }, + { "Shuttle", "AK31", "http://www.motherboard.cz/mb/shuttle/AK31.htm", NULL, 1, 1 }, + { "Shuttle", "AK38N", "http://eu.shuttle.com/en/desktopdefault.aspx/tabid-36/558_read-9889/", NULL, 1, 1 }, + { "Shuttle", "FD37", "http://www.shuttle.eu/products/discontinued/barebones/sd37p2/", NULL, 1, 0 }, + { "Shuttle", "FN25", "http://www.shuttle.eu/products/discontinued/barebones/sn25p/?0=", NULL, 1, 1 }, + { "Soyo", "SY-5VD", "http://www.soyo.com/content/Downloads/163/&c=80&p=464&l=English", NULL, 0, 0 }, + { "Soyo", "SY-7VCA", "http://www.tomshardware.com/reviews/12-socket-370-motherboards,196-15.html", NULL, 1, 1 }, + { "Sun", "Blade x6250", "http://www.sun.com/servers/blades/x6250/", NULL, 1, 0 }, + { "Sun", "Fire x4150", "http://www.sun.com/servers/x64/x4150/", NULL, 0, 0 }, + { "Sun", "Fire x4200", "http://www.sun.com/servers/entry/x4200/", NULL, 0, 0 }, + { "Sun", "Fire x4540", "http://www.sun.com/servers/x64/x4540/", NULL, 0, 0 }, + { "Sun", "Fire x4600", "http://www.sun.com/servers/x64/x4600/", NULL, 0, 0 }, + { "Supermicro", "H8QC8", "http://www.supermicro.com/Aplus/motherboard/Opteron/nforce/H8QC8.cfm", NULL, 1, 0 }, + { "Supermicro", "X8DTT-F", "http://www.supermicro.com/products/motherboard/QPI/5500/X8DTT-F.cfm", NULL, 1, 0 }, + { "T-Online", "S-100", "http://wiki.freifunk-hannover.de/T-Online_S_100", NULL, 1, 0 }, + { "Tekram", "P6Pro-A5", "http://www.motherboard.cz/mb/tekram/P6Pro-A5.htm", NULL, 1, 1 }, + { "Termtek", "TK-3370 (Rev:2.5B)", NULL, NULL, 1, 1 }, + { "Thomson", "IP1000", "http://www.settoplinux.org/index.php?title=Thomson_IP1000", NULL, 1, 0 }, + { "TriGem", "Lomita", "http://www.e4allupgraders.info/dir1/motherboards/socket370/lomita.shtml", NULL, 1, 0 }, + { "Tyan", "iS5375-1U", "http://www.tyan.com/product_board_detail.aspx?pid=610", NULL, 1, 0 }, + { "Tyan", "S1846", "http://www.tyan.com/archive/products/html/tsunamiatx.html", NULL, 1, 0 }, + { "Tyan", "S2466", "http://www.tyan.com/product_board_detail.aspx?pid=461", NULL, 1, 0 }, + { "Tyan", "S2498 (Tomcat K7M)", "http://www.tyan.com/archive/products/html/tomcatk7m.html", NULL, 1, 1 }, + { "Tyan", "S2881", "http://www.tyan.com/product_board_detail.aspx?pid=115", NULL, 1, 0 }, + { "Tyan", "S2882", "http://www.tyan.com/product_board_detail.aspx?pid=121", NULL, 1, 0 }, + { "Tyan", "S2882-D", "http://www.tyan.com/product_board_detail.aspx?pid=127", NULL, 1, 0 }, + { "Tyan", "S2891", "http://www.tyan.com/product_board_detail.aspx?pid=144", NULL, 1, 0 }, + { "Tyan", "S2892", "http://www.tyan.com/product_board_detail.aspx?pid=145", NULL, 1, 0 }, + { "Tyan", "S2895", "http://www.tyan.com/archive/products/html/thunderk8we.html", NULL, 1, 0 }, + { "Tyan", "S3095", "http://www.tyan.com/product_board_detail.aspx?pid=181", NULL, 1, 0 }, + { "Tyan", "S5180", "http://www.tyan.com/product_board_detail.aspx?pid=456", NULL, 1, 0 }, + { "Tyan", "S5191", "http://www.tyan.com/product_board_detail.aspx?pid=343", NULL, 1, 0 }, + { "Tyan", "S5197", "http://www.tyan.com/product_board_detail.aspx?pid=349", NULL, 1, 0 }, + { "Tyan", "S5211", "http://www.tyan.com/product_board_detail.aspx?pid=591", NULL, 1, 0 }, + { "Tyan", "S5211-1U", "http://www.tyan.com/product_board_detail.aspx?pid=593", NULL, 1, 0 }, + { "Tyan", "S5220", "http://www.tyan.com/product_board_detail.aspx?pid=597", NULL, 1, 0 }, + { "Tyan", "S5375", "http://www.tyan.com/product_board_detail.aspx?pid=566", NULL, 1, 0 }, + { "Tyan", "S5376G2NR/S5376WAG2NR","http://www.tyan.com/product_board_detail.aspx?pid=605", NULL, 1, 0 }, + { "Tyan", "S5377", "http://www.tyan.com/product_SKU_spec.aspx?ProductType=MB&pid=642&SKU...", NULL, 1, 0 }, + { "Tyan", "S5382 (Tempest i5000PW)", "http://www.tyan.com/product_board_detail.aspx?pid=439", NULL, 1, 0 }, + { "Tyan", "S5397", "http://www.tyan.com/product_board_detail.aspx?pid=560", NULL, 1, 0 }, + { "VIA", "EPIA M/MII/...", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a...", NULL, 1, 1 }, /* EPIA-MII link for now */ + { "VIA", "EPIA SP", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a...", NULL, 1, 0 }, + { "VIA", "EPIA-CN", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id...", NULL, 1, 0 }, + { "VIA", "EPIA-EX15000G", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a...", NULL, 1, 0 }, + { "VIA", "EPIA-LN", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id...", NULL, 1, 0 }, + { "VIA", "EPIA-M700", "http://via.com.tw/servlet/downloadSvl?motherboard_id=670&download_file_i...", NULL, 1, 0 }, + { "VIA", "EPIA-N/NL", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a...", NULL, 1, 1 }, /* EPIA-N link for now */ + { "VIA", "EPIA-NX15000G", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a...", NULL, 1, 0 }, + { "VIA", "NAB74X0", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id...", NULL, 1, 0 }, + { "VIA", "pc2500e", "http://www.via.com.tw/en/initiatives/empowered/pc2500_mainboard/index.jsp", NULL, 1, 0 }, + { "VIA", "PC3500G", "http://www.via.com.tw/en/initiatives/empowered/pc3500_mainboard/index.jsp", NULL, 1, 0 }, + { "VIA", "VB700X", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id...", NULL, 1, 0 }, +#endif /* defined(__i386__) || defined(__x86_64__) */ + + {}, +}; + +/* Please keep this list alphabetically ordered by vendor/board. */ +const static struct board_info laptops_known[] = { +#if defined(__i386__) || defined(__x86_64__) + { "Acer", "Aspire 1520", "http://support.acer.com/us/en/acerpanam/notebook/0000/Acer/Aspire1520/Aspire...", NULL, 1, 0 }, + { "Acer", "Aspire One", NULL, "http://www.coreboot.org/pipermail/coreboot/2009-May/048041.html", 0, 0 }, + { "ASUS", "Eee PC 701 4G", "http://www.asus.com/product.aspx?P_ID=h6SPd3tEzLEsrEiS", "It seems the chip (25X40VSIG) is behind some SPI flash translation layer (likely in the EC, the ENE KB3310).", 0, 0 }, + { "Dell", "Latitude CPi A366XT", "http://www.coreboot.org/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.", 0, 0 }, + { "HP/Compaq", "nx9010", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc...", "Hangs upon '''flashrom -V''' (needs hard power-cycle then).", 0, 0 }, + { "IBM/Lenovo", "Thinkpad T40p", "http://www.thinkwiki.org/wiki/Category:T40p", 0, 0 }, + { "IBM/Lenovo", "240", "http://www.stanford.edu/~bresnan//tp240.html", "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.", 0, 0 }, + { "Lenovo", "3000 V100 TF05Cxx", "http://www5.pc.ibm.com/europe/products.nsf/products?openagent&brand=Leno...", NULL, 1, 0 }, +#endif /* defined(__i386__) || defined(__x86_64__) */ + + {}, +}; + +#endif + +#endif /* __BOARD_H__ */ diff --git a/board_enable.c b/board_enable.c index 4251601..f6462d9 100644 --- a/board_enable.c +++ b/board_enable.c @@ -1402,12 +1402,12 @@ struct board_pciid_enable board_pciid_enables[] = { {0x10de, 0x01e0, 0x147b, 0x1c00, 0x10de, 0x0060, 0x147B, 0x1c00, NULL, NULL, NULL, "Abit", "NF7-S", 0, OK, nvidia_mcp_gpio8_raise}, {0x1106, 0x0691, 0, 0, 0x1106, 0x3057, 0, 0, NULL, "abit", "vt6x4", "Abit", "VT6X4", 0, OK, via_apollo_gpo4_lower}, {0x105a, 0x0d30, 0x105a, 0x4d33, 0x8086, 0x1130, 0x8086, 0, NULL, NULL, NULL, "Acorp", "6A815EPD", 0, OK, board_acorp_6a815epd}, - {0x8086, 0x24D4, 0x1849, 0x24D0, 0x8086, 0x24D5, 0x1849, 0x9739, NULL, NULL, NULL, "ASRock", "P4i65GV", 0, OK, intel_ich_gpio23_raise}, {0x1022, 0x746B, 0, 0, 0, 0, 0, 0, NULL, "AGAMI", "ARUMA", "agami", "Aruma", 0, OK, w83627hf_gpio24_raise_2e}, - {0x1106, 0x3177, 0x17F2, 0x3177, 0x1106, 0x3148, 0x17F2, 0x3148, NULL, NULL, NULL, "Albatron", "PM266A", 0, OK, w836xx_memw_enable_2e}, + {0x1106, 0x3177, 0x17F2, 0x3177, 0x1106, 0x3148, 0x17F2, 0x3148, NULL, NULL, NULL, "Albatron", "PM266A Pro", 0, OK, w836xx_memw_enable_2e}, {0x1106, 0x3205, 0x1106, 0x3205, 0x10EC, 0x8139, 0xA0A0, 0x0477, NULL, NULL, NULL, "AOpen", "vKM400Am-S", 0, OK, it8705f_write_enable_2e}, {0x1022, 0x2090, 0, 0, 0x1022, 0x2080, 0, 0, NULL, "artecgroup", "dbe61", "Artec Group", "DBE61", 0, OK, board_artecgroup_dbe6x}, {0x1022, 0x2090, 0, 0, 0x1022, 0x2080, 0, 0, NULL, "artecgroup", "dbe62", "Artec Group", "DBE62", 0, OK, board_artecgroup_dbe6x}, + {0x8086, 0x24D4, 0x1849, 0x24D0, 0x8086, 0x24D5, 0x1849, 0x9739, NULL, NULL, NULL, "ASRock", "P4i65GV", 0, OK, intel_ich_gpio23_raise}, {0x1106, 0x3189, 0x1043, 0x807F, 0x1106, 0x3065, 0x1043, 0x80ED, NULL, NULL, NULL, "ASUS", "A7V600-X", 0, OK, it8712f_gpio3_1_raise}, {0x1106, 0x3189, 0x1043, 0x807F, 0x1106, 0x3177, 0x1043, 0x808C, NULL, NULL, NULL, "ASUS", "A7V8X", 0, OK, board_asus_a7v8x}, {0x1106, 0x3189, 0x1043, 0x807F, 0x1106, 0x3177, 0x1043, 0x80A1, NULL, NULL, NULL, "ASUS", "A7V8X-X", 0, OK, it8712f_gpio3_1_raise}, @@ -1457,9 +1457,9 @@ struct board_pciid_enable board_pciid_enables[] = { {0x1106, 0x3104, 0x1297, 0xa238, 0x1106, 0x3059, 0x1297, 0xc063, NULL, NULL, NULL, "Shuttle", "AK38N", 256, OK, it8705f_write_enable_2e}, {0x10DE, 0x0050, 0x1297, 0x5036, 0x1412, 0x1724, 0x1297, 0x5036, NULL, NULL, NULL, "Shuttle", "FN25", 0, OK, board_shuttle_fn25}, {0x1106, 0x3038, 0x0925, 0x1234, 0x1106, 0x3058, 0x15DD, 0x7609, NULL, NULL, NULL, "Soyo", "SY-7VCA", 0, OK, via_apollo_gpo0_lower}, - {0x8086, 0x1076, 0x8086, 0x1176, 0x1106, 0x3059, 0x10f1, 0x2498, NULL, NULL, NULL, "Tyan", "S2498 (Tomcat K7M)", 0, OK, w836xx_memw_enable_2e}, {0x1106, 0x3038, 0x0925, 0x1234, 0x1106, 0x0596, 0x1106, 0, NULL, NULL, NULL, "Tekram", "P6Pro-A5", 256, OK, NULL}, {0x1106, 0x3123, 0x1106, 0x3123, 0x1106, 0x3059, 0x1106, 0x4161, NULL, NULL, NULL, "Termtek", "TK-3370 (Rev:2.5B)", 0, OK, w836xx_memw_enable_4e}, + {0x8086, 0x1076, 0x8086, 0x1176, 0x1106, 0x3059, 0x10f1, 0x2498, NULL, NULL, NULL, "Tyan", "S2498 (Tomcat K7M)", 0, OK, w836xx_memw_enable_2e}, {0x1106, 0x3177, 0x1106, 0xAA01, 0x1106, 0x3123, 0x1106, 0xAA01, NULL, NULL, NULL, "VIA", "EPIA M/MII/...", 0, OK, via_vt823x_gpio15_raise}, {0x1106, 0x0259, 0x1106, 0x3227, 0x1106, 0x3065, 0x1106, 0x3149, NULL, NULL, NULL, "VIA", "EPIA-N/NL", 0, OK, via_vt823x_gpio9_raise}, #endif diff --git a/flash.h b/flash.h index a201af3..c59f252 100644 --- a/flash.h +++ b/flash.h @@ -300,15 +300,6 @@ struct board_pciid_enable {
extern struct board_pciid_enable board_pciid_enables[];
-struct board_info { - const char *vendor; - const char *name; -}; - -extern const struct board_info boards_ok[]; -extern const struct board_info boards_bad[]; -extern const struct board_info laptops_ok[]; -extern const struct board_info laptops_bad[]; #endif
/* udelay.c */ diff --git a/print.c b/print.c index a8da65f..9df0816 100644 --- a/print.c +++ b/print.c @@ -22,6 +22,7 @@ #include <string.h> #include <stdlib.h> #include "flash.h" +#include "board.h" #include "flashchips.h"
/* @@ -168,59 +169,46 @@ void print_supported_chipsets(void) } }
-void print_supported_boards_helper(const struct board_info *b, const char *msg) -{ - int i, j, boardcount = 0; - - for (i = 0; b[i].vendor != NULL; i++) - boardcount++; - - printf("\n%s (total: %d):\n\n", msg, boardcount); - - for (i = 0; b[i].vendor != NULL; i++) { - printf("%s", b[i].vendor); - for (j = 0; j < 25 - strlen(b[i].vendor); j++) - printf(" "); - printf("%s", b[i].name); - for (j = 0; j < 28 - strlen(b[i].name); j++) - printf(" "); - printf("\n"); - } -} - -void print_supported_boards(void) +void print_supported_boards_helper(const struct board_info *boards, const char *devicetype) { int i, j, boardcount = 0; struct board_pciid_enable *b = board_pciid_enables;
- for (i = 0; b[i].vendor_name != NULL; i++) + /* Print known mainboards */ + for (i = 0; boards[i].vendor != NULL; i++) boardcount++;
- printf("\nSupported boards which need write-enable code (total: %d):" - "\n\nVendor: Board: " - "Required option:\n\n", boardcount); + printf("\nKnown %s (total: %d):" + "\n\nVendor: Board: Status: Write-enable option?" + "\n\n", devicetype, boardcount);
- for (i = 0; b[i].vendor_name != NULL; i++) { - printf("%s", b[i].vendor_name); - for (j = 0; j < 25 - strlen(b[i].vendor_name); j++) + for (i = 0; boards[i].vendor != NULL; i++) { + printf("%s", boards[i].vendor); + for (j = 0; j < 25 - strlen(boards[i].vendor); j++) printf(" "); - printf("%s", b[i].board_name); - for (j = 0; j < 30 - strlen(b[i].board_name); j++) + printf("%s", boards[i].name); + for (j = 0; j < 28 - strlen(boards[i].name); j++) printf(" "); - if (b[i].lb_vendor != NULL) - printf("-m %s:%s\n", b[i].lb_vendor, b[i].lb_part); + if(boards[i].working) + printf(" good "); else - printf("(none, board is autodetected)\n"); - } + printf(" BAD! "); + + if(boards[i].write_enable){ + for (j = 0; b[j].vendor_name != NULL; j++) { + if ((strcmp(b[j].vendor_name, boards[i].vendor) == 0) && (strcmp(b[j].board_name, boards[i].name) == 0)){ + if (b[j].lb_vendor != NULL) + printf("-m %s:%s", b[j].lb_vendor, b[j].lb_part); + else + printf("(none, board is autodetected)"); + } + } + } + else + printf(" -");
- print_supported_boards_helper(boards_ok, - "Supported boards which don't need write-enable code"); - print_supported_boards_helper(boards_bad, - "Boards which have been verified to NOT work yet"); - print_supported_boards_helper(laptops_ok, - "Laptops which have been verified to work"); - print_supported_boards_helper(laptops_bad, - "Laptops which have been verified to NOT work yet"); + printf("\n"); + } } #endif
@@ -229,7 +217,8 @@ void print_supported(void) print_supported_chips(); #if INTERNAL_SUPPORT == 1 print_supported_chipsets(); - print_supported_boards(); + print_supported_boards_helper(boards_known, "boards"); + print_supported_boards_helper(laptops_known, "laptops"); #endif #if (NIC3COM_SUPPORT == 1) || (GFXNVIDIA_SUPPORT == 1) || (DRKAISER_SUPPORT == 1) || (SATASII_SUPPORT == 1) printf("\nSupported PCI devices flashrom can use " @@ -256,183 +245,3 @@ void print_supported(void) #endif }
- -#if INTERNAL_SUPPORT == 1 -/* Please keep this list alphabetically ordered by vendor/board. */ -const struct board_info boards_ok[] = { - /* Verified working boards that don't need write-enables. */ -#if defined(__i386__) || defined(__x86_64__) - { "Abit", "AX8", }, - { "Abit", "Fatal1ty F-I90HD", }, - { "Advantech", "PCM-5820", }, - { "ASI", "MB-5BLMP", }, - { "ASRock", "A770CrossFire", }, - { "ASRock", "K8S8X", }, - { "ASRock", "M3A790GXH/128M" }, - { "ASUS", "A7N8X Deluxe", }, - { "ASUS", "A7N8X-E Deluxe", }, - { "ASUS", "A7V133", }, - { "ASUS", "A7V400-MX", }, - { "ASUS", "A7V8X-MX", }, - { "ASUS", "A8N-E", }, - { "ASUS", "A8NE-FM/S", }, - { "ASUS", "A8N-SLI", }, - { "ASUS", "A8N-SLI Premium", }, - { "ASUS", "A8V Deluxe", }, - { "ASUS", "A8V-E Deluxe", }, - { "ASUS", "A8V-E SE", }, - { "ASUS", "K8V", }, - { "ASUS", "K8V SE Deluxe", }, - { "ASUS", "K8V-X SE", }, - { "ASUS", "M2A-MX", }, - { "ASUS", "M2A-VM", }, - { "ASUS", "M2N-E", }, - { "ASUS", "M2V", }, - { "ASUS", "M3A78-EM", }, - { "ASUS", "P2B", }, - { "ASUS", "P2B-D", }, - { "ASUS", "P2B-DS", }, - { "ASUS", "P2B-F", }, - { "ASUS", "P2L97-S", }, - { "ASUS", "P5B", }, - { "ASUS", "P5B-Deluxe", }, - { "ASUS", "P5KC", }, - { "ASUS", "P5L-MX", }, - { "ASUS", "P6T Deluxe", }, - { "ASUS", "P6T Deluxe V2", }, - { "A-Trend", "ATC-6220", }, - { "BCOM", "WinNET100", }, - { "DFI", "Blood-Iron P35 T2RL", }, - { "Elitegroup", "K7S5A", }, - { "Elitegroup", "P6VAP-A+", }, - { "GIGABYTE", "GA-2761GXDK", }, - { "GIGABYTE", "GA-6BXC", }, - { "GIGABYTE", "GA-6BXDU", }, - { "GIGABYTE", "GA-6ZMA", }, - { "GIGABYTE", "GA-7ZM", }, - { "GIGABYTE", "GA-965P-DS4", }, - { "GIGABYTE", "GA-EP35-DS3L", }, - { "GIGABYTE", "GA-EX58-UD4P", }, - { "GIGABYTE", "GA-M57SLI-S4", }, - { "GIGABYTE", "GA-M61P-S3", }, - { "GIGABYTE", "GA-MA69VM-S2", }, - { "GIGABYTE", "GA-MA770T-UD3P", }, - { "GIGABYTE", "GA-MA78G-DS3H", }, - { "GIGABYTE", "GA-MA78GM-S2H", }, - { "GIGABYTE", "GA-MA78GPM-DS2H", }, - { "GIGABYTE", "GA-MA790FX-DQ6", }, - { "GIGABYTE", "GA-MA790GP-DS4H", }, - { "Intel", "EP80759", }, - { "Jetway", "J7F4K1G5D-PB", }, - { "MSI", "MS-6153", }, - { "MSI", "MS-6156", }, - { "MSI", "MS-6330 (K7T Turbo)", }, - { "MSI", "MS-6570 (K7N2)", }, - { "MSI", "MS-7065", }, - { "MSI", "MS-7168 (Orion)", }, - { "MSI", "MS-7236 (945PL Neo3)", }, - { "MSI", "MS-7255 (P4M890M)", }, - { "MSI", "MS-7312 (K9MM-V)", }, - { "MSI", "MS-7345 (P35 Neo2-FIR)", }, - { "MSI", "MS-7368 (K9AG Neo2-Digital)", }, - { "MSI", "MS-7376 (K9A2 Platinum)", }, - { "NEC", "PowerMate 2000", }, - { "PC Engines", "Alix.1c", }, - { "PC Engines", "Alix.2c2", }, - { "PC Engines", "Alix.2c3", }, - { "PC Engines", "Alix.3c3", }, - { "PC Engines", "Alix.3d3", }, - { "PC Engines", "WRAP.2E", }, - { "RCA", "RM4100", }, - { "Shuttle", "FD37", }, - { "Sun", "Blade x6250", }, - { "Supermicro", "H8QC8", }, - { "Supermicro", "X8DTT-F", }, - { "Thomson", "IP1000", }, - { "TriGem", "Lomita", }, - { "T-Online", "S-100", }, - { "Tyan", "iS5375-1U", }, - { "Tyan", "S1846", }, - { "Tyan", "S2466", }, - { "Tyan", "S2881", }, - { "Tyan", "S2882", }, - { "Tyan", "S2882-D", }, - { "Tyan", "S2891", }, - { "Tyan", "S2892", }, - { "Tyan", "S2895", }, - { "Tyan", "S3095", }, - { "Tyan", "S5180", }, - { "Tyan", "S5191", }, - { "Tyan", "S5197", }, - { "Tyan", "S5211", }, - { "Tyan", "S5211-1U", }, - { "Tyan", "S5220", }, - { "Tyan", "S5375", }, - { "Tyan", "S5376G2NR/S5376WAG2NR", }, - { "Tyan", "S5377", }, - { "Tyan", "S5382 (Tempest i5000PW)", }, - { "Tyan", "S5397", }, - { "VIA", "EPIA-CN", }, - { "VIA", "EPIA-EX15000G", }, - { "VIA", "EPIA-LN", }, - { "VIA", "EPIA-M700", }, - { "VIA", "EPIA-NX15000G", }, - { "VIA", "EPIA-SP", }, - { "VIA", "NAB74X0", }, - { "VIA", "pc2500e", }, - { "VIA", "PC3500G", }, - { "VIA", "VB700X", }, -#endif - {}, -}; - -/* Please keep this list alphabetically ordered by vendor/board. */ -const struct board_info boards_bad[] = { - /* Verified non-working boards (for now). */ -#if defined(__i386__) || defined(__x86_64__) - { "Abit", "IS-10", }, - { "ASRock", "K7VT4A+", }, - { "ASUS", "MEW-AM", }, - { "ASUS", "MEW-VM", }, - { "ASUS", "P3B-F", }, - { "ASUS", "P5BV-M", }, - { "Biostar", "M6TBA", }, - { "Boser", "HS-6637", }, - { "DFI", "855GME-MGF", }, - { "FIC", "VA-502", }, - { "MSI", "MS-6178", }, - { "MSI", "MS-7260 (K9N Neo)", }, - { "Soyo", "SY-5VD", }, - { "Sun", "Fire x4150", }, - { "Sun", "Fire x4200", }, - { "Sun", "Fire x4540", }, - { "Sun", "Fire x4600", }, -#endif - {}, -}; - -/* Please keep this list alphabetically ordered by vendor/board. */ -const struct board_info laptops_ok[] = { - /* Verified working laptops. */ -#if defined(__i386__) || defined(__x86_64__) - { "Lenovo", "3000 V100 TF05Cxx", }, - { "Acer", "Aspire 1520", }, -#endif - {}, -}; - -/* Please keep this list alphabetically ordered by vendor/board. */ -const struct board_info laptops_bad[] = { - /* Verified non-working laptops (for now). */ -#if defined(__i386__) || defined(__x86_64__) - { "Acer", "Aspire One", }, - { "ASUS", "Eee PC 701 4G", }, - { "Dell", "Latitude CPi A366XT", }, - { "HP/Compaq", "nx9010", }, - { "IBM/Lenovo", "Thinkpad T40p", }, - { "IBM/Lenovo", "240", }, -#endif - {}, -}; -#endif - diff --git a/print_wiki.c b/print_wiki.c index 3d51bfa..926c745 100644 --- a/print_wiki.c +++ b/print_wiki.c @@ -23,22 +23,9 @@ #include <stdlib.h> #include <time.h> #include "flash.h" +#include "board.h" #include "flashchips.h"
-#if INTERNAL_SUPPORT == 1 -struct board_info_url { - const char *vendor; - const char *name; - const char *url; -}; - -struct board_info_notes { - const char *vendor; - const char *name; - const char *note; -}; -#endif - const char *wiki_header = "= Supported devices =\n\n\ <div style="margin-top:0.5em; padding:0.5em 0.5em 0.5em 0.5em; \ background-color:#eeeeee; align:right; border:1px solid #aabbcc;"><small>\n\ @@ -56,11 +43,6 @@ const char *board_th = "{| border="0" style="font-size: smaller" \ valign="top"\n|- bgcolor="#6699dd"\n! align="left" | Vendor\n\ ! align="left" | Mainboard\n! align="left" | Status\n\n";
-const char *board_th2 = "{| border="0" style="font-size: smaller" \ -valign="top"\n|- bgcolor="#6699dd"\n! align="left" | Vendor\n\ -! align="left" | Mainboard\n! align="left" | Required option\n\ -! align="left" | Status\n\n"; - const char *board_intro = "\ \n== Supported mainboards ==\n\n\ In general, it is very likely that flashrom works out of the box even if your \ @@ -101,292 +83,6 @@ background-color:#ff6666; align:right; border:1px solid #000000;">\n\ untested laptops unless you have a means to recover from a flashing that goes \ wrong (a working backup flash chip and/or good soldering skills).\n</div>\n";
-/* Please keep these lists alphabetically ordered by vendor/board. */ -const struct board_info_url boards_url[] = { - /* Verified working boards that don't need write-enables. */ -#if defined(__i386__) || defined(__x86_64__) - { "Abit", "AX8", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?DEFTITLE=Y..." }, - { "Abit", "Fatal1ty F-I90HD", "http://www.abit.com.tw/page/de/motherboard/motherboard_detail.php?pMODEL_NAM..." }, - { "Advantech", "PCM-5820", "http://www.emacinc.com/sbc_pc_compatible/pcm_5820.htm" }, - { "ASI", "MB-5BLMP", "http://www.hojerteknik.com/winnet.htm" }, - { "ASRock", "A770CrossFire", "http://www.asrock.com/mb/overview.asp?Model=A770CrossFire&s=AM2%5C%2b" }, - { "ASRock", "K8S8X", "http://www.asrock.com/mb/overview.asp?Model=K8S8X" }, - { "ASRock", "M3A790GXH/128M" "http://www.asrock.com/MB/overview.asp?Model=M3A790GXH/128M" }, - { "ASUS", "A7N8X Deluxe", "http://www.asus.com/product.aspx?P_ID=wAsRYm41KTp78MFC" }, - { "ASUS", "A7N8X-E Deluxe", "http://www.asus.com/product.aspx?P_ID=TmQtPJv4jIxmL9C2" }, - { "ASUS", "A7V133", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socka/kt133a/a7v133/" }, - { "ASUS", "A7V400-MX", "http://www.asus.com/product.aspx?P_ID=hORgEHRBDLMfwAwx" }, - { "ASUS", "A7V8X-MX", "http://www.asus.com/product.aspx?P_ID=SEJOOYqfuQPitx2H" }, - { "ASUS", "A8N-E", "http://www.asus.com/product.aspx?P_ID=DzbA8hgqchMBOVRz" }, - { "ASUS", "A8NE-FM/S", "http://www.hardwareschotte.de/hardware/preise/proid_1266090/preis_ASUS+A8NE-..." }, - { "ASUS", "A8N-SLI", "http://www.asus.com/product.aspx?P_ID=J9FKa8z2xVId3pDK" }, - { "ASUS", "A8N-SLI Premium", "http://www.asus.com/product.aspx?P_ID=nbulqxniNmzf0mH1" }, - { "ASUS", "A8V Deluxe", "http://www.asus.com/product.aspx?P_ID=tvpdgPNCPaABZRVU" }, - { "ASUS", "A8V-E Deluxe", "http://www.asus.com/product.aspx?P_ID=hQBPIJWEZnnGAZEh" }, - { "ASUS", "A8V-E SE", "http://www.asus.com/product.aspx?P_ID=VMfiJJRYTHM4gXIi" }, - { "ASUS", "K8V", "http://www.asus.com/product.aspx?P_ID=fG2KZOWF7v6MRFRm" }, - { "ASUS", "K8V SE Deluxe", "http://www.asus.com/product.aspx?P_ID=65HeDI8XM1u6Uy6o" }, - { "ASUS", "K8V-X SE", "http://www.asus.com/product.aspx?P_ID=lzDXlbBVHkdckHVr" }, - { "ASUS", "M2A-MX", "http://www.asus.com/product.aspx?P_ID=BmaOnPewi1JgltOZ" }, - { "ASUS", "M2A-VM", "http://www.asus.com/product.aspx?P_ID=St3pWpym8xXpROQS" }, - { "ASUS", "M2N-E", "http://www.asus.com/product.aspx?P_ID=NFlvt10av3F7ayQ9" }, - { "ASUS", "M2V", "http://www.asus.com/product.aspx?P_ID=OqYlEDFfF6ZqZGvp" }, - { "ASUS", "M3A78-EM", "http://www.asus.com/product.aspx?P_ID=KjpYqzmAd9vsTM2D" }, - { "ASUS", "P2B", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b/" }, - { "ASUS", "P2B-D", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-d/" }, - { "ASUS", "P2B-DS", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-ds/" }, - { "ASUS", "P2B-F", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p2b-d/" }, - { "ASUS", "P2L97-S", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440lx/p2l97-s/" }, - { "ASUS", "P5B", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B/" }, - { "ASUS", "P5B-Deluxe", "http://www.asus.com/product.aspx?P_ID=bswT66IBSb2rEWNa" }, - { "ASUS", "P5KC", "http://www.asus.com/product.aspx?P_ID=fFZ8oUIGmLpwNMjj" }, - { "ASUS", "P5L-MX", "http://www.asus.com/product.aspx?P_ID=X70d3NCzH2DE9vWH" }, - { "ASUS", "P6T Deluxe", "http://www.asus.com/product.aspx?P_ID=vXixf82co6Q5v0BZ" }, - { "ASUS", "P6T Deluxe V2", "http://www.asus.com/product.aspx?P_ID=iRlP8RG9han6saZx" }, - { "A-Trend", "ATC-6220", "http://www.motherboard.cz/mb/atrend/atc6220.htm" }, - { "BCOM", "WinNET100", "http://www.coreboot.org/BCOM_WINNET100" }, - { "DFI", "Blood-Iron P35 T2RL", "http://lp.lanparty.com.tw/portal/CM/cmproduct/XX_cmproddetail/XX_WbProdsWind..." }, - { "Elitegroup", "K7S5A", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=279&a..." }, - { "Elitegroup", "P6VAP-A+", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=117&a..." }, - { "GIGABYTE", "GA-6BXC", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-6BXDU", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-6ZMA", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-965P-DS4", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-EX58-UD4P", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-EP35-DS3L", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-MA69VM-S2", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-MA790GP-DS4H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-MA78GPM-DS2H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-MA770T-UD3P", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "Intel", "EP80759", NULL }, - { "Jetway", "J7F4K1G5D-PB", "http://www.jetway.com.tw/jetway/system/productshow2.asp?id=389&proname=J..." }, - { "MSI", "MS-6153", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=336" }, - { "MSI", "MS-6156", "http://uk.ts.fujitsu.com/rl/servicesupport/techsupport/boards/Motherboards/M..." }, - { "MSI", "MS-6330 (K7T Turbo)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=327" }, - { "MSI", "MS-6570 (K7N2)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=519" }, - { "MSI", "MS-7065", "http://browse.geekbench.ca/geekbench2/view/53114" }, - { "MSI", "MS-7168 (Orion)", "http://support.packardbell.co.uk/uk/item/index.php?i=spec_orion&pi=platf..." }, - { "MSI", "MS-7236 (945PL Neo3)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1173" }, - { "MSI", "MS-7255 (P4M890M)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1082" }, - { "MSI", "MS-7345 (P35 Neo2-FIR)","http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1261" }, - { "MSI", "MS-7312 (K9MM-V)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1104" }, - { "MSI", "MS-7368 (K9AG Neo2-Digital)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1241" }, - { "MSI", "MS-7376 (K9A2 Platinum)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=1332" }, - { "NEC", "PowerMate 2000", "http://support.necam.com/mobilesolutions/hardware/Desktops/pm2000/celeron/" }, - { "PC Engines", "Alix.1c", "http://pcengines.ch/alix1c.htm" }, - { "PC Engines", "Alix.2c2", "http://pcengines.ch/alix2c2.htm" }, - { "PC Engines", "Alix.2c3", "http://pcengines.ch/alix2c3.htm" }, - { "PC Engines", "Alix.3c3", "http://pcengines.ch/alix3c3.htm" }, - { "PC Engines", "Alix.3d3", "http://pcengines.ch/alix3d3.htm" }, - { "PC Engines", "WRAP.2E", "http://pcengines.ch/wrap2e1.htm" }, - { "RCA", "RM4100", "http://www.settoplinux.org/index.php?title=RCA_RM4100" }, - { "Shuttle", "FD37", "http://www.shuttle.eu/products/discontinued/barebones/sd37p2/" }, - { "Sun", "Blade x6250", "http://www.sun.com/servers/blades/x6250/" }, - { "Supermicro", "H8QC8", "http://www.supermicro.com/Aplus/motherboard/Opteron/nforce/H8QC8.cfm" }, - { "Supermicro", "X8DTT-F", "http://www.supermicro.com/products/motherboard/QPI/5500/X8DTT-F.cfm" }, - { "Tekram", "P6Pro-A5", "http://www.motherboard.cz/mb/tekram/P6Pro-A5.htm" }, - { "Thomson", "IP1000", "http://www.settoplinux.org/index.php?title=Thomson_IP1000" }, - { "TriGem", "Lomita", "http://www.e4allupgraders.info/dir1/motherboards/socket370/lomita.shtml" }, - { "T-Online", "S-100", "http://wiki.freifunk-hannover.de/T-Online_S_100" }, - { "Tyan", "iS5375-1U", "http://www.tyan.com/product_board_detail.aspx?pid=610" }, - { "Tyan", "S1846", "http://www.tyan.com/archive/products/html/tsunamiatx.html" }, - { "Tyan", "S2466", "http://www.tyan.com/product_board_detail.aspx?pid=461" }, - { "Tyan", "S2881", "http://www.tyan.com/product_board_detail.aspx?pid=115" }, - { "Tyan", "S2882", "http://www.tyan.com/product_board_detail.aspx?pid=121" }, - { "Tyan", "S2882-D", "http://www.tyan.com/product_board_detail.aspx?pid=127" }, - { "Tyan", "S2891", "http://www.tyan.com/product_board_detail.aspx?pid=144" }, - { "Tyan", "S2892", "http://www.tyan.com/product_board_detail.aspx?pid=145" }, - { "Tyan", "S2895", "http://www.tyan.com/archive/products/html/thunderk8we.html" }, - { "Tyan", "S3095", "http://www.tyan.com/product_board_detail.aspx?pid=181" }, - { "Tyan", "S5180", "http://www.tyan.com/product_board_detail.aspx?pid=456" }, - { "Tyan", "S5191", "http://www.tyan.com/product_board_detail.aspx?pid=343" }, - { "Tyan", "S5197", "http://www.tyan.com/product_board_detail.aspx?pid=349" }, - { "Tyan", "S5211", "http://www.tyan.com/product_board_detail.aspx?pid=591" }, - { "Tyan", "S5211-1U", "http://www.tyan.com/product_board_detail.aspx?pid=593" }, - { "Tyan", "S5220", "http://www.tyan.com/product_board_detail.aspx?pid=597" }, - { "Tyan", "S5375", "http://www.tyan.com/product_board_detail.aspx?pid=566" }, - { "Tyan", "S5376G2NR/S5376WAG2NR","http://www.tyan.com/product_board_detail.aspx?pid=605" }, - { "Tyan", "S5377", "http://www.tyan.com/product_SKU_spec.aspx?ProductType=MB&pid=642&SKU..." }, - { "Tyan", "S5382 (Tempest i5000PW)", "http://www.tyan.com/product_board_detail.aspx?pid=439" }, - { "Tyan", "S5397", "http://www.tyan.com/product_board_detail.aspx?pid=560" }, - { "VIA", "EPIA-EX15000G", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a..." }, - { "VIA", "EPIA-LN", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id..." }, - { "VIA", "EPIA-M700", "http://via.com.tw/servlet/downloadSvl?motherboard_id=670&download_file_i..." }, - { "VIA", "EPIA-NX15000G", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a..." }, - { "VIA", "NAB74X0", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id..." }, - { "VIA", "pc2500e", "http://www.via.com.tw/en/initiatives/empowered/pc2500_mainboard/index.jsp" }, - { "VIA", "VB700X", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id..." }, - - /* Verified working boards that DO need write-enables. */ - { "Abit", "VT6X4", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=Slo..." }, - { "Abit", "IP35", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=LGA..." }, - { "Abit", "IP35 Pro", "http://www.abit.com.tw/page/de/motherboard/motherboard_detail.php?fMTYPE=LGA..." }, - { "Abit", "NF7-S", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?fMTYPE=Soc..., - { "Acorp", "6A815EPD", "http://web.archive.org/web/20021206163652/www.acorp.com.tw/English/default.a..." }, - { "agami", "Aruma", "http://web.archive.org/web/20080212111524/http://www.agami.com/site/ais-6000..." }, - { "Albatron", "PM266A Pro", "http://www.albatron.com.tw/English/Product/MB/pro_detail.asp?rlink=Overview&..." }, /* FIXME */ - { "AOpen", "vKM400Am-S", "http://usa.aopen.com/products_detail.aspx?Auno=824" }, - { "Artec Group", "DBE61", "http://wiki.thincan.org/DBE61" }, - { "Artec Group", "DBE62", "http://wiki.thincan.org/DBE62" }, - { "ASUS", "A7V600-X", "http://www.asus.com/product.aspx?P_ID=L2XYS0rmtCjeOr4k" }, - { "ASUS", "A7V8X", "http://www.asus.com/product.aspx?P_ID=qfpaGrAy2kLVo0f2" }, - { "ASUS", "A7V8X-MX SE", "http://www.asus.com/product.aspx?P_ID=1guVBT1qV5oqhHyZ" }, - { "ASUS", "A7V8X-X", "http://www.asus.com/product.aspx?P_ID=YcXfRrWHZ9RKoVmw" }, - { "ASUS", "M2NBP-VM CSM", "http://www.asus.com/product.aspx?P_ID=MnOfzTGd2KkwG0rF" }, - { "ASUS", "M2V-MX", "http://www.asus.com/product.aspx?P_ID=7grf8Ci4yxnqzt3z" }, - { "ASUS", "P4B266", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock478/p4b266/" }, - { "ASUS", "P4C800-E Deluxe", "http://www.asus.com/product.aspx?P_ID=cFuVCr9bXXCckmcK" }, - { "ASUS", "P4B266-LM", "http://esupport.sony.com/US/perl/swu-list.pl?mdl=PCVRX650" }, - { "ASUS", "P4P800-E Deluxe", "http://www.asus.com/product.aspx?P_ID=INIJUvLlif7LHp3g" }, - { "ASUS", "P5ND2-SLI Deluxe", "http://www.asus.com/product.aspx?P_ID=WY7XroDuUImVbgp5" }, - { "ASUS", "P5A", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock7/ali/p5a/" }, - { "Biostar", "P4M80-M4", "http://www.biostar-usa.com/mbdetails.asp?model=p4m80-m4" }, - { "Dell", "PowerEdge 1850", "http://support.dell.com/support/edocs/systems/pe1850/en/index.htm" }, - { "Elitegroup", "K7S6A", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=77&am..." }, - { "Elitegroup", "K7VTA3", "http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=264&a..." }, - { "EPoX", "EP-8K5A2", "http://www.epox.com/product.asp?ID=EP-8K5A2" }, - { "EPoX", "EP-8RDA3+", "http://www.epox.com/product.asp?ID=EP-8RDA3plus" }, - { "EPoX", "EP-BX3", "http://www.epox.com/product.asp?ID=EP-BX3" }, - { "GIGABYTE", "GA-2761GXDK", "http://www.computerbase.de/news/hardware/mainboards/amd-systeme/2007/mai/gig..." }, - { "GIGABYTE", "GA-7VT600", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-7ZM", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-K8N-SLI", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-M57SLI-S4", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-M61P-S3", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "GIGABYTE", "GA-MA78G-DS3H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, /* TODO: Rev 1.x or 2.x? */ - { "GIGABYTE", "GA-MA78GM-S2H", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, /* TODO: Rev. 1.0, 1.1, or 2.x? */ - { "GIGABYTE", "GA-MA790FX-DQ6", "http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ProductID..." }, - { "HP", "DL145 G3", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c0081..." }, - { "HP", "Vectra VL400 PC", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c0006..." }, - { "HP", "Vectra VL420 SFF PC", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c0006..." }, - { "IBM", "x3455", "http://www-03.ibm.com/systems/x/hardware/rack/x3455/index.html" }, - { "Intel", "D201GLY", "http://www.intel.com/support/motherboards/desktop/d201gly/index.htm" }, - { "IWILL", "DK8-HTX", "http://web.archive.org/web/20060507170150/http://www.iwill.net/product_2.asp..." }, - { "Kontron", "986LCD-M", "http://de.kontron.com/products/boards+and+mezzanines/embedded+motherboards/m..." }, - { "Mitac", "6513WU", "http://web.archive.org/web/20050313054828/http://www.mitac.com/micweb/produc..." }, - { "MSI", "MS-6590 (KT4 Ultra)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=502" }, - { "MSI", "MS-6702E (K8T Neo2-F)","http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=588" }, - { "MSI", "MS-6712 (KT4V)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=505" }, - { "MSI", "MS-7005 (651M-L)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=559" }, - { "MSI", "MS-7046", "http://www.heimir.de/ms7046/" }, - { "MSI", "MS-7135 (K8N Neo3)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=170" }, - { "Shuttle", "AK31", "http://www.motherboard.cz/mb/shuttle/AK31.htm" }, - { "Shuttle", "AK38N", "http://eu.shuttle.com/en/desktopdefault.aspx/tabid-36/558_read-9889/" }, - { "Shuttle", "FN25", "http://www.shuttle.eu/products/discontinued/barebones/sn25p/?0=" }, - { "Soyo", "SY-7VCA", "http://www.tomshardware.com/reviews/12-socket-370-motherboards,196-15.html" }, - { "Tyan", "S2498 (Tomcat K7M)", "http://www.tyan.com/archive/products/html/tomcatk7m.html" }, - { "VIA", "EPIA-CN", "http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id..." }, - { "VIA", "EPIA M/MII/...", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a..." }, /* EPIA-MII link for now */ - { "VIA", "EPIA-N/NL", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a..." }, /* EPIA-N link for now */ - { "VIA", "EPIA SP", "http://www.via.com.tw/en/products/embedded/ProductDetail.jsp?productLine=1&a..." }, - { "VIA", "PC3500G", "http://www.via.com.tw/en/initiatives/empowered/pc3500_mainboard/index.jsp" }, -#endif - - /* Verified non-working boards (for now). */ -#if defined(__i386__) || defined(__x86_64__) - { "Abit", "IS-10", "http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?pMODEL_NAM..." }, - { "ASRock", "K7VT4A+", "http://www.asrock.com/mb/overview.asp?Model=K7VT4A%%2b&s=" }, - { "ASUS", "MEW-AM", "ftp://ftp.asus.com.tw/pub/ASUS/mb/sock370/810/mew-am/" }, - { "ASUS", "MEW-VM", "http://www.elhvb.com/mboards/OEM/HP/manual/ASUS%20MEW-VM.htm" }, - { "ASUS", "P3B-F", "ftp://ftp.asus.com.tw/pub/ASUS/mb/slot1/440bx/p3b-f/" }, - { "ASUS", "P5BV-M", "ftp://ftp.asus.com.tw/pub/ASUS/mb/socket775/P5B-VM/" }, - { "Biostar", "M6TBA", "ftp://ftp.biostar-usa.com/manuals/M6TBA/" }, - { "Boser", "HS-6637", "http://www.boser.com.tw/manual/HS-62376637v3.4.pdf" }, - { "DFI", "855GME-MGF", "http://www.dfi.com.tw/portal/CM/cmproduct/XX_cmproddetail/XX_WbProdsWindow?a..." }, - { "FIC", "VA-502", "ftp://ftp.fic.com.tw/motherboard/manual/socket7/va-502/" }, - { "MSI", "MS-6178", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=343" }, - { "MSI", "MS-7260 (K9N Neo)", "http://www.msi.com/index.php?func=proddesc&maincat_no=1&prod_no=255" }, - { "Soyo", "SY-5VD", "http://www.soyo.com/content/Downloads/163/&c=80&p=464&l=English" }, - { "Sun", "Fire x4540", "http://www.sun.com/servers/x64/x4540/" }, - { "Sun", "Fire x4150", "http://www.sun.com/servers/x64/x4150/" }, - { "Sun", "Fire x4200", "http://www.sun.com/servers/entry/x4200/" }, - { "Sun", "Fire x4600", "http://www.sun.com/servers/x64/x4600/" }, -#endif - - /* Verified working laptops. */ -#if defined(__i386__) || defined(__x86_64__) - { "Acer", "Aspire 1520", "http://support.acer.com/us/en/acerpanam/notebook/0000/Acer/Aspire1520/Aspire..." }, - { "Lenovo", "3000 V100 TF05Cxx", "http://www5.pc.ibm.com/europe/products.nsf/products?openagent&brand=Leno..." }, -#endif - - /* Verified non-working laptops (for now). */ -#if defined(__i386__) || defined(__x86_64__) - { "Acer", "Aspire One", NULL }, - { "ASUS", "Eee PC 701 4G", "http://www.asus.com/product.aspx?P_ID=h6SPd3tEzLEsrEiS" }, - { "Dell", "Latitude CPi A366XT", "http://www.coreboot.org/Dell_Latitude_CPi_A366XT" }, - { "HP/Compaq", "nx9010", "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc..." }, - { "IBM/Lenovo", "Thinkpad T40p", "http://www.thinkwiki.org/wiki/Category:T40p" }, - { "IBM/Lenovo", "240", "http://www.stanford.edu/~bresnan//tp240.html" }, -#endif - - { NULL, NULL, 0 }, -}; - -/* Please keep these lists alphabetically ordered by vendor/board. */ -const struct board_info_notes boards_notes[] = { - /* Verified working boards that don't need write-enables. */ -#if defined(__i386__) || defined(__x86_64__) - { "ASI", "MB-5BLMP", "Used in the IGEL WinNET III thin client." }, - { "ASRock", "K8S8X", "The Super I/O isn't found on this board. See http://www.flashrom.org/pipermail/flashrom/2009-November/000937.html." }, - { "ASUS", "A8V-E SE", "See http://www.coreboot.org/pipermail/coreboot/2007-October/026496.html." }, - { "ASUS", "M2A-VM", "See http://www.coreboot.org/pipermail/coreboot/2007-September/025281.html." }, - { "BCOM", "WinNET100", "Used in the IGEL-316 thin client." }, - { "GIGABYTE", "GA-7ZM", "Works fine if you remove jumper JP9 on the board and disable the flash protection BIOS option." }, - { "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" }, -#endif - - /* Verified working boards that DO need write-enables. */ -#if defined(__i386__) || defined(__x86_64__) - { "Acer", "Aspire One", "See http://www.coreboot.org/pipermail/coreboot/2009-May/048041.html." }, -#endif - - /* Verified non-working boards (for now). */ -#if defined(__i386__) || defined(__x86_64__) - { "MSI", "MS-6178", "Immediately powers off if you try to hot-plug the chip. However, this does '''not''' happen if you use coreboot." }, - { "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." }, -#endif - - /* Verified working laptops. */ - /* None which need comments, yet... */ - - /* Verified non-working laptops (for now). */ -#if defined(__i386__) || defined(__x86_64__) - { "Acer", "Aspire One", "http://www.coreboot.org/pipermail/coreboot/2009-May/048041.html" }, - { "ASUS", "Eee PC 701 4G", "It seems the chip (25X40VSIG) is behind some SPI flash translation layer (likely in the EC, the ENE KB3310)." }, - { "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." }, - { "HP/Compaq", "nx9010", "Hangs upon '''flashrom -V''' (needs hard power-cycle then)." }, - { "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." }, -#endif - - { NULL, NULL, 0 }, -}; - -static int url(const char *vendor, const char *board) -{ - int i; - const struct board_info_url *b = boards_url; - - for (i = 0; b[i].vendor != NULL; i++) { - if (!strcmp(vendor, b[i].vendor) && !strcmp(board, b[i].name)) - return i; - } - - return -1; -} - -static int note(const char *vendor, const char *board) -{ - int i; - const struct board_info_notes *n = boards_notes; - - for (i = 0; n[i].vendor != NULL; i++) { - if (!strcmp(vendor, n[i].vendor) && !strcmp(board, n[i].name)) - return i; - } - - return -1; -} - static void print_supported_chipsets_wiki(int cols) { int i, j, enablescount = 0, color = 1; @@ -421,40 +117,51 @@ static void print_supported_chipsets_wiki(int cols) printf("\n|}\n\n|}\n"); }
-static void wiki_helper(const char *heading, const char *status, - int cols, const struct board_info boards[]) +static void wiki_helper(const char *devicetype, int cols, const struct board_info boards[]) { - int i, j, k, c, boardcount = 0, color = 1, num_notes = 0; - const struct board_info *b; - const struct board_info_url *u = boards_url; + int i, j, k = 0, boardcount = 0, color = 1, num_notes = 0; char *notes = calloc(1, 1); char tmp[900 + 1]; + struct board_pciid_enable *b = board_pciid_enables; +
- for (b = boards; b->vendor != NULL; b++) + for (i = 0; boards[i].vendor != NULL; i++) boardcount++;
- printf("\n'''%s'''\n\nTotal amount of boards: '''%d'''\n\n" + printf("\n\nTotal amount of known %s: '''%d'''\n\n" "{| border="0" valign="top"\n| valign="top"|\n\n%s", - heading, boardcount, board_th); + devicetype, boardcount, board_th); + + for (i = 0, j = 0; boards[i].vendor != NULL; i++, j++) {
- for (i = 0, j = 0, b = boards; b[i].vendor != NULL; i++, j++) { /* Alternate colors if the vendor changes. */ - if (i > 0 && strcmp(b[i].vendor, b[i - 1].vendor)) + if (i > 0 && strcmp(boards[i].vendor, boards[i - 1].vendor)) color = !color;
- k = url(b[i].vendor, b[i].name); - c = note(b[i].vendor, b[i].name); - - printf("|- bgcolor="#%s"\n| %s || %s%s %s%s ||" - " {{%s}}", (color) ? "eeeeee" : "dddddd", b[i].vendor, - (k != -1 && u[k].url) ? "[" : "", - (k != -1 && u[k].url) ? u[k].url : "", - b[i].name, (k != -1 && u[k].url) ? "]" : "", status); + if(boards[i].write_enable){ + k = 0; + while ((b[k].vendor_name != NULL) && (strcmp(b[k].vendor_name, boards[i].vendor) != 0) && (strcmp(b[k].board_name, boards[i].name) != 0)){ + k++; + } + }
- if (c != -1) { + printf("|- bgcolor="#%s"\n| %s || %s%s %s%s || %s%s%s%s || {{%s}}\n", + (color) ? "eeeeee" : "dddddd", + boards[i].vendor, + boards[i].url ? "[" : "", + boards[i].url ? boards[i].url : "", + boards[i].name, + boards[i].url ? "]" : "", + b[k].lb_vendor ? "-m " : "—", + b[k].lb_vendor ? b[k].lb_vendor : "", + b[k].lb_vendor ? ":" : "", + b[k].lb_vendor ? b[k].lb_part : "", + boards[i].working ? "OK" : "No"); + + if (boards[i].note){ printf("<sup>%d</sup>\n", num_notes + 1); snprintf((char *)&tmp, 900, "<sup>%d</sup> %s<br />\n", - 1 + num_notes++, boards_notes[c].note); + 1 + num_notes++, boards[i].note); notes = strcat_realloc(notes, (char *)&tmp); } else { printf("\n"); @@ -474,58 +181,14 @@ static void wiki_helper(const char *heading, const char *status, free(notes); }
-static void wiki_helper2(const char *heading, int cols) -{ - int i, j, k, boardcount = 0, color = 1; - struct board_pciid_enable *b; - const struct board_info_url *u = boards_url; - - for (b = board_pciid_enables; b->vendor_name != NULL; b++) - boardcount++; - - printf("\n'''%s'''\n\nTotal amount of boards: '''%d'''\n\n" - "{| border="0" valign="top"\n| valign="top"|\n\n%s", - heading, boardcount, board_th2); - - b = board_pciid_enables; - for (i = 0, j = 0; b[i].vendor_name != NULL; i++, j++) { - /* Alternate colors if the vendor changes. */ - if (i > 0 && strcmp(b[i].vendor_name, b[i - 1].vendor_name)) - color = !color; - - k = url(b[i].vendor_name, b[i].board_name); - - printf("|- bgcolor="#%s"\n| %s || %s%s %s%s " - "|| %s%s%s%s || {{%s}}\n", (color) ? "eeeeee" : "dddddd", - b[i].vendor_name, (k != -1 && u[k].url) ? "[" : "", - (k != -1 && u[k].url) ? u[k].url : "", b[i].board_name, - (k != -1 && u[k].url) ? "]" : "", - (b[i].lb_vendor) ? "-m " : "—", - (b[i].lb_vendor) ? b[i].lb_vendor : "", - (b[i].lb_vendor) ? ":" : "", - (b[i].lb_vendor) ? b[i].lb_part : "", - (b[i].status == OK) ? "OK" : "?3"); - - /* Split table in 'cols' columns. */ - if (j >= (boardcount / cols + 1)) { - printf("\n|}\n\n| valign="top"|\n\n%s", board_th2); - j = 0; - } - } - - printf("\n|}\n\n|}\n"); -} - static void print_supported_boards_wiki(void) { printf("%s", board_intro); - wiki_helper("Known good (worked out of the box)", "OK", 3, boards_ok); - wiki_helper2("Known good (with write-enable code in flashrom)", 2); - wiki_helper("Not supported (yet)", "No", 3, boards_bad); + wiki_helper("boards", 3, boards_known);
printf("%s", laptop_intro); - wiki_helper("Known good (worked out of the box)", "OK", 1, laptops_ok); - wiki_helper("Not supported (yet)", "No", 1, laptops_bad); + wiki_helper("laptops", 1, laptops_known); + } #endif