* PnP with glibc?
@ 1998-03-10 2:09 Michal Jaegermann
1998-03-10 2:33 ` Jay.Estabrook
1998-03-10 17:32 ` geerten kuiper
0 siblings, 2 replies; 6+ messages in thread
From: Michal Jaegermann @ 1998-03-10 2:09 UTC (permalink / raw)
To: axp-list
Does anybody knows what's a deal with isapnptools and glibc 2.0 (RH
5.0)?
I tried pnpdump in a attempt to get some Plug&Pray ethernet card
going. It trips on iopl() call. strace comes back with
mprotect(0x15555832000, 2097152, PROT_READ|PROT_WRITE) = -1 EFAULT (Bad address)
which indeed somehow does not look too healthy (2097152 is 0x200000 -
quite a sizeable chunk in the context).
There was some discussion about iopl() a while ago, which unfortunately
I do not remember too clearly. For an experiment I commented out
iopl() call. Now I am getting SIGSEGV from apecs_outb(), called
by _outb() which is used by initiate() function in pnpdump.
_outb() tries to write "alarm" character on a port 1.
Any sage advice, fixes, docs?
BTW - strace reminds me something. What are legal values which can
be used on the "other end" of /etc/alpha_systype link? Is this
documented somewhere? Is "system type" value from /proc/cpuinfo
a good bet in general? I understand that not for Alcor. Other cases?
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PnP with glibc?
1998-03-10 2:09 PnP with glibc? Michal Jaegermann
@ 1998-03-10 2:33 ` Jay.Estabrook
1998-03-10 17:32 ` geerten kuiper
1 sibling, 0 replies; 6+ messages in thread
From: Jay.Estabrook @ 1998-03-10 2:33 UTC (permalink / raw)
To: axp-list
>>> Michal Jaegermann said:
>
> BTW - strace reminds me something. What are legal values which can
> be used on the "other end" of /etc/alpha_systype link? Is this
> documented somewhere? Is "system type" value from /proc/cpuinfo
> a good bet in general? I understand that not for Alcor. Other cases?
Doing the following, under stock RH 5.0:
strings -n 2 /lib/libc.so.6.1 | less
and groping around a bit gives the listing:
Miata
Sable
Noname
Mustang
Mikasa
Jensen
EB66P
EB66
EB64+
EB164
Cabriolet
Avanti
Alcor
Note that this will change (or has already) for later versions, EGCS, etc;
Mustang is gone, but XL, Noritake, Rawhide, Tsunami will appear. The algorithm
presented above will work for later versions as well... :-)
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2 enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PnP with glibc?
1998-03-10 2:09 PnP with glibc? Michal Jaegermann
1998-03-10 2:33 ` Jay.Estabrook
@ 1998-03-10 17:32 ` geerten kuiper
1998-03-10 18:20 ` Michal Jaegermann
1998-03-11 2:07 ` Michal Jaegermann
1 sibling, 2 replies; 6+ messages in thread
From: geerten kuiper @ 1998-03-10 17:32 UTC (permalink / raw)
To: axp-list
Michal,
At 07:09 PM 9/3/98 -0700, you wrote:
>Does anybody knows what's a deal with isapnptools and glibc 2.0 (RH
>5.0)?
>
I managed to compile the pnp extensions by Tom Lees
(http://www-jcr.lmh.ox.ac.uk/~pnp) into a 2.1.88 kernel for alpha. That
might be an alternative ?
Groeten,
Geerten.
Geerten Kuiper | "It is customary to append a signature or
Corn. Houtmanstraat 113 | .sig to a mail message, usually containing
2593 RG Den Haag | information on the author, along with a
Nederland | joke or a motto."
| Olaf Kirch
| LINUX Network Administrators Guide
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PnP with glibc?
1998-03-10 17:32 ` geerten kuiper
@ 1998-03-10 18:20 ` Michal Jaegermann
1998-03-10 22:29 ` Michal Jaegermann
1998-03-11 2:07 ` Michal Jaegermann
1 sibling, 1 reply; 6+ messages in thread
From: Michal Jaegermann @ 1998-03-10 18:20 UTC (permalink / raw)
To: axp-list
>
> I managed to compile the pnp extensions by Tom Lees
> (http://www-jcr.lmh.ox.ac.uk/~pnp) into a 2.1.88 kernel for alpha. That
> might be an alternative ?
Ok, maybe I will check it out.
This is not a question of "managing" to compile. This I can do
just fine with a minor tweaks. :-) 1.11 does not want to work.
I got the latest 1.13 and this one talks to my hardware (it indeed
skips that 'iopl' for Alpha). The only problem that scanning for
a card it managed to hang hard my machine. :-(
I'll keep you posted on this saga.
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PnP with glibc?
1998-03-10 18:20 ` Michal Jaegermann
@ 1998-03-10 22:29 ` Michal Jaegermann
0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 1998-03-10 22:29 UTC (permalink / raw)
To: axp-list
Ok, here is the deal. 'isapnptools' from RH 5.0 on Alpha simply do not
work. On the other hand, current isapnptools-1.13, as well a
distribution stuff fixed in manner similar to 1.13 NOT to use iopl
and only ioperm, do work just fine. You can find even source rpm
for that on ftp.redhat.com and mirrors in contrib.
One minor glitch - #include <sys/types.h> is missing which produces
a zillion of errors and a failed compilation. You may also want
to review Makefile options. This applies both to "distribution"
rpm and the current stuff. How a binary rpm in 5.0 was produced
is one of those mysteries of Universe. :-)
After all was said and done it turns out the the card in question
(ISA ne2000 lookalike) does not want to show up as Plug&Pray at all.
Does not matter what are settings - both on Intel and on Alpha.
I have some other PnP stuff on Intel and it does respond how
prescribed.
Luckily this card can be set up to a fixed address and IRQ with a help
of an MS-DOS program. In such state it will work on 164LX **provided**
Linux will be told on what IRQ and which port to find it. Scanning
always fails. An interesting thing is that the same card was
autodetected when used in the past with a Noname board. Different
ISA bridge, I guess.
With this happy ending,
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PnP with glibc?
1998-03-10 17:32 ` geerten kuiper
1998-03-10 18:20 ` Michal Jaegermann
@ 1998-03-11 2:07 ` Michal Jaegermann
1 sibling, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 1998-03-11 2:07 UTC (permalink / raw)
To: axp-list
> >
> I managed to compile the pnp extensions by Tom Lees
> (http://www-jcr.lmh.ox.ac.uk/~pnp) into a 2.1.88 kernel for alpha. That
> might be an alternative ?
Possibly, but I do not know. I found in the meantime that version
1.13 is available and this once compiles after minor tweaks and runs
on Alpha. I uploaded to ftp.redhat.com source rpm with modifications
to compile cleanly and rpm with alpha binaries. Guess that they
should show up in contrib at some moment.
After all this work it turned out that the card in question does not
want to admit that is has anything to do with PnP. On the other hand it
can be set, in software, to some values of port and IRQ and, when
booting with ether=11,0x300 to kernel, it works. Otherwise scanning
for IRQ fails. Oh, well....
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-03-11 2:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-10 2:09 PnP with glibc? Michal Jaegermann
1998-03-10 2:33 ` Jay.Estabrook
1998-03-10 17:32 ` geerten kuiper
1998-03-10 18:20 ` Michal Jaegermann
1998-03-10 22:29 ` Michal Jaegermann
1998-03-11 2:07 ` Michal Jaegermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox