Questions tagged [insmod]

insmod tries to link a module into the running kernel by resolving all symbols from the kernel's exported symbol table.

81 questions
0
votes
1 answer

android insmod init_module failed (required key not available)

can some one help me? I have run imsmod like this: $ insmod /data/mm/mmdev.ko epoll_rate=100 but I got an error: insmod: init_module failed (required key not available) I googled it a lot, but there is no a perfect answer. Thanks in advance.
Rat
  • 357
  • 2
  • 5
  • 16
0
votes
2 answers

Unable to insmod hello_world kernel module in debian 8

I can't get why insmod gives Invalid parameters error (can't see anything in dmesg): $ sudo insmod hello.ko insmod: ERROR: could not insert module hello.ko: Invalid parameters $ sudo insmod /hello.ko insmod: ERROR: could not load module /hello.ko:…
avasin
  • 9,186
  • 18
  • 80
  • 127
0
votes
1 answer

Why would a Linux kernel module symbol not be exported globally properly?

We have written a number of kernel modules and many with exported symbols that all work fine except for 2 symbols (which is baffling). We have exported them as all the others but the 2 symbols are not globally exported once they are inserted into…
user626201
  • 1,623
  • 3
  • 19
  • 36
0
votes
1 answer

While inserting my kernel module INSMOD exits with error "bad address", warns about "Kernel mismatch"

I am developing this module for custom device that, in fact, a 4*8-bit i-o ports attached to ISA bus with addresses 0x0120 - 0x0123. This driver is based on "scull" by Alessandro Rubini and Jonathan Corbet. My OS is Ubuntu 10.04, kernel is…
AV_Master
  • 13
  • 1
  • 4
0
votes
1 answer

beaglebone black insmod modprobe g_mass_storage did NOT work

How to insert module g_mass_storage.ko? It is located at /lib/modules/3.8.6/kernel/drivers/usb/gadget/ with -rw-r--r-- permissions. # insmod g_mass_storage.ko Output: Error: could not load module g_mass_storage.ko: No such file or directory #…
0
votes
1 answer

Can't get kernel message from module

I'm trying a driver for a custom hardware component, the source code can be found here: https://github.com/godspeed1989/zedboard/blob/master/led_drv/driver/myled.c the problem is that when i do: insmod myled.ko nothing is shown in the console or…
Luca
  • 1,270
  • 1
  • 18
  • 34
0
votes
1 answer

kernel module won't link - symbol mutex_lock_nested not found

I am trying to build a kernel module (stress-test tool for a hardware) for a Linux 3.10.45 on x64. So far it seemed to work fine, until adding a mutex. I added mutex using and the functions mutex_init, mutex_lock, mutex_unlock and…
0
votes
1 answer

insmod module param : invalid parameters

I'm developping sample kernel module driver.ko. I want to specify the block size of data_node structure with module parameter BlockSize. when I run insmod driver.ko alone, it works, but when I specify BlockSize insmod driver.ko BlockSize = 10 I get…
user3918238
0
votes
1 answer

insmod helloworld in init.rc before filesystems have mounted on Android

I am trying to modify the init.rc file on Nexus 7 device which is rooted. I want to insmod a simple hello world module before my /userdata/ partition is mounted. Things I have tried: Extracted the boot.img from the device, extracted the ramdisk,…
Tejas Chopra
  • 133
  • 1
  • 2
  • 12
0
votes
1 answer

insmod error "unknown symbol in module"

I am writing parallel LED board driver, .ko is successfully generated. I am facing this issue [63722.594233] led: Unknown symbol parport_register_device (err 0) [63722.594264] led: Unknown symbol parport_register_driver (err 0)
Usr1
  • 369
  • 1
  • 6
  • 15
0
votes
0 answers

Insmod string parameter with whitespace

hi I learn module these day. Today I write a simple module that would take string parameter when using insmod here is code snippet: .... static char *city = "NULL"; MODULE_PARM(city, charp,0000); .... when I type in command line insmod…
Jianchen
  • 303
  • 2
  • 13
0
votes
1 answer

How to override built in ipv6 module with customized ipv6 module in Linux Kernl

I have been using ubuntu version 13.04 which has built in ipv6 module,I have customized the ipv6 module source, I have also generated the customized ipv6.ko. I tried blacklisting the ipv6 module and do a 'insmod ipv6.ko' but it doesnt work..!! It…
Shiney
  • 1
0
votes
1 answer

Porting LTT-ng modules on Android

I was able to successfully port lttng modules for android. I could see required KO files being cross compiled for Panda board by using modinfo command . However, When I try to insert one of the module "lttng-tracer.ko" using insmod, It throws the…
0
votes
1 answer

Error: Unknown symbol in module?

I wrote a simple Linux kernel module: #include #include #include #include static int my_init(void) { machine_power_off(); return 0; } static void my_exit(void) { …
Amir Saniyan
  • 13,014
  • 20
  • 92
  • 137
0
votes
1 answer

how do you install the module commands like ins mod,etc

I have to load a kernel module to run a program. I searched online and found out I need to use commands like insmod, etc to do that. But the command doesn't seem to be installed in my laptop. I am working on a Mac. I tried running as a admin by sudo…
sa_nyc
  • 971
  • 1
  • 13
  • 23