OdroidN2+ USB device reset in 5.10 kernel

Post Reply
yanray77
Posts: 3
Joined: Wed May 18, 2022 5:15 pm
languages_spoken: english
ODROIDs: OdroidN2
Has thanked: 0
Been thanked: 0
Contact:

OdroidN2+ USB device reset in 5.10 kernel

Post by yanray77 »

I'm using 5.10 android common kernel to boot Debian Bullseye on OdroidN2+. I got a strange behavior when I tried to copy files from OdroidN2+ to another place.

Code: Select all

[  223.332075] usb 1-1.3: reset high-speed USB device number 3 using xhci-hcd
[  223.459895] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=0x00 cmd_age=30s
[  223.464210] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 00 87 99 98 00 00 10 00
[  223.471829] blk_update_request: I/O error, dev sda, sector 8886680 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  223.482572] sd 0:0:0:0: Power-on or device reset occurred
[  223.487716] sd 0:0:0:0: [sda] tag#0 device offline or changed
[  223.493350] blk_update_request: I/O error, dev sda, sector 8886680 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
How to reproduce?
1. Copy hundreds of files to your OdroidN2+ board.
2. Reboot system
3. Using scp command to copy those files from OdroidN2+ to your desktop (workstation).
This problem happens during file copy process. Reboot system is required. It only happens after I reboot the system in step 2.

I tried to boot same system with 4.9 kernel from https://github.com/hardkernel/linux. I never see this problem. I only replace Kernel Image and corresponding dtb. So it's definitely not a hardware issue.
Does anyone have idea to point out a direction to fix this problem for me? Thanks a lot!

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: OdroidN2+ USB device reset in 5.10 kernel

Post by tobetter »

Why do you use 5.10 kernel and from which repository did you download the kernel?

yanray77
Posts: 3
Joined: Wed May 18, 2022 5:15 pm
languages_spoken: english
ODROIDs: OdroidN2
Has thanked: 0
Been thanked: 0
Contact:

Re: OdroidN2+ USB device reset in 5.10 kernel

Post by yanray77 »

I use 5.10 kernel for some personal reasons. I have tried with 5.10 android common kernel from https://www.kernel.org/ and 5.10.117 long supported kernel from https://www.kernel.org/.
By the way, I found there are much customized code in 4.9 kernel. Is there an old commit which resolves similar issue in 4.9 kernel from hardkernel? Thanks!

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: OdroidN2+ USB device reset in 5.10 kernel

Post by tobetter »

yanray77 wrote:
Wed Jun 08, 2022 1:43 pm
I use 5.10 kernel for some personal reasons. I have tried with 5.10 android common kernel from https://www.kernel.org/ and 5.10.117 long supported kernel from https://www.kernel.org/.
By the way, I found there are much customized code in 4.9 kernel. Is there an old commit which resolves similar issue in 4.9 kernel from hardkernel? Thanks!
This patch must be the patch you need but it's been merged since 5.6, so you need to check your 5.10 branch.
https://patchwork.kernel.org/project/li ... libre.com/

yanray77
Posts: 3
Joined: Wed May 18, 2022 5:15 pm
languages_spoken: english
ODROIDs: OdroidN2
Has thanked: 0
Been thanked: 0
Contact:

Re: OdroidN2+ USB device reset in 5.10 kernel

Post by yanray77 »

tobetter wrote:
Wed Jun 08, 2022 2:07 pm
yanray77 wrote:
Wed Jun 08, 2022 1:43 pm
I use 5.10 kernel for some personal reasons. I have tried with 5.10 android common kernel from https://www.kernel.org/ and 5.10.117 long supported kernel from https://www.kernel.org/.
By the way, I found there are much customized code in 4.9 kernel. Is there an old commit which resolves similar issue in 4.9 kernel from hardkernel? Thanks!
This patch must be the patch you need but it's been merged since 5.6, so you need to check your 5.10 branch.
https://patchwork.kernel.org/project/li ... libre.com/
I checked kernel log and found this patch was merged in my 5.10 kernel. Are there any additional requirements to enable this feature or something else?

User avatar
tobetter
Posts: 10043
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 640 times
Been thanked: 1714 times
Contact:

Re: OdroidN2+ USB device reset in 5.10 kernel

Post by tobetter »

yanray77 wrote:
Wed Jun 08, 2022 3:50 pm
tobetter wrote:
Wed Jun 08, 2022 2:07 pm
yanray77 wrote:
Wed Jun 08, 2022 1:43 pm
I use 5.10 kernel for some personal reasons. I have tried with 5.10 android common kernel from https://www.kernel.org/ and 5.10.117 long supported kernel from https://www.kernel.org/.
By the way, I found there are much customized code in 4.9 kernel. Is there an old commit which resolves similar issue in 4.9 kernel from hardkernel? Thanks!
This patch must be the patch you need but it's been merged since 5.6, so you need to check your 5.10 branch.
https://patchwork.kernel.org/project/li ... libre.com/
I checked kernel log and found this patch was merged in my 5.10 kernel. Are there any additional requirements to enable this feature or something else?
Nope.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests