This is a continuation of my adventures with an old
NEC laptop which is equippped with a Xircom REM56G-100
ethernet card.

In case you're wondering, I have 25 of these laptops
(complet with the xircom) and I've been tasked to find
a use for them.  So I need to get this to work.  I got
the same laptop to work with a different pcmcia card,
so the xircom is definitely the problem at this point.

I've done some research on the xircom.  It's a 16 bit
card and so requires 16 bit support.  Accordingly
you're supposed to load the pcmcia module right after
pcmcia_core
(http://kernel.org/pub/linux/utils/kernel/pcmcia/cardmgr-to-pcmciautils.html)
Also, I believe the base module for this card is
i82365.

Previously I had re-packed the initramfs according to
the instructions at
http://www.k12ltsp.org/mediawiki/index.php/Technical:Booting:Laptop
In desperation I eventually included ALL the modules
and ran depmod to get a new modules.dep.
I also added a resource database
(/etc/pcmcia/config.opts ?).  Apparently this card
needs it.  I got the stuff in /etc/pcmcia from
tomsrtbt.

toms root boot
------------------
I was able to boot the system off tomsrtbt and the
xircom was recognized, came up, and automatically
configured itself using my local dhcp server.  lsmod
revealed this:

MODULE            USED BY
serial_cs         0 (unused)
xirc2ps_cs        1
ds                2 [serial_cs, xirc2ps_cs]
i82365            2
pcmcia_core       0 [serial_cs, xirc2ps, ds, i82365]


My modified initramfs
------------------------
After I assembled the new initramfs I loaded it onto
the target machine and configured grub to boot with
it.
I also put in a bunch of lsmod commands in init; I saw
this output just before the system attempted (and
failed) to get a dhcp lease.

MODULE            USED BY
xirc2ps_cs        0
rsrc_nonstatic    0
pcmcia            1 xirc2ps_cs
firmware_class    1 pcmcia
pcmcia_core       3 xirc2ps_cs, rsrc_nonstatic, pcmcia

Note that i82365 is not loaded by my initramfs.
i82365.ko _is_ in the initramfs and I do a modprobe. 
This yields only some sort of "no such device error". 


I'm going to try to use the ltsp_kernel_kit to create
a  brand new initramfs with the kitchen sink loaded
and see what happens.  But I don't have much hope at
this point.

One final question.  Since I can't find anything like
cardmgr in the current ltsp, and since the kernel is
post 2.6.13, I assume that ltsp uses pcmciautiles
rather than cardmgr.  Is this correct. 

> Dear Jeff,
> 
> >...
> >Then I added the modules needed to support my
> pcmcia
> >card
> >        cp -r
>
>/opt/ltsp/i386/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/pcmcia/
> >lib/modules/2.6.17.8-ltsp-1/kernel/drivers/
> >        cp -r
>
>/opt/ltsp/i386/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/net/pcmcia/
> >lib/modules/2.6.17.8-ltsp-1/kernel/drivers/net/
> >
> >...
> 
> I think you didnt copy enough modules:
> 
> [EMAIL PROTECTED]:~$ grep xirc2ps_cs
>
/opt/ltsp/i386/lib/modules/2.6.17.8-ltsp-1/modules.dep
>
/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/net/pcmcia/xirc2ps_cs.ko:
>
/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/pcmcia/pcmcia.ko
>
/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/base/firmware_class.ko
>
/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/pcmcia/pcmcia_core.ko
> 
> >From this you see, that xirc2ps_cs depends on
> pcmcia.ko firmware_class.ko and pcmcia_core.ko. I
> think you did not copy firmware_class.ko, because
> its neither in drivers/net/pcmcia/ nor in
> drivers/pcmcia/. So my advice is to first add
> firmware_class.ko from drivers/base/.
> 
> >
> >Then I added all the lines in
>
>/opt/ltsp/i386/lib/modules/2.6.17.8-ltsp-1/modules.dep
> >that pertained to
> >       
>
>/opt/ltsp/i386/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/pcmcia/
> >        and
> >       
>
>/opt/ltsp/i386/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/net/pcmcia/
> >to the modules.dep in the unpacked initramfs.
> >
> 
> Adding the dependencies can be a lot of work. You
> want to have xirc2ps_cs.ko, thus you have to add the
> line beginning with
> 
>
/lib/modules/2.6.17.8-ltsp-1/kernel/drivers/net/pcmcia/xirc2ps_cs.ko:
> 
> 
> to the modules.dep in the unpacked initramfs. After
> that, you have to do the same with pcmcia.ko
> firmware_class.ko and pcmcia_core.ko (copy the
> modules to your initramfs and add the lines from
> modules.dep). These modules may depend on other
> modules. So you have to do the same for them. Its a
> recursive job.
> 
> Alternatively, you could use depmod to do this. The
> call should be something like (not tested)
> 
> depmod -a  -b /path/to/initramfs.d 2.6.17.8-ltsp-1
> 
> (look in man depmod to see what this really does)
> The depmod-call is taken from the build_initramfs
> script that is part of the ltsp_kernel_kit. The
> ltsp_kernel_kit could also be used to build your own
> initramfs (and kernel image). However, you would
> need to compile your own kernel and that isnt
> necassary, if all the modules you need are in the
> original ltsp-package. So I do not recommend that in
> your case.
> 
> On the other hand, if modules are needed, that are
> not part of the original ltsp-package, you would
> need to use the ltsp_kernel_kit (e.g. if you would
> like to use a newer wlan nic).
> 
> >        Maybe I should install Linux on one of the
> >other laptops and see how Linux gets the xircom to
> >work?  I figure some poking around in the logs
> >        and maybe a little work with lsmod will
> yield
> >some answers.  I'm sure I can find at least one
> laptop
> >with a good cdrom.
> 
> This would be the next step, if the procedure above
> does not help.
> 
> 
> >
> >        One final point: my Xircom card is not in
> the
> >/etc/niclist.  Do I need to set $NIC in init?
> >
> 
> Thats no problem. You could just add NIC=xirc2ps_cs
> to the boot options in grub. This should be enough.
> 
> Juergen
> 
> 
> 
> 
>
_______________________________________________________________
> SMS schreiben mit WEB.DE FreeMail - einfach, schnell
> und
> kostenguenstig. Jetzt gleich testen!
> http://f.web.de/?mc=021192
> 
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 06 Apr 2007 18:08:12 -0400
> From: Eric Holt <[EMAIL PROTECTED]>
> Subject: [Ltsp-discuss] IceWM run as a local
> application
> To: [EMAIL PROTECTED]
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
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=join.php&p=sourceforge&CID=DEVDEV
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to