debug
来自「有参数传递的linux驱动模块,代码直接make 一下就可以运行」· 代码 · 共 26 行
TXT
26 行
make: *** /lib/module/2.6.27-11-generic/build: 没有该文件或目录。 停止。make: *** [default] 错误 2解决的办法:module 变为modulesmake -C /lib/modules/2.6.27-11-generic/build SUBDIRS=/home/bobo/linux_driver/090424_module_param modulesmake[1]: 正在进入目录 `/usr/src/linux-headers-2.6.27-11-generic'scripts/Makefile.build:41: /home/bobo/linux_driver/090424_module_param/Makefile: 没有该文件或目录make[2]: *** 没有规则可以创建目标“/home/bobo/linux_driver/090424_module_param/Makefile”。 停止。make[1]: *** [_module_/home/bobo/linux_driver/090424_module_param] 错误 2make[1]:正在离开目录 `/usr/src/linux-headers-2.6.27-11-generic'make: *** [default] 错误 2解决的办法:makefile要大写Makefileinsmod: error inserting 'test.ko': -1 Unknown symbol in module[10617.832072] test: module license 'unspecified' taints kernel.[10617.833250] twostring: string parameter expected[10617.833258] test: `' invalid for parameter `twostring'[10629.222228] test: Unknown parameter `my'解决的办法:因为%s碰到空格就停止输出,只要不打空格就行
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?