User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Raspberry Pi keeps crashing

Fri Nov 09, 2018 9:38 pm

Good Evening,

I've got two Raspberry Pi's with the same basic hardware (model 2 Pi's running Raspbian Stretch with up to date OS and long range external Ralink USB WiFi adapters). Each box acts as a router between my internal network 192.168.0.x on eth0 and one of two external free WiFi service providers running on wlan1, with wlan0 (internal WiFi) being disabled.

The systems run fine for hours, then I start getting ever increasing errors in the kern.log file which end up with a crash.
Nov 9 21:26:58 WolfRouter kernel: [ 1313.759411] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1130 with error -110
Nov 9 21:26:58 WolfRouter kernel: [ 1313.879401] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1134 with error -110
Nov 9 21:26:58 WolfRouter kernel: [ 1313.999395] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1138 with error -110
Nov 9 21:26:58 WolfRouter kernel: [ 1314.369433] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1130 with error -110
Nov 9 21:26:59 WolfRouter kernel: [ 1314.489406] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1134 with error -110
Nov 9 21:26:59 WolfRouter kernel: [ 1314.609404] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1138 with error -110
Nov 9 21:26:59 WolfRouter kernel: [ 1314.979413] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1130 with error -110
Nov 9 21:26:59 WolfRouter kernel: [ 1315.099410] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1134 with error -110
Nov 9 21:26:59 WolfRouter kernel: [ 1315.219403] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1138 with error -110
Nov 9 21:26:59 WolfRouter kernel: [ 1315.230126] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -71
Nov 9 21:26:59 WolfRouter kernel: [ 1315.230135] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Nov 9 21:26:59 WolfRouter kernel: [ 1315.230140] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Nov 9 21:26:59 WolfRouter kernel: [ 1315.230267] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -71
Nov 9 21:26:59 WolfRouter kernel: [ 1315.230272] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Nov 9 21:26:59 WolfRouter kernel: [ 1315.230276] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Nov 9 21:26:59 WolfRouter kernel: [ 1315.233601] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -71
Nov 9 21:26:59 WolfRouter kernel: [ 1315.233613] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Nov 9 21:26:59 WolfRouter kernel: [ 1315.233618] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Nov 9 21:26:59 WolfRouter kernel: [ 1315.233754] smsc95xx 1-1.1:1.0 eth0: Failed to read reg index 0x00000114: -71
Nov 9 21:26:59 WolfRouter kernel: [ 1315.233759] smsc95xx 1-1.1:1.0 eth0: Error reading MII_ACCESS
Nov 9 21:26:59 WolfRouter kernel: [ 1315.233764] smsc95xx 1-1.1:1.0 eth0: MII is busy in smsc95xx_mdio_read
Nov 9 21:26:59 WolfRouter kernel: [ 1315.349617] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1700 with error -110
Nov 9 21:27:00 WolfRouter kernel: [ 1315.589406] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x07 failed for offset 0x1130 with error -110
NNov 9 21:17:03 WolfRouter kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Nov 9 21:17:03 WolfRouter kernel: [ 0.000000] Linux version 4.19.1-v7+ ([email protected]) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1160 SMP Mon Nov 5 13:43:02 GMT 2018
Nov 9 21:17:03 WolfRouter kernel: [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
I don't even know where to begin...

Regards,
KoLF
Time is the fire in which we burn - Delmore Schwartz

Andyroo
Posts: 433
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: Raspberry Pi keeps crashing

Fri Nov 09, 2018 10:17 pm

The first 0x07 error points to a USB problem, possibly power but most likely a driver issue.

Two things to check:

1) Do you have a solid power supply (i.e. an official one)?
2) You need to track the latest drivers for the chips in the WiFi dongle - these may not be the manufacturer of the dongle :roll:
Need Pi spray - these things are breeding in my house...

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Fri Nov 09, 2018 10:29 pm

Andyroo wrote:
Fri Nov 09, 2018 10:17 pm
1) Do you have a solid power supply (i.e. an official one)?
Yup. White official Raspberry Pi power supply with raspberry branded logo on the back purchased from Farnell Electronics.
Andyroo wrote:
Fri Nov 09, 2018 10:17 pm
2) You need to track the latest drivers for the chips in the WiFi dongle - these may not be the manufacturer of the dongle :roll:
Which I suspect highlights the problem.

