9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] rtl8139 troubles and 2 questions
@ 2002-07-04 17:43 forsyth
  2002-07-04 19:41 ` FJ Ballesteros
  0 siblings, 1 reply; 6+ messages in thread
From: forsyth @ 2002-07-04 17:43 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 79 bytes --]

ether8139 possibly (probably) isn't configured in /sys/src/9/pc/^(pc pcdisk).

[-- Attachment #2: Type: message/rfc822, Size: 2857 bytes --]

To: 9fans@cse.psu.edu
Subject: [9fans] rtl8139 troubles and 2 questions
Date: Thu, 4 Jul 2002 16:15:28 GMT
Message-ID: <4488d66c.0207040759.5e2cd9df@posting.google.com>

hi.

i'm trying to set up plan 9 on my computer, however i can't seem to get
ethernet running.  first i tried using an rtl8029 pci card, but it wouldn't
show up at all, then i exchanged it for an rtl8139 card which at least shows
up (with ether0=type=rtl8139), but i can't seem to get it working.

9load seems to probe it, and when i boot i get a line saying:
"ether#0: rtl8139: port 0xE400 irq 11: 00C12602EA37"

however, once rio starts up, if i cat /dev/*alloc it's not there,
and i've got no entries in /net.  bind -b '#l0' /net tells me:
"no free devices"

i have disabled everything that's not needed in the bios (usb, parallel
port, serial ports, etc.) and the network card has got its own irq (ie.
not shared with anything else.)

if anybody has any ideas on how to fix this, i would be very grateful
to hear them!

a different question: is it possible to change the keymap? if so,
how do i do it?

and one more: if i run "mk && mk install" in /sys/src/boot/pc and then
copy 9load to /n/9fat to replace my current one, it never wants to boot.
i just get "PBS..." and then it hangs, even after things like only
adding a print().  i suppose there's something i have to do that i'm
missing... if anybody could help me out with this also, i'd be very grateful.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] rtl8139 troubles and 2 questions
  2002-07-04 17:43 [9fans] rtl8139 troubles and 2 questions forsyth
@ 2002-07-04 19:41 ` FJ Ballesteros
  2002-07-04 20:52   ` [9fans] WD hard disk not available in partdisk John DeGood
  0 siblings, 1 reply; 6+ messages in thread
From: FJ Ballesteros @ 2002-07-04 19:41 UTC (permalink / raw)
  To: 9fans



You can change the keymap but not in the distributed keyboard
driver. After you install your system, you can extract an alternate
keyboard driver (including manual pages) from
http://plan9.escet.urjc.es/export/kbd.tgz (I think it's kbd.tgz, but
there's a link at http://plan9.escet.urjc.es in case it's not).

Look at the extracted plan9.ini(8) to see how to select your default
kbd map.

If you have problems, let me know and I'll try to help.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [9fans] WD hard disk not available in partdisk
  2002-07-04 19:41 ` FJ Ballesteros
