# RK3399 HDMI output and USB 3.0 not working with Linux 6.1

**URL:** https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776
**Category:** Troubleshooting
**Created:** [29 August 2023 17:31 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776 "2023-08-29T17:31:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![dez](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@dez](https://dietpi.com/forum/u/dez)
#### Post date: [29 August 2023 17:31 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/1 "2023-08-29T17:31:33Z")

</div>

Hi,

I have installed the update 8.21.1 (dietpi-update from version 8.20).  
After reboot one of USB 3.0 ports stopped working.  
Any ideas can it be software problem?

#### Required Information

- DietPi version |

G\_DIETPI\_VERSION\_CORE=8  
G\_DIETPI\_VERSION\_SUB=21  
G\_DIETPI\_VERSION\_RC=1  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’

- Distro version | bookworm

- Kernel version | Linux Rose 6.1.46-current-rockchip64 #3 SMP PREEMPT Wed Aug 16 16:27:31 UTC 2023 aarch64 GNU/Linux

- Architecture | arm64

- SBC model | ROCK 4 (aarch64)

- Power supply used | any

- SD card used | any

#### Steps to reproduce

1. Plug in any USB device into top USB-port
2. Nothing happens

---

<div class="post-metadata">

### Author: ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)
#### Post date: [30 August 2023 05:31 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/2 "2023-08-30T05:31:48Z")

</div>

Please fill out the troubleshoot template, without this info we can just try a shot in the dark.

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [30 August 2023 12:19 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/3 "2023-08-30T12:19:23Z")

</div>

probably related to the kernel update done by the `dietpi-update`

@MichaIng can you have a look pls.

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [30 August 2023 19:29 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/4 "2023-08-30T19:29:59Z")

</div>

Dammit, many issues solved, but new issues introduced 😄. At least it is just one USB port.

Interestingly there is one new `rockpi4cplus-usb-host` overlay. It is described as

```auto
Switches the top USB 3.0 port to host mode.
WARNING! Not officially supported by Rockchip!!!

```

Sounds promising, even that it is named after C+ variant.

There is also another one:

```auto
### dwc3-0-host

Forces port 0 of the DesignWare xHCI controller to host mode.

This can be used on plaforms such as NanoPC-T4, where devices plugged into the
USB-C port may not be detected otherwise.

```

Can you try them one after another?

```sh
G_CONFIG_INJECT 'overlays=' 'overlays=rockpi4cplus-usb-host' /boot/dietpiEnv.txt
reboot

```

Ah, and to be sure that your SBC is really detected as ROCK Pi 4B, respectively that the correct device tree is loaded:

```sh
cat /proc/device-tree/model

```

---

<div class="post-metadata">

### Author: ![dez](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@dez](https://dietpi.com/forum/u/dez)
#### Post date: [30 August 2023 20:41 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/5 "2023-08-30T20:41:03Z")

</div>

```auto
cat /proc/device-tree/model
Radxa ROCK Pi 4B

```

```auto
cat /boot/dietpiEnv.txt
rootdev=UUID=21fbd909-5d4f-4ffe-8ad7-751b251a9f2a
rootfstype=ext4
# The init system logs to the console defined last.
consoleargs=console=tty1
usbstoragequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=rockchip
overlay_prefix=rockchip
overlays=rockpi4cplus-usb-host
user_overlays=

```

rebooted, no changes(

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [31 August 2023 18:42 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/7 "2023-08-31T18:42:02Z")

</div>

HI,

I just wanted to say that with my rock pro 64 I also have the same problem on usb 3.0, I had all the data in an external ssd connected there, damn

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [31 August 2023 19:20 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/8 "2023-08-31T19:20:19Z")

</div>

Can you test the other one as well (both of your):

```sh
G_CONFIG_INJECT 'overlays=' 'overlays=dwc3-0-host' /boot/dietpiEnv.txt
reboot

```

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [31 August 2023 20:46 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/9 "2023-08-31T20:46:48Z")

</div>

> [@MichaIng](#):
>
> `/boot/dietpiEnv.txt`

I tried the command on the fly but since the directory “/boot/dietpiEnv.txt” did not exist, the command did not even work .  
i try to launching only “overlays=dwc3-0-host”, but didnt work .  
So I rolled back

---

<div class="post-metadata">

### Author: ![dez](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/d/ac8455/32.png) [@dez](https://dietpi.com/forum/u/dez)
#### Post date: [31 August 2023 21:04 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/10 "2023-08-31T21:04:11Z")

</div>

no changes, again

---

<div class="post-metadata">

### Author: ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)
#### Post date: [31 August 2023 21:16 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/11 "2023-08-31T21:16:18Z")

</div>

Is is probably an older image where `/boot/armbianEnv.txt` exists instead?  
Then it would be:

```sh
G_CONFIG_INJECT 'overlays=' 'overlays=dwc3-0-host' /boot/dietpiEnv.txt
reboot

```

Sadly I have only the NanoPi R4S with this SoC, but it only has two USB(-A) ports which both work.

Can you both check for kernel errors:

```sh
dmesg -l 0,1,2,3

```

I checked the Armbian forum but can’t find a related report for ROCK 4 series or ROCKPro64. When you find time, could you test the respective Armbian Bookworm minimal image:

- [RockPro64 – Armbian](https://www.armbian.com/rockpro64/)
- [ROCK 4B](https://dl.armbian.com/rockpi-4b/archive/)

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [31 August 2023 21:42 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/12 "2023-08-31T21:42:26Z")

</div>

Hello, I thought about it and for the community this and more:

```auto
root@DietPi:~# G_CONFIG_INJECT 'overlays=' 'overlays=dwc3-0-host' /boot/armbianEnv.txt
[OK] G_CONFIG_INJECT | Added setting overlays=dwc3-0-host to end of file /boot/armbianEnv.txt
root@DietPi:~# dmesg -l 0,1,2,3
[2.365386] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
[2.455498] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[2.604193] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with vcc3v3-sys
[2.830677] phy phy-ff7c0000.phy.6: phy poweron failed --> -110
[2.831571] dwc3 fe800000.usb: error -ETIMEDOUT: failed to initialize core
[2.869147] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[15.971717] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
root@DietPi:~# reboot

```

after reboot

```auto
root@DietPi:~# dmesg -l 0,1,2,3
[2.361428] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
[2.451788] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[2.598804] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with vcc3v3-sys
[2.826622] phy phy-ff7c0000.phy.6: phy poweron failed --> -110
[2.827521] dwc3 fe800000.usb: error -ETIMEDOUT: failed to initialize core
[2.864052] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[10.576748] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
root@DietPi:~#

```

So dosent work

I remain available for any of your tests, if you even want to connect remotely I can give you access @MichaIng  
Pietro

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [1 September 2023 06:09 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/13 "2023-09-01T06:09:43Z")

</div>

> [@pietromezza](#):
>
> I remain available for any of your tests

can you crosscheck using Armbian Bookworm minimal image as requested by @MichaIng ?

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [1 September 2023 07:17 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/14 "2023-09-01T07:17:39Z")

</div>

oh Yeah, sry

so from lsblk i see my 2 ssd

```auto
root@rockpro64:~# dmesg -l 0,1,2,3
[2.425387] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
[2.519647] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[2.674288] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with vcc3v3-sys
[2.934799] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[3.894118] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
[5.824195] (sd-execut[344]: /usr/lib/systemd/system-generators/netplan failed with exit status 1.
[13.061373] Bluetooth: hci0: command 0x0c03 tx timeout
[21.221405] Bluetooth: hci0: BCM: Reset failed (-110)
root@rockpro64:~# 

```

after launchin “sudo apt update && sudo apt install armbian-config”

```auto
root@rockpro64:~# dmesg -l 0,1,2,3
[2.429418] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
[2.523867] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[2.676054] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with vcc3v3-sys
[2.937142] dw-apb-uart ff180000.serial: Failed to create device link (0x180) with 0-001b
[3.880681] OF: graph: no port node found in /i2c@ff3d0000/typec-portc@22
[37.747289] (sd-execut[350]: /usr/lib/systemd/system-generators/netplan failed with exit status 1.
[42.853419] Bluetooth: hci0: command 0x0c03 tx timeout
[50.917439] Bluetooth: hci0: BCM: Reset failed (-110)
[107.231722] (sd-executor)[2054]: /usr/lib/systemd/system-generators/netplan failed with exit status 1.
root@rockpro64:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 447.1G 0 disk 
sdb 8:16 0 465.8G 0 disk 
mtdblock0 31:0 0 16M 0 disk 
mmcblk1 179:0 0 29.8G 0 disk 
└─mmcblk1p1 179:1 0 29.5G 0 part /var/log.hdd
                                      /
zram0 251:0 0 1.9G 0 disk [SWAP]
zram1 251:1 0 50M 0 disk /var/log
zram2 251:2 0 0B 0 disk 
root@rockpro64:~# 

```

i see the disk

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [1 September 2023 07:33 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/15 "2023-09-01T07:33:49Z")

</div>

Can you check kernel version used on plain Armbian

```auto
uname -a

```

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [1 September 2023 07:37 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/16 "2023-09-01T07:37:30Z")

</div>

> [@Joulinar](#):
>
> ```auto
> uname -a
> 
> ```

````auto
root@rockpro64:~# uname -a
Linux rockpro64 6.1.30-rockchip64 #3 SMP PREEMPT Wed May 24 16:32:53 UTC 2023 aarch64 GNU/Linux
root@rockpro64:~#```
````

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [1 September 2023 08:00 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/17 "2023-09-01T08:00:37Z")

</div>

And booting the DietPi image reveals which kernel version? Just for comparison.

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [1 September 2023 08:35 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/18 "2023-09-01T08:35:24Z")

</div>

```auto
root@DietPi:~# uname -a
Linux DietPi 6.1.46-current-rockchip64 #3 SMP PREEMPT Wed Aug 16 16:27:31 UTC 2023 aarch64 GNU/Linux
root@DietPi:~#

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [1 September 2023 08:53 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/19 "2023-09-01T08:53:38Z")

</div>

> [@pietromezza](#):
>
> `6.1.30-rockchip64`

> [@pietromezza](#):
>
> `6.1.46-current-rockchip64`

soo they are different.

@MichaIng would it be an option to downgrade?

---

<div class="post-metadata">

### Author: ![pietromezza](https://dietpi.com/forum/user_avatar/dietpi.com/pietromezza/32/2654_2.png) [@pietromezza](https://dietpi.com/forum/u/pietromezza)
#### Post date: [2 September 2023 13:48 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/20 "2023-09-02T13:48:04Z")

</div>

@Joulinar Any update?  
cc:  
@MichaIng

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [2 September 2023 20:05 UTC](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776/21 "2023-09-02T20:05:14Z")

</div>

@MichaIng is out this weekend, you would need to wait for his return.

[Next page](https://dietpi.com/forum/t/rk3399-hdmi-output-and-usb-3-0-not-working-with-linux-6-1/17776.md?page=2)
