http://downloadcenter.inte
download, extract, get inside the folder, command: make
Main Topics
Browse All TopicsHello All,
I am working with Rocks compute cluster. It has an oddball network port with IPMI.
It's on a AOC-SIMSO(+) Supermicro motherboard which has an Intel 825776 Lan port.
Now I can compile the drivers which makes .ko files. I can also succesfully install them. The problem is with Rocks clustering, changing the networkin causes all sorts of issues. What I would like to do is create a driver disk with the files to load on installation. Whats the easiest way to do this?
By the way the rocks version is the newest 5.1 and is based on Centos 5.2. The drivers are RHEL5
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
http://downloadcenter.inte
download, extract, get inside the folder, command: make
well the .ko files need to end up in a directory like: /lib/modules/${uname -r}/net
then you can make a directory like.
After a depmod -a the modules should be loadable.
with modprobe.
If a modules needs to be loaded BEFORE the normal root directory is available (with the /lib)
then you need to add the drriver to the initrd disk.
the initrd disk is a gzip compressed cpio archive. You can unpack the current one, add the module to the right directory and pack it up again.
this tutorial describes how to make a custom driver disk from totally scratch: http://www.phil.muni.cz/~l
How to build a custom RedHat Linux driver disc
--------------------------
2001, Petr Sulla, xsulla@fi.muni.cz
Disclaimer
----------
RedHat doesn't provide ANY information about the driver disc (at least I couldn't find any). I found out all information written here by myself and from various sites on the Net and can't guarantee it's correctness. Please notify me, if it's buggy, if it's total nonsence ;) or if there's an easier way to do it.
It worked for me, it also could work for you. Don't blame me if it doesn't.
Motivation
----------
Imagine the following situation - you have a device, that is critical for installing RedHat Linux on a computer. This device is not supported
by the kernel used by the installer. A good example is a RAID controller, eg. the Mylex AccelRAID 170 in RH 7.0. Now you are in a BIG trouble ;) There are two ways to install RedHat Linux on such a computer:
a) temporarily attach a supported device, install Linux on it, compile the kernel with support for your device, copy ...
b) build a driver disc
Since the option a) is not always the easy or possible way to go, we will further investigate the option to build a custom driver disc.
Structure of the driver disc
--------------------------
We will use the Mylex AccelRAID 170 SCSI controller with a RAID5 array as an example and we try to install RH 7.0 on it.
The driver disc is a floppy with MSDOS file system. Mount it and list the files.
]# mount /dev/fd0 /mnt/fd0 -t msdos
]# ls -l /mnt/fd0
You should see something like this:
-rw-r--r-- 1 root root 4327 Aug 31 2000 modinfo
-rw-r--r-- 1 root root 766526 Aug 31 2000 modules.cgz
-rw-r--r-- 1 root root 538 Aug 31 2000 modules.dep
-rw-r--r-- 1 root root 2244 Aug 31 2000 pcitable
-rw-r--r-- 1 root root 21 Aug 31 2000 rhdd-6.1
I try to explain what all the files mean and how to create them.
modinfo
-------
Contains information about avaliable modules and their parameters.
It looks like this:
Version 0
3c501
eth
"3Com 3c501"
io "Base I/O address"
irq "IRQ level"
aha1542
scsi
"Adaptec AHA-154x and 631x-based"
My guess is this:
3c501 etc. - name of the module
eth, scsi etc. - type of the device
"3Com 3c501" - name of the device to be shown to the user
io, irq etc. - name of module parameters to be entered by the user and their description
In my case, I created a file containing the following lines:
Version 0
DAC960
scsi
"Mylex AccelRAID 170"
modules.cgz
-----------
This is probably the most difficult to create file.
It contains packed module files.
It's a gzipped cpio archive. You can copy it to your harddrive and then decompress it by using
]# zcat modules.cgz | cpio -id
It contains a single directory with the name of the kernel version used by the installer, eg. 2.2.16-22BOOT for RH 7.0.
This directory contains all the modules like 3c501.o etc.
Making your own modules.cgz
~~~~~~~~~~~~~~~~~~~~~~~~~~
You need to get the source for your device's driver and compile it as module. You of course need another computer with Linux for this.
When you are going to build the module, you must get EXACTLY the same kernel, that is used by the installer and compile the driver as module using this kernel.
You can get this kernel by installing kernel-source*.rpm or by getting the appropriate version eg. from ftp.kernel.org.
Then you have to change the kernel version in /usr/src/linux/Makefile with EXTRAVERSION=-subsublevelB
In my case I needed to get the 2.2.16 kernel (used in RH 7.0) and the updated driver DAC960.
Install your device driver source to the kernel sources, then configure the kernel, select the driver as module and make the modules (you can install them as well, so you can better find the compiled module).
Then create a directory having the same name as your kernel version, eg. 2.2.16-22BOOT for RH 7.0. Copy the compiled module (eg. from /lib/modules/2.2.16-22BOOT
directory. You can do it this way:
]# ls -1 2.2.16-22BOOT/*.o | cpio -Hcrc -o | gzip -9 > modules.cgz
(you must be in the directory containing the 2.2.16-22BOOT directory)
Just to make things even clearer: as you probably have guessed, there could be more directories named after different kernel versions
containing the module, that could be placed in modules.cgz. The driver disc could be then used in all RedHat Linux distributions. There's even a module development kit from RedHat containg kernel headers to all kernel versions used by RedHat installers, which allows to compile the module for all RedHat Linux distributions (I didn't try it).
modules.dep
-----------
Contains information about module dependencies, ie. what other modules a module needs. It looks like this:
parport_pc: parport
3c503: 8390
plip: parport_pc
I think it's quite selfexplanatory. In my case, I left this file blank, because DAC960 requires no other modules.
pcitable
--------
Contains vendor and device numbers of PCI cards and their appropriate device drivers. The PCI devices are identified by their vendor and device numbers, so it's important to enter them. The file looks like this:
0x0e11 0x0508 "sktr" "Compaq|Netelligent 4/16 Token Ring"
0x0e11 0xb060 "cciss" "Compaq|Smart Array 5300 Controller"
0x1000 0x0701 "yellowfin" "Symbios|83C885"
0x1000 0x0702 "yellowfin" "Symbios|Yellowfin G-NIC gigabit ethernet"
0x1011 0x001a "acenic" "Farallon|PN9000SX"
where the items have this meaning:
vendor no., device no., driver name, description.
You have to find out the PCI vendor and model numbers for your device. This is quite easy, because you just have to boot the machine
with some one-floppy distro (like tomsrtbt) and then cat the /proc/pci file or run the lspci utility from pciutils.
In my case, the pcitable file looked like this:
0x1069 0x0050 "DAC960" "Mylex AccelRAID 170"
rhdd-6.1
--------
Contains a single line:
Supplemental Drivers
Well, there must be a way to identify the driver disc ;)
How to build and use the custom driver disc
--------------------------
Just format a floppy with the MSDOS file system using
]# mkdosfs /dev/fd0
Then create all the files as described above and copy them to the floppy. That's all.
When installing, choose the 'linux dd' installation (have a driver disc). Insert the disc when you are asked to. If you did everything
right, you can choose the correct driver and/or the installer recognizes your device and loads the driver.
Good luck !
Links
-----
http://www.tunl.duke.edu/~
everything points here: http://dup.et.redhat.com/d
OK I am extremely frustrated at this point. None of this worked, nor could I get the DDiskit working. I am far more familiar with Microsoft, and that doesn't help. Somehow I am supposed to get this working. All I am trying to do is get 1 lousy driver for the 82576 IGB network adapter into Rocks Compute cluster.
You can't install the thing without having a network adapter, so I can't do it after an install. I have pulled apart the package and seen that there is an 82575 IGB entry. I tried re-packing the initrd.img file with the compiled .ko, and inserting it into the rocks image. I changed the PCI table and another file, (cant remember what now) and it won't even pull up as an option. I am Totally Stuck and Frustrated, so if anyone has any Rocks/Driver Experience and knows what I am doing wrong, or how to do it right, please let me know!
Business Accounts
Answer for Membership
by: dmarinenkoPosted on 2009-03-17 at 14:21:37ID: 23913242
I apologize it's an 82576 intel lan port, sorry 'bout the extra 7
the pci IB number 10c9 which I know is usually 0x10c9 in linux and PCI ID tables