@ 2002-07-04 20:52   ` John DeGood
  0 siblings, 0 replies; 6+ messages in thread
From: John DeGood @ 2002-07-04 20:52 UTC (permalink / raw)
  To: 9fans

I tried to install 4th Edition on an old Western Digital AC2340 340 MB hard
drive.  The hard drive is recognized by the BIOS and works with DOS and
Win95, but it does not appear in "partdisk" during the Plan 9 install.  I
also tried an old Seagate ST3243A 214 MB hard drive and "partdisk"
recognizes it fine.  I tried all master/slave combinations of the AC2340 and
ST3243A, and in every case only the ST3243A is available in "partdisk".

Here are snippets of what I get with the ST3243A as primary master and the
AC2340 as primary slave.  In every case the AC2340 appears to be recognized
early in the boot process, but it is never available in "partdisk":
----
  dev A0 port 1F0 config 045A capabilities 0000 mwdma 0000 dma 00000000 rwm
8
  dev B0 port 1F0 config 427A capabilities 0100 mwdma 0000 dma 00000000 rwm
16
  dev A0 port 170 config 8580 capabilities 0B00 mwdma 0003 dma 00000000 rwm
0
----
  The following disk devices were found.

  sdC0 - ST3243A
  * p1     0     1023  (1023 cylinders, 203.80 MB) FATHUGE
   empty  1023  1024  (1 cylinders, 204.00 KB)

  sdD0 - NEC CD-ROM DRIVE: 2523.18
----
This system has an old Intel Plato (aka Premier/PCI II) motherboard (Pentium
90 w/ 430NX chipset).

I also tried a 3rd Edition 9disk.9fd and had the same problem.

Am I doing something dumb or is this a bug/feature? :-)

John



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] WD hard disk not available in partdisk
@ 2002-07-05 21:33 jmk
  0 siblings, 0 replies; 6+ messages in thread
From: jmk @ 2002-07-05 21:33 UTC (permalink / raw)
  To: 9fans

John DeGood <nu3e@yahoo.com>:
	Based on reading the ATA-1 and ATA-2 specs
	(http://www.t13.org/project/d0791r4c.pdf and
	http://www.t13.org/project/d0948r4c.pdf) I agree that the if statement clauses
	in sdata.c appear to be reversed.

	FWIW, the ATA-6 draft (http://www.t13.org/project/d1410r3a.pdf) declares:
	----
	   8.15.26 Word 53: Field validity

	   Bit 0 of word 53 is obsolete.
	...
	   8.15.27 Word (58:54): Obsolete
	----
	Does this suggest that this code in sdata.c may cause problems in the future if
	it continues to always assume that the content of bit 0 of word 53 is valid?

Most likely this will eventually be a problem.

	> I've tested this on a WD AC2120 (125MB, my disc is smaller than your disc).

	I'd try my ST225 (21.4 MB), but I don't think its controller is supported. :-)

	John


My 40MB Conner CP3000 seems to work with the changes too.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] WD hard disk not available in partdisk
  2002-07-05 15:20 jmk
@ 2002-07-05 19:57 ` John DeGood
  0 siblings, 0 replies; 6+ messages in thread
From: John DeGood @ 2002-07-05 19:57 UTC (permalink / raw)
  To: 9fans

