Question

Linux Driver Disk

Asked by: dmarinenko

Hello 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.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-17 at 12:27:20ID24239088
Tags

Linux

,

Cluster

,

Rocks

,

Driver

Topics

Linux Setup

,

Linux Administration

,

Drivers

,

Linux

Participating Experts
3
Points
0
Comments
13

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

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.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

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.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

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.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Supermicro P6DLS Dual + R-Hat 7
    I have installed Red Hat 7 on my dual system (supermicro P6DLS) but Linux only sees on processor. I installed "Workstation" the install proceedure must have picked up that the system is a dual motherboard as it installed the SMP kernel, however when I boot the syst...
  2. Implementing Rocks Linux with public IPs possible?
    I'm pretty new to the IT world as far as the heavy duty stuff goes...so scrolling through the vast pages of EE (just registered yesterday) has been pretty overwhelming for me. Continue to keep this in mind while you answer please :) I've recently started a research position...
  3. On board raid for supermicro X5DPA-TGM motherboard
    I have a couple of super micro servers with onboard raid, here are the specs http://www.supermicro.com/products/motherboard/Xeon/E7501/X5DPA-TGM.cfm there WILL be windows server 2003 installed on these machines... I wanted to know how reliable the raid is as far as mirrorin...
  4. Looking for hardware bugs on Supermicro X7DCL-i and a…
    We will be purchasing lots of the following hardware. I want to know of any bugs or problems with running centos 5.3 on it. SuperMicro X7DCL-i Dual Socket 77I board Adaptec 3405 SaS raid card
  5. Linux drivers for SuperMicro AOC-SASLP-MV8
    Can someone help me get or build Linux drivers for SuperMicro AOC-SASLP-MV8. I am trying to use in and OpenFiler machine. I no nothing about building drivers and very little about Linux.
  6. DIY Linux clustering without quorum disk
    How can we set up a DIY clustering for Linux without the use of quorum disk. Linux servers are mostly webservers & weblogic servers. Can some sort of scripts be used to achieve this? Sort of polling the other partner is down via a heartbeat cross-cable & if it's n...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

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.

Join the Community

Answers

 

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

 

by: just10mPosted on 2009-03-18 at 06:11:09ID: 23918234

 

by: dmarinenkoPosted on 2009-03-18 at 07:00:23ID: 23918739

Right, I got that and it makes 2 .ko files.  Which is where I am at.
What I need is to make that into a driver disk, so I can have it load it on the install.

 

by: dmarinenkoPosted on 2009-03-18 at 08:06:38ID: 23919527

I apologize I have a igb.mod.o and an igb.ko file

 

by: nociPosted on 2009-03-24 at 19:32:01ID: 23975586

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.

 

by: ai_ja_naiPosted on 2009-03-25 at 02:56:18ID: 23977438

this tutorial describes how to make a custom driver disk from totally scratch: http://www.phil.muni.cz/~letty/linuxfaq/pracovni/driver-disk-howto

 

by: ai_ja_naiPosted on 2009-03-25 at 03:00:05ID: 23977470

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=-subsublevelBOOT, eg. EXTRAVERSION=-22BOOT for the 2.2.16 kernel in RH 7.0. The compiled kernel will then have version 2.2.16-22BOOT. The version must EXACTLY match the kernel version used by the installer.

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) to this directory.  In my case it was the file DAC960.o. Then you can create the modules.cgz out of this
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/~canon/linux/add_driver.html

 

by: dmarinenkoPosted on 2009-03-27 at 21:30:14ID: 24007241

Sorry it's been awhile.  I am currently trying the above suggestions.

 

by: dmarinenkoPosted on 2009-03-31 at 07:53:59ID: 24029535

Nothing in here quite fit the bill.  I have moved on to trying ddiskit.  Does anyone have any advice other then whats in the manual?

 

by: ai_ja_naiPosted on 2009-03-31 at 08:44:25ID: 24030151

everything points here: http://dup.et.redhat.com/ddiskit/

 

by: dmarinenkoPosted on 2009-04-10 at 13:53:32ID: 24119093

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!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...