/system/core/init/init.c
open_devnull_stdio(); //mask it and show detail boot log
build linux kernel的錯誤
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv5t) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (strongarm) for -mtune= switch
原因是CROSS_COMPILER路徑沒有設置正確
make ARCH=arm CROSS_COMPILE=/opt/Embedsky/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/tq-linaro-toolchain/bin/arm-linux- uImage
insmod 模塊 正常
rmmod 就不行了
lsmod 看一下
Module Size Used by
hello 62333 0 [permanent]
(1)
查
uname -r
手動建立
/lib/modules/3.0.35/
(2)
你是不是裝了雙系統,而且是在另外的系統下編的內核?
內核和模塊不是在同一個系統下編譯的,就會有這個問題
當前系統下重新編譯,安裝內核,再編模塊就沒這個問題