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

iiab-diagnostics: dmesg | grep -i <about 9 WiFi patterns> | head -100 (firmware/driver msgs) #3333

Merged
merged 4 commits into from
Aug 5, 2022

Conversation

holta
Copy link
Member

@holta holta commented Aug 3, 2022

@jvonau, @shanti-bhardwa & others: are 100 lines really useful/necessary?

Or should this number be reduced?

Not quite related but just fyi this was also just added:

@holta holta added this to the 8.0 milestone Aug 3, 2022
@holta holta changed the title Iiab-diagnostics: dmesg | tail -100 (kernel/driver messages) iiab-diagnostics: dmesg | tail -100 (kernel/driver messages) Aug 3, 2022
@holta
Copy link
Member Author

holta commented Aug 4, 2022

Or is a targeted grep-like extract of dmesg output... more useful?

(Anything like the following possibly?)

root@iiab-mint01:~# dmesg | grep -i -e 80211 -e 802\.11 -e wireless -e wlan0
[   16.126273] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   16.138932] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   16.818795] wlan0: Broadcom BCM4315 802.11 Hybrid Wireless Controller 6.30.223.271 (r587334)
[   17.220686] wl 0000:0c:00.0 wlp12s0: renamed from wlan0

@jvonau
Copy link
Contributor

jvonau commented Aug 4, 2022

That is pretty concise and you have the timestamps as a pointer for other events that might be recorded in the journal.

@holta
Copy link
Member Author

holta commented Aug 4, 2022

dmesg | grep -i -e 80211 -e 802\.11 -e wireless -e wlan0`

That is pretty concise and you have the timestamps as a pointer for other events that might be recorded in the journal.

Ok.

Probably it should be moved up and combined with Line 219 in that case:

cat_cmd 'dmesg | grep brcm' 'Diagnostic messages: RPi Wi-Fi firmware'

@shanti-bhardwa does this cover your driver monitoring needs — or are there more grep keywords that we should add?

@holta holta closed this Aug 4, 2022
@holta holta reopened this Aug 4, 2022
@holta
Copy link
Member Author

holta commented Aug 4, 2022

5 more grep keywords that should probably be added? (to grep through dmesg output!)

  • wifi
  • realtek
  • broadcom
  • brcm
  • bcm

Any others?

@holta holta changed the title iiab-diagnostics: dmesg | tail -100 (kernel/driver messages) iiab-diagnostics: dmesg | grep -i <about 9 WiFi patterns> | head -100 (firmware/driver msgs) Aug 4, 2022
@holta
Copy link
Member Author

holta commented Aug 4, 2022

These 9 grep patterns (to tighten up dmesg output into <= 100 lines) might appear long-winded.
But they do serve a function.

In Summary: The current list of 9 patterns can be shrunk or expanded — e.g. if other dominant keywords are appropriate, beyond just {brcm, realtek, etc} ?

@holta
Copy link
Member Author

holta commented Aug 5, 2022

Good enough.

This can be further revised in future if/as nec.

@holta holta merged commit 52dc081 into iiab:master Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants