Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Armsom cm5, onboard USB hub is disconnected when booting

Featured Replies

Hello Dear,

 

After flashing *Armsom-cm5-rpi-cm4-io_*, there is one critical problem.
onboard USB hub always connects and disconnects 2 times when booting.

dmesg outputs:

[ 6.190239] hub 1-1:1.0: USB hub found
…
[ 7.868081] rk-pcie 2a200000.pcie: PCIe Link Fail, LTSSM is 0x3, hw_retries=0
[ 7.868642] usb 1-1: USB disconnect, device number 2
…
[ 9.326443] hub 1-1:1.0: USB hub found
…
[ 11.213062] rk-pcie 2a200000.pcie: PCIe Link Fail, LTSSM is 0x3, hw_retries=1
[ 11.213297] usb 1-1: USB disconnect, device number 4

I have tried with many variations, but the onboard hub is always disconnected.

  • server/desktop
  • community release/ self build
  • several tags from 25.5 to 26.2
  • CONFIG_USB_ONBOARD_HUB  O/X
  • rpi cm4 io board/ Ochin board

However,

  • Armsom's official image has no problem with the onboard usb hub.
  • CM4-nano-B has no onboard hub, and has no problem with external hub.

So, it seems to be a SW problem.

 

Please review this problem.

Thanks.

Edited by tbang

Solved by tbang

  • Author
  • Solution

I found the reason. (Different function of Pin 100)

  • cm5-io: PCIe_PWR_EN
  • rpi-cm4-io: nEXTRST used for USB hub reset

With rpi-cm4-io and no pcie device,

  • linux sets PCIe_PWR_EN=0 (turn off pcie)
  • But rpi-cm4-io thinks that nEXTRST=0 (always reset usb hub)

 

The temporary solution is:

  • For the pause of compile, please turn on kernel config
  • When kernel config appears,     sudo vi ./cache/sources/linux-kernel-worktree/6.1__rk35xx__arm64/arch/arm64/boot/dts/rockchip/rk3576-armsom-cm5-rpi-cm4-io.dts
  • Add the following fix in order to always turn on pcie
        vcc3v3_pcie0: vcc3v3-pcie0 {
...
                regulator-boot-on;
                regulator-always-on;
                enable-active-high;
...
        };

Because "sudo apt dist-upgrade" overwrites .dtb,  make sure backup and restore.

 

I do not know how the .dts is generated,

so the patch can be made by an expert of Armbian.

Edited by tbang

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.