I'm trying to figure out the creation and loading of kernel modules using modprobe. I have loaded a TinyCore 11.1 on a Winsystem C412 on a flash drive. I have loaded openssh and can putty in to the system. I have loaded Busybox-httpd and created an Angular 10 web app that works. I loaded compile.tzc and other extensions to create simple sample programs. I have even compiled and loaded a hello world kernel sample, which loads using the insmod or modprobe, from the site
https://tldp.org/LDP/lkmpg/2.6/html/x323.html, So far all is great...except for one thing.
I would like to know what I'm doing wrong that when I load the module using modprobe, that the parameter(s) being passed in are not changed. The default value that is assigned in the c program is what is displayed in dmesg, and not the values that i passed using modprobe. I know things are sort of working because when i run `sudo modprobe hello_5 myint=6' and then check `dmesg`, I see that the Module loaded, I even see a file `/sys/module/hello_5/parameters/myint` with a value of 240 the init value from the program. I expect to see `6`, so why is modprobe not changing the value?
thanks
George