主题 : Linux tvp5150 driver 复制链接 | 浏览器收藏 | 打印
误人子弟!
级别: 新手上路
UID: 799
精华: 0
发帖: 40
金钱: 355 两
威望: 130 点
综合积分: 80 分
注册时间: 2008-06-01
最后登录: 2013-09-03
楼主  发表于: 2008-08-09 21:33

 Linux tvp5150 driver

在Linux2.6.24或者2.6.25上,kernel路径/driver/media/video/tvp5150.c

make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig
配置tvp5150为模块加入模式<M>
make ARCH=arm CROSS_COMPILE=arm-linux- modules

下载到开发板上去,
insmod tvp5150.ko
请问如何在/dev创建文件节点?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2008-08-10 10:17
如果你的文件系统里有udev这样的东西,它会自动帮你创建节点。否则你只有自己用mknod手动创建
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
误人子弟!
级别: 新手上路
UID: 799
精华: 0
发帖: 40
金钱: 355 两
威望: 130 点
综合积分: 80 分
注册时间: 2008-06-01
最后登录: 2013-09-03
2楼  发表于: 2008-08-10 10:44
如果你的文件系统里有udev这样的东西
误人子弟!
级别: 新手上路
UID: 799
精华: 0
发帖: 40
金钱: 355 两
威望: 130 点
综合积分: 80 分
注册时间: 2008-06-01
最后登录: 2013-09-03
3楼  发表于: 2008-08-10 10:46
如果你的文件系统里有udev这样的东西

如何看有没有这个udev的东西?
我相信是有的,/dev下很多文件都是自动生成的。如watchdog.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-08-11 13:05
我想你已经用了busybox里内建的mdev,一个简化了的udev实现,不是吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
误人子弟!
级别: 新手上路
UID: 799
精华: 0
发帖: 40
金钱: 355 两
威望: 130 点
综合积分: 80 分
注册时间: 2008-06-01
最后登录: 2013-09-03
5楼  发表于: 2008-08-11 20:13
是的,有问题吗?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2008-08-11 21:20
引用第5楼studyboy_3w于2008-08-11 20:13发表的  :
是的,有问题吗?

问题是你知不知道什么是mdev
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."