Ludovic Dubost <ludovic@...> writes:
If you are pasting HTML you should use the paste button in the Wysiwyg
That does seem to work somewhat better, but it still formats incorrectly, for
instance for the document below the numbering is incorrect.
Thanks, Jesse
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<meta name="generator" content="pandoc" />
<title></title>
</head>
<body>
<h3 id="debian-kernel-compile">Debian Kernel Compile</h3>
<ol style="list-style-type: decimal">
<li><p>Get build tools</p>
<pre><code>sudo apt-get install kernel-package libncurses-dev fakeroot wget
bzip2
</code></pre></li>
<li><p>Build sarge kernel</p>
<pre><code>apt-get -t sarge-backports install kernel-package ncurses-dev \
fakeroot wget bzip2
</code></pre></li>
<li><p>Get source</p>
<pre><code>cd /usr/src
</code></pre></li>
<li><p>If neeeded grab prepatch and/or snapshot</p>
<pre><code>pre_patch_ver=2.6.27-rc7
wget
http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-${pre_patch_ver}.…
snapshot_ver=2.6.27-rc7-git5
wget
http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-${snapshot_ver}…
</code></pre></li>
<li><p>If using prepatch get base kernel for the previouse version of the
kernel
e.g. 2.6.20 not 2.6.20.4</p>
<pre><code>cd /usr/src
kernel_ver=2.6.38
wget
http://www.kernel.org/pub/linux/kernel/v2.6/linux-${kernel_ver}.tar.bz2
tar -xf /usr/src/linux-${kernel_ver}.tar.bz2
</code></pre></li>
<li><p>Apply prepatch and/or snapshot</p></li>
<li><p>dry run</p>
<pre><code>cd linux-${kernel_ver}
bzcat ../patch-${pre_patch_ver}.bz2|patch -p1 --dry-run
bzcat ../patch-${snapshot_ver}.bz2|patch -p1 --dry-run
</code></pre></li>
<li><p>apply</p>
<pre><code>cd linux-${kernel_ver}
bzcat ../patch-${pre_patch_ver}.bz2|patch -p1
bzcat ../patch-${snapshot_ver}.bz2|patch -p1
</code></pre></li>
<li><p>Configure kernel source based on previous kernel</p>
<pre><code>cd /usr/src
rm linux
ln -s linux-${kernel_ver} linux
cd linux
cp /boot/config-$(uname -r) .config
make oldconfig
</code></pre></li>
<li><p>Compile</p>
<pre><code>cd /usr/src/linux
make-kpkg clean
make-kpkg --revision 1 --append_to_version "-$(date +%G%m%d)" \
--initrd kernel_image kernel_headers
</code></pre></li>
<li><p>Install</p>
<pre><code>dpkg -i ../linux-image-${kernel_ver}-$(date +%G%m%d)_1_i386.deb
</code></pre></li>
<li><p>modules compilation e.g.: madwifi</p>
<pre><code>make-kpkg modules_clean
make-kpkg --revision 1 --append_to_version "-$(date +%G%m%d)" --initrd
--added-modules madwifi modules_image
</code></pre></li>
<li><p>alsa compilation</p>
<pre><code>make-kpkg --revision 1 --append_to_version '-20040117 --initrd
modules_image
export ALSA_CARDS=emu10k1x
make-kpkg --revision 1 --append_to_version '-20040117 --initrd modules_image
MKIMAGE='genromfs -f /dev/fd/1 -d %s | gzip -9 > %s'
MKIMAGE="genromfs -d %s -f %s"
MKIMAGE='genromfs -d %s -f /boot/initrd.tmp.$$ > /dev/null; gzip -c -9
/boot/initrd.tmp.$$ > %s'
MKIMAGE='genromfs -d %s -f /tmp/initrd.tmp.$$ > /dev/null; gzip -c -9
/tmp/initrd.tmp.$$ > %s; rm /tmp/initrd.tmp.$$'
CONFIG_BLK_DEV_RAM=y (section "Block Devices")
CONFIG_BLK_DEV_INITRD=y
CONFIG_BLK_DEV_RAM_SIZE=32768 (huge ram disk)
CONFIG_ROMFS_FS=y (section "Filesystems")
RAMDISK: incomplete write (-28 != 32768) 8388608
CONFIG_DEVFS NO
</code></pre></li>
</ol>
</body>
</html>