The antennae itself is pretty specialised, being a strong 3 Watt USB Wireless Wifi 802.11B/G Adapter, based around a generic version of a Ralink RT3070. Not quite sure where I would find the right adapter for it.

Basically this:

https://www.ebay.co.uk/itm/Wireless-WiF ... SwzbxacoOu
Time is the fire in which we burn - Delmore Schwartz

Andyroo
Posts: 433
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: Raspberry Pi keeps crashing

Sat Nov 10, 2018 12:11 am

Wonder how much power that takes? Maybe worth trying a powered hub???

As for checking the chipset one of the following may help. You may need to install them with sudo apt-get first though:

Code: Select all

lshw -C network

or

lsusb

or

lsmod | grep -i wifi
Need Pi spray - these things are breeding in my house...

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Sat Nov 10, 2018 12:24 am

Andyroo wrote:
Sat Nov 10, 2018 12:11 am
Wonder how much power that takes? Maybe worth trying a powered hub???
Adding that to the list of options...
Andyroo wrote:
Sat Nov 10, 2018 12:11 am
As for checking the chipset one of the following may help. You may need to install them with sudo apt-get first though:
Literally by the numbers...

1.

Code: Select all

 $ sudo lshw -C network && vi
  *-network:0
       description: Wireless interface
       physical id: 2
       bus info: [email protected]:1.3
       logical name: wlan1
       serial: 52:ba:80:e0:cc:c0
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rt2800usb driverversion=4.19.1-v7+ firmware=0.29 ip=10.0.19.92 link=yes multicast=yes wireless=IEEE 802.11
  *-network:1 DISABLED
       description: Wireless interface
       physical id: 3
       logical name: wlan0
       serial: b8:27:eb:15:f8:fb
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=brcmfmac driverversion=7.45.98.38 firmware=01-e58d219f multicast=yes wireless=IEEE 802.11
  *-network:2
       description: Ethernet interface
       physical id: 4
       logical name: eth0
       serial: b8:27:eb:40:ad:ae
       size: 100Mbit/s
       capacity: 100Mbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=smsc95xx driverversion=22-Aug-2005 duplex=full firmware=smsc95xx USB 2.0 Ethernet ip=192.168.0.1 link=yes multicast=yes port=MII speed=100Mbit/s
2.

Code: Select all

$ sudo lsusb
Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
3.

Code: Select all

$ lsmod
Module                  Size  Used by
fuse                  110592  5
ipt_MASQUERADE         16384  1
iptable_nat            16384  1
nf_nat_ipv4            16384  2 ipt_MASQUERADE,iptable_nat
iptable_raw            16384  0
iptable_mangle         16384  0
arc4                   16384  2
rt2800usb              28672  0
rt2800lib             102400  1 rt2800usb
rt2x00usb              24576  1 rt2800usb
rt2x00lib              57344  3 rt2800lib,rt2800usb,rt2x00usb
brcmfmac              311296  0
mac80211              692224  3 rt2800lib,rt2x00lib,rt2x00usb
brcmutil               16384  1 brcmfmac
crc_ccitt              16384  1 rt2800lib
sha256_generic         20480  0
cfg80211              614400  3 rt2x00lib,mac80211,brcmfmac
rfkill                 28672  5 cfg80211
snd_bcm2835            32768  2
snd_pcm               102400  1 snd_bcm2835
raspberrypi_hwmon      16384  0
hwmon                  16384  1 raspberrypi_hwmon
snd_timer              32768  1 snd_pcm
snd                    73728  7 snd_timer,snd_bcm2835,snd_pcm
fixed                  16384  0
uio_pdrv_genirq        16384  0
uio                    20480  1 uio_pdrv_genirq
ip6t_REJECT            16384  0
nf_reject_ipv6         16384  1 ip6t_REJECT
nf_log_ipv6            16384  0
xt_hl                  16384  0
ip6t_rt                16384  0
ipt_REJECT             16384  0
nf_reject_ipv4         16384  1 ipt_REJECT
nf_log_ipv4            16384  0
nf_log_common          16384  2 nf_log_ipv6,nf_log_ipv4
xt_LOG                 16384  0
xt_limit               16384  0
xt_tcpudp              16384  0
xt_addrtype            16384  0
xt_conntrack           16384  1
ip6table_filter        16384  0
ip6_tables             24576  1 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 36864  2 nf_nat_ftp,nf_nat_ipv4
nf_conntrack_ftp       16384  1 nf_nat_ftp
nf_conntrack          131072  8 nf_conntrack_ftp,ipt_MASQUERADE,nf_conntrack_broadcast,nf_nat_ftp,nf_conntrack_netbios_ns,xt_conntrack,nf_nat_ipv4,nf_nat
nf_defrag_ipv6         20480  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
iptable_filter         16384  1
i2c_dev                16384  0
ip_tables              24576  4 iptable_mangle,iptable_filter,iptable_raw,iptable_nat
x_tables               32768  16 xt_LOG,ipt_REJECT,iptable_mangle,ip_tables,iptable_filter,xt_tcpudp,iptable_raw,ipt_MASQUERADE,xt_limit,ip6t_REJECT,ip6table_filter,xt_addrtype,ip6t_rt,xt_conntrack,ip6_tables,xt_hl
ipv6                  450560  87 nf_reject_ipv6
Time is the fire in which we burn - Delmore Schwartz

Andyroo
Posts: 433
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: Raspberry Pi keeps crashing

Sat Nov 10, 2018 12:52 am

Looks like problems with this driver has been around for a long while https://raspberrypi.stackexchange.com/q ... iver#17179

I would make a copy of your SD card before trying some of these though (me being paranoid as I cannot test them for you first).

Interestingly the chipset is the RT2870/RT3070 Wireless Adapter and notes here viewtopic.php?p=394960 talk about compiling drivers and making sure you are up to date with the OS.

There is a note to try this package https://packages.debian.org/search?keyw ... are-ralink from https://wiki.debian.org/rt2870sta but this is getting beyond me :oops:
Need Pi spray - these things are breeding in my house...

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Sat Nov 10, 2018 4:36 am

A couple of mentions of the hardware encryption being broken. I'm going to try turning that off (essentially passing encryption onto the CPU for software emulation - I think...)

Code: Select all

$ ls -lart /etc/modprobe.d/rt2800usb.conf
-rw-r--r-- 1 root root 30 Nov 10 04:48 /etc/modprobe.d/rt2800usb.conf

$ cat /etc/modprobe.d/rt2800usb.conf
options rt2800usb nohwcrypt=1
I've also modified /etc/apt/sources.list to include:
deb http://http.debian.net/debian/ stretch main contrib non-free

I think I'm up to date in terms of Raspbian (Stretch)

Code: Select all

$ uname -a
Linux WolfRouter 4.19.1-v7+ #1160 SMP Mon Nov 5 13:43:02 GMT 2018 armv7l GNU/Linux
Further info in the form of modinfo output for specific driver (rt2800usb). I'm also going to see if the hardware vendor (MediaTek) has an updated Arm driver for Debian Stretch - probably asking for the moon...plus working in the grey areas of my limits of competence. I used to be a programmer in the dim and distant past, but that was very different from driver software.

Code: Select all

 $ modinfo rt2800usb
filename:       /lib/modules/4.19.1-v7+/kernel/drivers/net/wireless/ralink/rt2x00/rt2800usb.ko
license:        GPL
firmware:       rt2870.bin
description:    Ralink RT2800 USB Wireless LAN driver.
version:        2.3.0
author:         http://rt2x00.serialmonkey.com
srcversion:     FEBC4C1F96FEAE2A7985E9A
alias:          usb:vF201p5370d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0254d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApF511d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApD522d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApC522d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApA512d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0078d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p006Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0069d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0053d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p004Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p004Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p003Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v08B9p1197d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v18E8p6259d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB29d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB24d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1D4Dp0010d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v05A6p0101d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v100Dp9032d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0169d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0168d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0615d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0605d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp094Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148FpF101d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v06F8pE036d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1044p800Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v15A9p0010d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0602d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p0600d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v203Dp14A1d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C0Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v18C5p0008d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07AAp0042d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07AAp0041d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0150d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0148d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p012Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1003d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3401d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3400d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3399d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3340d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3322d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3284d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3262d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17A7d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1790d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1761d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1760d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p166Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E0Bp9041d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E0Bp9031d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C11d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C08d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p3074d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p3073d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p724Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp5572d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v043Ep7A13d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C21d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C1Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0253d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0241d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v057Cp8501d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v043Ep7A32d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp5372d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp5370d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p2182d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p2181d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p2180d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p2126d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p2104d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04DAp23F6d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04DAp1800d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04DAp1801d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v043Ep7A42d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v043Ep7A22d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C23d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C22d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C20d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C1Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C1Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C1Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C19d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C15d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3365d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3329d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17E8d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v043Ep7A32d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v043Ep7A12d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3421d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p006Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p006Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0067d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp3573d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pED19d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9019d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9013d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0846p9012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p016Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p003Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp094Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0021d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0020d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7733d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C1Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148FpF301d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp1103d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17ADd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p17BCd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1B75p7733d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v5A57p0284d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0930p0A07d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0068d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0066d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0065d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0062d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0041d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp3572d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0170d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1737p0079d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p002Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0944d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9801d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v167Bp4001d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p179Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1690p0764d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1690p0761d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1690p0744d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p3572d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0165d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0163d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0050d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp8070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp3370d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p20DDd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApB512d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApB511d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C17d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp945Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p343Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p341Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p341Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3418d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0586p3416d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v5A57p5257d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v5A57p0283d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v5A57p0282d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v5A57p0280d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0CDEp0025d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0CDEp0022d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v157Ep3013d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v157Ep300Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0324d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0323d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0313d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0302d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0164d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v177Fp0153d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v15A9p0006d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApB522d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApA703d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApA702d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApA701d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083ApA618d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083Ap8522d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083Ap7522d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083Ap7512d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083Ap7511d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v083Ap6618d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0060d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p005Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0051d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0048d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0047d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0042d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0040d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p003Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p003Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p003Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p003Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0039d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p002Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p002Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p002Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DF6p0017d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v129Bp1828d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04E8p2018d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp3072d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp3071d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp3070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp2870d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp2770d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v148Fp2070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1A32p0304d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pED06d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019pAB25d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2019p5201d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0471p200Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1D4Dp0011d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1D4Dp000Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1D4Dp000Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1D4Dp0002d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20B8p8888d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1B75pA200d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1B75p3072d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1B75p3071d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1B75p3070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p899Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p871Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p871Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p871Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p870Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p822Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p822Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p822Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p821Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p6899d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p3871d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p3870d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p3822d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p3821d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0DB0p3820d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v100Dp9031d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0166d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0164d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0163d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0789p0162d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1737p0078d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1737p0077d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1737p0071d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1737p0070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13B1p0031d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0948d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0947d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v04BBp0945d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0018d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0017d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0013d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p000Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0009d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0003d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0001d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1044p800Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1044p800Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v15A9p0012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9709d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9708d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9707d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9706d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9705d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9703d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9702d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1740p9701d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v203Dp14A9d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v203Dp1480d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7722d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7718d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7717d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p7711d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392p4085d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0FE9pB307d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07FAp7712d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C25d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3C1Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p3317d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C17d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C16d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C15d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C13d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C11d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C0Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C0Ed*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C0Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C0Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07D1p3C09d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v18C5p0012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07AAp003Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07AAp003Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07AAp002Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p01FDd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p01A8d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p01EEd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p01A2d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p016Fd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p015Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p0158d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0411p00E8d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp935Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp935Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp825Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp825Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp815Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp805Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v050Dp8053d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3321d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3307d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3305d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3273d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v13D3p3247d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1761p0B05d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1784d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1742d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1732d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1731d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1690p0740d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v15C5p0008d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C2Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C28d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C27d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C25d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C23d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C12d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C09d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C07d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v14B2p3C06d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p3072d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p3071d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p3070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p2870d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p2770d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v8516p2070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1EDAp2310d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1EDAp2210d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1EDAp2012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v1482p3C09d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p3072d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p3071d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p3070d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p2770d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v07B8p2870d*dc*dsc*dp*ic*isc*ip*in*
depends:        rt2x00usb,rt2x00lib,rt2800lib
intree:         Y
name:           rt2800usb
vermagic:       4.19.1-v7+ SMP mod_unload modversions ARMv7 p2v8
parm:           nohwcrypt:Disable hardware encryption. (bool)
Time is the fire in which we burn - Delmore Schwartz

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Sat Nov 10, 2018 6:39 am

Okay, finally got to the point where I've updated, upgraded, autoremoved and cleaned with the non-free sources.

# apt-get install firmware-misc-nonfree

Installed and rebooted. It works as before, but only time will tell (a couple of hours at least). I will report back with progress.

If this doesn't work (and I have to acknowledge that it might not), then I will probably hack it by doing a tail -f monitor of /var/log/kern.log and when it shows the errors appearing, just doing an automatic reboot.

