摘要: 测试:1:make menuconfig去掉原来的驱动程序 Device Drivers ---> Graphics support ---> <M> S3C2410 LCD framebuffer support 2: make uImage make modules cp arch/arm/bo 阅读全文
posted @ 2016-01-29 23:41 CAM& 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1.分配一个fb_info结构体: framebuffer_alloc 2.设置 3.注册 4.硬件相关操 struct fb_fix_screeninfo { char id[16]; /* identification string eg "TT Builtin" */ unsigned lon 阅读全文
posted @ 2016-01-28 22:35 CAM& 阅读(177) 评论(0) 推荐(0) 编辑
摘要: app: read() -------------------------------------------------------------------------------------------- kernel: fb_read int fbidx = iminor(inode); st 阅读全文
posted @ 2016-01-28 20:09 CAM& 阅读(153) 评论(0) 推荐(0) 编辑
摘要: drivers/input/input.c: input_init > err = register_chrdev(INPUT_MAJOR, "input", &input_fops); static const struct file_operations input_fops = { .owne 阅读全文
posted @ 2016-01-27 17:35 CAM& 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 最近看了一下Linux Poll 机制的实现,看了韦老师的分析文档,总结如下:int poll(struct pollfd *fds,nfds_t nfds, int timeout);总的来说,Poll机制会判断fds中的文件是否可读,如果可读则会立即返回,返回的值就是可读fd的数量,如果不可读,... 阅读全文
posted @ 2016-01-26 13:15 CAM& 阅读(829) 评论(0) 推荐(0) 编辑
摘要: u-boot:启动内核内核:启动应用应用:读写文件,点灯,获取按键应用: open,read,writec库 |ststem call interafaceswi val 根据发生异常的原因,调用处理函数内核| |驱动 led_open,led_read,led_write 硬件 驱动框架:... 阅读全文
posted @ 2015-12-28 01:00 CAM& 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 将原来的3.5寸分辨率为240x320换为480x272所需要修改的地方时序设置:CLKVAL=4 (VCLK=10) 5>1); LCDSADDR3 = (0>1); LCDSADDR3 = (0<<11) | (480/2); xsize = 480; ysize = 272; 阅读全文
posted @ 2015-12-27 15:29 CAM& 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 配置编译busyboxmake menuconfig [*] Tab completionmkdir -p /work/nfs_root/frist_fsmakemake CONFIG_PREFIX=/work/nfs_root/frist_fs installbin linuxrc sbi... 阅读全文
posted @ 2015-12-26 23:58 CAM& 阅读(328) 评论(0) 推荐(0) 编辑
摘要: a、挂接根文件系统内核怎样启动第一个应用程序 { b、启动应用程序1、打开设备if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) busyboxlrwxrwxrwx 1 100... 阅读全文
posted @ 2015-12-26 13:55 CAM& 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 一、 1、解压 tar xjf linux-2.6.22.6.tar.bz2 2、打补丁 patch -p1 < ../linux-2.6.22.6_jz2440.patch 3、配置 a. make menuconfig b. 使用默认的在上面修改 c.使用厂家的配置文件 b: find -nam 阅读全文
posted @ 2015-12-25 21:47 CAM& 阅读(583) 评论(0) 推荐(0) 编辑