You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FIQ interrupt not triggering IRQ interrupt causing USB to dropout #151
a test script found elsewhere, modified, running every minute from cron:
#--------------------------------------------------
#!/bin/sh
# cron script for checking wlan connectivity
IP_FOR_TEST="a.b.c.d"
PING_COUNT=1
PING="/bin/ping"
INTERFACE="eth0"
FFLAG="/opt/check_lan/stuck.fflg"
# ping test
$PING -c $PING_COUNT $IP_FOR_TEST > /dev/null 2> /dev/null
if [ $? -ge 1 ]
then
logger "check_lan: $INTERFACE is down"
touch $FFLAG
date >> $FFLAG
echo 08 > /sys/devices/platform/bcm2708_usb/regoffset
cat /sys/devices/platform/bcm2708_usb/regvalue >> $FFLAG
echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue
cat /sys/devices/platform/bcm2708_usb/regvalue >> $FFLAG
else
logger "check_lan: $INTERFACE is up"
# rm -f $FFLAG 2>/dev/null
fi
#---------------------------------------------------------------
the resulting file:
root@raspberrypi:~# cat /opt/check_lan/stuck.fflg
Mo 5. Nov 06:58:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 08:42:01 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 09:21:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 09:57:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 10:24:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 11:35:04 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
parts from syslog:
Nov 5 11:34:01 raspberrypi logger: check_lan: eth0 is up
Nov 5 11:34:10 ..................
Nov 5 11:34:20 raspberrypi kernel: [75050.559308] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:25 raspberrypi kernel: [75055.559353] smsc95xx 1-1.1:1.0: eth0: Failed to write register index 0x00000114
Nov 5 11:34:30 raspberrypi kernel: [75060.559384] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:35 raspberrypi kernel: [75065.559438] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000118
Nov 5 11:34:40 raspberrypi kernel: [75070.559486] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:45 raspberrypi kernel: [75075.559530] smsc95xx 1-1.1:1.0: eth0: Failed to write register index 0x00000114
Nov 5 11:34:50 raspberrypi kernel: [75080.559585] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:55 raspberrypi kernel: [75085.559620] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000118
Nov 5 11:35:01 raspberrypi kernel: [75091.659677] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:35:04 raspberrypi logger: check_lan: eth0 is down
Nov 5 11:35:04 ............................
Nov 5 11:35:05 ............................
Nov 5 11:35:11 ............................
Nov 5 11:36:01 raspberrypi logger: check_lan: eth0 is up
Nov 5 11:34:01 raspberrypi logger: check_lan: eth0 is up
Nov 5 11:34:10 ..................
Nov 5 11:34:20 raspberrypi kernel: [75050.559308] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:25 raspberrypi kernel: [75055.559353] smsc95xx 1-1.1:1.0: eth0: Failed to write register index 0x00000114
Nov 5 11:34:30 raspberrypi kernel: [75060.559384] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:35 raspberrypi kernel: [75065.559438] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000118
Nov 5 11:34:40 raspberrypi kernel: [75070.559486] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:45 raspberrypi kernel: [75075.559530] smsc95xx 1-1.1:1.0: eth0: Failed to write register index 0x00000114
Nov 5 11:34:50 raspberrypi kernel: [75080.559585] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:34:55 raspberrypi kernel: [75085.559620] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000118
Nov 5 11:35:01 raspberrypi kernel: [75091.659677] smsc95xx 1-1.1:1.0: eth0: Failed to read register index 0x00000114
Nov 5 11:35:04 raspberrypi logger: check_lan: eth0 is down
Nov 5 11:35:04 ........................
Nov 5 11:36:01 raspberrypi logger: check_lan: eth0 is up
else
logger "check_lan: $INTERFACE is up"
rm -f $FFLAG 2>/dev/null
fi
#---------------------------------------------------------------
the resulting file:
root@raspberrypi:~# cat /opt/check_lan/stuck.fflg
Mo 5. Nov 06:58:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 08:42:01 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 09:21:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 09:57:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 10:24:11 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
Mo 5. Nov 11:35:04 CET 2012
Reg@0x000008 = 0x00000030
Reg@0x000008 = 0x00000031
parts from syslog:
Nov 5 11:34:01 raspberrypi logger: check_lan: eth0 is up
Nov 5 11:34:10 ..................
Nov 5 11:34:20 raspberrypi kernel: [75050.559308] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:25 raspberrypi kernel: [75055.559353] smsc95xx 1-1.1:1.0:
eth0: Failed to write register index 0x00000114
Nov 5 11:34:30 raspberrypi kernel: [75060.559384] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:35 raspberrypi kernel: [75065.559438] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000118
Nov 5 11:34:40 raspberrypi kernel: [75070.559486] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:45 raspberrypi kernel: [75075.559530] smsc95xx 1-1.1:1.0:
eth0: Failed to write register index 0x00000114
Nov 5 11:34:50 raspberrypi kernel: [75080.559585] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:55 raspberrypi kernel: [75085.559620] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000118
Nov 5 11:35:01 raspberrypi kernel: [75091.659677] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:35:04 raspberrypi logger: check_lan: eth0 is down
Nov 5 11:35:04 ............................
Nov 5 11:35:05 ............................
Nov 5 11:35:11 ............................
Nov 5 11:36:01 raspberrypi logger: check_lan: eth0 is up
Nov 5 11:34:01 raspberrypi logger: check_lan: eth0 is up
Nov 5 11:34:10 ..................
Nov 5 11:34:20 raspberrypi kernel: [75050.559308] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:25 raspberrypi kernel: [75055.559353] smsc95xx 1-1.1:1.0:
eth0: Failed to write register index 0x00000114
Nov 5 11:34:30 raspberrypi kernel: [75060.559384] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:35 raspberrypi kernel: [75065.559438] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000118
Nov 5 11:34:40 raspberrypi kernel: [75070.559486] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:45 raspberrypi kernel: [75075.559530] smsc95xx 1-1.1:1.0:
eth0: Failed to write register index 0x00000114
Nov 5 11:34:50 raspberrypi kernel: [75080.559585] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:34:55 raspberrypi kernel: [75085.559620] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000118
Nov 5 11:35:01 raspberrypi kernel: [75091.659677] smsc95xx 1-1.1:1.0:
eth0: Failed to read register index 0x00000114
Nov 5 11:35:04 raspberrypi logger: check_lan: eth0 is down
Nov 5 11:35:04 ........................
Nov 5 11:36:01 raspberrypi logger: check_lan: eth0 is up
hope this helps
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/151#issuecomment-10070210.
This is a good fix for me, too. Any idea when this is going to get into the Raspbian distribution? Or should I just bite the bullet and start using rpi-update?
Activity
tgghtp commentedon Nov 5, 2012
it fixes,
a test script found elsewhere, modified, running every minute from cron:
#-------------------------------------------------- #!/bin/sh # cron script for checking wlan connectivity IP_FOR_TEST="a.b.c.d" PING_COUNT=1 PING="/bin/ping" INTERFACE="eth0" FFLAG="/opt/check_lan/stuck.fflg" # ping test $PING -c $PING_COUNT $IP_FOR_TEST > /dev/null 2> /dev/null if [ $? -ge 1 ] then logger "check_lan: $INTERFACE is down" touch $FFLAG date >> $FFLAG echo 08 > /sys/devices/platform/bcm2708_usb/regoffset cat /sys/devices/platform/bcm2708_usb/regvalue >> $FFLAG echo 0x31 > /sys/devices/platform/bcm2708_usb/regvalue cat /sys/devices/platform/bcm2708_usb/regvalue >> $FFLAG else logger "check_lan: $INTERFACE is up" # rm -f $FFLAG 2>/dev/null fi #---------------------------------------------------------------the resulting file:
parts from syslog:
hope this helps
ghollingworth commentedon Nov 5, 2012
Can you now update and check again?
I believe this is now fixed, can you run a long term test and make sure the
problem has gone away?
On 5 November 2012 13:25, tgghtp notifications@github.com wrote:
tgghtp commentedon Nov 6, 2012
Update: from where ?
asb commentedon Nov 6, 2012
From the git firmware repo, using e.g. rpi-update.
On 6 November 2012 16:58, tgghtp notifications@github.com wrote:
ghollingworth commentedon Nov 7, 2012
This seems to work as expected and fixes the ethernet dropping out problem
RussNelson commentedon Feb 7, 2013
This is a good fix for me, too. Any idea when this is going to get into the Raspbian distribution? Or should I just bite the bullet and start using rpi-update?
licaon-kter commentedon Feb 7, 2013
Just wait for it to update in 1 or 2 months? :D Oh, come on,gogogo https://github.com/Hexxeh/rpi-update
popcornmix commentedon Feb 8, 2013
I think apt-get will be updated to current rpi-update in the next few days.
mfd: ab8500-core: Resolve code style issues
Fabio72 commentedon Mar 3, 2015
I'm on xbian
Distribution: XBian 1.0 (knockout)
Kernel version: Linux 3.18.8+ armv6l
Firmware: 115f63aa0915cdb5b6dff23822eb16699b72ae8b (4 Feb 2015 21:04:27)
Sometimes I'm facing system freezes without errors in logs. I don't know it they are system or network/usb freezes.
I'm getting
I'm trying to fix following this article
https://raspberrypispot.wordpress.com/2013/07/08/wifi-and-ethernet-dropout-problems-in-raspberry-pi/
I opened a thread about this problem in
http://forum.xbian.org/thread-2785-post-27814.html
mm: do not call mem_cgroup_free() from within mem_cgroup_alloc()
mm: do not call mem_cgroup_free() from within mem_cgroup_alloc()
mm: do not call mem_cgroup_free() from within mem_cgroup_alloc()
ipv6: fix general protection fault in fib6_add()
blockdev: Fix livelocks on loop device
blockdev: Fix livelocks on loop device
blockdev: Fix livelocks on loop device
blockdev: Fix livelocks on loop device
KVM: SVM: Get source vCPUs from source VM for SEV-ES intrahost migration
KVM: SVM: Get source vCPUs from source VM for SEV-ES intrahost migration
drm/v3d: Fix out-of-bounds read in `v3d_csd_job_run()`
drm/v3d: Fix out-of-bounds read in `v3d_csd_job_run()`
mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address
mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address
mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address
mm/migrate_device: don't add folio to be freed to LRU in migrate_devi…
mm/migrate_device: don't add folio to be freed to LRU in migrate_devi…
mm/migrate_device: don't add folio to be freed to LRU in migrate_devi…
KVM: SVM: Get source vCPUs from source VM for SEV-ES intrahost migration