LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What's the easiest way to do this? (https://www.linuxquestions.org/questions/linux-newbie-8/whats-the-easiest-way-to-do-this-63009/)

lectraplayer 06-01-2003 10:12 AM

What's the easiest way to do this?
 
I have a LAN card that isn't suported by any of the floppy disk images I have, but I have Linux drivers for this LAN. My newest images abnormally terminate with a error code of 9 when it hits the PCMCIA drivers (though it detects them). Because my LAN's a PCMCIA card, this prevents me from getting to it. Also, my older images do not support PCMCIA. I have Orange Linux, Tomsrtbt Linux, and a bunch of Mandrake images. What's the best way to incorporate my Linux drivers in, say my Tomsrtbt Linux so I can access my LAN card and begin a LAN based install?

acid_kewpie 06-01-2003 10:14 AM

please use a useful thread title in future. thanks.

lectraplayer 06-01-2003 08:09 PM

Sorry, but I wanna know "the easiest way to do this."

lectraplayer 06-02-2003 09:34 PM

No idea, on what I'd guess would be a simple task?

akaBeaVis 06-10-2003 06:20 PM

You'll need another working linux box for this. alternatively, you can send me the driver and card info and I'll stick it in one of the floppy.img's of your choice for you. It'll be faster if you do it yourself though :)

You'll need to take one of the floppy .img's that supports pcmcia and mount it via the loop device(see below), then go to the mount point and cd from there to the dir where the pcmcia config file is, for instance on my mdk system this is /etc/pcmcia/ so you would be editing /mnt/mountpoint/etc/pcmcia/config, furthur you'll need to edit that file and add near the top a corresponding section for the device and then somewhere near the bottom, a corresponding section for the card itself. Here's an example of the relevant sections I added for my wireless card:

# device
device "pcmf502rd" class "network" module "pcmf502rd"

#card
card "Belkin F5D6020 rev.2"
version "Belkin", "11Mbps-Wireless-Notebook-Network-Adapter"
manfid 0x01bf, 0x3302
bind "pcmf502rd"

the most important part in the "card" section is the manfid #'s which you would get from typing "cardctl ident" with the card in the slot, or perhaps you have these numbers from a previously backed-up config of when it was working

Additionally, you'll need to move a copy of the driver (a kernel module?) in question to the appropriate area, eg: /mnt/mountpoint/lib/modules/2.4.xx/pcmcia or wherever the floppy.img is keeping it's modules. When complete, unmount the loop device(see below) and dd the new image. Be aware that the new img will be a different size and you may need to delete something out of it in order to insert your module and still fit it onto a floppy.

NOTE: If your card is a 32bit CardBus model, this entire post does not apply.

/****************************************************************/
mounting via loop device:
losetup floppy.img /dev/loop0 /dir/floppy.img
mount /dev/loop0 /mnt/mountpoint

unmounting:
umount /mnt/mountpoint
losetup -d /dev/loop0


All times are GMT -5. The time now is 05:08 PM.