Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insmod: ERROR: could not insert module ./mt7601u.ko: Unknown symbol in module #2

Closed
ghost opened this issue Feb 18, 2015 · 7 comments
Closed

Comments

@ghost
Copy link

ghost commented Feb 18, 2015

I have the following setup:

  • Ubuntu 14.04 LTS x64
  • 3.19.0-031900-generic #201502091451 kernel

I copied mt7601.bin from https://github.com/porjo/mt7601 to /lib/firmware/mt7601u.bin with command:

# cp src/mcu/bin/MT7601.bin /lib/firmware/mt7601u.bin

Driver compiled succesfully with following output:

miltador@miltahome:~/mt7601u$ make
make -C /lib/modules/`uname -r`/build M=$PWD
make[1]: Вход в каталог `/usr/src/linux-headers-3.19.0-031900-generic'
  LD      /home/miltador/mt7601u/built-in.o
  CC [M]  /home/miltador/mt7601u/usb.o
  CC [M]  /home/miltador/mt7601u/init.o
  CC [M]  /home/miltador/mt7601u/main.o
  CC [M]  /home/miltador/mt7601u/mcu.o
  CC [M]  /home/miltador/mt7601u/trace.o
  CC [M]  /home/miltador/mt7601u/dma.o
  CC [M]  /home/miltador/mt7601u/eeprom.o
  CC [M]  /home/miltador/mt7601u/phy.o
  CC [M]  /home/miltador/mt7601u/mac.o
  CC [M]  /home/miltador/mt7601u/debugfs.o
  CC [M]  /home/miltador/mt7601u/tx.o
  LD [M]  /home/miltador/mt7601u/mt7601u.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/miltador/mt7601u/mt7601u.mod.o
  LD [M]  /home/miltador/mt7601u/mt7601u.ko
make[1]: Выход из каталога `/usr/src/linux-headers-3.19.0-031900-generic

But when I try insmod I get the error:

root@miltahome:/home/miltador/mt7601u# insmod ./mt7601u.ko
insmod: ERROR: could not insert module ./mt7601u.ko: Unknown symbol in module
@kuba-moo
Copy link
Owner

I think in the kernel logs there should be information which symbol he has a problem with. Kernel logs are in the file kern.log or you can display them by typing dmesg.

@ghost
Copy link
Author

ghost commented Feb 18, 2015

dmesg output:

[ 4152.654075] mt7601u: Unknown symbol ieee80211_start_tx_ba_cb_irqsafe (err 0)
[ 4152.654099] mt7601u: Unknown symbol ieee80211_tx_status_noskb (err 0)
[ 4152.654116] mt7601u: Unknown symbol ieee80211_free_hw (err 0)
[ 4152.654139] mt7601u: Unknown symbol ieee80211_register_hw (err 0)
[ 4152.654147] mt7601u: Unknown symbol ieee80211_get_hdrlen_from_skb (err 0)
[ 4152.654157] mt7601u: Unknown symbol ieee80211_wake_queue (err 0)
[ 4152.654171] mt7601u: Unknown symbol ieee80211_get_tx_rates (err 0)
[ 4152.654178] mt7601u: Unknown symbol ieee80211_send_bar (err 0)
[ 4152.654196] mt7601u: Unknown symbol ieee80211_stop_tx_ba_cb_irqsafe (err 0)
[ 4152.654206] mt7601u: Unknown symbol ieee80211_queue_delayed_work (err 0)
[ 4152.654220] mt7601u: Unknown symbol ieee80211_rx (err 0)
[ 4152.654231] mt7601u: Unknown symbol ieee80211_wake_queues (err 0)
[ 4152.654239] mt7601u: Unknown symbol ieee80211_free_txskb (err 0)
[ 4152.654246] mt7601u: Unknown symbol ieee80211_alloc_hw_nm (err 0)
[ 4152.654259] mt7601u: Unknown symbol ieee80211_tx_status (err 0)
[ 4152.654265] mt7601u: Unknown symbol ieee80211_stop_queue (err 0)
[ 4152.654271] mt7601u: Unknown symbol ieee80211_stop_queues (err 0)
[ 4152.654283] mt7601u: Unknown symbol ieee80211_unregister_hw (err 0)

@kuba-moo
Copy link
Owner

Ouch, sure, my bad. Type modprobe mac80211 and then insmod ./mt7601u.ko.

@ghost
Copy link
Author

ghost commented Feb 18, 2015

Now it works! Thanks. Please, consider to update this in README.

@kuba-moo
Copy link
Owner

Yep, will do. Thanks for being the first user ;)

@ghost
Copy link
Author

ghost commented Feb 18, 2015

My aim is to get my wifi dongle working with Raspberry Pi and OpenELEC as there is no driver in there. The previous driver https://github.com/porjo/mt7601 didn't work for me. I am going to test this one on raspberry today.

@ghost ghost closed this as completed Feb 18, 2015
kuba-moo added a commit that referenced this issue Feb 18, 2015
Issue-id: #2
Reported-by: Vasiliy Solovey <miltador@yandex.ua>
Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
@kuba-moo
Copy link
Owner

Ok, I pushed two commits which should fix both of your issues. Let me know how it goes with the Pi.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant