QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1530|回复: 2

uclinux加载usb编译错误求解

[复制链接]
发表于 2004-7-19 22:46:43 | 显示全部楼层 |阅读模式
在redhat linux 9.0下
编译环境skyeye
uclinux版本为20030909
当编译内核加载USB的时候出现一下错误:
hcd.c: In function `hcd_submit_urb':
hcd.c:1206: structure has no member named `pdev'
hcd.c:1212: structure has no member named `pdev'
hcd.c: In function `usb_hcd_giveback_urb':
hcd.c:1484: structure has no member named `pdev'
hcd.c:1488: structure has no member named `pdev'
hcd.c: At top level:
hcd.c:1425: warning: `hcd_operations' defined but not used
hcd.c:1436: warning: `hcd_irq' defined but not used

在hcd.h头文件中有这样的宏定义
#ifdef CONFIG_PCI
/* a few non-PCI controllers exist, mostly for OHCI */
struct pci_dev *pdev;
/* pci is typical */
int region;
/* pci region for regs */
u32 pci_state [16];
/* for PM state save */
atomic_t resume_count;
/* multiple resumes issue */
#endif
回去找CONFIG_PCI编译选项却没有

请问高手,我在编译过程中出了什么错?
编译内核加载USB时候编译选项应该怎么选择?
谢了先!!
发表于 2004-7-26 23:27:00 | 显示全部楼层
skyeye没有模拟usb硬件,所以uclinux配置时,可把usb相关的支持选项去掉。
回复

使用道具 举报

 楼主| 发表于 2004-7-27 19:17:10 | 显示全部楼层
谢谢版主
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-24 20:16 , Processed in 0.055715 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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