Skip to contentSkip to conversation

question (IBM i2c-piix4)

DISCUSSION Tomáš Thiemel 2 participants 5 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi.
I have this problem:
==
i2c-piix4.o: IBM Laptop detected; this module may corrupt your serial eeprom! Refusing to load module!
==

And I have read this message:
####
http://archives.andrew.net.au/lm-sensors/msg01833.html
####

Is my PC on your "whitelist", please?

Thanks a lot

Tomas Thiemel
ICQ #170438916
http://www.wifizabreh.net

PS: What means "serial eeprom" - is it "BIOS chip"?

------------------------------
See information listed below:

***lspci -v ***
..
00:02.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
Flags: medium devsel, IRQ 9
..

***lspci -n***
00:00.0 Class 0600: 8086:7190 (rev 03)
00:01.0 Class 0604: 8086:7191 (rev 03)
00:02.0 Class 0601: 8086:7110 (rev 02)
00:02.1 Class 0101: 8086:7111 (rev 01)
00:02.2 Class 0c03: 8086:7112 (rev 01)
00:02.3 Class 0680: 8086:7113 (rev 02)
00:03.0 Class 0200: 8086:1229 (rev 05)
00:12.0 Class 0280: 1260:3873 (rev 01)
00:14.0 Class 0280: 1260:3873 (rev 01)
01:01.0 Class 0300: 5333:8904 (rev 01)

***cat /var/log/dmesg***
Linux version 2.4.29 (root@wifizabreh2) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #12 22:57:14 CEST 07-04-2005
127MB LOWMEM available.
..
IBM machine detected. Enabling interrupts during APM calls. Kernel command line: ro root=/dev/hda1
No local APIC present or hardware disabled
Initializing CPU#0
Detected 398.272 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 794.62 BogoMIPS
Memory: 126864k/131060k available (1508k kernel code, 3808k reserved, 541k data, 100k init, 0k highmem)
..
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 512K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.

CPU:     After generic, caps: 0183f9ff 00000000 00000000 00000000
CPU:             Common caps: 0183f9ff 00000000 00000000 00000000
CPU: Intel Pentium II (Deschutes) stepping 02

Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch ([email protected])
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfd85c, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX/ICH [8086/7110] at 00:02.0 Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
isapnp: Card 'Crystal Audio'
isapnp: 1 Plug & Play card detected total
Linux NET4.0 for Linux 2.4
..
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:02.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0xfff0-0xfff7, BIOS settings: hda:DMA, hdb:pio

hda: Maxtor 90644D3, ATA DISK drive
blk: queue c0346500, I/O limit 4095Mb (mask 0xffffffff) ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
..

#1 lore raw

Hi Jean.

Quoted 1 line

First of all, you MUST NOT load the eeprom driver on your system.

NEVER.

Quoted 1 line

Make sure you don't even compile it.

Which one (eeprom driver) do you mean? The eeprom driver in lm_sensors or the eeprom driver in the linux kernel?

Tomas Thiemel

#2 lore raw
In reply to Tomáš Thiemel

Hi Tomas,

Quoted 8 lines

Here is my "vpddecode" output:

# vpddecode 2.6
BIOS Build ID: NVKT39AGR
Product Name: PC 300PL
Box Serial Number: 5575C0D
Motherboard Serial Number: D7G5UCE0BDE
Machine Type/Model: 6862270

This one DOES have the faulty EEPROM IIRC, and an LM80 hardware monitoring driver.

Quoted 1 line

Thanks for your advice how to hack the i2c-piix4 driver.

First of all, you MUST NOT load the eeprom driver on your system. NEVER. Make sure you don't even compile it.

Now if you really want to bypass the security check, edit drivers/i2c/busses/i2c-piix4.c. In function piix4_setup, you'lle find:

	/* Don't access SMBus on IBM systems which get corrupted eeproms */
	if (dmi_check_system(piix4_dmi_table) &&
			PIIX4_dev->vendor = PCI_VENDOR_ID_INTEL) {
		dev_err(&PIIX4_dev->dev, "IBM Laptop detected; this module "
			"may corrupt your serial eeprom! Refusing to load "
			"module!\n");
		return -EPERM;
	}

Rip the whole block, recompile and you're done.

(And if you break your system we are not reponsible, of course.)

Signature · 1 line
Jean Delvare
#3 lore raw
In reply to Tomáš Thiemel
Quoted 5 lines
Quoted 2 lines

First of all, you MUST NOT load the eeprom driver on your system. NEVER. Make sure you don't even compile it.

Which one (eeprom driver) do you mean? The eeprom driver in lm_sensors or the eeprom driver in the linux kernel?

Both, as this is the same driver.

Signature · 1 line
Jean Delvare
#4 lore raw
In reply to Tomáš Thiemel

Hi,

Quoted 6 lines

I have this problem:
==
i2c-piix4.o: IBM Laptop detected; this module may corrupt your serial eeprom! Refusing to load module!
==

Quoted 6 lines

And I have read this message:
####
http://archives.andrew.net.au/lm-sensors/msg01833.html
####

Is my PC on your "whitelist", please?

The whitelist was never actually implemented, sorry. Too much work, not enough information from IBM.

We have moved to a different strategy since, which was to not use the command which possibly corrupts the EEPROMs at all. This was only implemented in user-space at the moment though, not in the kernel. One more thing I need to do, but hadn't the time to actually tackle yet.

If you are compiling your kernel manually, I can tell you how to hack the i2c-piix4 driver to bypass the check. You'd have to tell me which model you have before though, because the check is there for a good reason and you shouldn't remove it before we are certain your system is not at risk. The "vpddecode" tool which comes with dmidecode might help you identify your IBM system.

Quoted 1 line

PS: What means "serial eeprom" - is it "BIOS chip"?

It can be about anything, most frequently the ones connected to the SMBus are from the memory modules of your system. BIOS chips are much larger than that, and never found on the SMBus as far as I know.

--
Jean Delvare