Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NetBSD on a IBM Thinkpad T30

11 views
Skip to first unread message

Matthias Scheler

unread,
Jan 12, 2006, 7:55:51 AM1/12/06
to

Hello,

I've borrowed an IBM Thinkpad T30 and installed NetBSD 3.0 on it which
works very well. The only problem is that the serial port (if the DB9
plug on the back is indeed a serial port) isn't detected and that the
it detects the printer port as "lpt2" using polled mode.

lpt2 at isa0 port 0x3bc-0x3bf irq : polled

Is there any way to get the serial port working at all and to get the
parallel port working in interrupt driven mode?

Kind regards

--
Matthias Scheler http://scheler.de/~matthias/

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Valeriy E. Ushakov

unread,
Jan 12, 2006, 8:07:46 AM1/12/06
to
On Thu, Jan 12, 2006 at 12:55:51 +0000, Matthias Scheler wrote:

> I've borrowed an IBM Thinkpad T30 and installed NetBSD 3.0 on it which
> works very well. The only problem is that the serial port (if the DB9
> plug on the back is indeed a serial port) isn't detected and that the
> it detects the printer port as "lpt2" using polled mode.
>
> lpt2 at isa0 port 0x3bc-0x3bf irq : polled
>
> Is there any way to get the serial port working at all and to get the
> parallel port working in interrupt driven mode?

Re lpt, I have T41p and in its BIOS the lpt is configured at 0x3bc,
irq 7. Our GENERIC (and other configs) have lpt2 at that address, but
that line doesn't specify irq, so you end up with the polled mode.
Just Comment out the standard set of lpt attachments and add instead:

lpt0 at isa? port 0x3bc irq 7

Don't know about the com port (T41p doesn't have DB9 connector), but
check the BIOS settings too.

Or may be try a pnpbios enabled kernel.

SY, Uwe
--
u...@ptc.spbu.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen

Steven M. Bellovin

unread,
Jan 12, 2006, 8:31:45 AM1/12/06
to
In message <2006011212...@colwyn.zhadum.org.uk>, Matthias Scheler write
s:

>
> Hello,
>
>I've borrowed an IBM Thinkpad T30 and installed NetBSD 3.0 on it which
>works very well. The only problem is that the serial port (if the DB9
>plug on the back is indeed a serial port) isn't detected and that the
>it detects the printer port as "lpt2" using polled mode.
>
>lpt2 at isa0 port 0x3bc-0x3bf irq : polled
>
>Is there any way to get the serial port working at all and to get the
>parallel port working in interrupt driven mode?
>
Check your BIOS settings -- as I recall, the serial port is not enabled
by default on some Thinkpads. As for the parallel port -- I never used
it on my Thinkpads, but on recent desktops things worked very poorly
unless in interrupt mode; polled mode was much better.

--Steven M. Bellovin, http://www.cs.columbia.edu/~smb

Matthias Scheler

unread,
Jan 12, 2006, 3:27:01 PM1/12/06
to
On Thu, Jan 12, 2006 at 08:31:45AM -0500, Steven M. Bellovin wrote:
> Check your BIOS settings --

