From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 23 11:57:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4721716A4CE; Thu, 23 Sep 2004 11:57:37 +0000 (GMT) Received: from crumpler-s1.mel.crumpler.com.au (b20FB.static.pacific.net.au [210.23.137.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12D4143D31; Thu, 23 Sep 2004 11:57:36 +0000 (GMT) (envelope-from listsubs@crippy.mel.crumpler.com.au) Received: from [203.208.117.170] ([203.208.117.170]) by crumpler-s1.mel.crumpler.com.au over TLS secured channel with Microsoft SMTPSVC(5.0.2195.6713); Thu, 23 Sep 2004 21:57:34 +1000 Message-ID: <4152BA25.70102@crippy.mel.crumpler.com.au> Date: Thu, 23 Sep 2004 21:57:25 +1000 From: Phillip Crumpler User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040818) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Sep 2004 11:57:34.0285 (UTC) FILETIME=[832E07D0:01C4A164] cc: freebsd-mobile@freebsd.org Subject: Error 1802: IBM T41 doesn't like other network cards X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 11:57:37 -0000 Hello hackers, Wanting to try out Sam Leffler's wireless layer back-port I tried to replace the Intel miniPCI wireless card in my Thinkpad T41 (2373) with an Atheros based one. I had a Netgear WAG311 handy - these are an Atheros miniPCI wireless NIC on a PCI carrier - so I levered the top off and freed the miniPCI card. Ten minutes of open-notebook surgery later I started the machine with the replacement card in, only to find it won't boot: ERROR 1802 Unauthorized network card is plugged in - Power off and remove the miniPCI card. It seems that the IBM BIOS refuses to boot if the miniPCI card installed is on IBM's approved list. This thread: http://www.ussg.iu.edu/hypermail/linux/kernel/0406.1/1048.html describes a workaround that requires a byte to be set in the cmos, including a snippet (below) to do the job on linux. This opens and writes to /dev/nvram to set the byte. Is there an equivalent on FreeBSD? Would I find the CMOS somewhere in /dev/mem? Anyone else has similar problems? BMS@ reported ditching the Centrino card in his T40 but didn't mention if he replaced it with something else. thanks Phillip Crumpler ============================================================ #include #include #include #include #include int main(void) { int fd; unsigned char data; printf("Disabling WiFi whitelist check.\n"); fd = open("/dev/nvram", O_RDWR); lseek(fd, 0x5c, SEEK_SET); read(fd, &data, 1); printf("CMOS address 0x5c: %02x->", data); data |= 0x80; printf("%02x\n", data); lseek(fd, 0x5c, SEEK_SET); write(fd, &data, 1); close(fd); printf("Done.\n"); }