![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ARM
zsdt345a780rfajwet
这个作者很懒,什么都没留下…
展开
-
/usr/src/kernels/ 下没有当前内核文件夹 及 insmod错误Invalid module format
我是在加载设备驱动程序的时候遇到的问题。$ sudo insmod Dev_hello.ko然后出现了问题: Error: could not insert module Dev_hello.ko: Invalid module format通过查 *.ko 文件vermagic和内核版本号:[lgw@localhost shareArm]$原创 2012-08-11 00:47:59 · 10884 阅读 · 0 评论 -
装载驱动遇到的问题【待解决】
驱动程序为:(测试带参数的驱动程序)#include char *para_str = "OLD"; int num = 4000; int para_init(void) { printk(" I am a %s para.\n",para_str); printk("原创 2012-08-12 19:04:19 · 601 阅读 · 0 评论 -
交叉编译环境之编译内核阶段各种错误
本开发板mini2440所配内核版本为 Linux-2.6.32.21 使用缺省配置文件配置和编译内核$sudo cp config_mini2440_w35 .config ;注意:w35 后面有个空格,然后有个“.”开头的 config$sudo make menuconfig此处遇到问题:[lgw@localhost linux-2.原创 2012-08-14 22:44:09 · 3332 阅读 · 0 评论 -
include/linux/autoconf.h or include/config/auto.conf are missing.
做了一个简单的设备驱动程序:ARM_hello.c#include static int hello_init(void){ printk("Hello, I am coming !\n"); return 0;}static void hello_exit(void){ printk("Goodbye, I Love Linux ! I Love ARM原创 2012-08-14 23:07:11 · 7354 阅读 · 0 评论 -
error: unknown field ‘ioctl’ specified in initializer
编译字符设备驱动程序时,遇到如下错误:[lgw@localhost 4-4]$ makemake -C /lib/modules/3.5.0-2.fc17.i686.PAE/build M=/home/lgw/shareArm/4-4 modulesmake[1]: Entering directory `/usr/src/kernels/3.5.0-2.fc17.i686.PAE'原创 2012-08-13 12:09:21 · 1891 阅读 · 0 评论 -
关闭ARM S3C2440 原系统中的led灯的闪烁
摘自mini2440的用户手册(1) LED 服务器开机进入系统后,将会自动运行运行一个 LED 服务程序(/etc/rc.d/init.d/leds),它其实是调用了 led-player 的一个脚本,led-player 开始运行后,将会在/tmp 目录下创建一个led-control 管道文件,向该管道发送不同的参数可以改变 led 的闪烁模式:#echo 0 0.2 >翻译 2012-08-18 10:59:20 · 1989 阅读 · 0 评论 -
nfs: server 192.168.1.100 not responding, still trying 解决办法
挂载的时候用这个命令:mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.1.100:/主机nfs目录 /挂载路径我确定不是nfs的问题,因为开始是挂载上了的,但是这次我测试的是要把rgb888的图像文件转换为rgb565在LCD上显示,当执行这个程序的时候就出现了nfs: server 192.168.1.100 not转载 2012-08-19 22:38:15 · 7365 阅读 · 1 评论 -
RGB888 和 RGB565
今天作练习,是一个将RGB888的图像转换成RGB565在ARM 的 LCD上显示的小程序。里面的移位来移位去的完全不了。先是不管三七二是一,把程序运行了一下。图像是一行一行刷出来的,点是一个一个一行一行转换再画的。因为开始不明白的地方,我加了几条printf,于是就那个刷屏啊~~~源程序:#include #include #include #include #include原创 2012-08-19 23:33:35 · 6314 阅读 · 1 评论