想要编一个ARM上的linux,不论体系,配置,只要编译通过
kernel.org上下载linux-2.4.33.3ARCH=i386时编译通过
修改顶层Makefile
ARCH=arm
CROSS_COMPILE=/usr/local/arm/2.95.3/bin/arm-linux-
看了一下arch/arm/def-configs/下支持这些ARM芯片
a5k anakin brutus clps7500epxa1db freebird h3600 lusl7200 pangolin pleb shark
accelent_sa assabet cep ebsa110 flexanet freebird_new huw_webpanelnanoenginepfs168_mqtftriscstationsherman
adsagc at91rm9200dkcerfcubeedb7211 flexanet.rejfrodo integrator neponset pfs168_mqvgarpc system3
adsbitsy badge4 cerfpda empeg footbridge graphicsclientjornada720 omaha pfs168_sastnshannon victor
adsbitsypluscerfpod epxa10dbfortunetgraphicsmaster lart omnimeter pfs168_satftshannon.rej
选a5k做个试验,编译按以下步骤进行:
make mrproper
make a5k_config
make oldconfig
此时出现许多选项,所有选项都打回车
make dep
make clean
make
编了一会儿,keyboard.c出错,变量没有定义
keyboard.c: In function `handle_scancode':
keyboard.c:280: warning: implicit declaration of function `kbd_processkeycode'
keyboard.c: At top level:
keyboard.c:289: warning: `kbd_processkeycode' was declared implicitly `extern' and later `static'
keyboard.c:280: warning: previous declaration of `kbd_processkeycode'
keyboard.c:289: warning: type mismatch with previous implicit declaration
keyboard.c:280: warning: previous implicit declaration of `kbd_processkeycode'
keyboard.c:289: warning: `kbd_processkeycode' was previously implicitly declared to return `int'
keyboard.c: In function `kbd_processkeycode':
keyboard.c:305: `kbd_repeatkeycode' undeclared (first use in this function)
keyboard.c:305: (Each undeclared identifier is reported only once
keyboard.c:305: for each function it appears in.)
keyboard.c:332: `kbd_repeatinterval' undeclared (first use in this function)
keyboard.c:334: `kbd_repeattimeout' undeclared (first use in this function)
keyboard.c: In function `kbd_bh':
keyboard.c:1000: `kbd_repeatkeycode' undeclared (first use in this function)
keyboard.c: In function `kbd_refresh_leds':
失败了。 :arrow: 使用的交叉编译环境是什么样的? arm-linux-gcc -v
输出什么?
页:
[1]