1 | <sect2>
|
---|
2 | <title>Installation of the kernel patch</title>
|
---|
3 |
|
---|
4 | <warning>
|
---|
5 | <para>Note that this patch can permenantly damage your CD drive if it is
|
---|
6 | from one of the few mentioned at
|
---|
7 | <ulink url="http://slashdot.org/article.pl?sid=03/10/25/1737244"/>. Do
|
---|
8 | not apply the patch without first checking out the article.</para>
|
---|
9 | </warning>
|
---|
10 |
|
---|
11 | <para>Install the kernel patch by running the following commands from
|
---|
12 | the kernel source directory:</para>
|
---|
13 |
|
---|
14 | <screen><userinput><command>patch -Np1 -i ../linux-2.4.25-packet.patch</command></userinput></screen>
|
---|
15 |
|
---|
16 | <para>In the kernel configuration, check your setting with those listed
|
---|
17 | here:</para>
|
---|
18 |
|
---|
19 | <screen>Block devices
|
---|
20 | Packet writing on CD/DVD media: Y or M
|
---|
21 | File Systems
|
---|
22 | UDF filesystems support (read only): Y
|
---|
23 | UDF write support (DANGEROUS) Y</screen>
|
---|
24 |
|
---|
25 | <para>If necessary, recompile the kernel with</para>
|
---|
26 | <screen><userinput><command>make CC=/opt/gcc-2.95.3/bin/gcc dep &&
|
---|
27 | make CC=/opt/gcc-2.95.3/bin/gcc bzImage &&
|
---|
28 | make CC=/opt/gcc-2.95.3/bin/gcc modules &&
|
---|
29 | make CC=/opt/gcc-2.95.3/bin/gcc modules_install</command></userinput></screen>
|
---|
30 | <para>
|
---|
31 | Copy <filename>/usr/src/linux/arch/i386/boot/bzImage</filename> and
|
---|
32 | <filename>/usr/src/linux/System.map</filename> to
|
---|
33 | <filename class="directory">/boot</filename>. If you utilize
|
---|
34 | <application>LILO</application> edit <filename>/etc/lilo.conf</filename>
|
---|
35 | appropriately and run <command>lilo</command>.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | <para>If you build packet writer as a module, add the following to
|
---|
39 | <filename>/etc/modules.conf</filename>:</para>
|
---|
40 | <screen><userinput>alias block-major-97 pktcdvd</userinput></screen>
|
---|
41 |
|
---|
42 | <para>Finally, create the packet driver device nodes in <filename
|
---|
43 | class="directory">/dev</filename>, add one node for every
|
---|
44 | <acronym>CD</acronym>-<acronym>RW</acronym> drive you
|
---|
45 | want to support:</para>
|
---|
46 | <screen><userinput><command>mknod /dev/pktcdvd0 b 97 0
|
---|
47 | mknod /dev/pktcdvd1 b 97 1</command></userinput></screen>
|
---|
48 |
|
---|
49 | </sect2>
|
---|
50 |
|
---|