ayufan-rock64 / linux-build

Rock64 Linux build scripts, tools and instructions
MIT License
561 stars 98 forks source link

USB 3.0 to SATA cable with SSD disk boot error #83

Open pgmy64 opened 6 years ago

pgmy64 commented 6 years ago

Using 0.6.16 SPI Flash uboot. Booting from USB 3.0 to SATA cable with SSD encounter below error around 50% chances.

Model: Pine64 Rock64 DRAM: 4 GiB MMC: rksdmmc@ff520000: 0, rksdmmc@ff500000: 1 Card did not respond to voltage select! mmc_init: -95, time 9 *** Warning - No block device, using default environment

In: serial@ff130000 Out: serial@ff130000 Err: serial@ff130000 Model: Pine64 Rock64 misc_init_r cpuid=55524b50303630303000000000012119 serial=387ffff93aa4d8b Net: eth0: ethernet@ff540000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! mmc_init: -95, time 9

Card did not respond to voltage select! mmc_init: -95, time 10 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 USB2: Core Release: 3.10a USB3: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus 0 for devices... 1 USB Device(s) found scanning bus 1 for devices... 1 USB Device(s) found scanning bus 2 for devices... 1 USB Device(s) found scanning bus 3 for devices... cannot reset port 1!? 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found

inos-github commented 6 years ago

I have the same error. With LAN cable AND serial adapter disconnected, it's working. As far as I can see, its a problem with power coming from LAN and/ or the serial adapter, making a reset of the usb3 bus unsuccessful. Even with an usb stick on usb3, there are some errors while a LAN cable is connected (here, the serial adapter my be used without problems):

Resetting CPU ...

DDR version 1.06 20170424
In
SRX
LPDDR3
786MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

U-Boot SPL 2017.09-ga0a2b48 (Feb 28 2018 - 21:42:35)
setup_ddr_param  1
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(release):f947c7e
NOTICE:  BL31: Built : 21:42:34, Feb 28 2018
NOTICE:  BL31:Rockchip release version: v1.3

U-Boot 2017.09-ga0a2b48 (Feb 28 2018 - 21:42:50 +0000), Build: jenkins-linux-build-rock-64-189

Model: Pine64 Rock64
DRAM:  4 GiB
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
Card did not respond to voltage select!
mmc_init: -95, time 9
*** Warning - No block device, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b503039303038000000000a130c
serial=7d3fcea945db574
normal boot
Net:   eth0: ethernet@ff540000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 10
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   Core Release: 3.10a
USB3:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: Verbatim Rev: PMAP Prod: STORE N GO      
            Type: Removable Hard Disk
            Capacity: 14786.6 MB = 14.4 GB (30283008 x 512)
... is now current device
WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (fcf29870 00000000 13000000 01008401)
"Synchronous Abort" handler, esr 0x96000210
ELR:     fef6000c
LR:      fef6000c
x0 : 0000000000000000 x1 : 00000000000003e8
x2 : 0000000000000040 x3 : 000000000000003f
x4 : 00000000fcf29c90 x5 : 0000000000000031
x6 : 00000000fef87d56 x7 : 000000000000000f
x8 : 00000000fcf03360 x9 : 0000000000000008
x10: 00000000fcf03015 x11: 0000000000000008
x12: 00000000ffffffff x13: 0000000000000004
x14: 0000000000000004 x15: 0000000000000008
x16: 000000002e551b46 x17: 0000000020c81681
x18: 00000000fcf0ce08 x19: 00000000fcf459c0
x20: 00000000fcf4d490 x21: 0000000000000000
x22: 00000000fcf296b0 x23: 0000000000000000
x24: 0000000000000000 x25: 0000000080000203
x26: 0000000000000001 x27: 0000000000000001
x28: 00000000fcf03680 x29: 00000000fcf034e0

Resetting CPU ...
inos-github commented 6 years ago

I have to correct myself regarding usb3 boot with usb stick: even with the LAN unplugged there are some failures as long as the serial adapter is connected (most probably it is sufficient to disconnect the adapter TXD line during the board reset): scanning bus 3 for devices... cannot reset port 2!?

inos-github commented 6 years ago

and I have correct myself once again, even with LAN unplugged AND serial adapter totally removed from the board,there are some reboot-errors (about 20% in my case)

ayufan commented 6 years ago

Well, so it seems that this is something different.

inos-github commented 6 years ago

I'm not sure because this happens with USB3-SATA as well as with USB-Stick devices. The error messages are sometimes the same, sometimes they differ even with the same device connected. But everything seems related to an unsuccessful or incomplete reset of the USB3 bus/controller and most of the errors occur when there is a chance of residual power (LAN/serial adapter) to the board.

ayufan commented 6 years ago

Which version do you use?

On Sun, 4 Mar 2018 at 11:59, inos-github notifications@github.com wrote:

I'm not sure because this happens with USB3-SATA as well as with USB-Stick devices. The error messages are sometimes the same, sometimes they differ even with the same device connected. But everything seems related to an unsuccessful or incomplete reset of the USB3 bus/controller and most of the errors occur when there is a chance of residual power (LAN/serial adapter) to the board.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ayufan-rock64/linux-build/issues/83#issuecomment-370219871, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTpQU3h5cUkD-piK-YVuA4XIg6fqTbqks5ta8kFgaJpZM4ReEc5 .

inos-github commented 6 years ago

U-Boot 2017.09-ga0a2b48 (Feb 28 2018 - 21:42:50 +0000), Build: jenkins-linux-build-rock-64-189 I have tested a bit more... on USB Stick: interrupting the boot process within the serial u-boot console followed by a usb reset command helps (even with LAN plugged and active) - 10 out of 10 attempts successful on USB-SATA device (USB-SATA controller delivered by pin64): interrupting the boot process within the serial u-boot console followed by a usb reset command helps only with LAN unplugged but is still unreliable... scanning bus 3 for devices... cannot reset port 1!? One or more subsequent reset, usb reset are necessary

