From: Toby D. H. <tdhock@OCF.Berkeley.EDU> - 2006-09-25 03:09:20
|
OK, so I compiled the smc9194 support as a module and I checked=20 /etc/modules.conf to find out that the object file is at /lib/modules/2.4.31/kernel/drivers/net/smc9194.o Then I tried to insert it into the kernel using # insmod /lib/modules/2.4.31/kernel/drivers/net/smc9194.o SMC9194: You shouldn't use auto-probing with insmod! mac9194: PowerBook 1400 identified - probing for SMC919x in slot D address= =20 space /lib/modules/2.4.31/kernel/drivers/net/smc9194.o: init_module:=20 Input/output error Hint: insmod error can be caused by incorrect module parameters, including= =20 invalid IO or IRQ parameters. You may find more information in syslog or=20 the output from dmesg Any ideas? I don't really know where to go from here... Sincerely, Toby Dylan Hocking http://www.ocf.berkeley.edu/~tdhock On Sun, 24 Sep 2006, Toby Dylan Hocking wrote: > Hey guys, > > OK, so I finally got Tobias' driver to compile, after messing around with= =20 > various source files. What I had to do was change the last 2 lines of=20 > arch/ppc/platforms/nbpmac_id.h to > > #include <asm/bootx.h> > extern boot_infos_t *boot_infos; > > OK... so when I boot using the new kernel, I get one line related to the= =20 > driver... > > mac9194: Powerbook 1400 identified - probing for SMC919x in slot D addres= s=20 > space > > Good thing or bad thing? My ifconfig still shows no eth0 device, I'm not = sure=20 > how to set that up. I'll mess around and try to figure something out, but= I=20 > definitely need some more help. What diagnostics can I run to find out if= the=20 > driver is working properly? > > Ray, yes, my card is the Farallon internal card... I briefly looked at th= e=20 > smc9194.c source you attached, but it doesn't really mean much to me sinc= e=20 > I'm so new at kernel hacking. > > Sincerely, > Toby Dylan Hocking > http://www.ocf.berkeley.edu/~tdhock > > On Fri, 22 Sep 2006, tob...@t-... wrote: > >> This weekend I'm not at home and so I don't have the kernel sources >> around. >> So you have to find out where nbpmac_boot_infos is declared. It should b= e >> in "arch/ppc/platforms" in probably one of the files "nbpmac_setup.c", >> "pmac_setup.c" or "pmac_nubus.h". >> You should make the file that nbpmac_boot_infos is declared in include >> "asm/nbpmac_id.h" instead. >>=20 >> All this needs some cleaning up. It's all because I wanted drivers to be >> able to find out what exact machine they are running on. >>=20 >> Tobias >>=20 >> -----Original Message----- >> Date: Fri, 22 Sep 2006 17:25:43 +0200 >> Subject: Re: [Nubus-pmac-users] SMC9194 support on PB1400? >> From: Toby Dylan Hocking <tdhock@OCF.Berkeley.EDU> >> To: For users of Linux on NuBus PowerMacs >> <nub...@li...> >>=20 >> Hm. Adding those lines made the smc9194 driver compile fine, but now at >> the very end when I'm compiling the kernel to vmlinux, it complains abou= t >>=20 >> drivers/net/net.o(.sbss+0x54): multiple definition of `nbpmac_boot_infos= ' >> arch/ppc/platform.o(.sbss+0x28): first defined here >>=20 >> I suppose I could try to find which source file for platform.o defines >> nbpmac_boot_infos, but I thought you would probably know what I should d= o >> to fix this right away... Any ideas?? >>=20 >> Sincerely, >> Toby Dylan Hocking >> http://www.ocf.berkeley.edu/~tdhock >>=20 >> On Fri, 22 Sep 2006, Tobias Netzel wrote: >>=20 >> > You will have to add the following two lines to the end of nbpmac_id.h= : >> > "#include <asm/bootx.h>" >> > "boot_infos_t *nbpmac_boot_infos;" >> > >> > I thought they weren't needed... >> > >> > Tobias >> > >> > Am 22.09.2006 um 09:47 schrieb Toby Dylan Hocking: >> > >> >> Alrighty then. I'm trying to compile the driver that Tobias sent me, >> >> but >> >> I'm getting a silly error. >> >> smc9194.c:87: error: syntax error before * token >> >> smc9194.c:87: warning: type defaults to `int' in declaration of >> >> `boot_infos' >> >> smc9194.c:87: warning: data definiteion has no type or storage class >> >> ... >> >> >> >> I know some C, but I'm unfamiliar with the details of the kernel here= =2E >> >> I >> >> recognize that this is a badly declared/imported variable, but I don'= t >> >> know where boot_infos is ultimately declared, thus I'm not sure what >> >> to do >> >> for a fix. >> >> >> >> BTW, I added the EXPORT_SYMBOL line and I symbolically linked >> >> nbpmac_id.h >> >> to include/asm. >> >> >> >> Sorry for being so helpless here, but I'm new to kernel hacking, it's >> >> late, and I'm tired. I definitely need to learn a lot more about >> >> drivers >> >> before I would be of much use for porting this ... where did you guys >> >> learn all this stuff? >> >> >> >> Sincerely, >> >> Toby Dylan Hocking >> >> http://www.ocf.berkeley.edu/~tdhock >> >> >> >> On Fri, 22 Sep 2006, Raylynn Knight wrote: >> >> >> >>> On Thu, 2006-09-21 at 11:46 +0200, Tobias Netzel wrote: >> >>>> Hi Toby, >> >>>> >> >>>> I wrote a patch for the SMC9194 driver that might work with your >> >>>> card. >> >>>> It is attached to this email. >> >>>> Because your card doesn't have a NuBus ROM I had to implement some >> >>>> work-arounds. >> >>>> Please test it and feel free to modify it in order to make it work. >> >>>> You have to apply the patch using >> >>>> "patch drivers/net/smc9194.c {path to patchfile}/smc9191.patch". >> >>>> >> >>>> You will probably need to copy the file "nbpmac_id.h" from >> >>>> "arch/ppc/platforms" to "include/asm". >> >>>> You should as well add the line >> >>>> "EXPORT_SYMBOL(boot_infos);" >> >>>> at the end of the file "arch/ppc/platforms/nbpmac_setup.c" if it >> >>>> isn't >> >>>> already there. >> >>>> >> >>> 956a959,975 >> >>>> =A0 =A0 =A0 /* Probe for an SMC based card for the PowerBook 1400 >> >>> =A0 =A0 =A0 =A0that >> >>> =A0 =A0 =A0 =A0doesn't have a NuBus ROM */ >> >>>> =A0 =A0 =A0 if (boot_infos->machineID =3D=3D MACHID_POWERBOOK1400) = { >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 unsigned long iobase; >> >>>> >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 printk(KERN_INFO "mac9194: PowerBook 14= 00 >> >>> =A0 =A0 =A0 =A0identified - >> >>> =A0 =A0 =A0 =A0probing for SMC919x in slot D address space\n"); >> >>>> >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 if ((dev =3D init_etherdev(dev, 0)) =3D= =3D NULL) >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -ENOMEM; >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 SET_MODULE_OWNER(dev); >> >>>> >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 /* PowerBook 1400 expansion slot is map= ped as >> >>> =A0 =A0 =A0 =A0slot D */ >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 iobase =3D (unsigned long)ioremap(0xFD0= 00008, >> >>> =A0 =A0 =A0 =A00x8); >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev->irq =3D SLOT2IRQ(0xD); >> >>>> >> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 return smc_probe(dev, iobase); >> >>>> =A0 =A0 =A0 } >> >>>> >> >>> >> >>> =A0 =A0 =A0 =A0For this part you'll most likely need to add MAC9194_= BASE >> >>> =A0 =A0 =A0 =A0defined as >> >>> =A0 =A0 =A0 =A00x300 to the 0xFD000008 address you found. =A0You sho= uld also >> >>> test >> >>> =A0 =A0 =A0 =A0to make sure the register is present. =A0For the SMC = driver in >> >>> =A0 =A0 =A0 =A0Mac68k Linux I have some of PDS cards with no ROM wor= king, but >> >>> =A0 =A0 =A0 =A0they have the register offset by 0x300. =A0Also they = all seem to >> >>> =A0 =A0 =A0 =A0do 32 bit transfers just fine. >> >>> >> >>> =A0 =A0 =A0 =A0See the driver from the mac68k 2.2.27 kernel (on sour= ceforge >> at >> >>> >> >>> http://linux-mac68k.cvs.sourceforge.net/linux-mac68k/linux-mac68k/ >> >>> drivers/net/smc9194.c?revision=3D1.4.2.8&view=3Dmarkup) >> >>> =A0 =A0 =A0 =A0which has support for CommSlot2 cards and some PDS ca= rds that >> >>> =A0 =A0 =A0 =A0don't use a NuBus ROM. =A0The commslot_init and romfr= ee_init >> >>> =A0 =A0 =A0 =A0functions should be ported to the 2.4.x driver. =A0I = just >> haven't >> >>> =A0 =A0 =A0 =A0had the time to work on it! >> >>> >> >>> =A0 =A0 =A0 =A0Is your card the Farallon card? =A0If so I would hope= that >> >>> =A0 =A0 =A0 =A0Farallon maps all their brain-dead cards in at the sa= me >> >>> address. >> >>> =A0 =A0 =A0 =A0Then if you get your card working it may provide supp= ort for >> >>> the >> >>> =A0 =A0 =A0 =A0SMC Chipset based Farallon PDS and CommSlot cards als= o. >> >>> >> >>> =A0 =A0 =A0 =A0Ray >> >>> >> >>> >> >>> >> >>> >> >>> >> ---------------------------------------------------------------------- >> >>> --- >> >>> Take Surveys. Earn Cash. Influence the Future of IT >> >>> Join SourceForge.net's Techsay panel and you'll get the chance to >> >>> share your >> >>> opinions on IT & business topics through brief surveys -- and earn >> >>> cash >> >>> http://www.techsay.com/default.php? >> >>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> >>> _______________________________________________ >> >>> Nubus-pmac-users mailing list >> >>> Nub...@li... >> >>> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users >> >>> >> >> >> >> >> ----------------------------------------------------------------------- >> >> -- >> >> Take Surveys. Earn Cash. Influence the Future of IT >> >> Join SourceForge.net's Techsay panel and you'll get the chance to >> >> share your >> >> opinions on IT & business topics through brief surveys -- and earn >> cash >> >> http://www.techsay.com/default.php? >> >> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> >> _______________________________________________ >> >> Nubus-pmac-users mailing list >> >> Nub...@li... >> >> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users >> >> >> > >> > >> > >> ------------------------------------------------------------------------= - >> > Take Surveys. Earn Cash. Influence the Future of IT >> > Join SourceForge.net's Techsay panel and you'll get the chance to shar= e >> your >> > opinions on IT & business topics through brief surveys -- and earn cas= h >> > >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >> > _______________________________________________ >> > Nubus-pmac-users mailing list >> > Nub...@li... >> > https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users >> > >>=20 >> ------------------------------------------------------------------------= - >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >> _______________________________________________ >> Nubus-pmac-users mailing list >> Nub...@li... >> https://lists.sourceforge.net/lists/listinfo/nubus-pmac-users >>=20 > |