Skip to contentSkip to conversation

]

Fwd: Josef Möllers 1 participant 1 message Nov 24, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

I've asked my colleague who does all the drivers ...

Quoted 68 lines
Quoted 2 lines · Wilck Martin
Quoted 2 lines

Nir Livni wrote:
I would like to know how can I build a driver disk for this kernel,

create a driectory structure that looks like this

2.4.9-e.5

        modname.o
        ...
2.4.9-e.5BOOT
        modname.o
        ...
2.4.9-e.5smp
        modname.o
        ...

...

Of course, the respective .o files must have been compiled against a properly configured kernel. "modname" stands for the name of your driver.

At the top of that structure, create a compressed cpio archive like this:

find . -depth | cpio -H crc 2>/dev/null | gzip -qc - >modules.cgz

copy the file "modules.cgz" to a DOS- or ext2-formatted floppy. Besides "modules.cgz", the floppy must contain

1. a file "modinfo" in the following format:

modname
scsi
"description of driver"

Caution: TABs at the beginning line 2 and 3!

2. a file "modules.dep" in the following format:
modname: scsi_mod

(scsi_mod is usually the only prerequisite needed)

3. a file "pcitable" in the following format:
0xdead 0xbeef "modname" "description of device"
...

Caution: TAB as field separator!
This list must contain the PCI vendor and device IDs of your device in
the 1st and 2nd field. The easiest way to obtain these is from an existing driver disk for a different kernel. Alternatively, you can read
the driver source to find them out.

4. a file called "rhdd-6.1" with a free-format description of the floppy

5. an empty file called "up"

Good luck,
Martin

--

Martin Wilck                Phone: +49 5251 8 15113
Fujitsu Siemens Computers   Fax:   +49 5251 8 20409
Heinz-Nixdorf-Ring 1        mailto:[email protected]
D-33106 Paderborn           http://www.fujitsu-siemens.com/primergy
Signature · 7 lines
Josef Möllers (Pinguinpfleger bei FSC)
	If failure had no penalty success would not be a prize
						-- T.  Pratchett
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html