[Q] where to put dynamically loadable modules for SM-N900P?

sansari123

Senior Member
Jan 30, 2013
93
6
0
Greetings-
I was able to successfully flash my phone with a test dynamic loadable module. I am running into some issues, which I wonder if I can ask the group how to fix. When I run find, I see:

Code:
[email protected]:/ # find / -name "*.ko"
find / -name "*.ko"
/lib/modules/scsi_wait_scan.ko   <<<<<<
/lib/modules/hello1.ko           <<<<<<<<<
I then tried to load hello1, and get the following:

Code:
1|[email protected]:/ # modprobe /lib/modules/hello1.ko
modprobe /lib/modules/hello1.ko
modprobe: can't change directory to '3.4.0-g7e6fbf7-dirty': No such file or directory
Does anyone know why the kernel version number has -dirty at the end? And if I am using modprobe correctly?

I was able to use insmod successfully it seems. But I can not run the files. How do I run these modules?
Here is the output:

Code:
1|[email protected]:/ # insmod /lib/modules/hello1.ko 
insmod /lib/modules/hello1.ko
[email protected]:/ # hello                                
hello                                                         
tmp-mksh: hello: not found
What is tmp-mksh?
I was told insmod uses .ko files as output, but it seems like it want .o file?

Code:
127|[email protected]:/ # insmod
insmod
usage: insmod <module.o>
lsmod was the first real evidence I had that the modules went in ok. I now have to figure out what is 578, and why does say Live 0x00000000? What address is that?

Code:
255|[email protected]:/ # lsmod  
lsmod                                      
hello1 578 - - Live 0x00000000
 
Last edited: