我試圖編譯三星Galaxy迷你的Android內核(氰),根據這些instructions:Android的內核編譯錯誤
我使用CM-7。
我完成以下步驟:
下載內核源代碼。
配置構建:
adb pull /proc/config.gz /home/user_name/android/kernel/cm-kernel/config.gz cat config.gz | gunzip > .config make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig
使構建:
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j4
後這個內核開始編譯,一切工作正常,但隨後拋出一個錯誤,這裏是所述終端的輸出:
CC [M] drivers/gpio/wm8994-gpio.o
LD [M] sound/usb/misc/snd-ua101.o
LD [M] sound/usb/snd-usb-audio.o
LD [M] sound/usb/snd-usbmidi-lib.o
CC [M] drivers/gpio/sch_gpio.o
CC [M] drivers/gpio/rdc321x-gpio.o
LD fs/nfs_common/built-in.o
CC [M] fs/nfs_common/nfsacl.o
CC [M] fs/nfs/direct.o
CC net/socket.o
CC [M] drivers/gpio/janz-ttl.o
LD [M] fs/nfs_common/nfs_acl.o
drivers/gpio/janz-ttl.c: In function 'ttl_set_value':
drivers/gpio/janz-ttl.c:107: error: implicit declaration of function 'iowrite16be'
make[2]: *** [drivers/gpio/janz-ttl.o] Error 1
make[1]: *** [drivers/gpio] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC [M] fs/nfs/pagelist.o
fs/nfs/direct.c: In function 'nfs_direct_read_schedule_segment':
fs/nfs/direct.c:364: warning: format '%zu' expects type 'size_t', but argument 5 has type 'unsigned int'
fs/nfs/direct.c: In function 'nfs_direct_write_schedule_segment':
fs/nfs/direct.c:799: warning: format '%zu' expects type 'size_t', but argument 5 has type 'unsigned int'
fs/nfs/direct.c: In function 'nfs_file_direct_read':
fs/nfs/direct.c:928: warning: format '%zd' expects type 'signed size_t', but argument 4 has type 'size_t'
fs/nfs/direct.c: In function 'nfs_file_direct_write':
fs/nfs/direct.c:982: warning: format '%zd' expects type 'signed size_t', but argument 4 has type 'size_t'
CC net/802/p8022.o
CC [M] fs/nfs/proc.o
CC net/802/psnap.o
CC net/802/tr.o
CC [M] fs/nfs/read.o
CC net/8021q/vlan_core.o
CC [M] net/8021q/vlan.o
CC net/802/fc.o
CC [M] fs/nfs/symlink.o
CC net/802/fddi.o
CC [M] net/8021q/vlan_dev.o
CC [M] fs/nfs/unlink.o
如果任何人都可以請告訴如何解決這個問題。
檢查我的編輯答案。看看它是否有幫助。 – 2012-03-13 14:30:53