I'm doing a Linux driver tutorial, and I have encountered a problem with the sample lesson of passing parameters to the driver. I tried another parameter-passing example I found on the internet with the same result. Happens on Ubuntu and Raspberry Pi.
For some reason,
when I insmod the driver with a text parameter for nameETX,
dmesg shows that the kernel is thinking
some of the text string is an 'unknown parameter'.
It does, however, accept the “The
” part of the text string.
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
"The\ latest\ driver"