Based on reading the ATA-1 and ATA-2 specs
(http://www.t13.org/project/d0791r4c.pdf and
http://www.t13.org/project/d0948r4c.pdf) I agree that the if statement clauses
in sdata.c appear to be reversed.

FWIW, the ATA-6 draft (http://www.t13.org/project/d1410r3a.pdf) declares:
----
   8.15.26 Word 53: Field validity

   Bit 0 of word 53 is obsolete.
...
   8.15.27 Word (58:54): Obsolete
----
Does this suggest that this code in sdata.c may cause problems in the future if
it continues to always assume that the content of bit 0 of word 53 is valid?

> I've tested this on a WD AC2120 (125MB, my disc is smaller than your disc).

I'd try my ST225 (21.4 MB), but I don't think its controller is supported. :-)

John

--- jmk@plan9.bell-labs.com wrote:
> A dumb bug, I fear, introduced between the 2nd and 3rd Edition, but I'd like
> confirmation from another party. I believe the code around line 590 of
> sdata.c
> has the 'current' and 'logical' sectors swapped and should be
> 
> 		if(drive->info[Ivalid] & 0x0001){
> 			drive->c = drive->info[Iccyl];
> 			drive->h = drive->info[Ichead];
> 			drive->s = drive->info[Icsec];
> 		}
> 		else{
> 			drive->c = drive->info[Ilcyl];
> 			drive->h = drive->info[Ilhead];
> 			drive->s = drive->info[Ilsec];
> 		}
> 
> Your old drive does not have LBA mode so this assignment becomes important.
> What puzzles me is that this hasn't caused problems before, as it can lead to
> division by zero later on. This applies to both the kernel and 9load.
> 
> In the later ATA/ATAPI 'standards' all this was finessed away by stating that
> all drives will support LBA mode.
> 
> I've tested this on a WD AC2120 (125MB, my disc is smaller than your disc).
> 
> --jim
> 
> 
> On Thu Jul  4 16:46:16 EDT 2002, nu3e@arrl.net wrote:
> > I tried to install 4th Edition on an old Western Digital AC2340 340 MB hard
> > drive.  The hard drive is recognized by the BIOS and works with DOS and
> > Win95, but it does not appear in "partdisk" during the Plan 9 install.  I
> > also tried an old Seagate ST3243A 214 MB hard drive and "partdisk"
> > recognizes it fine.  I tried all master/slave combinations of the AC2340
> and
> > ST3243A, and in every case only the ST3243A is available in "partdisk".
> > 
> > Here are snippets of what I get with the ST3243A as primary master and the
> > AC2340 as primary slave.  In every case the AC2340 appears to be recognized
> > early in the boot process, but it is never available in "partdisk":
> > ----
> >   dev A0 port 1F0 config 045A capabilities 0000 mwdma 0000 dma 00000000 rwm
> > 8
> >   dev B0 port 1F0 config 427A capabilities 0100 mwdma 0000 dma 00000000 rwm
> > 16
> >   dev A0 port 170 config 8580 capabilities 0B00 mwdma 0003 dma 00000000 rwm
> > 0
> > ----
> >   The following disk devices were found.
> > 
> >   sdC0 - ST3243A
> >   * p1     0     1023  (1023 cylinders, 203.80 MB) FATHUGE
> >    empty  1023  1024  (1 cylinders, 204.00 KB)
> > 
> >   sdD0 - NEC CD-ROM DRIVE: 2523.18
> > ----
> > This system has an old Intel Plato (aka Premier/PCI II) motherboard
> (Pentium
> > 90 w/ 430NX chipset).
> > 
> > I also tried a 3rd Edition 9disk.9fd and had the same problem.
> > 
> > Am I doing something dumb or is this a bug/feature? :-)
> > 
> > John
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] WD hard disk not available in partdisk
@ 2002-07-05 15:20 jmk
  2002-07-05 19:57 ` John DeGood
  0 siblings, 1 reply; 6+ messages in thread
From: jmk @ 2002-07-05 15:20 UTC (permalink / raw)
  To: 9fans

A dumb bug, I fear, introduced between the 2nd and 3rd Edition, but I'd like
confirmation from another party. I believe the code around line 590 of sdata.c
has the 'current' and 'logical' sectors swapped and should be

		if(drive->info[Ivalid] & 0x0001){
			drive->c = drive->info[Iccyl];
			drive->h = drive->info[Ichead];
			drive->s = drive->info[Icsec];
		}
		else{
			drive->c = drive->info[Ilcyl];
			drive->h = drive->info[Ilhead];
			drive->s = drive->info[Ilsec];
		}

Your old drive does not have LBA mode so this assignment becomes important.
What puzzles me is that this hasn't caused problems before, as it can lead to
division by zero later on. This applies to both the kernel and 9load.

In the later ATA/ATAPI 'standards' all this was finessed away by stating that
all drives will support LBA mode.

I've tested this on a WD AC2120 (125MB, my disc is smaller than your disc).

--jim


On Thu Jul  4 16:46:16 EDT 2002, nu3e@arrl.net wrote:
> I tried to install 4th Edition on an old Western Digital AC2340 340 MB hard
> drive.  The hard drive is recognized by the BIOS and works with DOS and
> Win95, but it does not appear in "partdisk" during the Plan 9 install.  I
> also tried an old Seagate ST3243A 214 MB hard drive and "partdisk"
> recognizes it fine.  I tried all master/slave combinations of the AC2340 and
> ST3243A, and in every case only the ST3243A is available in "partdisk".
> 
> Here are snippets of what I get with the ST3243A as primary master and the
> AC2340 as primary slave.  In every case the AC2340 appears to be recognized
> early in the boot process, but it is never available in "partdisk":
> ----
>   dev A0 port 1F0 config 045A capabilities 0000 mwdma 0000 dma 00000000 rwm
> 8
>   dev B0 port 1F0 config 427A capabilities 0100 mwdma 0000 dma 00000000 rwm
> 16
>   dev A0 port 170 config 8580 capabilities 0B00 mwdma 0003 dma 00000000 rwm
> 0
> ----
>   The following disk devices were found.
> 
>   sdC0 - ST3243A
>   * p1     0     1023  (1023 cylinders, 203.80 MB) FATHUGE
>    empty  1023  1024  (1 cylinders, 204.00 KB)
> 
>   sdD0 - NEC CD-ROM DRIVE: 2523.18
> ----
> This system has an old Intel Plato (aka Premier/PCI II) motherboard (Pentium
> 90 w/ 430NX chipset).
> 
> I also tried a 3rd Edition 9disk.9fd and had the same problem.
> 
> Am I doing something dumb or is this a bug/feature? :-)
> 
> John


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-07-05 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-04 17:43 [9fans] rtl8139 troubles and 2 questions forsyth
2002-07-04 19:41 ` FJ Ballesteros
2002-07-04 20:52   ` [9fans] WD hard disk not available in partdisk John DeGood
2002-07-05 15:20 jmk
2002-07-05 19:57 ` John DeGood
2002-07-05 21:33 jmk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).