Write a few drops of sweat

zhaozj2021-02-16  130

When compiled. When mounted, the kernel did not match. Oh, the insmod command plus -f can be forced, a module is loading, with warnings, haha ​​~~~~~~~~ thoroughly Workaround: Add -i option when GCC is compiled, specify an incrude directory

In the compilation of the driver code module, the prompt appears that PRINK is not defined. The reason for the brother is that the library function is not included in it, and it can run the / usr / src / linux from writing the Makefile operation, SRC is Linux's original The directory where the file is located, I haven't tried it, and kernelDir = / usr / src / linux-2.4 in Makefile?

转载请注明原文地址:https://www.9cbs.com/read-9146.html

New Post(0)