http://blog.csdn.net/zhangdw8410/article/details/5192892 这个博客编译器写的好像不对啊
安照这个博客的内容,就OK了,只是去掉调试信息的地方,A改为小写就OK了
http://blog.csdn.net/yqm_ll/article/details/2494792
路径修改成你开发板的内核中的build的路径就行了
Makefile里面修改编译驱动所用的内核啊
拷到虚拟机里面就行了
我在make modules的时候出现以下错误
Building modules,stage 2.
MODPOST 1490 modules
ERROR: "__bad_udelay" [drivers/video/savage/savagefb.ko] undefined!
ERROR: "__bad_udelay" [drivers/scsi/nsp32.ko] undefined!
ERROR: "__bad_udelay" [drivers/scsi/atp870u.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/sungem.ko] undefined!
ERROR: "__bad_udelay" [drivers/net/irda/donauboe.ko] undefined!
ERROR: "media_device_unregister_entity" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_entity_get" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_device_register_entity" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_entity_put" [drivers/media/video/videodev.ko] undefined!
ERROR: "media_entity_init" [drivers/media/video/mt9p031.ko] undefined!
ERROR: "media_entity_cleanup" [drivers/media/video/mt9p031.ko] undefined!
ERROR: "__bad_udelay" [drivers/gpu/drm/radeon/radeon.ko] undefined!
ERROR: "__bad_udelay" [drivers/atm/he.ko] undefined!
WARNING: modpost: Found 10 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
刚开始是因为交叉编译工具不是自己安装,而是直接解压的,所以怀疑是交叉编译工具的问题,自己重新装了之后还是不行,
后来在网上查找资料,都没有具体的解决办法,今天上班偷懒,弄了一下,只要把相应的模块在make menuconfig 中关掉就行,
就是不需要编程动态模块,但是这么做很麻烦,你可以直接编辑.config文件,比用make menuconfig 快很多,但是最后还是有
ERROR: "__bad_udelay" [drivers/scsi/atp870u.ko] undefined!
ERROR: "cmpxchg" [drivers/net/cxgb3/cxgb3.ko] undefined!
没找到,没办法,既然找不到我就直接去makefile把这些禁止,我不编译了,大家去相应的目录下的makefile,把编成.o 的哪一行给注释掉,然后再
编译,OK啦!生成的镜像可以使用啦!!!初次发帖,请多包含。。。。
BUILDarch/x86/boot/bzImage
Rootdevice is (253,0)
Setup is12792 bytes (padded to 12800 bytes).
System is2156 kB
CRCf4acec3e
Kernel:arch/x86/boot/bzImage is ready (#1)
Building modules,stage 2.
MODPOST 1069 modules
ERROR:"sas_bios_param" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_change_queue_type" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_change_queue_depth" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_target_destroy" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_target_alloc" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_slave_destroy" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_slave_alloc" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_eh_bus_reset_handler" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_eh_device_reset_handler" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_queuecommand" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_ioctl" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_register_ha" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_domain_attach_transport" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_ssp_task_response" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_slave_configure" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_unregister_ha" [drivers/scsi/mvsas.ko] undefined!
ERROR:"sas_change_queue_depth" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_ssp_task_response" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_request_addr" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_task_abort" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_phy_reset" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_target_alloc" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_find_local_phy" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_eh_bus_reset_handler" [drivers/scsi/aic94xx/aic94xx.ko]undefined!
ERROR:"sas_ioctl" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_unregister_ha" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_register_ha" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_target_destroy" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_eh_device_reset_handler" [drivers/scsi/aic94xx/aic94xx.ko]undefined!
ERROR:"sas_queuecommand" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_bios_param" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_change_queue_type" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_slave_alloc" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_slave_configure" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
ERROR:"sas_domain_attach_transport" [drivers/scsi/aic94xx/aic94xx.ko]undefined!
ERROR:"sas_slave_destroy" [drivers/scsi/aic94xx/aic94xx.ko] undefined!
make[1]:*** [__modpost] 错误 1
make: ***[modules] 错误 2
[ root@localhost modules]# ls
2.6.18-164.el5
[root@localhost modules]# cd 2.6.18-164.el5/
[root@localhost 2.6.18-164.el5]# ls
build modules.alias modules.inputmap modules.seriomap updates
extra modules.ccwmap modules.isapnpmap modules.symbols weak-updates
kernel modules.dep modules.ofmap modules.usbmap
misc modules.ieee1394map modules.pcimap source
[root@localhost 2.6.18-164.el5]# pwd
/lib/modules/2.6.18-164.el5
[root@localhost 2.6.18-164 .el5]# cd build/
[root@localhost build]# ls
arch init mm scripts
block ipc Module.kabi security
crypto kabi_whitelist Module.markers sound
drivers kernel Module.symvers symsets-2.6.18-164.el5.tar.gz
fs lib net usr
include Makefile samples
[root@localhost build]# cd ..
[root@localhost 2.6.18-164.el5]# ls
build modules.alias modules.inputmap modules.seriomap updates
extra modules.ccwmap modules.isapnpmap modules.symbols weak-updates
kernel modules.dep modules.ofmap modules.usbmap
misc modules.ieee1394map modules.pcimap source
[root@localhost 2.6.18-164.el5]# cd build/
[root@localhost build]# ls
arch init mm scripts
block ipc Module.kabi security
crypto kabi_whitelist Module.markers sound
drivers kernel Module.symvers symsets-2.6.18-164.el5.tar.gz
fs lib net usr
include Makefile samples
[root@localhost build]# cd ..
[root@localhost 2.6.18-164.el5]# ls
build modules.alias modules.inputmap modules.seriomap updates
extra modules.ccwmap modules.isapnpmap modules.symbols weak-updates
kernel modules.dep modules.ofmap modules.usbmap
misc modules.ieee1394map modules.pcimap source
[root@localhost 2.6.18-164.el5]# cd build/
[root@localhost build]# ls
arch init mm scripts
block ipc Module.kabi security
crypto kabi_whitelist Module.markers sound
drivers kernel Module.symvers symsets-2.6.18-164.el5.tar.gz
fs lib net usr
include Makefile samples
[root@localhost build]# cd ../..
[ root@localhost modules]# ls
2.6.18-164.el5 2.6.30.4
[root@localhost modules]# cd 2.6.30.4/
[root@localhost 2.6.30.4]# ls
build modules.dep modules.ofmap modules.symbols
kernel modules.ieee1394map modules.order modules.usbmap
modules.alias modules.inputmap modules.pcimap source
modules.ccwmap modules.isapnpmap modules.seriomap
[root@localhost 2.6.30 .4]# cd build
[root@localhost build]# ls
arch drivers Kbuild Module.markers samples virt
block firmware kernel modules.order scripts vmlinux
COPYING fs lib Module.symvers security vmlinux.o
CREDITS include MAINTAINERS net sound
crypto init Makefile README System.map
Documentation ipc mm REPORTING-BUGS usr
[root@localhost build]#
《sqlite权威指南 》书籍
得到数据库中的某一列的所有值并将其存到数组中
http://blog.csdn.net/liuxiaochen77/article/details/6705001
原文链接:https://www.f2er.com/sqlite/201926.html