* On ath9k debugfs, having trouble recompiling and inserting only ath9k
@ 2010-04-12 5:29 Rakesh Kumar
2010-04-12 21:49 ` [ath9k-devel] " Pavel Roskin
0 siblings, 1 reply; 3+ messages in thread
From: Rakesh Kumar @ 2010-04-12 5:29 UTC (permalink / raw)
To: ath9k-devel, linux-wireless; +Cc: Luis R. Rodriguez
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
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!
--
Rakesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ath9k-devel] On ath9k debugfs, having trouble recompiling and inserting only ath9k
2010-04-12 5:29 On ath9k debugfs, having trouble recompiling and inserting only ath9k Rakesh Kumar
@ 2010-04-12 21:49 ` Pavel Roskin
2010-04-16 1:46 ` Rakesh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2010-04-12 21:49 UTC (permalink / raw)
To: Rakesh Kumar; +Cc: ath9k-devel, linux-wireless
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ath9k-devel] On ath9k debugfs, having trouble recompiling and inserting only ath9k
2010-04-12 21:49 ` [ath9k-devel] " Pavel Roskin
@ 2010-04-16 1:46 ` Rakesh Kumar
0 siblings, 0 replies; 3+ messages in thread
From: Rakesh Kumar @ 2010-04-16 1:46 UTC (permalink / raw)
To: Pavel Roskin; +Cc: ath9k-devel, linux-wireless
> Maybe /sys/kernel/debug/ath9k is already present. You may want to
> reboot to "fix" it.
Yeah, it was due to the order of delete entry calls. I had included
one more debugfs u8 entry which was being deleted after the
directory's entry and thus not being deleted at all and on the next
run it would cause trouble on creation. Thanks.
--
Rakesh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-16 1:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-12 5:29 On ath9k debugfs, having trouble recompiling and inserting only ath9k Rakesh Kumar
2010-04-12 21:49 ` [ath9k-devel] " Pavel Roskin
2010-04-16 1:46 ` Rakesh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).