主题 : 在没操作系统下写driver 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 7351
精华: 1
发帖: 58
金钱: 455 两
威望: 324 点
综合积分: 136 分
注册时间: 2009-07-11
最后登录: 2014-10-17
楼主  发表于: 2010-01-28 02:16

 在没操作系统下写driver

例如我要寫lcd driver  那步驟是怎樣? 可以說個大概嗎?

要寫搞定 bootload ?    


如果沒有操作系統 也就不需要用到 file system?


謝謝
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-01-28 10:14
没有绝对的"没操作系统"这样的概念,只要硬件上有软件在跑,你就可以认为那是一个操作系统。2440test, supervivi或者uboot都是这样的"操作系统".
你的问题取决于你的硬件上跑的软件环境,这里有一个uboot下LCD驱动的框架,也许不一定完整,需要你自己从源代码里去找出来,你可以参考:
http://gitorious.org/opencsbc/u-boot/blobs/master/common/lcd.c
http://gitorious.org/opencsbc/u-boot/blobs/master/drivers/video/s3c2410_fb.c
http://gitorious.org/opencsbc/u-boot/blobs/master/board/mini2440/mini2440.c
"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."