Description
My configuration:
headless PI powered up by powered usb hub (belkin F5U404PerBLK).
with a fat32 8gb pen connected to the pi everything works fine.
When I try to use an external USB disk, I lost ethernet when I start mlnet using disk to store files.
I've tested the proposed solution on elinux.org:
Changed
vm.min_free_kbytes = 32768 in /etc/sysctl.conf
smsc95xx.turbo_mode=N in /boot/cmdline.txt
Connected Y cable to router's usb to avoid power problems.
Changed cable that connects hub and mini usb in RPI.
This is the result:
root@raspberrypi:/home/pi# cat /var/log/messages | grep -i erro
Oct 14 15:09:18 raspberrypi kernel: [148561.433141] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 14 15:09:18 raspberrypi kernel: [148561.433239] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 14 15:09:18 raspberrypi kernel: [148561.433270] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 14 15:09:18 raspberrypi kernel: [148561.433297] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 14 15:09:19 raspberrypi kernel: [148562.357473] sd 1:0:0:0: [sdb] Unhandled error code
Oct 14 15:09:19 raspberrypi kernel: [148562.457463] sd 1:0:0:0: [sdb] Unhandled error code
Oct 14 15:09:19 raspberrypi kernel: [148562.457601] lost page write due to I/O error on sdb1
Oct 14 15:09:19 raspberrypi kernel: [148562.557449] sd 1:0:0:0: [sdb] Unhandled error code
Oct 14 15:09:19 raspberrypi kernel: [148562.557564] lost page write due to I/O error on sdb1
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835089] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835501] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835534] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835563] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181327] EXT4-fs warning (device sdb1): ext4_end_bio:251: I/O error writing to inode 524294 (offset 80220160 size 4096 starting block 66697)
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181722] JBD2: Detected IO errors while flushing file data on sdb1-8
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835089] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835501] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835534] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835563] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181327] EXT4-fs warning (device sdb1): ext4_end_bio:251: I/O error writing to inode 524294 (offset 80220160 size 4096 starting block 66697)
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181722] JBD2: Detected IO errors while flushing file data on sdb1-8
root@raspberrypi:/home/pi# cat /var/log/syslog | grep -i erro
Oct 15 20:37:13 raspberrypi ntpd[2033]: restrict: error in address '::' on line 38. Ignoring...
Oct 15 20:37:13 raspberrypi ntpd[2033]: restrict: error in address '::1' on line 42. Ignoring...
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835089] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835501] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835534] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:54 raspberrypi kernel: [ 4308.835563] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181289] Buffer I/O error on device sdb1, logical block 66689
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181327] EXT4-fs warning (device sdb1): ext4_end_bio:251: I/O error writing to inode 524294 (offset 80220160 size 4096 starting block 66697)
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181494] JBD2: I/O error detected when updating journal superblock for sdb1-8.
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181722] JBD2: Detected IO errors while flushing file data on sdb1-8
Oct 15 21:48:55 raspberrypi kernel: [ 4310.181838] JBD2: I/O error detected when updating journal superblock for sdb1-8.
Oct 15 21:49:22 raspberrypi kernel: [ 4337.351179] EXT4-fs error (device sdb1): ext4_find_entry:935: inode #524289: comm mlnet: reading directory lblock 0
Oct 15 21:49:22 raspberrypi kernel: [ 4337.386202] EXT4-fs error (device sdb1): ext4_journal_start_sb:327: Detected aborted journal
Oct 15 21:49:24 raspberrypi kernel: [ 4338.946361] EXT4-fs error (device sdb1): ext4_read_block_bitmap:394: comm mlnet: Cannot read block bitmap - block_group = 2, block_bitmap = 1027
Oct 15 21:49:24 raspberrypi kernel: [ 4338.965416] EXT4-fs error (device sdb1): ext4_discard_preallocations:3892: comm mlnet: Error reading block bitmap for 2
I think that there is something wrong with the usb driver .... Am I wrong ?
Thanks a lot,
Ste
PS already posted on troubleshooting section of pi forum with no success.
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=19974
Activity
ghollingworth commentedon Oct 16, 2012
ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
What this means is that the USB device has been disconnected (in a logical
rather than physical sense), so the most likely explanation is that the
drive power has dropped out...
Not absolutely sure that is the problem, but it doesn't seem likely to be a
protocol related problem because as you say a different mass storage scsi
device works fine (the USB protocol is after all the same...)
Can you connect it through an externally powered hub (making sure you don't
use one that powers the host through the hub!)
Gordon
On 16 October 2012 09:03, dudducat notifications@github.com wrote:
dudducat commentedon Oct 16, 2012
I'm not sure to understand your point
now I'm in this condition
Power -> Hub
Hub -> host USB of PI
first hub USB -> to power mini usb on PI
second hub USB -> 8GB PEN
third hub USB -> 60GB HD (connected with an Y cable .... the power part of the cable connected to USB port of my router)
fourth hub USB -> empty
You say to power up pi from a different power source ?
Then leave the rest untouched ?
Thanks a lot,
Ste
ghollingworth commentedon Oct 16, 2012
Sorry your ascii art doesn't make sense in a gmail browser!
Can you describe what the setup is?
Is the hard drive self powered?
Gordon
dudducat commentedon Oct 16, 2012
I've just modified the post ... you could see it correct using
#136
I saw late that my ascii was orrible :)
dudducat commentedon Oct 16, 2012
Ops I forgot to say that drive is self powered, this is the reason why I use an Y cable connected to the hub and to the usb port of my router
gholling commentedon Oct 16, 2012
I assume it all works fine if you connect the HD to the PI directly?
What's the rating on the hub power supply? You are powering the PI (which can take up to 1A) + the pen drive and the hub power, all together it's going to be fairly large...
Try powering the PI from a known good PS and just connect to the HD (with the Y cable to a known good PSU)
dudducat commentedon Oct 16, 2012
Thanks a lot I'll do the test tonight and I will report the results tomorrow.
dudducat commentedon Oct 17, 2012
Test done.
Using 1A power source for pi, connecting hd directly to the pi: pi doesn't see hd
Using 1A power source for pi, connecting powered usb hub, and hd to the hub, everything works fine till now.
Thanks a lot for the support.
You're great.
Ste
dudducat commentedon Oct 20, 2012
Hi,
this error happens last night after three days with no errors:
/var/log/syslog.1:Oct 19 21:22:08 raspberrypi kernel: [84472.468113] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
/var/log/syslog.1:Oct 19 21:22:08 raspberrypi kernel: [84472.468240] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
/var/log/syslog.1:Oct 19 21:22:08 raspberrypi kernel: [84472.468277] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
/var/log/syslog.1:Oct 19 21:22:08 raspberrypi kernel: [84472.468307] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
/var/log/syslog.1:Oct 19 21:22:35 raspberrypi kernel: [84499.825538] EXT4-fs error (device sda1): ext4_find_entry:935: inode #2: comm mlnet: reading directory lblock 0
So power was not the only element involved. I think that there must be something more.
Anyway I've just downloaded the last firmware, so let's see what happens in the next few days.
Bye,
Ste
nixnodes commentedon Oct 24, 2012
I can confirm this:
Oct 24 22:35:00 raspberrypi kernel: [ 1154.962940] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 24 22:35:00 raspberrypi kernel: [ 1154.963429] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
Oct 24 22:35:00 raspberrypi kernel: [ 1154.963470] ERROR::dwc_otg_hcd_urb_enqueue:477: Not connected
USB driver reconnects after dying.
The device was running normally for about a month, then this started happening, only when the ethernet adapter is in heavy use.
At this point I've ruled out power issues (replaced the previous PSU with a 2.5A one), I also did:
vm.min_free_kbytes = 32768 in /etc/sysctl.conf
smsc95xx.turbo_mode=N in /boot/cmdline.txt
and a firmware upgrade, problem didn't go away..
Using raspbian: Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux
It doesn't seem to be a software issue either, I restored a backup image, even brought back the base image and configured it from scratch again, nothing seems to help..
At this point, it's getting a bit concerning, smells like shitty,buggy hardware, if anyone cares to correct this opinion, please, I'd be more than glad to be proven wrong.
nixnodes commentedon Oct 27, 2012
@dudducat:
This seems to help with the disconnects:
dwc_otg.microframe_schedule=1 sdhci-bcm2708.enable_llm=1 (in /boot/cmdline.txt)
dwc_otg.speed=1 might help also, but this brings your USB port (and ethernet) down to full speed (12Mbit).
The power cable (if using microusb port) could be to blame also, if it's resistance happens to be too high, it's also possible there's a blown polyfuse, read here:
http://elinux.org/RPi_Hardware#Power
http://elinux.org/Polyfuses_explained
piotr-e commentedon Oct 27, 2012
I added all above option and video0 file isn't created.
edit:
If I add dwc_otg.speed=1 , video0 will not create after reboot for stk1160(easycap).
28 remaining items
drm/exynos/mixer: fix MIXER shadow registry synchronisation code
selftests/bpf: Fix u8 narrow load checks for bpf_sk_lookup remote_port
selftests/bpf: Fix u8 narrow load checks for bpf_sk_lookup remote_port
selftests/bpf: Fix u8 narrow load checks for bpf_sk_lookup remote_port
drm/i915/reset: Fix error_state_read ptr + offset use
drm/i915/reset: Fix error_state_read ptr + offset use
drm/i915/reset: Fix error_state_read ptr + offset use
Bluetooth: ISO: do not emit new LE Create CIS if previous is pending
Bluetooth: ISO: do not emit new LE Create CIS if previous is pending
kunit: Fix wild-memory-access bug in kunit_free_suite_set()
kunit: Fix wild-memory-access bug in kunit_free_suite_set()
kunit: Fix wild-memory-access bug in kunit_free_suite_set()
firewire: core: Initialize topology_map.lock
xfs: fix super block buf log item UAF during force shutdown
Bluetooth: ISO: do not emit new LE Create CIS if previous is pending