mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Warn if running on laptops
Corresponding to flashrom svn r916. Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:
12
internal.c
12
internal.c
@ -110,6 +110,8 @@ void probe_superio(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
int is_laptop;
|
||||
|
||||
int internal_init(void)
|
||||
{
|
||||
int ret = 0;
|
||||
@ -131,6 +133,16 @@ int internal_init(void)
|
||||
/* Probe for the SuperI/O chip and fill global struct superio. */
|
||||
probe_superio();
|
||||
|
||||
/* Warn if a laptop is detected */
|
||||
if (is_laptop)
|
||||
printf("========================================================================\n"
|
||||
"WARNING! You seem to be running flashrom on a laptop.\n"
|
||||
"Laptops, notebooks and netbooks are difficult to support and we recommend\n"
|
||||
"to use the vendor flashing utility. The embedded controller (EC) in these\n"
|
||||
"machines often interacts badly with flashing\n"
|
||||
"See http://www.flashrom.org/Laptops\n"
|
||||
"========================================================================\n");
|
||||
|
||||
/* try to enable it. Failure IS an option, since not all motherboards
|
||||
* really need this to be done, etc., etc.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user