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