Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite reboot loop when USB connected Raspberry Pi 4 #570

Closed
santicomp2014 opened this issue Nov 29, 2020 · 7 comments
Closed

Infinite reboot loop when USB connected Raspberry Pi 4 #570

santicomp2014 opened this issue Nov 29, 2020 · 7 comments

Comments

@santicomp2014
Copy link

I have an issue with Balena OS, I'm using an Arduino Mega 2560 connected via USB directly to the Raspberry PI 4.
If I boot the Rpi with the USB plugged in, it reboots and does not start (Infinite restart loop), but if I unplug it and wait for the OS to boot, I can connect via serial port from the Balena dashboard.

This is really odd, I found some other people with similar issues
Raspian with the same configuration boots correctly.

Is there a way to delay the init of the USB, I don't think it's underpowered.

How can I help with this bug?, or is there any other solution I could use?.
Thanks

@acostach
Copy link
Contributor

Hi @santicomp2014, if you use a development image and connect a serial cable to the Pi, do you see something like:

USB XHCI 1.00
scanning bus xhci_pci for devices... WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (3e164300 00000000 1300)
BUG!at drivers/usb/host/xhci-ring.c:498/abort_td()!

resetting ...

or something else?

@santicomp2014
Copy link
Author

Hi @santicomp2014, if you use a development image and connect a serial cable to the Pi, do you see something like:

USB XHCI 1.00
scanning bus xhci_pci for devices... WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (3e164300 00000000 1300)
BUG!at drivers/usb/host/xhci-ring.c:498/abort_td()!

resetting ...

or something else?

Yes, It's exactly that error.

U-Boot 2020.07 (Oct 21 2020 - 11:03:27 +0000)

DRAM:  7.7 GiB
RPI 4 Model B (0xd03114)
MMC:   mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial
Out:   erial
Err:   serial
Net:   eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPort 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... WARN halted endpoint, queueing URB anyway
Unexpected XHCI event TRB, skipping... (2eb543c0 00000000 13000000 02008401)
BUG at drivers/usb/host/xhci-ring.c:498/abort_td()!
                                                   BUG!

@santicomp2014
Copy link
Author

santicomp2014 commented Nov 30, 2020

Thanks for the fix, @acostach Do I need to build the image from the repo?, or wait for the dashboard to get v2.60.1+rev6 in the list of available images.
First time using Balena, very excited to use it.

@acostach
Copy link
Contributor

acostach commented Dec 1, 2020

@santicomp2014 let me know if the testing image 2.60.1+rev6 from https://dashboard.balena-staging.com works for you. It will take a bit longer for the image to boot when the arduino is connected to the usb, but should boot eventually.

@santicomp2014
Copy link
Author

@santicomp2014 let me know if the testing image 2.60.1+rev6 from https://dashboard.balena-staging.com works for you. It will take a bit longer for the image to boot when the arduino is connected to the usb, but should boot eventually.

@acostach It took a bit longer, but it works.

Thanks for the help, when does this version get promoted into dashboard.balena-cloud.com is there a release cycle?.
I have 50 raspberry pi's that will be using this image, very happy to get this running.

@acostach
Copy link
Contributor

acostach commented Dec 2, 2020

You are welcome. Probably in a week or two..

@acostach
Copy link
Contributor

@santicomp2014 2.65.0 with the patch included is now available in the dashboard for the Pi4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants