進行以下步驟:

  1. 取得原始碼:

    $ apt-get install kernel-source-2.6.11
    $ cd /usr/src
    $ bunzip2 kernel-source-2.6.11.tar.bz2
    $ tar xf kernel-source-2.6.11.tar
    $ mv kernel-source-2.6.11 kernel-source-2.6.11ac7
    
  2. 去除 debian 作的 kernel patch:

    $ apt-get install kernel-patch-debian-2.6.11
    $ cd /usr/src/kernel-source-2.6.11ac7
    $ ../kernel-patches/all/2.6.11/unpatch/debian
    
  3. 套用 Alan Cox 的 kernel patch (ac-patch):

    $ cd /usr/src
    $ wget ftp://ftp.kernel.org/pub/linux/kernel/\
    people/alan/linux-2.6/2.6.11/patch-2.6.11-ac7.gz
    $ gunzip patch-2.6.11-ac7.gz
    $ cd kernel-source-2.6.11ac7
    $ patch -p1 < ../patch-2.6.11-ac7
    
  4. 產生核心套件;在編 2.6.11 版核心的時候,要把「Code maturity level options」->「Select only drivers expected to compile cleanly」打開;否則我會停在 drivers/char/drm/gamma_drv.o 的地方過不去 (參考 這裡):

    $ cd /usr/src/kernel-source-2.6.11ac7
    $ make-kpkg --initrd --revision=1 kernel_image
    
  5. 安裝核心:

    $ dpkg -i /usr/src/kernel-image-2.6.11ac7_1_i386.deb
    

如果開機碟不在 IT8212 上,要在載入核心的時候給 ide0, ide1 加上參數:

ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15

lilo.conf 加上:

append="ide0=0x1f0,0x3f6,14 ide1=0x170,0x376,15"

免得 IT8212 被當成 ide0, ide1

P.S. 關於 ac-patch:

Posted by yungyuc at 20:41, 0 comment, 0 trackback.
Navigate
Add a trackback
Add a comment

Your name. (required)

Your personal website. (optional)

Your email address. Will not show in page. (suggested, but optional)

Text format is "Plain Text".

Enter "cNDVB"
© hover year to navigate month: powered by django