inos-github commented 6 years ago

Or did you meant the board version?, that's: ROCK64_V2.0 2017-0713

ayufan commented 6 years ago

U-boot is fine. I think that this problem is board independent.

Kamil

On Sun, Mar 4, 2018 at 2:49 PM, inos-github notifications@github.com wrote:

Or did you meant the board version?, that's: ROCK64_V2.0 2017-0713

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ayufan-rock64/linux-build/issues/83#issuecomment-370230714, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTpQd89JPhEIU0BePxxSWcxYplv8ndQks5ta_D1gaJpZM4ReEc5 .

VvvvvGH commented 6 years ago

@ayufan Please help. I have same issue. Sometimes I have to press the reset button several times to boot the system. You can see the boot log.I do nothing but press the reset button once then it will boot.

U-Boot 2017.09-ga0a2b48 (Apr 02 2018 - 16:01:54 +0000), Build: jenkins-linux-build-rock-64-209

Model: Pine64 Rock64
DRAM:  4 GiB
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
Card did not respond to voltage select!
mmc_init: -95, time 10
*** Warning - No block device, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930343000000000092f0c
serial=bc6a4b549b76a24
normal boot
Net:   eth0: ethernet@ff540000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 9
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   Core Release: 3.10a
USB3:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
U-Boot 2017.09-ga0a2b48 (Apr 02 2018 - 16:01:54 +0000), Build: jenkins-linux-build-rock-64-209

Model: Pine64 Rock64
DRAM:  4 GiB
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
Card did not respond to voltage select!
mmc_init: -95, time 9
*** Warning - No block device, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930343000000000092f0c
serial=bc6a4b549b76a24
Net:   eth0: ethernet@ff540000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 9
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   Core Release: 3.10a
USB3:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (fcf29870 00000000 13000000 01008401)
"Synchronous Abort" handler, esr 0x96000210
ELR:     fef6000c
LR:      fef6000c
x0 : 0000000000000000 x1 : 00000000000003e8
x2 : 0000000000000040 x3 : 000000000000003f
x4 : 00000000fcf29c90 x5 : 0000000000000031
x6 : 00000000fef87d56 x7 : 000000000000000f
x8 : 00000000fcf02380 x9 : 0000000000000008
x10: 00000000fcf02035 x11: 0000000000000008
x12: 00000000ffffffff x13: 00000000000036b8
x14: 00000000fcf0428c x15: 0000000000000008
x16: 000000008e8c04bf x17: 000000008ac29470
x18: 00000000fcf0ce08 x19: 00000000fcf459c0
x20: 00000000fcf02b00 x21: 0000000000000000
x22: 00000000fcf29cb0 x23: 0000000000000000
x24: 00000000fcf027c0 x25: 0000000080000283
x26: 0000000000000001 x27: 0000000000000001
x28: 00000000fcf02680 x29: 00000000fcf02500

Resetting CPU ...
U-Boot 2017.09-ga0a2b48 (Apr 02 2018 - 16:01:54 +0000), Build: jenkins-linux-build-rock-64-209

Model: Pine64 Rock64
DRAM:  4 GiB
MMC:   rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
Card did not respond to voltage select!
mmc_init: -95, time 9
*** Warning - No block device, using default environment

In:    serial@ff130000
Out:   serial@ff130000
Err:   serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930343000000000092f0c
serial=bc6a4b549b76a24
normal boot
Net:   eth0: ethernet@ff540000
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 9
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   Core Release: 3.10a
USB3:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Device 0: Vendor: ATA      Rev: 300i Prod: INTEL SSDSC2CT06
            Type: Hard Disk
            Capacity: 57241.8 MB = 55.9 GB (117231408 x 512)
... is now current device
Scanning usb 0:6...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
688 bytes read in 25 ms (26.4 KiB/s)
select kernel
1:      kernel-latest
2:      kernel-previous
Enter choice: 1:        kernel-latest
Retrieving file: /initrd.img
reading /initrd.img
2915366 bytes read in 98 ms (28.4 MiB/s)
Retrieving file: /Image
reading /Image
19372040 bytes read in 502 ms (36.8 MiB/s)
append: rw root=LABEL=linux-root rootwait rootfstype=ext4 panic=10 init=/sbin/init coherent_pool=1M ethaddr=be:88:7c:74:e8:50 eth1addr=be:88:7c:74:e8:70 serial=bc6a4b549b76a24 cgroup_enable=cpuset cgroup_memory=1 
cgroup_enable=memory swapaccount=1
Retrieving file: /dtb
reading /dtb
59320 bytes read in 25 ms (2.3 MiB/s)
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to fcc39000, end fcf00c26 ... OK
   Loading Device Tree to 00000000fcc27000, end 00000000fcc387b7 ... OK

Starting kernel ...
ERROR:   suspend_mode_handler: unhandled sip (0x4)
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.120-rockchip-ayufan-208 (root@612d9be805e8) (gcc version 7.2.0 (Ubuntu/Linaro 7.2.0-6ubuntu1) ) #1 SMP Sun Apr 1 18:26:21 UTC 2018
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] PERCPU: Embedded 21 pages/cpu @ffffffc0fef27000 s46248 r8192 d31576 u86016
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1027656
[    0.000000] Kernel command line: earlyprintk=uart8250-32bit,0xff130000 rw root=LABEL=linux-root rootwait rootfstype=ext4 panic=10 init=/sbin/init coherent_pool=1M ethaddr=be:88:7c:74:e8:50 eth1addr=be:88:7c:74:
e8:70 serial=bc6a4b549b76a24 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1