Hi Toby,

the driver for the SMC9194 is already ported to the NuBus-PowerMacs.
However if the card hasn't got any NuBus ROM it will not be detected by  
the kernel.
In the result of dmesg there should be a line saying "NuBus: Scanning  
NuBus slots."
What is printed right after that line?

I have ported another driver for the Focus EtherLAN internal ethernet  
card for the PB 1400. So I can help you in getting your card working.
If there is nothing reported about a NuBus card in any slot you will  
have to go find it's address in the memory address space.
For that purpose you should get MacsBug for MacOS - you need have MacOS  
installed. Unfortunately I did not yet use any linux debugger. and so I  
don't know how to use them in order to scan address space. MacsBug is  
downloadable from Apple or I could send it to you.

Here is a guide I recently posted to this mailing list:
------------------------------------------------------------------------ 
-----------------
Here are the addresses that you should look at for NuBus Cards:
0xf1000000 - 0xff000000

0xf1000000 - 0xf1ffffff is for NuBus Slot 1 (doesn't exist as far as I  
know) and
0xff000000- 0xffffffff is for Slot F (doesn't exist as well).

Valid Slots are 9 - E as far as I know.

My PB 1400 internal ethernet card uses slot E address space (internal  
video cards do as well).
It's registers addresses are mapped starting at 0xfe600000.
They are repeated until address 0xfe7fffff.
At the very end of the address space is the NuBus ROM.
The rest of slot E address space has values of 0 or 0001 (from  
0xfe400000 - 0xfe5fffff).
I think in slot address space you should increase the address values  
you are looking at by 0x00100000. But that's just guessed .

Comm-Slot cards are mapped in the address space of the onboard I/O  
devices (at least the comm-slot SONIC cards are).
That is 0x50f00000 - 0x50ffffff.
In the kernel sources in the file arch/ppc/platforms/nbpmac_node.h you  
can find the addresses for many of the onboard devices (on my PB 1400 I  
found 2 more devices) for the PDM PowerBook and Performa machines.
So if you find registers at other places they are probably the ones you  
are searching for.
If there aren't any registers at an address you enter you will get an  
error message.
You should then increase the address value in steps of 0x1000.
The additional device registers I found are at 0x50f80000 (PBX memory  
controller) and 0x50f96000 (a really interesting one that MacOS uses  
when accessing the floppy drive).
At address 0x50f36000 there are registers that seem to always be zero  
so I don't know what device they belong to.

I know nothing about the addresses PDS cards use - you could browse the  
source of the different macintosh ethernet drivers in the kernel tree.

You also need to know the interrupt the device is using. In the files  
nbpmac_pfm.c (Performa) nbpmac_amic.c (PDM) and nbpmac_m2.c (PowerBook)  
in arch/ppc/platforms you should be able to find out the interrupt  
number that are used for each slot. For comm-slot and PDS cards I don't  
know what interrupts they use (SONIC uses the interrupt of slot 9).

In MacsBug you enter addresses without "0x" in front of the values.
Some registers are not accessible with the display page (dp) command.
You can use "db" for byte (8 bit) access, "dw" for word (16 bit) access  
and "dl" for long word (32 bit) access.

I hope that will help you to find the addresses of the cards you don't  
know.
You might as well use MacsBug to see what addresses a MacOS driver  
accesses to but that's a bit more complicated.

You can also disassemble the MacOS driver (with MacsBug but better with  
ResEdit).
MacOS drivers are in the DRVR resource of either the System file or the  
driver's system extension.
------------------------------------------------------------------------ 
-----------------

Feel free to ask me if you get any problems.

Tobias Netzel



Am 02.07.2006 um 01:54 schrieb Toby Dylan Hocking:

> Hey guys,
>
> I've been trying to get Debian Sarge onto my PowerBook 1400, using the
> resources provided in the nubus-pmac sourceforge group. I have found  
> your
> software and links to be extremely helpful, and I have got a Linux  
> 2.4.31
> kernel compiled and running on it, using the miBoot iso from Tobias  
> Netzel
> and the linuxppc-2.4-nubus sources from CVS. My hardware setup  
> includes a
> G3/250 NUpowr upgrade from Newer, and the standard media bay cdrom  
> drive,
> both of which the kernel seems to be recognizing just fine. I load the
> kernel and boot to 6 login terminals which all work just fine.
>
> However, my problem is that I have installed a SMC9194 ethernet card (a
> farallon 10BaseT card) in the machine's internal expansion slot, and  
> I'd like
> to get that working with my linux kernel, so I can apt-get and browse  
> the web
> and whatnot. However, even after I enable the SMC9194 support in the  
> kernel
> configuration options, my ifconfig eth0 still says no device found,  
> and i'm not
> seeing any driver say anything about ethernet in the dmesg. I talked  
> to one of
> my friends and he said that I'd have to write a driver for it or port  
> a driver.
>
> Two questions:
>
> 1. Has anybody got their internal PB1400 ethernet card to work with  
> the Linux
> kernel? How?
>
> 2. What do you think is the best course of action? I never have ported  
> drivers
> before, but I have C programming experience. Should I learn how to  
> port the
> driver? Where should I start?
>
> Thanks in advance.
>
> Sincerely,
> Toby Dylan Hocking
> http://www.ocf.berkeley.edu/~tdhock
>
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your job  
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nubus-pmac-users mailing list
> Nubus-pmac-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users
>


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nubus-pmac-users mailing list
Nubus-pmac-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users

Reply via email to