发新话题
打印

ARMSYS2440开发板使用FAQ!遇到问题的用户请先看这里。(10-04-14)

把驱动编译成Module 时,命令行为(我把编译器放在了/2.95.3下,kernel2440为源码)

/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/kernel2440/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DMODULE -DKBUILD_BASENAME=example_leds.c -DEXPORT_SYMTAB -c example_leds.c

编译不通 信息为

In file included from example_leds.c:2:
/kernel2440/include/linux/module.h:21: linux/modversions.h: ?????????
/kernel2440/include/linux/module.h:298: linux/version.h: ?????????

In file included from /kernel2440/include/asm/page.h:98,
                 from /kernel2440/include/linux/wait.h:19,
                 from /kernel2440/include/linux/fs.h:12,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/asm/memory.h:112: warning: `PHYS_TO_NID' redefined
/kernel2440/include/asm/arch/memory.h:72: warning: this is the location of the previous definition

In file included from /kernel2440/include/asm/bitops.h:22,
                 from /kernel2440/include/linux/fs.h:26,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/asm/system.h:72: warning: `__save_flags_cli' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:62: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:73: warning: `__save_flags' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:132: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:74: warning: `__restore_flags' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:142: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:75: warning: `__cli' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:92: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:76: warning: `__sti' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:77: warning: this is the location of the previous definition
In file included from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/jffs2_fs_i.h:6: linux/version.h: ?????????
In file included from /kernel2440/include/linux/jffs2_fs_i.h:7,
                 from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/rbtree.h:9: linux/version.h: ?????????
/kernel2440/include/linux/rbtree.h:11: parse error
In file included from /kernel2440/include/linux/jffs2_fs_i.h:7,
                 from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/rbtree.h:18: parse error
In file included from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/jffs2_fs_i.h:39: parse error
In file included from /kernel2440/include/linux/jffs2_fs_sb.h:8,
                 from /kernel2440/include/linux/fs.h:774,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/workqueue.h:9: linux/version.h: ?????????
/kernel2440/include/linux/workqueue.h:11: parse error
In file included from /kernel2440/include/asm/hardware.h:16,
                 from example_leds.c:14:
/kernel2440/include/asm/arch/hardware.h:32: asm/mach-types.h: ?????????
In file included from /kernel2440/include/asm/processor.h:56,
                 from /kernel2440/include/linux/prefetch.h:13,
                 from /kernel2440/include/linux/list.h:6,
                 from /kernel2440/include/linux/module.h:12,
                 from example_leds.c:2:
/kernel2440/include/asm/atomic.h: In function `atomic_add':
/kernel2440/include/asm/atomic.h:39: warning: implicit declaration of function `local_irq_save'
/kernel2440/include/asm/atomic.h:41: warning: implicit declaration of function `local_irq_restore'
In file included from example_leds.c:2:
/kernel2440/include/linux/module.h: At top level:
/kernel2440/include/linux/module.h:300: parse error before `UTS_RELEASE'
In file included from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/jffs2_fs_i.h:22: field `fragtree' has incomplete type
In file included from example_leds.c:7:
/kernel2440/include/linux/sched.h: In function `unhash_process':
/kernel2440/include/linux/sched.h:940: warning: implicit declaration of function `local_irq_disable'
/kernel2440/include/linux/sched.h:945: warning: implicit declaration of function `local_irq_enable'
[root@localhost driver]# /2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/kernel2440/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DMODULE -DKBUILD_BASENAME=example_leds.c -DEXPORT_SYMTAB -c example_leds.c
In file included from example_leds.c:2:
/kernel2440/include/linux/module.h:21: linux/modversions.h: ?????????
/kernel2440/include/linux/module.h:298: linux/version.h: ?????????
In file included from /kernel2440/include/asm/page.h:98,
                 from /kernel2440/include/linux/wait.h:19,
                 from /kernel2440/include/linux/fs.h:12,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/asm/memory.h:112: warning: `PHYS_TO_NID' redefined
/kernel2440/include/asm/arch/memory.h:72: warning: this is the location of the previous definition
In file included from /kernel2440/include/asm/bitops.h:22,
                 from /kernel2440/include/linux/fs.h:26,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/asm/system.h:72: warning: `__save_flags_cli' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:62: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:73: warning: `__save_flags' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:132: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:74: warning: `__restore_flags' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:142: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:75: warning: `__cli' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:92: warning: this is the location of the previous definition
/kernel2440/include/asm/system.h:76: warning: `__sti' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/proc/system.h:77: warning: this is the location of the previous definition
In file included from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/jffs2_fs_i.h:6: linux/version.h: ?????????
In file included from /kernel2440/include/linux/jffs2_fs_i.h:7,
                 from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/rbtree.h:9: linux/version.h: ?????????
/kernel2440/include/linux/rbtree.h:11: parse error
In file included from /kernel2440/include/linux/jffs2_fs_i.h:7,
                 from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/rbtree.h:18: parse error
In file included from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/jffs2_fs_i.h:39: parse error
In file included from /kernel2440/include/linux/jffs2_fs_sb.h:8,
                 from /kernel2440/include/linux/fs.h:774,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/workqueue.h:9: linux/version.h: ?????????
/kernel2440/include/linux/workqueue.h:11: parse error
In file included from /kernel2440/include/asm/hardware.h:16,
                 from example_leds.c:14:
/kernel2440/include/asm/arch/hardware.h:32: asm/mach-types.h: ?????????
In file included from /kernel2440/include/asm/processor.h:56,
                 from /kernel2440/include/linux/prefetch.h:13,
                 from /kernel2440/include/linux/list.h:6,
                 from /kernel2440/include/linux/module.h:12,
                 from example_leds.c:2:
/kernel2440/include/asm/atomic.h: In function `atomic_add':
/kernel2440/include/asm/atomic.h:39: warning: implicit declaration of function `local_irq_save'
/kernel2440/include/asm/atomic.h:41: warning: implicit declaration of function `local_irq_restore'
In file included from example_leds.c:2:
/kernel2440/include/linux/module.h: At top level:
/kernel2440/include/linux/module.h:300: parse error before `UTS_RELEASE'
In file included from /kernel2440/include/linux/fs.h:338,
                 from /kernel2440/include/linux/devfs_fs_kernel.h:4,
                 from /kernel2440/include/linux/miscdevice.h:4,
                 from example_leds.c:6:
/kernel2440/include/linux/jffs2_fs_i.h:22: field `fragtree' has incomplete type
In file included from example_leds.c:7:
/kernel2440/include/linux/sched.h: In function `unhash_process':
/kernel2440/include/linux/sched.h:940: warning: implicit declaration of function `local_irq_disable'
/kernel2440/include/linux/sched.h:945: warning: implicit declaration of function `local_irq_enable'

请教我的路径是不是哪里有严重的错误

TOP

请解答

TOP

抱歉,没有遇过这样的错误

TOP

谢谢,已解决

TOP

请问版主,能把硬件测试程序(2440test)发到我邮箱里吗?

我的邮箱是tianliyan1983@126.com

TOP

我的板子,在系统初始化IIC时都要出问题,Linux超时退出、 Win CE4。2挂掉 。

硬件买回来后我没有使用过IIC 的,最近才注意到的。。

是硬件损坏还是提供的image 存在问题?

TOP

可能是IIC两根线上没有接上拉?

TOP

Linux下如何保存设置的系统时间

最新问题解答:
问:Linux下如何保存设置的系统时间?
答:分以下步骤进行:

(1)通过开发板控制台设置开发板的当前系统时间:
date [MMDDhhmm[[CC]YY][.ss]]
例如:
date 010410462008
(2)将系统时间写入RTC:
hwclock -w
读出检验一下,写入是否正确:
hwclock -r
(3)修改开发板根文件系统中的/etc/init.d/rcS文件,
添加一行:
hwclock -s
用于在系统启动时从RTC读出日期时间并设置到系统时间。
(4)重新启动开发板,验证系统时间是否争取。
问:ARMSYS2440的WINCE是否支持USB下载?

答:完全可以支持。前提是必须使用DNW v0.50L版本配合!使用它的[USB Port]->[UBOOT]选项,然后选中你要下载的nk.bin即可,速度非常快。相关连接:
http://www.hzlitai.com.cn/bbs/dispbbs.asp?BoardID=11&ID=6338&replyID=&skin=1
问:ARMSYS2440下运行WINCE5.0,如何旋转屏幕?
答:只要修改注册表项:
; Settings to rotate the screen by 0 degrees clockwise upon download
[HKEY_LOCAL_MACHINE\System\GDI\Rotation]
"Angle"=dword:0
将0改为90,180,270都可以(注意注册表里要写成十六进制)。
=======================================================================
由于2440bsp包中的串口驱动定义了硬件流控制,导致COM1的驱动只能接受不能发送的问题解决如下:
1、打开SMDK2440\INC\S2440.h文件,找到“#define USE_AFC 1”,把1改为0
2、重新编译生成NK.bin,烧录到板子上即可。
(2007-07-28)
=======================================================================
问:ARMSYS2440开发板核心板的功耗有多大? 答:ARMSYS2440在25℃环境温度,单板无外接设备的情况下测试的功耗如下:


















测量项目

峰值电流

平均电流

静态电流

ARMSYS2440-CORE核心板

1.3V

180mA

100mA

20mA

3.3V

150mA

50-80mA

10mA
问:ARMSYS2440开发板的功耗有多大?
答:+9V/2A供电,工作状态峰值电流(平均工作电流):
Linux WinCE
无外部设备仅连接串口 350mA(230mA) 300mA(170mA)
连接LCD/触摸屏和串口 460mA(300mA) 360mA (250mA)
问:摄像头采集到播放能够达到的帧率是多少? 答:320X240图像采样率可达到30fps;
640X480图像采样率可达到15fps。
问:如何支持USB鼠标?
答:在载入缺省内核配置下,进一步选中USB Support-->HID Input Layer support项目。
问:如何支持USB键盘?
答:在载入缺省内核配置下,进一步选中USB Support-->HID Input Layer support项目;
选中Console drivers-->SMDK24x0 SPI Keyboard Support项目。
问:uboot源码编译时出现路径错误,如何解决? 答:请这样解决, 运行:
make distclean //清除所有旧的路径信息
make smdk2440_config //配置
make //编译并产生二进制文件
问:针对板上Lattice的cpld进行开发的工具在哪里下载? 答:Lattice公司提供了免费下载(但需要注册)的ispLEVER Starter开发软件,用户可以到这里按步骤下载:
http://www.latticesemi.com/products/designsoftware/isplever/ispleverstarter.cfm
不断添加与更新中......
问:Linux下如何进行摄像头测试(基于cramfs文件系统)?
(1)在uboot下设置启动参数(注意红色字体):
setenv linux_arg noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttyS0 mem=49M
(2)在linux下进行预览显示测试:
rgb_4pXX 屏的宽度 屏的高度 16 0 0
这里的xx根据你的屏分辨率的不同而不同,如果是240x320的屏(L35T23),不需要输入xx,直接用rgb_4p;
如果是320x240的屏(L35T32),采用rgb_4p32;
如果是640x480的屏(LXXT64),采用rgb_4p64;
如果是800x480的屏(L70T84),采用rgb_4p84;
(3)在linux下进行图像拍摄(保存为jpg图片)测试:
在tmp目录下创建camera目录,
mkdir /tmp/camera
将rgb_4p_jpg拷贝到camera目录下:
cp /bin/rgb_4p_jpg /tmp/camera/
然后运行:
./rgb_4p_jpg 240 320 16 2 0
运行结束后将在/tmp/camera 目录下产生连续拍摄的2幅jpg图片。
问:如何使我的ARMSYS2440套餐支持WINCE下的camera测试? 答:除套餐3之外,其它套餐请按照如下方法修改:
打开BSP包(SMDK2440A),找到drivers下的camera目录,
修改camera.cpp文件中的Display_Cam_Image函数,找到这一句:
memcpy((void *)(IMAGE_FRAMEBUFFER_UA_BASE+ (240*pos_y + pos_x) + y*240*2),(void *)buffer_rgb,(PREVIEW_X)*2);
将其中的红字部分修改为您自己的LCD屏的水平像素值(例如320,或640...)。
重新编译产生nk.bin下载到板子上。再运行cameratest.exe,就可以看到正确的图像了。
不断添加与更新中......
问:如何在WINCE5.0下修改注册表永久保存?
请看该贴:http://www.hzlitai.com.cn/bbs/dispbbs.asp?boardID=11&ID=1206&page=1

TOP

请问版主,在贵公司买的开发板,我在用光盘里附带的sjf2440软件檫除norflash,想把光盘里的nboot烧录进去,按照光盘里提供的userguid的步骤,在第二步的时候出现了下面的状况:



见上面附件中的截图,请问怎么解决

附件: 您所在的用户组无法下载或查看附件

TOP

这里的资料真多啊。。。。以后就再这里混了。。。。。。。。

TOP

发新话题