QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1601|回复: 3

想要编一个ARM上的linux,不论体系,配置,只要编译通过

[复制链接]
发表于 2006-10-16 15:44:53 | 显示全部楼层 |阅读模式
kernel.org上下载linux-2.4.33.3
ARCH=i386时编译通过

修改顶层Makefile
ARCH=arm
CROSS_COMPILE=/usr/local/arm/2.95.3/bin/arm-linux-

看了一下arch/arm/def-configs/下支持这些ARM芯片
a5k           anakin        brutus    clps7500  epxa1db       freebird        h3600         lusl7200    pangolin      pleb         shark
accelent_sa   assabet       cep       ebsa110   flexanet      freebird_new    huw_webpanel  nanoengine  pfs168_mqtft  riscstation  sherman
adsagc        at91rm9200dk  cerfcube  edb7211   flexanet.rej  frodo           integrator    neponset    pfs168_mqvga  rpc          system3
adsbitsy      badge4        cerfpda   empeg     footbridge    graphicsclient  jornada720    omaha       pfs168_sastn  shannon      victor
adsbitsyplus  cerfpod       epxa10db  fortunet  graphicsmaster                lart          omnimeter   pfs168_satft  shannon.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':

失败了。
发表于 2006-10-16 22:15:52 | 显示全部楼层
回复

使用道具 举报

发表于 2006-10-24 09:35:22 | 显示全部楼层
使用的交叉编译环境是什么样的?
回复

使用道具 举报

发表于 2006-10-26 09:58:27 | 显示全部楼层
arm-linux-gcc -v

输出什么?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-28 00:11 , Processed in 0.145381 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表