I get old. :-(

Via BIOS settings I managed to enable the serial port which now shows up
as "com0" and reconfigured the parallel port to match the definition
of "lpt0".

Thanks a lot for the hint

--
Matthias Scheler http://scheler.de/~matthias/

--

Jason Thorpe

unread,
Jan 13, 2006, 9:08:14 AM1/13/06
to

On Jan 12, 2006, at 5:07 AM, Valeriy E. Ushakov wrote:

> Or may be try a pnpbios enabled kernel.

Or better yet, ACPI.

-- thorpej

Steven M. Bellovin

unread,
Jan 13, 2006, 9:16:00 AM1/13/06
to
In message <F8B4DFEA-B936-482A...@shagadelic.org>, Jason Thorpe
writes:

>
>On Jan 12, 2006, at 5:07 AM, Valeriy E. Ushakov wrote:
>
>> Or may be try a pnpbios enabled kernel.
>
>Or better yet, ACPI.
>

Until there's standard ACPI support for suspend/resume and battery
monitoring, I don't think that that's feasible on most laptops.

--Steven M. Bellovin, http://www.cs.columbia.edu/~smb

--

Valeriy E. Ushakov

unread,
Jan 13, 2006, 9:31:13 AM1/13/06
to
On Fri, Jan 13, 2006 at 09:16:00 -0500, Steven M. Bellovin wrote:

> Jason Thorpe writes:
>
> >On Jan 12, 2006, at 5:07 AM, Valeriy E. Ushakov wrote:
> >
> >> Or may be try a pnpbios enabled kernel.
> >
> >Or better yet, ACPI.
>
> Until there's standard ACPI support for suspend/resume and battery
> monitoring, I don't think that that's feasible on most laptops.

Exactly. Nice thing about ThinkPads is that they have working apm.

SY, Uwe
--
u...@ptc.spbu.ru | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen

--

David Mattli

unread,
Jan 14, 2006, 10:44:44 PM1/14/06
to
On 1/13/06, Valeriy E. Ushakov <u...@ptc.spbu.ru> wrote:
> On Fri, Jan 13, 2006 at 09:16:00 -0500, Steven M. Bellovin wrote:
>
> > Jason Thorpe writes:
> >
> > >On Jan 12, 2006, at 5:07 AM, Valeriy E. Ushakov wrote:
> > >
> > >> Or may be try a pnpbios enabled kernel.
> > >
> > >Or better yet, ACPI.
> >
> > Until there's standard ACPI support for suspend/resume and battery
> > monitoring, I don't think that that's feasible on most laptops.
>
> Exactly. Nice thing about ThinkPads is that they have working apm.

Not anymore. apm support is broken in my shiny new R51 :(
I couldn't find information about it anywhere and now I'm kind of stuck with it.

-David Mattli

Steven M. Bellovin

unread,
Jan 14, 2006, 11:20:50 PM1/14/06
to
In message <4641d87c0601141944q17...@mail.gmail.com>, David
Mattli writes:
>On 1/13/06, Valeriy E. Ushakov <u...@ptc.spbu.ru> wrote:
>> On Fri, Jan 13, 2006 at 09:16:00 -0500, Steven M. Bellovin wrote:
>>
>> > Jason Thorpe writes:
>> >
>> > >On Jan 12, 2006, at 5:07 AM, Valeriy E. Ushakov wrote:
>> > >
>> > >> Or may be try a pnpbios enabled kernel.
>> > >
>> > >Or better yet, ACPI.
>> >
>> > Until there's standard ACPI support for suspend/resume and battery
>> > monitoring, I don't think that that's feasible on most laptops.
>>
>> Exactly. Nice thing about ThinkPads is that they have working apm.
>
>Not anymore. apm support is broken in my shiny new R51 :(
>I couldn't find information about it anywhere and now I'm kind of stuck with it.
>

Odd -- it works fine in my daughter's R51, running 3.0. What problem
are you having?

--Steven M. Bellovin, http://www.cs.columbia.edu/~smb

--

David Mattli

unread,
Jan 15, 2006, 5:12:23 PM1/15/06
to
> Odd -- it works fine in my daughter's R51, running 3.0. What problem
> are you having?
>
> --Steven M. Bellovin, http://www.cs.columbia.edu/~smb

This is the error I get on boot:
apm0 at mainbus0: bogus 32-bit code segment start
apm0: kernel APM support disabled.

My specific model is 2883-GKU.
Did you have to do anything special to get apm working?

Thanks,

Steven M. Bellovin

unread,
Jan 15, 2006, 5:35:02 PM1/15/06
to
In message <4641d87c0601151412y21a...@mail.gmail.com>, David

Mattli writes:
>> Odd -- it works fine in my daughter's R51, running 3.0. What problem
>> are you having?
>>
>> --Steven M. Bellovin, http://www.cs.columbia.edu/~smb
>
>This is the error I get on boot:
>apm0 at mainbus0: bogus 32-bit code segment start
>apm0: kernel APM support disabled.
>
>My specific model is 2883-GKU.
>Did you have to do anything special to get apm working?
>

Are you running GENERIC_LAPTOP? At some point, someone included acpi
in that kernel, which causes problems for my T42. On -current, I have
a custom kernel that includes

no acpi0 at mainbus0

but I don't remember if 'no' is supported on 3.0. My daughter is also
running a custom kernel. Anyway, I get that message if I boot the ACPI
version; the fix is to build a kernel that doesn't have it.

--Steven M. Bellovin, http://www.cs.columbia.edu/~smb

--

Quentin Garnier

unread,
Jan 15, 2006, 5:46:16 PM1/15/06
to
On Sun, Jan 15, 2006 at 05:35:02PM -0500, Steven M. Bellovin wrote:
[...]

> no acpi0 at mainbus0
>
> but I don't remember if 'no' is supported on 3.0. My daughter is also

It is not.

--
Quentin Garnier - cu...@cubidou.net - cu...@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

David Mattli

unread,
Jan 15, 2006, 8:56:59 PM1/15/06
to
---------- Forwarded message ----------
From: David Mattli <david....@gmail.com>
Date: Jan 15, 2006 7:56 PM
Subject: Re: NetBSD on a IBM Thinkpad T30
To: "Steven M. Bellovin" <s...@cs.columbia.edu>


On 1/15/06, Steven M. Bellovin <s...@cs.columbia.edu> wrote:
> In message <4641d87c0601151412y21a...@mail.gmail.com>, David
> Mattli writes:
> >> Odd -- it works fine in my daughter's R51, running 3.0. What problem
> >> are you having?
> >>
> >> --Steven M. Bellovin, http://www.cs.columbia.edu/~smb
> >
> >This is the error I get on boot:
> >apm0 at mainbus0: bogus 32-bit code segment start
> >apm0: kernel APM support disabled.
> >
> >My specific model is 2883-GKU.
> >Did you have to do anything special to get apm working?
> >
>
> Are you running GENERIC_LAPTOP? At some point, someone included acpi
> in that kernel, which causes problems for my T42. On -current, I have
> a custom kernel that includes
>
> no acpi0 at mainbus0
>
> but I don't remember if 'no' is supported on 3.0. My daughter is also
> running a custom kernel. Anyway, I get that message if I boot the ACPI
> version; the fix is to build a kernel that doesn't have it.
>
> --Steven M. Bellovin, http://www.cs.columbia.edu/~smb

What version of NetBSD is she running? I am running 3.0. I have indeed
been using GENERIC_LAPTOP that came on the iso. I downloaded the sys
sources. The GENERIC_LAPTOP config seems to have everything related to
acpi commented out. I recompiled using that configuration and there
was no change. What is the difference between starting a line with
'no' as opposed to commenting it out?

-David Mattli

0 new messages