当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]编译uClinux内核遇到的问题,大家进来帮个忙
帖子发表于 : 2007-03-22 20:47 

注册: 2007-02-28 10:05
帖子: 18
地址: 湖北武汉
送出感谢: 0 次
接收感谢: 0 次
make ARCH=m68knommu CROSS_COMPILE=m68k-elf- -C linux-2.4.x || exit 1
make[1]: Entering directory `/opt/uclinux/uClinux-dist/linux-2.4.x'
scripts/split-include include/linux/autoconf.h include/config
############################################################################
中间部分省略~~~~~
############################################################################
make[4]: Entering directory `/opt/uclinux/uClinux-dist/linux-2.4.x/drivers/char'
m68k-elf-gcc -fno-builtin -DNO_CACHE -D__KERNEL__ -I/opt/uclinux/uClinux-dist/linux-2.4.x/include -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -pipe -DNO_MM -DNO_FPU -DNO_CACHE -m68000 -D__ELF__ -DMAGIC_ROM_PTR -DNO_FORGET -DUTS_SYSNAME="uClinux" -D__linux__ -nostdinc -iwithprefix include -DKBUILD_BASENAME=mc68328digi -c -o mc68328digi.o mc68328digi.c
In file included from mc68328digi.c:119:
/opt/uclinux/uClinux-dist/linux-2.4.x/include/linux/malloc.h:4: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
mc68328digi.c:319: #error "unexpected"
mc68328digi.c: In function `init_ts_state':
mc68328digi.c:491: warning: implicit declaration of function `WORD_REF'
mc68328digi.c:491: `SPIMCONT_IRQEN' undeclared (first use in this function)
mc68328digi.c:491: (Each undeclared identifier is reported only once
mc68328digi.c:491: for each function it appears in.)
mc68328digi.c:491: `IMR' undeclared (first use in this function)
mc68328digi.c:491: `IMR_MSPI' undeclared (first use in this function)
mc68328digi.c: In function `init_ts_hardware':
mc68328digi.c:554: `PFDIR' undeclared (first use in this function)
mc68328digi.c:555: `PFSEL' undeclared (first use in this function)
mc68328digi.c:563: `PESEL' undeclared (first use in this function)
mc68328digi.c:574: `PFPUEN' undeclared (first use in this function)
mc68328digi.c: In function `release_ts_hardware':
mc68328digi.c:611: `IMR' undeclared (first use in this function)
mc68328digi.c: In function `xcopilot_read_now':
mc68328digi.c:718: `PFDATA' undeclared (first use in this function)
mc68328digi.c:719: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c:719: `SPIMCONT_IRQEN' undeclared (first use in this function)
mc68328digi.c:719: invalid lvalue in assignment
mc68328digi.c:720: `SPIMDATA' undeclared (first use in this function)
mc68328digi.c:724: invalid lvalue in assignment
mc68328digi.c: In function `set_SPIM_transfert':
mc68328digi.c:755: `PFDIR' undeclared (first use in this function)
mc68328digi.c:756: `PFDATA' undeclared (first use in this function)
mc68328digi.c:762: `SPIMCONT_ENABLE' undeclared (first use in this function)
mc68328digi.c:763: `SPIMCONT_DATA_RATE_SHIFT' undeclared (first use in this function)
mc68328digi.c:763: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c:763: `SPIMCONT_IRQ' undeclared (first use in this function)
mc68328digi.c:763: `SPIMCONT_IRQEN' undeclared (first use in this function)
mc68328digi.c:763: `SPIMCONT_PHA' undeclared (first use in this function)
mc68328digi.c:763: `SPIMCONT_POL' undeclared (first use in this function)
mc68328digi.c:763: invalid lvalue in assignment
mc68328digi.c: In function `fall_BUSY_enable_PENIRQ':
mc68328digi.c:773: `SPIMDATA' undeclared (first use in this function)
mc68328digi.c:774: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c: In function `release_SPIM_transfert':
mc68328digi.c:781: invalid lvalue in assignment
mc68328digi.c:787: `PFDIR' undeclared (first use in this function)
mc68328digi.c:788: `PFDATA' undeclared (first use in this function)
mc68328digi.c: In function `ask_x_conv':
mc68328digi.c:795: `SPIMDATA' undeclared (first use in this function)
mc68328digi.c:796: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c: In function `ask_y_conv':
mc68328digi.c:803: `SPIMDATA' undeclared (first use in this function)
mc68328digi.c:804: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c: In function `read_x_conv':
mc68328digi.c:811: `SPIMDATA' undeclared (first use in this function)
mc68328digi.c:818: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c: In function `read_y_conv':
mc68328digi.c:827: `SPIMDATA' undeclared (first use in this function)
mc68328digi.c:830: `SPIMCONT_XCH' undeclared (first use in this function)
mc68328digi.c: In function `handle_pen_irq':
mc68328digi.c:1039: `PFDATA' undeclared (first use in this function)
mc68328digi.c:1042: `IMR' undeclared (first use in this function)
mc68328digi.c: In function `handle_timeout':
mc68328digi.c:1112: `SPIMCONT_IRQ' undeclared (first use in this function)
mc68328digi.c:1113: `IMR' undeclared (first use in this function)
mc68328digi.c:1113: `IMR_MSPI' undeclared (first use in this function)
mc68328digi.c:1113: `SPIMCONT_IRQEN' undeclared (first use in this function)
mc68328digi.c:1121: `IPR' undeclared (first use in this function)
mc68328digi.c:1121: `IPR_PEN' undeclared (first use in this function)
mc68328digi.c:1157: `PFDATA' undeclared (first use in this function)
mc68328digi.c: In function `handle_spi_irq':
mc68328digi.c:1174: `SPIMCONT_IRQ' undeclared (first use in this function)
mc68328digi.c:1186: `SPIMCONT_IRQEN' undeclared (first use in this function)
mc68328digi.c:1186: `IMR' undeclared (first use in this function)
mc68328digi.c:1186: `IMR_MSPI' undeclared (first use in this function)
mc68328digi.c:1191: `PFDATA' undeclared (first use in this function)
mc68328digi.c: In function `ts_open':
mc68328digi.c:1430: `SPI_IRQ_NUM' undeclared (first use in this function)
mc68328digi.c:1431: warning: passing arg 2 of `request_irq' from incompatible pointer type
mc68328digi.c: In function `ts_release':
mc68328digi.c:1486: warning: passing arg 1 of `ts_fasync' makes integer from pointer without a cast
mc68328digi.c:1497: `SPI_IRQ_NUM' undeclared (first use in this function)
make[4]: *** [mc68328digi.o] 错误 1
make[4]: Leaving directory `/opt/uclinux/uClinux-dist/linux-2.4.x/drivers/char'
make[3]: *** [first_rule] 错误 2
make[3]: Leaving directory `/opt/uclinux/uClinux-dist/linux-2.4.x/drivers/char'
make[2]: *** [_subdir_char] 错误 2
make[2]: Leaving directory `/opt/uclinux/uClinux-dist/linux-2.4.x/drivers'
make[1]: *** [_dir_drivers] 错误 2
make[1]: Leaving directory `/opt/uclinux/uClinux-dist/linux-2.4.x'
make: *** [linux] 错误 1

我配置uClinux内核,添加了触摸屏驱动程序,虚拟终端支持并激活FrameBuffer驱动程序之后,进行编译,make后出现以上错误。我对内核,驱动程序方面不熟,不知道出了什么问题。我试了下,好像是触摸屏驱动程序的问题,不知道如何解决,难道是内核配置的有问题。
希望有高手出来帮忙看下,非常感谢~


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-05-16 10:45 

注册: 2007-05-16 10:31
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
下面这个也许对你的那个 invalid lvalue in assignment 错误有帮助
no,and i also change the include path.

#include<asm/arch-s3c2410/hardware.h>
#include<asm/arch-s3c2410/cpu_s3c2410.h>
#include<asm/arch-s3c2410/S3C2410.h>
#include<asm/arch-s3c2410/io.h>

which original are
#include<asm/hardware.h>
#include<asm/arch/cpu_s3c2410.h>
#include<asm/io.h>

不过对于升级到gcc4.0的程序,可能也会遇到类似的错误
invalid lvalue in assignment
因为4.0对lvalue的要求更严格


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译