Re: [问题] cross compile的kernel不能在pi上make

楼主: wtchen (没有存在感的人)   2015-07-28 04:06:28
以下是编译模组make时(kernel 4.0.9+rt patch)的错误讯息:
(模组来源:https://github.com/kuba-moo/mt7601u)
我用在pi上编译的kernel 4.0.8或是我笔电本机的kernel3.19确定没问题
(所以module本身没问题)
可我不知道为何make时会有Syntax error
感谢指教
make: Warning: File 'Makefile' has modification time 4637885 s in the future
make -C /lib/modules/`uname -r`/build M=$PWD
make[1]: Entering directory '/home/pi/src/linux'
make[1]: Warning: File '.vmlinux.cmd' has modification time 7052597 s in the future
make[2]: Warning: File 'scripts/Makefile.lib' has modification time 7050851 s in the future
CC [M] /home/pi/src/mt7601u-master/usb.o
./scripts/recordmcount: 1: ./scripts/recordmcount: Syntax error: ")" unexpected
scripts/Makefile.build:258: recipe for target '/home/pi/src/mt7601u-master/usb.o' failed
make[2]: *** [/home/pi/src/mt7601u-master/usb.o] Error 2
Makefile:1390: recipe for target '_module_/home/pi/src/mt7601u-master' failed
make[1]: *** [_module_/home/pi/src/mt7601u-master] Error 2
make[1]: Leaving directory '/home/pi/src/linux'
Makefile:8: recipe for target 'default' failed
make: *** [default] Error 2
kernel是在笔电上用arm-linux-gnueabihf- cross compile的
※ 引述《wtchen (没有存在感的人)》之铭言:
: 我会在自己的笔电上cross compile Rpi的kernel(4.0.8),装到Rpi上也能跑
: 可是我常常要在RPi上编译自己的module,
: 如果用cross compile的kernel(source)就没法编,
: 改成在pi上编的kernel就可以。
: 如果我临时想改掉.config多加几个module,
: 也得用cross compile不能直接在Rpi上compile
: 当然我也可以一律用cross compile,只是这很麻烦(要用nfs或把sd卡接到笔电上)。
: 请问有啥方法可以在Rpi上用cross compile的kernel 编译自己的module?
: 感谢

Links booklink

Contact Us: admin [ a t ] ucptt.com