N2 unresponsive with USB HDD

Post Reply
thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

N2 unresponsive with USB HDD

Unread post by thequietman44 » Wed Jun 05, 2019 9:40 am

I have an N2 4GB running the Mar 29 Ubuntu minimal image from a microSD card. I connected a 500GB USB 2.0 portable HD and set about formatting it ext4 ("mkfs.ext4 /dev/sda"). While formatting I lost my network connection to the N2 and subsequent pings returned "Request timeout".
Thinking it was a fluke I rebooted (unplugged power) the N2 and tried formatting again, this time successfully. I created a number of directories and exported one via NFS to test network/USB throughput, but as soon as I started copying a file the same thing happened. Disconnected session, can no longer ping N2.

I thought it might be the drive so I connected a different 1TB drive, formatted with no issues, exported via NFS, copied a file. Thinking all was good I left it running like that all day, then when I got home I ssh'd in and tried to remove my test file and directories with "rm -r" and the same thing happened. Rebooted, tried again, same thing.

Is this a known issue? I don't think it's power-related since I only have a single USB HD connected, and these are drives that have been in regular use elsewhere without issues. I had hoped to use my N2 as a NAS/home automation hub, but if it's this unstable with a single USB drive I can't really use it.

crashoverride
Posts: 4439
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 44 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by crashoverride » Wed Jun 05, 2019 9:45 am

thequietman44 wrote:
Wed Jun 05, 2019 9:40 am
Is this a known issue?
I have been using a dual drive setup (1 SSD + 1 HDD) on N2 since its release. Both devices are 2.5" and powered via USB. I have not encountered any issues. The USB-SATA bridge is from JMicron.

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by odroid » Wed Jun 05, 2019 10:15 am

Some people mentioned Kernel 4.9.177 could solved the external USB storage stability issues.
For example, viewtopic.php?f=177&t=35086

Update the system first via this simple instruction.
https://wiki.odroid.com/odroid-n2/os_im ... l_software

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Wed Jun 05, 2019 10:36 am

Thanks. I upgraded per those instructions as soon as I booted the system. I assume that upgrades the kernel but if not I'll check the version when I'm home.

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Wed Jun 05, 2019 1:00 pm

Just to confirm:

Code: Select all

$ uname -a
Linux odroid 4.9.177-28 #1 SMP PREEMPT Thu May 16 23:10:54 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
Here's the list of USB devices:

Code: Select all

$ lsusb
Bus 002 Device 002: ID 05e3:0620 Genesys Logic, Inc. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 11b0:6298 ATECH FLASH TECHNOLOGY 
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by odroid » Wed Jun 05, 2019 1:54 pm

Ah.. you have a USB 2.0 storage not a USB 3.0 storage.
Can you show me "lsusb -t" and "lsmod" outputs?

Also check the dmesg output to find any relevant to this another USB 2.0 storage issue.
viewtopic.php?f=177&t=34790

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Wed Jun 05, 2019 2:36 pm

Code: Select all

$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p
, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p
, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=
usb-storage, 480M

Code: Select all

$ lsmod
Module                  Size  Used by
rtc_pcf8563            20480  0
i2c_meson_master       20480  0
sch_fq_codel           20480  2
nfsd                  430080  13
auth_rpcgss            73728  1 nfsd
nfs_acl                16384  1 nfsd
lockd                 118784  1 nfsd
grace                  16384  2 nfsd,lockd
amvdec_vp9            143360  0
amvdec_vc1             53248  0
amvdec_real            40960  0
amvdec_mmpeg4          20480  0
amvdec_mpeg4           53248  0
amvdec_mpeg12          90112  0
amvdec_mmjpeg          20480  0
amvdec_mjpeg           36864  0
amvdec_h265           118784  0
amvdec_h264mvc         49152  0
amvdec_mh264          139264  0
amvdec_h264           106496  0
sunrpc                446464  21 auth_rpcgss,nfsd,nfs_acl,lo
ckd
amvdec_avs             61440  0
stream_input          163840  13 amvdec_h265,amvdec_mjpeg,am
vdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,amvdec
_real,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvdec_avs,amvdec
_vc1,amvdec_mpeg4
decoder_common        131072  14 amvdec_h265,amvdec_mjpeg,am
vdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,amvdec
_real,stream_input,amvdec_vp9,amvdec_h264,amvdec_mpeg12,amvd
ec_avs,amvdec_vc1,amvdec_mpeg4
firmware               24576  15 amvdec_h265,amvdec_mjpeg,am
vdec_mh264,amvdec_mmpeg4,amvdec_h264mvc,amvdec_mmjpeg,decode
r_common,amvdec_real,stream_input,amvdec_vp9,amvdec_h264,amv
dec_mpeg12,amvdec_avs,amvdec_vc1,amvdec_mpeg4
media_clock            45056  2 decoder_common,stream_input
ip_tables              32768  0
x_tables               49152  1 ip_tables
ipv6                  483328  52

Code: Select all

[  864.505475] usb 1-1.4: new high-speed USB device number 3
 using xhci-hcd
[  864.631985] usb 1-1.4: New USB device found, idVendor=11b
0, idProduct=6298
[  864.632061] usb 1-1.4: New USB device strings: Mfr=1, Pro
duct=2, SerialNumber=3
[  864.632110] usb 1-1.4: Product: SNA-DC/U
[  864.632157] usb 1-1.4: Manufacturer: Kingston
[  864.632204] usb 1-1.4: SerialNumber: 30303030303030303037
3533
[  864.662601] usb-storage 1-1.4:1.0: USB Mass Storage devic
e detected
[  864.678120] scsi host0: usb-storage 1-1.4:1.0
[  865.690366] scsi 0:0:0:0: Direct-Access     Kingston SNA-
DC/U         1.14 PQ: 0 ANSI: 4
[  865.717558] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  865.723164] sd 0:0:0:0: [sda] 976773167 512-byte logical
blocks: (500 GB/466 GiB)
[  865.726022] sd 0:0:0:0: [sda] Write Protect is off
[  865.726072] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[  865.727884] sd 0:0:0:0: [sda] No Caching mode page found
[  865.728022] sd 0:0:0:0: [sda] Assuming drive cache: write
 through
[  865.804425] sd 0:0:0:0: [sda] Attached SCSI disk
[  867.326234] EXT4-fs (sda): recovery complete
[  867.326719] EXT4-fs (sda): mounted filesystem with ordere
d data mode. Opts: (null)/code]

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by odroid » Wed Jun 05, 2019 3:38 pm

It looks very normal.
Check the dmesg output again when you have a problem to access the USB HDD.

BTW, which power supply do you use?
Do you have a DMM to measure the VBUS 5V power rail stability?
Do you know the rated power consumption of your HDD?

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Thu Jun 06, 2019 1:55 am

I can't check dmesg output after the problem because the whole system becomes unresponsive.

I have the 12V/2A power supply from AmeriDroid, I purchased the N2 with case and power supply.

I have a multimeter. Where would I measure the voltage?

The 500GB is a Seagate drive rated at 5V 0.75A.

Ameridroid
Posts: 196
Joined: Thu Mar 17, 2016 4:19 am
languages_spoken: english
Has thanked: 6 times
Been thanked: 9 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by Ameridroid » Thu Jun 06, 2019 3:00 am

thequietman44 wrote:
Thu Jun 06, 2019 1:55 am
I can't check dmesg output after the problem because the whole system becomes unresponsive.

I have the 12V/2A power supply from AmeriDroid, I purchased the N2 with case and power supply.

I have a multimeter. Where would I measure the voltage?

The 500GB is a Seagate drive rated at 5V 0.75A.
That power supply is the one supplied to us by Hardkernel. My guess is that because the HDD is using 0.75A at 5V, that corresponds to about 0.3125A at 12V. That means that there is about 1.6A @ 12V left for the N2. That may not be enough for the boot process, especially if the HDD pulls more than that at peak current. It may be a good idea to upgrade to a 12V/3A or larger power supply, at least for testing.

Unless odroid has another idea.

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Thu Jun 06, 2019 4:03 am

