mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Tisheng Chen <tishengchen@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Solution to the "1802: Unauthorized network card" problem in recent thinkpad systems
Date: Sun, 13 Jun 2004 13:20:51 +0200	[thread overview]
Message-ID: <20040613112051.GA1416@ucw.cz> (raw)
In-Reply-To: <20040613073950.21346.qmail@web90101.mail.scd.yahoo.com>

On Sun, Jun 13, 2004 at 12:39:50AM -0700, Tisheng Chen wrote:

> In recent IBM thinkpad systems, there is a limit to
> allowed MiniPCI wireless cards. When an unauthorized
> card is plugged in, the system doesn't boot and
> halt with an error message like:
> 
> ERROR
> 1802: Unauthorized network card is plugged in
> Power off and remove the miniPCI network card.

[snip]

> The other way is unbelievably simple. There is a byte
> in CMOS which controls whether an "unauthorized" card
> is allowed or not. That's 0x6a, actually only
> the bit 0x80. The program to unlock the authorization
> mechanism is like (asm):
> 
> MOV     DX,0070
> MOV     AL,6A
> OUT     DX,AL
> MOV     DX,0071
> IN      AL,DX
> OR      AL,80
> OUT     DX,AL
> MOV     AX,4C00
> INT     21
> 
> The program can be downloaded from:
>   http://jcnp.pku.edu.cn/~shadow/1802/no-1802.com
> To use this program, you need to boot to DOS.
> 
> The CMOS solution is safe, but I'm not sure that it
> works for all recent thinkpads and all cards. The BIOS
> crack sure does, however it is difficult
> and dangerous.

Well, here is a version for Linux:

------------------------------------------------------------

#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>

int main(void)
{
	int fd;
	unsigned char data;

	printf("Disabling WiFi whitelist check.\n");
	fd = open("/dev/nvram", O_RDWR);
	lseek(fd, 0x6a, SEEK_SET);
	read(fd, &data, 1);
	printf("CMOS address 0x6a: %02x->", data);
	data &= ~0x80;
	printf("%02x\n", data);
	lseek(fd, 0x6a, SEEK_SET);
	write(fd, &data, 1);
	close(fd);
	printf("Done.\n");
}

------------------------------------------------------------

I've tried it on my ThinkPad X31, but it doesn't work at all. The CMOS
has a value 0xfa at the offset 0x6a, so the most upper bit is already
set.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  reply	other threads:[~2004-06-13 11:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-13  7:39 Tisheng Chen
2004-06-13 11:20 ` Vojtech Pavlik [this message]
2004-06-13 19:10   ` Tisheng Chen
2004-06-13 19:31     ` Vojtech Pavlik
2004-06-13 20:07     ` Vojtech Pavlik
2004-06-13 20:30       ` Tisheng Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040613112051.GA1416@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tishengchen@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®