[ltp] Reverse "Unauthorized network card" patch

Sebastian Luettich linux-thinkpad@linux-thinkpad.org
Wed, 7 Nov 2007 11:02:23 +0100


Florian Reitmeir scripsit:
>On Wed, 07 Nov 2007, Sebastian Luettich wrote:

>> I like the STR more than using different wifi cards, but I'm a C-moron.
>> 
>> Could someone supply a "Unbreaking Ur Thinkpad fĝr Dümmies" patch, or
>> tell me what I have to change in the source from
>
>i think nearly everyone needs some more information, to help you.
>please post the output of:

output of uname is irrelevant.

FYI:
#v+
|00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 03)
|00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 03)
|00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
|00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
|00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
|00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
|00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 81)
|00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 01)
|00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 01)
|00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
|00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
|00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
|01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02)
|02:00.0 CardBus bridge: Texas Instruments PCI4520 PC card Cardbus Controller (rev 01)
|02:00.2 FireWire (IEEE 1394): Texas Instruments Unknown device 802a (rev 01)
|02:01.0 Ethernet controller: Intel Corporation 82540EP Gigabit Ethernet Controller (Mobile) (rev 03)
|02:02.0 Network controller: Intel Corporation PRO/Wireless 2200BG Network Connection (rev 05)
#v-

My coding skills are nearly invisible and therefore I cant reverse the
patch on my own.

#v+
|selu@latour ~ $ cat /dev/nvram|hexdump
|0000000 0000 0000 00f0 8003 0002 01fc 0000 1f00
|0000010 000e 0200 0000 0000 0001 bb00 00bb 0000
|0000020 1804 fc00 c820 01d6 7bf8 0000 0000 0000
|0000030 0000 0400 bb80 6200 d4bb 042f cfd0 0040
|0000040 0000 0000 05c0 2a52 b6ed 5b6d 0203 3003
|0000050 0400 0004 4014 08d8 7b00 fd04 0c91 0007
|0000060 040b fe85 0500 0092 7044 000c 0000 5349
|0000070 00b2
|0000072
#v-

shows my actual nvram settings.  If someone with an untouched nvram and 
the same hardware config could supply his hexdump I would be thankful.

>And tell us, HOW do you suspend? KDE/Gnome/hibernate/suspend2?

STR means suspend to ram.  My script unloads the ehci_hcd module and
echoes mem into /sys/power/state.

It worked flawlessly before the patch and now its b0rken.

Sı