summaryrefslogtreecommitdiff
path: root/internal.c
diff options
context:
space:
mode:
authormkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-02-26 09:51:20 +0000
committermkarcher <mkarcher@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-02-26 09:51:20 +0000
commit21f17e7d97449c6fab1066a90825fdb4a6bb48e6 (patch)
treebcb007bd2f154ed156675411c3aef585dd66ff86 /internal.c
parente62fdf35f9928cfba9aa121ec4d821d8ade68ac4 (diff)
downloadflashrom-21f17e7d97449c6fab1066a90825fdb4a6bb48e6.tar.gz
Warn if running on laptops
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@916 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'internal.c')
-rw-r--r--internal.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal.c b/internal.c
index 12dae39..d38ae4b 100644
--- a/internal.c
+++ b/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.
*/