Ameridroid wrote:
Thu Jun 06, 2019 3:00 am
It may be a good idea to upgrade to a 12V/3A or larger power supply
It seems like this is the goto solution for a number of issues with SBCs, and in many cases the manufacturer later starts shipping larger power supplies. Why are the devices not sold with (or offered with the option of) a power supply that's capable of powering the device under full load? If I want to try running 4 bus-powered USB 3.0 SSDs while maxing out all 6 cores what kind of a power supply would be needed? Not that I would, but if I have to buy a different power supply I want it to be the last power supply I buy for this device.

Ameridroid
Posts: 196
Joined: Thu Mar 17, 2016 4:19 am
languages_spoken: english
Has thanked: 6 times
Been thanked: 9 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by Ameridroid » Thu Jun 06, 2019 10:24 am

thequietman44 wrote:
Thu Jun 06, 2019 4:03 am
It seems like this is the goto solution for a number of issues with SBCs, and in many cases the manufacturer later starts shipping larger power supplies. Why are the devices not sold with (or offered with the option of) a power supply that's capable of powering the device under full load? If I want to try running 4 bus-powered USB 3.0 SSDs while maxing out all 6 cores what kind of a power supply would be needed? Not that I would, but if I have to buy a different power supply I want it to be the last power supply I buy for this device.
Higher capacity power supplies cost more, and most people don't need more capacity for basic use. We offer this power supply that is designed for the ROCKPro64 (12V/5A), but it isn't an official Hardkernel power supply: https://ameridroid.com/products/12v-5a- ... ly-us-plug

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Thu Jun 06, 2019 10:43 am

I'm not one to quibble over a few dollars on the power supply price when buying a $85 board, but I understand the need to keep prices low. Thanks for the link.

I discovered my scanner uses a 12V/4A power supply with 5.5mmx2.1mm positive center plug; a pleasant surprise that I don't have to buy a new power supply for testing. Unfortunately the N2 still becomes unresponsive when trying to access the USB HD, but this time I can still ping it from the network and the program I was running (htop) is still displaying dynamic stats in the SSH session, so... improvement?

I'll try a couple different tests with both USB HDs to see if the above is consistent.

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Fri Jun 07, 2019 2:13 pm

I verified with both HDs running on the 12V/4A power supply the N2 becomes unresponsive, but I can still ping it and see live updates on the screen. Switched to the 12V/2A power supply and it drops off the network and the screen output freezes.

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by odroid » Fri Jun 07, 2019 6:11 pm

Is the blue LED on the N2 still flashing like heartbeat?

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Fri Jun 07, 2019 11:55 pm

Yes, using both power supplies the blue LED is still flashing and the red LED is lit.

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by odroid » Sat Jun 08, 2019 10:35 am

Still we haven't found a root cause.
Is the 1TB storage has USB 3.0 interface while 500GB has USB 2.0?
And was there no issue with 1TB HDD?

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Sat Jun 08, 2019 12:15 pm

Both are USB 2.0, both have the same issue. I don't currently have any USB 3.0 HDs, just USB 3.0 flash drives.

User avatar
odroid
Site Admin
Posts: 30976
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 21 times
Been thanked: 138 times
Contact:

Re: N2 unresponsive with USB HDD

Unread post by odroid » Mon Jun 10, 2019 9:01 am

Please change the CPU governor to "Performance" and test it again.
https://wiki.odroid.com/odroid-xu4/appl ... q_govornor

BTW, do you know the chipset brand/model name of your USB 2.0 to SATA enclosure bridge?
We may need to buy the same one to reproduce the issue.

thequietman44
Posts: 11
Joined: Sat Jun 01, 2019 6:00 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: N2 unresponsive with USB HDD

Unread post by thequietman44 » Sat Jun 15, 2019 5:22 am

I changed the CPU governor to Performance. I also ran apt update && apt full-upgrade just in case there have been any improvements.

I'm not sure what the chipset is, but my USB 2.0 enclosure shows up as "Kingston SNA-DC/U". It's an older enclosure they used to ship with their SSDs so you could put your old HDD in it for transfer/backup.

The N2 has been up and running with USB HDD connected for about a week with no issues as long as I don't try to access anything on the HDD. I just ran dd if=/dev/sda of=/dev/null and it immediately died, SSH disconnected and the device is no longer responding to pings.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest