summaryrefslogtreecommitdiffstats
path: root/board_enable.c
diff options
context:
space:
mode:
authorMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-03-07 22:29:28 +0000
committerMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-03-07 22:29:28 +0000
commit7f0c3ec56b794313b8d23346f8b75bee711c739d (patch)
tree392e8bff1f5e9887921d44a62a063ef0672be340 /board_enable.c
parent5fdf270450b91f46a132e5b1900dd38001d74af6 (diff)
downloadast2050-flashrom-7f0c3ec56b794313b8d23346f8b75bee711c739d.zip
ast2050-flashrom-7f0c3ec56b794313b8d23346f8b75bee711c739d.tar.gz
Move untested board enable documentation to manpage
This also checks the testedness of boards in all cases, not just for PCI/DMI detection. Corresponding to flashrom svn r926. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'board_enable.c')
-rw-r--r--board_enable.c41
1 files changed, 17 insertions, 24 deletions
diff --git a/board_enable.c b/board_enable.c
index 7a34eb1..4107411 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -1425,30 +1425,6 @@ static struct board_pciid_enable *board_match_pci_card_ids(void)
}
}
- if (board->status == NT) {
- if (!force_boardenable)
- {
- printf("WARNING: Your mainboard is %s %s, but the mainboard-specific\n"
- "code has not been marked as working. To help flashrom development, please\n"
- "test flashrom on your board. As the code to support your board is untested,\n"
- "we strongly recommend that as an additional safety measure you make\n"
- "store backup of your current ROM contents (obtained by flashrom -r) on\n"
- "a medium that can be accessed from a different computer (like an USB\n"
- "drive or a network share of another system) before you try to erase or\n"
- "write.\n"
- "The untested code does not run unless you specify the\n"
- " \"-p internal:boardenable=force\" command line option. Depending on your\n"
- "hardware environment, erasing, writing or even probing can fail without\n"
- "running the board specific code. Running the board-specific code might\n"
- "cause your computer to behave erratically if it is wrong.\n"
- "Please report the results of running the board enable code to\n"
- "flashrom@flashrom.org.\n",
- board->vendor_name, board->board_name);
- continue;
- }
- printf("NOTE: Running an untested board enable procedure.\n"
- "Please report success/failure to flashrom@flashrom.org\n");
- }
return board;
}
@@ -1466,6 +1442,23 @@ int board_flash_enable(const char *vendor, const char *part)
if (!board)
board = board_match_pci_card_ids();
+ if (board->status == NT) {
+ if (!force_boardenable)
+ {
+ printf("WARNING: Your mainboard is %s %s, but the mainboard-specific\n"
+ "code has not been tested, and thus will not not be executed by default.\n"
+ "Depending on your hardware environment, erasing, writing or even probing\n"
+ "can fail without running the board specific code.\n\n"
+ "Please see the man page (section PROGRAMMER SPECIFIC INFO, subsection\n"
+ "\"internal programmer\") for details\n",
+ board->vendor_name, board->board_name);
+ board = NULL;
+ }
+ else
+ printf("NOTE: Running an untested board enable procedure.\n"
+ "Please report success/failure to flashrom@flashrom.org\n");
+ }
+
if (board) {
if (board->max_rom_decode_parallel)
max_rom_decode.parallel =
OpenPOWER on IntegriCloud