[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 關於編譯核心的問題



Carlos 你好!

On Sat, Jul 01, 2000 at 02:20:53PM +0800, Carlos wrote:
>    大家好,我是Carlos,我最近下載了linux-2.2.16.tar.bz2
> 想把slink 從2.0.x升級,用modem就下載了差不多2天(13MB),

  你不是去了國外的網站下載吧?台灣有很多 mirrors! ^_^

> 其中這個檔案/usr/src/linux/Documentation/Changes,它告訴
> 我,若要成功安裝2.2.16,某些套件不能太舊,像是gcc至少要在
> 2.7.2.3以上,但Changes檔案中,所列出的某些套件,讓我感到
> 疑惑,我把它列在下面:

> NFS         2.2beta40      ; showmount --version
> Ncpfs       2.2.0          ;ncpmount -v
> Pcmcia-cs   3.0.14         ; cardmgr -V
> isdn4k-utils v3.1beta7     ;isdnctrl 2>&1|grep version
> 
> 像NFS,它說至少要在2.2beta40以上,才能成功安裝2.2.16,但我
> 現在都是用apt-get,從不用NFS,那這樣我還須要裝嗎?

你不用 NFS 的話,就不用安裝 NFS。

> 另外上面列出的ncpfs,是專給Netware用的,所以我是不是不裝
> 此套件,也不會影響到kernel的安裝?而pcmcia-cs&isdn4k是否
> 也是如此?(我的是pc,非laptop,用ppp(modem)連線)

  我全部都沒有裝。NFS 倒是裝了,不過從來沒有用過。
Changes 檔案中列出的套件,只不過是你用到那些套件,才要
確保是新版而已。我也是用 ppp (modem) 連線。 ^_^)

  記得編譯 kernel 2.2.16 時,用 kernel-package (Debian 套件),
也要安裝 fakeroot。再讀 /usr/doc/kernel-package/README.gz。
用 make-kpkg 在 Debian 底下編譯核心,會自動幫你製
kernel-image_2.2.16-custom.1.0_i386.deb,這樣,安裝和反安裝,
一樣方便了。就像以下所說的一樣簡單了。 ^_^

 For the Brave and the impatient:
Phase ONE: Getting and configuring the kernel
 1% cd <kernel source tree>
 2% make config   # or make menuconfig or make xconfig and configure
Phase TWO: Create a portable kernel image .deb file
 3% make-kpkg clean
 4% $Get_Root make-kpkg --revision=custom.1.0 kernel_image 
      (Get_Root is whatever you need to become root -- fakeroot or
      sudo are examples that come to mind).
Phase THREE: Install the kernel image on one or more machines
 5# dpkg -i ../kernel-image-X.XXX_1.0_<arch>.deb
 6# shutdown -r now # If and only if LILO worked or you have a means of
                    # booting the new kernel. YOU HAVE BEEN WARNED!!

(讀完 /usr/doc/kernel-package/README.gz 才來。)

  另外,如果你不嫌等的話, Debian 2.2 將於七月底左右推出,
內含 kernel-2.2.17pre6。  ^_^

				東東 <foka@debian.org>  ^_^

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
foka@ualberta.ca, foka@debian.org    University of Alberta, Canada
Debian Chinese Project -- http://www.debian.org/international/chinese/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/



Reply to: