Search Linux Wireless

Re: [ath9k-devel] On ath9k debugfs, having trouble recompiling and inserting only ath9k

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2010-04-12 at 00:29 -0500, Rakesh Kumar wrote:
> So I modified few entries in ath9k's debug.c and used them in the
> code. Recompiled the module ath9k, went painlessly. But when I try to
> do following:
> 
> sudo insmod drivers/net/wireless/ath/ath9k/ath9k.ko
> 
> I get the following error: insmod: error inserting
> 'drivers/net/wireless/ath/ath9k/ath9k.ko': -1 Unknown symbol in module

Please use modprobe, not insmod, as modprobe can resolve symbols and
load the requisite modules first.

If modprobe doesn't help, use the "dmesg" command to see the kernel log.
You should see messages about unresolved symbols.  Maybe you misspelled
some function?

> I remember this error occurs when the module being inserted is not
> compiled with the kernel currently running. But in my case, that's not
> true.
> 
> dmesg only yeilds following pertinent line:
> 
> [29471.324717] ath9k: Unable to create debugfs root: -2
> 
> Which indicates a failure to create the root directory under
> /sys/kernel/debug/ath9k/...
> 
> Any ideas on why this is happening would be highly appreciated!

Maybe /sys/kernel/debug/ath9k is already present.  You may want to
reboot to "fix" it.

But I don't think you would get any message from the ath9k module if it
fails to load due to unresolved symbols.

-- 
Regards,
Pavel Roskin
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux