PDA

View Full Version : Network card now works, but how do I make it permanent?



coltrane
01-06-2004, 05:19 AM
Despite being a newbie to Knoppix, I have managed to download and compile the driver from broadcom for the network card in my HO/Compag (which knoppix was not seeing at all.

I then issued the 'insmod bcm5700.o' command (as root - it wouldn't do it otherwise), then used netconfig from the menu (used DHCP) and it all was working. I had network access.

Unfortunately, after a reboot, despite saving my settings on a HD partition and using myconf=scan next time, the network card was not working again. I had to repeat the above procedure.

How do I set it up, so knoppix will see the card automatically when I boot up, or at least how can I create a script to start up the network in one step?

arkaine23
01-06-2004, 05:42 AM
Remaster the CD. A script would by necessity have to download it from somewhere or access it from a permanent medium like a usb pen or hard drive persistent home. And you can't very well download a NIC driver in the script because well, you'd need a NIC driver to do so.

PS- I will add that driver to my remaster and post back once its available for download... unfortunately, my custom version of knoppix is somewhat imperfect if you like using KDE.

coltrane
01-06-2004, 05:49 AM
Remaster the CD. A script would by necessity have to download it from somewhere or access it from a permanent medium like a usb pen or hard drive persistent home. And you can't very well download a NIC driver in the script because well, you'd need a NIC driver to do so.
.

Thanks for the info. So, if I had bcm5700.o available (like on a hard disk partition, or sitting in a permanent user home) is there a way to easily load it after everting starts and start/configure the card. Say a few command lines that can be put in a script to automate it? I could then just run the script and get my networking going.

paradocs
01-06-2004, 06:41 AM
Hi coltrane,

If you are booting from a KNOPPIX cd or a floppy
you can use a script at start up.

If you have a persistent home on a dirve partition or
on a usb pen deivce -- then you can place a script
in the folder
/home/knoppix/.kde/Autostart/
Note: to see .kde you have to click View --> Show Hidden Files

An executable script here will be saved and reloaded on
boot when your persistent home is restored. When KDE
runs, you card can be configured. The script should execute
as root, but if not use the sudo command. Be sure to
have the file bcm5700.o in a directory in /home/knoppix
and specify where it is in you script.
I use the method to set up my scanner.

A second option would be a boot floppy with a file
called knoppix.sh and have you file on the floppy
but space on the floppy is limited. You can get rid of the
icon file -- usually called logo.16

Best Wishes,
paradocs

coltrane
01-06-2004, 06:49 AM
If you have a persistent home on a dirve partition or
on a usb pen deivce -- then you can place a script
in the folder
/home/knoppix/.kde/Autostart/
Note: to see .kde you have to click View --> Show Hidden Files

An executable script here will be saved and reloaded on
boot when your persistent home is restored. When KDE
runs, you card can be configured. The script should execute
as root, but if not use the sudo command. Be sure to
have the file bcm5700.o in a directory in /home/knoppix
and specify where it is in you script.
I use the method to set up my scanner.



Excellent, now all I need are the commands that are equivalent of running netconfig from the menu, and answering yes to use dhcp. If I can put them in the script after the insmod, then I'm cooking.

Anyone know what they might be?

paradocs
01-06-2004, 07:46 AM
Hi coltrane,

Read

man pump

and

man ifconfig

if you have a fixed ip address you may also need
something like
route add default gw ###.###.###.###

In case you get any of this to work -- issue yourself a star
and refer to yourself as a level 2 newbie. :wink:

Best Wishes
paradocs

coltrane
01-06-2004, 10:09 PM
OK, I have some reading to do, thanks

arkaine23
01-09-2004, 07:01 PM
Overclockix now has this driver. The new Technomancer iso will be available for download sometime tomorrow.