我想編譯一個內核(金魚)以便稍後插入一些模塊。我知道我需要啓用模塊支持,模塊加載和卸載。我正在使用OSX Mavericks。啓用可加載模塊Android
到目前爲止,我已經簽出,從git的金魚,並已完成了以下:
make ARCH=arm goldfish_armv7_defconfig
沒有問題存在。現在,當我做的:
make ARCH=arm CROSS_COMPILE=/Volumes/untitled/WORKING_DIRECTORY/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/bin/arm-eabi- menuconfig
我得到如下:
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: * [scripts/kconfig/mconf] Error 1 make: * [menuconfig] Error 2
有沒有辦法,我可以使模塊另一種方式?也許進入一個文件並手動執行它?
如果我只是運行(這我應該後運行得到的zImage):
make ARCH=arm SUBARCH=arm CROSS_COMPILE=/Volumes/untitled/WORKING_DIRECTORY/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/bin/arm-eabi -j16
內核編譯,我可以通過模擬器運行它,但顯然我不能上傳內核模塊。