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

[debian-users:33237] Re: How to build kernel module ?



武藤@Debianã·ã‚ã˜ã‡ãã¨ã§ã™ã€‚

At Tue, 4 Jun 2002 13:43:15 +0900,
TSUCHIYA Masatoshi wrote:
> >> On Tue, 4 Jun 2002 09:22:10 +0900
> >> kmuto@xxxxxxxxxxxxxxx (Kenshi Muto) said as follows:
> >kernel-imageã«ç›¸å½“ã™ã‚‹kernel-headers(ãŸã¨ãˆã°2.2.20-i386)をインストー
> >ルã™ã‚‹ã¨ã€/usr/src/kernel-headers-2.2.20/ã¨ã„ã†ã®ãŒã§ãã‚‹ã¨æ€ã„ã¾ã™ã€‚
> >ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã®ä¸­ã§
> 
> ># make-kpkg --revision 2.2.20-5 modules_image
> 
> >を実行ã™ã‚Œã°ã€è©²å½“ãƒãƒ¼ã‚¸ãƒ§ãƒ³/リビジョンã«ç›¸å½“ã™ã‚‹æ–°ã—ã„モジュールパッ
> >ケージを作れるã§ã—ょã†ã€‚
> 
> ã“ã®æ–¹æ³•ã ã¨ï¼Œ
> 
>     We do not seem to be in a top level linux kernel source directory
>     tree. <後略>
> 
> ã¨ã„ã†ã‚¨ãƒ©ãƒ¼ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ãŒå‡ºåŠ›ã•ã‚Œã¦é§„ç›®ã§ã—ãŸï¼Žmake-kpkg ã®è©²å½“部分を眺

ã‚ãã€ãã†ã‹ã€‚
ã„ã¤ã‚‚kernel-sourceã‹ã‚‰ã—ã‹ã‚„ã£ã¦ãªã‹ã£ãŸã®ã§ã€é–“é•ã£ãŸã“ã¨ã‚’言ã£ãŸã‚ˆ
ã†ã§ã™ã€‚ã™ã„ã¾ã›ã‚“。

> >kernel-headersã®ä»£ã‚ã‚Šã«kernel-sourceを使ã†å ´åˆã€kernel-sourceを展開
> >ã—ãŸã‚ã¨ã§/boot/config-*ã‚’ã“ã®ãƒ‡ã‚£ãƒ¬ã‚¯ãƒˆãƒªã«ã€Œ.configã€ã¨ã„ã†åå‰ã§ã‚³
> >ピーã™ã‚Œã°ã€ã‚ã¨ã¯åŒæ§˜ã§ã™ã€‚
> 
> ã“ã¡ã‚‰ã®æ–¹æ³•ã§ã¯ï¼Œkernel-source を展開ã—ãŸå ´æ‰€ã§ä½œæ¥­ã§ãã‚‹ã®ã§ï¼Œã¾ã æ°—
> 楽ã§ã™ãŒï¼Œbuild 時㮠header files ãŒãã¡ã‚“ã¨å‚ç…§ã•ã‚Œã‚‹ã‹ãŒæ°—ã«ãªã‚Šã¾ã™ï¼Ž
> 例ãˆã°ï¼Œæ‰‹å…ƒã® kernel-source-2.2.20.tar.bz2 ã«ã¯ modversions.h ãŒå«ã¾
> ã‚Œã¦ã„ã¾ã›ã‚“ã§ã—ãŸã‹ã‚‰ï¼Œã“れをå‚ç…§ã™ã‚‹ãƒ¢ã‚¸ãƒ¥ãƒ¼ãƒ«ã¯ã‚³ãƒ³ãƒ‘イルã§ããªã„ã¯
> ãšã§ã™ï¼Ž

むむã€ãã†ã‹ã€‚
.configã‚’ç½®ã„ãŸã‚ã¨ã€make menuconfigã‚’ã—ã¦ã™ã終了ã€ãã‚Œã‹ã‚‰make depã‚’
実行ã—ãŸã‚‰ã€modversions.hãŒã§ãã¾ã—ãŸã€‚
ã“ã‚Œã§ã„ã„ã®ã‹ã—ら?
-- 
武藤 å¥å¿—ï¼ Debian/JPプロジェクト   (kmuto@debian.org, kmuto@debian.or.jp)
           日本Linuxå”会           (kmuto@xxxxxxxxxxx)
           有é™ä¼šç¤¾ãƒˆãƒƒãƒ—スタジオ  (kmuto@xxxxxxxxxxxxxxx)
URI: http://www.topstudio.co.jp/~kmuto/ (Debianãªè©±é¡Œãªã©)