module_param does not work in Ubuntu 13.10 - Kernel 3.10.0-4
Hi all, I use the kernel version "3.10.0-4" that came with Ubuntu distribution. When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error: # insmod parameter.ko mystring="bebop" Error: could not insert module parameter.ko: Unknown symbol in module Error in dmesg: [ 3687.132110] parameter: Unknown parameter `mystring' However, if I insert the module without any parameters, it gets inserted just fine. # insmod parameter.ko I am attaching the source code for reference. Kindly let me know what could be done. Thanks, Binoy Regards, Binoy Jayan WIPRO TECHNOLOGIES | Electronic City 5 | Bangalore | Mob: +91-9742870916, +91-9745783048 Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
I have kernel 3.11.0-rc7 and it seems to be working fine. Are you sure the file attached is the correct one or there is no typo? See the output which I got compiling your file and loading it as a module in the attachment. Thanks, Sanmukh On Thu, Sep 5, 2013 at 9:52 PM, <binoy.jayan@wipro.com> wrote:
Hi all,
I use the kernel version "3.10.0-4" that came with Ubuntu distribution. When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error:
# insmod parameter.ko mystring="bebop" Error: could not insert module parameter.ko: Unknown symbol in module
Error in dmesg:
[ 3687.132110] parameter: Unknown parameter `mystring'
However, if I insert the module without any parameters, it gets inserted just fine.
# insmod parameter.ko
I am attaching the source code for reference. Kindly let me know what could be done.
Thanks, Binoy
Regards, Binoy Jayan WIPRO TECHNOLOGIES | Electronic City 5 | Bangalore | Mob: +91-9742870916, +91-9745783048
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
HI Sanmukh, Thank you for testing the code. Yes I am using the same file and there is no typo. When I insert the module it inserts just fine. In this case mystring takes the default value "blah" as seen in log below. dmesg: [ 7907.858933] Demonstrating module parameters [ 7907.858937] =============================== [ 7907.858939] myshort is a short integer: 1 [ 7907.858941] myint is an integer: 420 [ 7907.858943] mylong is a long integer: 9999 [ 7907.858945] mystring is a string: blah [ 7907.858947] myintArray[0] = -1 [ 7907.858948] myintArray[1] = -1 [ 7907.858950] got 0 arguments for myintArray. I am wondering if there is an issue with the kernel version or the insmod utility. Could you tell me what version of operating system and insmod you are using? I am using a development branch of Ubuntu. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Saucy Salamander (development branch) Release: 13.10 Codename: saucy $ insmod -V kmod version 9 Thanks, Binoy From: sanmukh rao [i.sanmukh@gmail.com] Sent: Friday, September 06, 2013 10:37 AM To: Binoy Jayan (WT01 - Manufacturing & Hi Tech) Cc: kernelnewbies@kernelnewbies.org Subject: Re: module_param does not work in Ubuntu 13.10 - Kernel 3.10.0-4 I have kernel 3.11.0-rc7 and it seems to be working fine. Are you sure the file attached is the correct one or there is no typo? See the output which I got compiling your file and loading it as a module in the attachment. Thanks, Sanmukh On Thu, Sep 5, 2013 at 9:52 PM, <binoy.jayan@wipro.com> wrote: Hi all, I use the kernel version "3.10.0-4" that came with Ubuntu distribution. When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error: # insmod parameter.ko mystring="bebop" Error: could not insert module parameter.ko: Unknown symbol in module Error in dmesg: [ 3687.132110] parameter: Unknown parameter `mystring' However, if I insert the module without any parameters, it gets inserted just fine. # insmod parameter.ko I am attaching the source code for reference. Kindly let me know what could be done. Thanks, Binoy Regards, Binoy Jayan WIPRO TECHNOLOGIES | Electronic City 5 | Bangalore | Mob: +91-9742870916, +91-9745783048 Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
I am out of ideas. I have Ubuntu 13.04 as the OS and the kernel version is 3.11.0-rc7 which I compiled myself. sanmukh@sanmukh-laptop:/config/usb_gadget/g1/strings$ insmod --version kmod version 9 sanmukh@sanmukh-laptop:/config/usb_gadget/g1/strings$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring Thanks, Sanmukh On Thu, Sep 5, 2013 at 10:42 PM, <binoy.jayan@wipro.com> wrote:
HI Sanmukh,
Thank you for testing the code. Yes I am using the same file and there is no typo. When I insert the module it inserts just fine.
In this case mystring takes the default value "blah" as seen in log below.
dmesg:
[ 7907.858933] Demonstrating module parameters [ 7907.858937] =============================== [ 7907.858939] myshort is a short integer: 1 [ 7907.858941] myint is an integer: 420 [ 7907.858943] mylong is a long integer: 9999 [ 7907.858945] mystring is a string: blah [ 7907.858947] myintArray[0] = -1 [ 7907.858948] myintArray[1] = -1 [ 7907.858950] got 0 arguments for myintArray.
I am wondering if there is an issue with the kernel version or the insmod utility.
Could you tell me what version of operating system and insmod you are using? I am using a development branch of Ubuntu.
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Saucy Salamander (development branch) Release: 13.10 Codename: saucy
$ insmod -V kmod version 9
Thanks, Binoy
From: sanmukh rao [i.sanmukh@gmail.com]
Sent: Friday, September 06, 2013 10:37 AM
To: Binoy Jayan (WT01 - Manufacturing & Hi Tech)
Cc: kernelnewbies@kernelnewbies.org
Subject: Re: module_param does not work in Ubuntu 13.10 - Kernel 3.10.0-4
I have kernel 3.11.0-rc7 and it seems to be working fine. Are you sure the file attached is the correct one or there is no typo? See the output which I got compiling your file and loading it as a module in the attachment.
Thanks,
Sanmukh
On Thu, Sep 5, 2013 at 9:52 PM, <binoy.jayan@wipro.com> wrote:
Hi all,
I use the kernel version "3.10.0-4" that came with Ubuntu distribution.
When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error:
# insmod parameter.ko mystring="bebop"
Error: could not insert module parameter.ko: Unknown symbol in module
Error in dmesg:
[ 3687.132110] parameter: Unknown parameter `mystring'
However, if I insert the module without any parameters, it gets inserted just fine.
# insmod parameter.ko
I am attaching the source code for reference. Kindly let me know what could be done.
Thanks,
Binoy
Regards,
Binoy Jayan
WIPRO TECHNOLOGIES
| Electronic City 5
|
Bangalore
| Mob:
+91-9742870916,
+91-9745783048
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
I have also tested, build KO file using your C file, on my kernel and it is working fine. The kernel version is 3.2.11 Why don't you try any other kernel version and see whether you are getting same error or not? I guess, it works. Regards, Srinivas G On Fri, Sep 6, 2013 at 10:22 AM, <binoy.jayan@wipro.com> wrote:
Hi all,
I use the kernel version "3.10.0-4" that came with Ubuntu distribution. When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error:
# insmod parameter.ko mystring="bebop" Error: could not insert module parameter.ko: Unknown symbol in module
Error in dmesg:
[ 3687.132110] parameter: Unknown parameter `mystring'
However, if I insert the module without any parameters, it gets inserted just fine.
# insmod parameter.ko
I am attaching the source code for reference. Kindly let me know what could be done.
Thanks, Binoy
Regards, Binoy Jayan WIPRO TECHNOLOGIES | Electronic City 5 | Bangalore | Mob: +91-9742870916, +91-9745783048
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi Srinivas, Thank you for the inputs. The modules works fine with the kernels that come with Ubuntu 10.04, 11.04, 12.04 and 12.10. But, we are supporting a product for every latest Ubuntu versions. So, I need to make it work with the kernel which comes with the distro alone. So I cannot use a custom kernel from kernel.org. Regards, Binoy Jayan ________________________________ From: Srinivas Ganji [srinivasganji.kernel@gmail.com] Sent: Friday, September 06, 2013 4:34 PM To: Binoy Jayan (WT01 - Manufacturing & Hi Tech) Cc: kernelnewbies@kernelnewbies.org Subject: Re: module_param does not work in Ubuntu 13.10 - Kernel 3.10.0-4 I have also tested, build KO file using your C file, on my kernel and it is working fine. The kernel version is 3.2.11 Why don't you try any other kernel version and see whether you are getting same error or not? I guess, it works. Regards, Srinivas G On Fri, Sep 6, 2013 at 10:22 AM, <binoy.jayan@wipro.com<mailto:binoy.jayan@wipro.com>> wrote: Hi all, I use the kernel version "3.10.0-4" that came with Ubuntu distribution. When I compile the example module I got from LKMPG (hello-5.c) and try to load the driver by passing the module with the following command, it gives the following error: # insmod parameter.ko mystring="bebop" Error: could not insert module parameter.ko: Unknown symbol in module Error in dmesg: [ 3687.132110] parameter: Unknown parameter `mystring' However, if I insert the module without any parameters, it gets inserted just fine. # insmod parameter.ko I am attaching the source code for reference. Kindly let me know what could be done. Thanks, Binoy Regards, Binoy Jayan WIPRO TECHNOLOGIES | Electronic City 5 | Bangalore | Mob: +91-9742870916, +91-9745783048 Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com<http://www.wipro.com> _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org<mailto:Kernelnewbies@kernelnewbies.org> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
participants (3)
-
binoy.jayan@wipro.com -
sanmukh rao -
Srinivas Ganji