Skip to contentSkip to conversation

how to enable ath9k debug

ath9k-devel Jinsung Lee 4 participants 7 messages Oct 20, 2009 – Oct 21, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Dear all,

I looked at the webpage:
http://linuxwireless.org/en/users/Drivers/ath9k/debug .

It seems like the debug mode needs kernel compile, which needs to enable "CONFIG_ATH9K_DEBUG" option.

But is there any method for enabling ath9k debug mode without any kernel compile?

At this time, when only entering the command " modprobe ath9k debug=0xffffffff", I can't find any mounted debugfs files in /sys/kernel/debug/ folder.

Your comments would be greatly helpful to me.

Thanks in advance.

--

Regards,

Jinsung Lee

--

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20091020/211377e9/attachment.htm

#2 lore raw
In reply to Jinsung Lee
Quoted 4 lines · Jinsung Lee

At this time, when only entering the command " modprobe ath9k debug=0xffffffff", I can't find any mounted debugfs files in /sys/kernel/debug/ folder.

You need to mount debugfs for that. Run the command as root:
mount -t debugfs debugfs /sys/kernel/debug

Kunal

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 10 lines · you

Dear Kunal,

Thanks for your reply.
Yes, I entered the command as you mentioned below.
But, I can't find any ath9k folder in /sys/kernel/debug/. Thus, is it necessary to compile the kernel with "CONFIG_ATH9K_DEBUG" option first?
That's what I'm wondering.
Thanks.

Unfortunately, yes, you need to compile the kernel with CONFIG_ATH9K_DEBUG.

If you don't want to touch the kernel, you might want to get compat-wireless and compile only the modules with whatever config you want. compat-wireless is available at:
http://linuxwireless.org/en/users/Download

After downloading the tarball, extract it and run driver-select - as shown on the above page.

After that, edit the config.mk file in the directory. Add 'CONFIG_ATH9K_DEBUG=y' in that file somewhere around 'CONFIG_ATH9K=m' line and build the driver using 'make'. Follow the rest of the instructions from the above page on how to install the driver.

Hope this helps ;)

Kunal

#5 lore raw
Quoted 12 lines · Kunal Gangakhedkar
Quoted 10 lines · you

Dear Kunal,

Thanks for your reply.
Yes, I entered the command as you mentioned below.
But, I can't find any ath9k folder in /sys/kernel/debug/. Thus, is it necessary to compile the kernel with "CONFIG_ATH9K_DEBUG" option first?
That's what I'm wondering.
Thanks.

Quoted 1 line

Unfortunately, yes, you need to compile the kernel with CONFIG_ATH9K_DEBUG.

Just FYI with bleeding edge you can now get debug prints even without CONFIG_ATH9K_DEBUG.

Luis

#6 lore raw
Quoted 14 lines · Luis R. Rodriguez

On Wed, Oct 21, 2009 at 12:49 AM, Kunal Gangakhedkar

Quoted 11 lines · <[email protected]> wrote:
Quoted 9 lines · you

Dear Kunal,

Thanks for your reply.
Yes, I entered the command as you mentioned below.
But, I can't find any ath9k folder in /sys/kernel/debug/. Thus, is it necessary to compile the kernel with "CONFIG_ATH9K_DEBUG" option first?
That's what I'm wondering.
Thanks.

Quoted 6 lines
Quoted 2 lines

Unfortunately, yes, you need to compile the kernel with CONFIG_ATH9K_DEBUG.

Just FYI with bleeding edge you can now get debug prints even without CONFIG_ATH9K_DEBUG.

I guess, the OP was interested in the debugfs part and not just the debug prints. I don't know if even the debugfs part is available without CONFIG_ATH9K_DEBUG.

You can see that in the quoted mail about.

Kunal

#7 lore raw
Quoted 18 lines · Kunal Gangakhedkar
Quoted 17 lines · Luis R. Rodriguez

On Wed, Oct 21, 2009 at 12:49 AM, Kunal Gangakhedkar

Quoted 13 lines · <[email protected]> wrote:
Quoted 9 lines · you

Dear Kunal,

Thanks for your reply.
Yes, I entered the command as you mentioned below.
But, I can't find any ath9k folder in /sys/kernel/debug/. Thus, is it necessary to compile the kernel with "CONFIG_ATH9K_DEBUG" option first?
That's what I'm wondering.
Thanks.

Unfortunately, yes, you need to compile the kernel with CONFIG_ATH9K_DEBUG.

Quoted 7 lines
Quoted 3 lines

Just FYI with bleeding edge you can now get debug prints even without CONFIG_ATH9K_DEBUG.

I guess, the OP was interested in the debugfs part and not just the debug prints. I don't know if even the debugfs part is available without CONFIG_ATH9K_DEBUG.

Yeah debugfs part requires CONFIG_ATH9K_DEBUG.

Luis