I hate myself for having to do this sort of thing, but it beats constantly having to root about behind the desk to unplug the power supply and plug it back in again.

:roll:
Time is the fire in which we burn - Delmore Schwartz

Andyroo
Posts: 433
Joined: Sat Jun 16, 2018 12:49 am
Location: Side of the hill in Lincolnshire

Re: Raspberry Pi keeps crashing

Sat Nov 10, 2018 10:35 pm

Don’t leave me hanging like this - did it work?

:D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D
Need Pi spray - these things are breeding in my house...

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Sun Nov 11, 2018 1:00 pm

The problem is reduced, but it is still occurring. :?

I've modified the Power Management to disable WiFi power management at reboot (below) and I've cleared the /var/log/kern.log as well before rebooting.

sudo iwconfig wlan0 power off
sudo iwconfig wlan1 power off

Going to see if this helps any...
Time is the fire in which we burn - Delmore Schwartz

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Sun Nov 11, 2018 3:03 pm

Nope. Still the same problem.

/var/log/kern.log is completely filled with these errors up to the point where it crashes and I have to power off / power on to reset.

Code: Select all

Nov 11 14:50:54 WolfRouter kernel: [  803.688390] ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request 0x06 failed for offset 0x0224 with error -110
Time is the fire in which we burn - Delmore Schwartz

User avatar
KingOfLostFools
Posts: 13
Joined: Thu Oct 05, 2017 9:17 pm
Location: Perth, Scotland
Contact: Website

Re: Raspberry Pi keeps crashing

Sun Nov 11, 2018 3:40 pm

Gah! Giving up on this pointless fight (unless anyone can follow-up with an actual answer). The attached root crontab entry runs the WirelessErrors.sh script once per minute and if it finds more than 20 of the known wireless errors in /var/log/kern.log it makes a note of it in the Reboot.log file (kept for this and similar purposes), makes a backup of the /var/log/kern.log file before clearing it and rebooting.

Since the only purpose of these machines is to act as an external gateway to the internet (which they fail to perform only when this error occurs), then the reboot, provided it is pretty infrequent (i.e. a small number of times per 24 hours), I can live with. Not happy about it, but I can live with it.

Most of my internet usage can survive a few minutes of downtime and for free internet, the price is right (provided by the local council), it saves me from forking out £40 a month to Virgin Media or other robbers on the Internet highway, which was what I used to do.

Created the following entry in root crontab:
* * * * * /home/pi/WirelessErrors.sh >> /home/pi/WirelessErrors.log 2>&1

WirelessErrors.sh

Code: Select all

#!/bin/bash
echo " "
echo "=================================="
echo "= Started at $(date +"%d/%m/%Y %H:%M:%S") ="
echo "=================================="
echo " "

PIDFILE=/tmp/WirelessErrors.pid
if [ -f $PIDFILE ]
then
  PID=$(cat $PIDFILE)
  ps -p $PID > /dev/null 2>&1
  if [ $? -eq 0 ]
  then
    echo "Process already running"
    exit 1
  else
    ## Process not found assume not running
    echo $$ > $PIDFILE
    if [ $? -ne 0 ]
    then
      echo "Could not create PID file"
      exit 1
    fi
  fi
else
  echo $$ > $PIDFILE
  if [ $? -ne 0 ]
  then
    echo "Could not create PID file"
    exit 1
  fi
fi

WirelessErrors=$(cat /var/log/kern.log | grep "ieee80211 phy1: rt2x00usb_vendor_request: Error - Vendor Request" | grep "failed for offset" | wc -l)
echo "Wireless Errors: $WirelessErrors"
echo " "

if [ $WirelessErrors -gt 20 ]; then
  echo "============================="
  echo "= Tail of /var/log/kern.log ="
  echo "============================="
  echo " "
  tail /var/log/kern.log
  echo " "

  echo "More than 20 Wireless Errors - Going to have to reboot"
  echo "Notification from WirelessErrors.sh - More than 20 Wireless Errors - Going to have to reboot" >> /home/pi/Reboot.log
  cp /var/log/kern.log /var/log/kern.log.old
  echo > /dev/null | sudo tee /var/log/kern.log
  reboot now
fi

echo "===================================="
echo "= Completed at $(date +"%d/%m/%Y %H:%M:%S") ="
echo "===================================="
echo " "

rm $PIDFILE

exit
Time is the fire in which we burn - Delmore Schwartz

Return to “Troubleshooting”