I'm doing a linuxLinux driver tutorial, and I have I have encountered a problem with with the sample lesson of passing parameters to the driver. I tried I tried another parameter passing-passing example I found on the internet with with the same result. Happens Happens on Ubuntu and Raspberry Pi.
For some reason when,
when I insmod the driver with a text parameter for nameETX, dmesg
dmesg shows that the kernel is thinking some
some of the text string is 'unknown'an 'unknown parameter'. It does
It��does, however, accept the 'The'“The
” part of the text string. Any
Any help please?
Source code:
char *nameETX;
module_param(nameETX, charp, S_IRUSR | S_IWUSR);
Command line:
sudo insmod hello_world.ko nameETX="The latest driver"
dmesg output:
[ 968.395399] hello_world: unknown parameter 'latest' ignored
[ 968.395425] hello_world: unknown parameter 'driver' ignored