顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - yugu

頁: [1]
1
Linux 討論版 / 編譯kernel出現問題
« 於: 2007-07-14 21:49 »
想編譯內核的動機:
數位相機當初好像可以使用,但後來不知怎麼搞的usb沒反應,我也下載了一些相關套件試試,但還是沒解決問題,雖然我知道網路上相關文件很多,但不想太浪費時間,因此只好編譯kernel了= =

花了幾乎快一天的時間(沒睡覺)還是都沒解決問題,目前的主機狀況是
主機板:asus k8v-mx
cpu:amd socket 754
系統:ubuntu 6.10
kernel:2.6.17.11
想做kernel的升級版本:2.6.20.14  
內核補丁:path-2.6.21-rc6

NOTE:較為穩定的補丁應為2.6.21-rc3


我是參考此文件編譯內核的http://www.uplinux.net/article/2006/1204/article_1536_1.html
但我在deb這個過程中並沒有產生deb包,終端機出現的錯誤訊息是

代碼: [選擇]

                ......內核配置略過.....
 from arch/i386/kernel/asm-offsets.c:7:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
  GEN     include/asm-i386/asm-offsets.h
make[1]: Leaving directory `/usr/src/linux-2.6.20.14'
echo done > debian/stamp-kernel-conf
====== making target CONFIG-indep [new prereqs: conf.vars stamp-kernel-conf]======
This is kernel package version 10.049ubuntu5.
====== making target CONFIG/linux-source-2.6.20.14- [new prereqs: CONFIG-indep]======

====== making target CONFIG/linux-doc-2.6.20.14- [new prereqs: CONFIG-indep]======

====== making target CONFIG/linux-manual-2.6.20.14- [new prereqs: CONFIG-indep]======

====== making target stamp-configure-indep [new prereqs: linux-source-2.6.20.14- linux-doc-2.6.20.14- linux-manual-2.6.20.14-]======
====== making target configure-indep [new prereqs: stamp-configure-indep]======
====== making target stamp-configure [new prereqs: configure-arch configure-indep]======
====== making target debian/stamp-build-kernel [new prereqs: sanity_check stamp-kernel-conf]======
This is kernel package version 10.049ubuntu5.
/usr/bin/make  EXTRAVERSION=.14-custom  ARCH=i386 \
                             bzImage
make[1]: Entering directory `/usr/src/linux-2.6.20.14'
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  HOSTCC  scripts/genksyms/genksyms.o
  SHIPPED scripts/genksyms/lex.c
  SHIPPED scripts/genksyms/parse.h
  SHIPPED scripts/genksyms/keywords.c
  HOSTCC  scripts/genksyms/lex.o
  SHIPPED scripts/genksyms/parse.c
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
  CC      init/main.o
In file included from include/linux/sched.h:84,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/main.c:13:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/main.c:13:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
In file included from include/linux/sched.h:84,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/main.c:13:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/main.c:13:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
In file included from include/linux/sched.h:84,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/version.c:10:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/version.c:10:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
In file included from include/linux/sched.h:84,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/version.c:10:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/version.c:10:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
  CC      init/do_mounts.o
In file included from include/linux/sched.h:84,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/do_mounts.c:1:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from include/linux/utsname.h:35,
                 from include/asm/elf.h:12,
                 from include/linux/elf.h:7,
                 from include/linux/module.h:15,
                 from init/do_mounts.c:1:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
  LD      init/mounts.o
  CC      init/noinitramfs.o
  CC      init/calibrate.o
  LD      init/built-in.o
  LD      usr/built-in.o
  CC      arch/i386/kernel/process.o
In file included from include/linux/sched.h:84,
                 from arch/i386/kernel/process.c:18:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from arch/i386/kernel/process.c:18:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
In file included from include/linux/sched.h:84,
                 from arch/i386/kernel/process.c:18:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from arch/i386/kernel/process.c:18:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
  CC      arch/i386/kernel/signal.o
In file included from include/linux/sched.h:84,
                 from arch/i386/kernel/signal.c:10:
include/linux/hrtimer.h:230:1: warning: "KTIME_MONOTONIC_RES" redefined
In file included from include/linux/timer.h:5,
                 from include/linux/sched.h:83,
                 from arch/i386/kernel/signal.c:10:
include/linux/ktime.h:265:1: warning: this is the location of the previous definition
arch/i386/kernel/signal.c: In function ‘restore_sigcontext’:
arch/i386/kernel/signal.c:131: error: ‘struct pt_regs’ has no member named ‘xgs’
arch/i386/kernel/signal.c: In function ‘setup_sigcontext’:
arch/i386/kernel/signal.c:247: error: ‘struct pt_regs’ has no member named ‘xgs’
arch/i386/kernel/signal.c:247: error: ‘struct pt_regs’ has no member named ‘xgs’
arch/i386/kernel/signal.c:247: error: ‘struct pt_regs’ has no member named ‘xgs’
arch/i386/kernel/signal.c:247: error: ‘struct pt_regs’ has no member named ‘xgs’
make[2]: *** [arch/i386/kernel/signal.o] Error 1
make[1]: *** [arch/i386/kernel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20.14'
make: *** [debian/stamp-build-kernel] Error 2


內核配置完畢後,並沒有產生deb包,不曉得哪裡出錯了?

頁: [1]