DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th January 2016
bceverly bceverly is offline
Shell Scout
 
Join Date: Mar 2015
Posts: 88
Question Advice on troubleshooting an issue

Hi everyone,

I've noticed on my 13" Retina Macbook Pro that my urtwm WiFi suddenly stops working. It doesn't detatch it just stops routing packets. I can generally solve it by unplugging the USB dongle (rebooting doesn't seem to help) and plugging it back in. It seems to be related more to lack of traffic on the interface versus failing after a certain period of time. I've tried using -powersave on ifconfig but that didn't address it.

I have a second issue with the wired Ethernet adapter in my hppa C3700 where I'm getting watchdog timeouts.

My question is this - what troubleshooting can I do or what data can I gather to help identify where the problem is occurring or at the very least provide the right data to the bugs@ list to help point them in the right direction?

Any help would be appreciated!
Reply With Quote
  #2   (View Single Post)  
Old 15th January 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

WLAN NIC communication problems

These are tough to debug. We have the same model amd64 laptop, and my rtwn(4) NIC that will do the same thing every once and awhile. I assume yours is working fine. Both of us might find enabling debugging tools in our kernels would help. RTWN_DEBUG for me, and URTWN_DEBUG for you. We'd need to build kernels with these debug flags enabled -- see the -D option of make(1).

If these things were easily repeatable, we could capture 802.11 radio traffic with tcpdump at the same time. In my case it's intermittent, and easily restartable.

Watchdog timeouts on NICs

These are sometimes hardware problems -- in some instances it can be due to physical media issues (cable failures), but more often when it is hardware it's a NIC media adapter -- and these are integrated in the NICs. Sometimes there are poor slot connections, and problems like these can be cured by reseating a NIC card.

A debugging flag for your wired Ethernet can be found in the driver source code. For example, I found the RTWN_DEBUG flag in /usr/src/sys/dev/pci/if_rtwn.c.
Reply With Quote
  #3   (View Single Post)  
Old 15th January 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

OK, I'm taking my own advice, and building a kernel with RTWN_DEBUG.

The make(1) -D option is not used. Instead, build a custom kernel with option XXX_DEBUG.

For example:
Code:
$ cd /usr/src/sys/arch/amd64/conf
$ cp GENERIC.MP RTWN
$ echo option RTWN_DEBUG >> RTWN
$ config RTWN
$ cd ../compile/RTWN
$ make
Reply With Quote
  #4   (View Single Post)  
Old 15th January 2016
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I'm eating my own dog food, as they say. Running the custom kernel, and have enabled the debugging variable rtwn_debug via ddb(4). You can do that by entering ddb() from the console via sysctl settings, or by booting the kernel with -d.

According to if_rtwn.c, there are multipld debugging levels. 0 = none, 1 or more enables printf reporting, 2+ dumps ROM contents, 4+ dumps transmit power levels. Every driver may be different, so review your applicable driver source.
Reply With Quote
  #5   (View Single Post)  
Old 15th January 2016
bceverly bceverly is offline
Shell Scout
 
Join Date: Mar 2015
Posts: 88
Default

@jggimi

You rock (as always)! Thank you so much for the suggestions. I now have some fun work for the weekend.

:-)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ethernet port becomes unresponsive - troubleshooting suggestions kbeaucha OpenBSD General 4 15th March 2013 05:34 PM
need help with troubleshooting pf.conf tinhead OpenBSD Security 11 25th March 2011 09:34 PM
need troubleshooting tip for vpn connections badguy OpenBSD Security 19 10th November 2010 02:53 PM
Advice on DVD playback sought Vahagn FreeBSD General 10 14th November 2008 08:09 PM


All times are GMT. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick