Failed upgrade to 8.21 on NanoPC T4

Hi all

I made an upgrade to 8.21 today on NanoPC T4 to I believe 8.21.1
After an upgrade it prompted me to reboot it which I did.
The system does not boot now and I have no ssh access

ssh: connect to host npc port 22: Connection refused

OS is on built-in emmc disk
I believe backup was done automatically as part of the upgrade? If not, I believe there is an older backup there.

How do I go about fixing it?
Ideally without destroying any data in the process i.e. configuration and data in docker containers.
I don’t think anything comes up on HDMI output but I will try again in the eventing.

UPDATE:
Nothing on the screen connected via HDMI
Green LED next to the red power LED blinks periodically twice,

Any help will be much appreciated.

Thanks
Daniel

Booted NanoPC from SD card using Debian.
Mounted the emmc at /media/emmc

Looks like files are there.
How to find why this is not booting?

Daniel.

Best would be to connect a serial adapter to be able to check where boot process stuck.

Unfortunately I don’t have a serial adapter.

I’ve burned lates dietpi image to sdcard and it does not boot, black screen.
I did the same using the previous image from https://dietpi.com/downloads/images/old/DietPi_NanoPCT4-ARMv8-Bookworm.7z
and it starts installation process, visible on the screen.
It looks to me HDMI output is not working on the new version.
Is this the same as
No HDMI output after 8.21.1 update on Orange Pi 5 - #7 by Pr3259

Daniel

I’m going ahead with wiping it out.
I’ve launched debian of microsd, mounted emmc and copied it to external drive sda connected via usb.

I’ve managed to create dietpi image and clone it to emmc which is not straightoforward as I am on Mac.
Diet pi boots of emmc now with v 8.21.1 but

  • there is nothing on HDMI screen
  • external USB drive is not visible when connecting via USB3 but works on USB2

when connected to usb2

dmesg | grep usb
[    0.000000] Kernel command line: root=UUID=c21ae7f3-937d-4156-af58-b09965c45178 rootfstype=ext4 rootwait console=ttyS2,1500000 console=tty1 consoleblank=0 coherent_pool=2M usb-storage.quirks= net.ifnames=0
[    0.082736] platform ff770000.syscon:usb2phy@e450: Fixed dependency cycle(s) with /i2c@ff3d0000/typec-portc@22/connector
[    0.740957] usbcore: registered new interface driver usbfs
[    0.741018] usbcore: registered new interface driver hub
[    0.741074] usbcore: registered new device driver usb
[    1.720958] usbcore: registered new interface driver usb-storage
[    1.750974] usbcore: registered new interface driver usbhid
[    1.751480] usbhid: USB HID core driver
[    1.905648] dwc3 fe900000.usb: error -ETIMEDOUT: failed to initialize core
[    1.906310] dwc3: probe of fe900000.usb failed with error -110
[    1.912389] ehci-platform fe3c0000.usb: EHCI Host Controller
[    1.912423] ohci-platform fe3e0000.usb: Generic Platform OHCI controller
[    1.912466] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 1
[    1.912791] ohci-platform fe3e0000.usb: irq 56, io mem 0xfe3e0000
[    1.912948] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 2
[    1.916216] ehci-platform fe3c0000.usb: irq 55, io mem 0xfe3c0000
[    1.932682] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
[    1.933512] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.934261] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.934911] usb usb2: Product: EHCI Host Controller
[    1.935354] usb usb2: Manufacturer: Linux 6.1.50-current-rockchip64 ehci_hcd
[    1.935984] usb usb2: SerialNumber: fe3c0000.usb
[    1.977013] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.977778] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.978441] usb usb1: Product: Generic Platform OHCI controller
[    1.978986] usb usb1: Manufacturer: Linux 6.1.50-current-rockchip64 ohci_hcd
[    1.979628] usb usb1: SerialNumber: fe3e0000.usb
[    2.192676] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    2.351599] usb 2-1: New USB device found, idVendor=0480, idProduct=a00d, bcdDevice= 4.07
[    2.352344] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.353000] usb 2-1: Product: External USB 3.0
[    2.353406] usb 2-1: Manufacturer: TOSHIBA
[    2.353781] usb 2-1: SerialNumber: 23184515195C
[    2.354864] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.356136] scsi host0: usb-storage 2-1:1.0
[    3.275576] usbcore: registered new interface driver uas
[    3.528289] ehci-platform fe380000.usb: EHCI Host Controller
[    3.528335] ohci-platform fe3a0000.usb: Generic Platform OHCI controller
[    3.528887] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 3
[    3.529508] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 4
[    3.530331] ehci-platform fe380000.usb: irq 76, io mem 0xfe380000
[    3.531093] ohci-platform fe3a0000.usb: irq 77, io mem 0xfe3a0000
[    3.544722] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00
[    3.545846] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    3.546612] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.547276] usb usb3: Product: EHCI Host Controller
[    3.547728] usb usb3: Manufacturer: Linux 6.1.50-current-rockchip64 ehci_hcd
[    3.548371] usb usb3: SerialNumber: fe380000.usb
[    4.150014] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    4.151581] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.153006] usb usb4: Product: Generic Platform OHCI controller
[    4.154125] usb usb4: Manufacturer: Linux 6.1.50-current-rockchip64 ohci_hcd
[    4.155401] usb usb4: SerialNumber: fe3a0000.usb
[    9.810832] usbcore: registered new interface driver brcmfmac

when connected to usb3.0

dmesg | grep usb
[    0.000000] Kernel command line: root=UUID=c21ae7f3-937d-4156-af58-b09965c45178 rootfstype=ext4 rootwait console=ttyS2,1500000 console=tty1 consoleblank=0 coherent_pool=2M usb-storage.quirks= net.ifnames=0
[    0.082750] platform ff770000.syscon:usb2phy@e450: Fixed dependency cycle(s) with /i2c@ff3d0000/typec-portc@22/connector
[    0.740975] usbcore: registered new interface driver usbfs
[    0.741036] usbcore: registered new interface driver hub
[    0.741091] usbcore: registered new device driver usb
[    1.735152] usbcore: registered new interface driver usb-storage
[    1.764612] usbcore: registered new interface driver usbhid
[    1.765147] usbhid: USB HID core driver
[    1.921280] dwc3 fe900000.usb: error -ETIMEDOUT: failed to initialize core
[    1.921942] dwc3: probe of fe900000.usb failed with error -110
[    1.928478] ehci-platform fe3c0000.usb: EHCI Host Controller
[    1.928502] ohci-platform fe3e0000.usb: Generic Platform OHCI controller
[    1.928552] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 1
[    1.929099] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 2
[    1.929912] ehci-platform fe3c0000.usb: irq 55, io mem 0xfe3c0000
[    1.930564] ohci-platform fe3e0000.usb: irq 56, io mem 0xfe3e0000
[    1.944704] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
[    1.945686] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    1.946451] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.947114] usb usb1: Product: EHCI Host Controller
[    1.947567] usb usb1: Manufacturer: Linux 6.1.50-current-rockchip64 ehci_hcd
[    1.948210] usb usb1: SerialNumber: fe3c0000.usb
[    1.997006] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    1.997774] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.998437] usb usb2: Product: Generic Platform OHCI controller
[    1.998981] usb usb2: Manufacturer: Linux 6.1.50-current-rockchip64 ohci_hcd
[    1.999624] usb usb2: SerialNumber: fe3e0000.usb
[    4.140468] ohci-platform fe3a0000.usb: Generic Platform OHCI controller
[    4.140485] ehci-platform fe380000.usb: EHCI Host Controller
[    4.140515] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 3
[    4.141213] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 4
[    4.141558] ehci-platform fe380000.usb: irq 80, io mem 0xfe380000
[    4.142367] ohci-platform fe3a0000.usb: irq 79, io mem 0xfe3a0000
[    4.156681] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00
[    4.157737] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    4.158790] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.159709] usb usb3: Product: EHCI Host Controller
[    4.160336] usb usb3: Manufacturer: Linux 6.1.50-current-rockchip64 ehci_hcd
[    4.161268] usb usb3: SerialNumber: fe380000.usb
[    4.209041] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 6.01
[    4.210602] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.211917] usb usb4: Product: Generic Platform OHCI controller
[    4.213031] usb usb4: Manufacturer: Linux 6.1.50-current-rockchip64 ohci_hcd
[    4.214308] usb usb4: SerialNumber: fe3a0000.usb
[    9.246812] usbcore: registered new interface driver brcmfmac

Log when starting with USB3 attached

diaetpi-journalctl.log (64.1 KB)

Daniel

This thread seems relevant for USB issue

In particular

I also have this error in the log

[    1.920702] phy phy-ff800000.phy.6: phy poweron failed --> -110
[    1.921280] dwc3 fe900000.usb: error -ETIMEDOUT: failed to initialize core

For reference kernel

root@DietPi:/home/dietpi# uname -a
Linux DietPi 6.1.50-current-rockchip64 #3 SMP PREEMPT Wed Aug 30 14:11:13 UTC 2023 aarch64 GNU/Linux

and model detected

root@DietPi:/home/dietpi# cat /proc/device-tree/model && echo
FriendlyElec NanoPC-T4

Version

root@DietPi:/home/dietpi# cat /etc/*release
PRETTY_NAME="Armbian 23.8.1 bookworm"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.armbian.com"
SUPPORT_URL="https://forum.armbian.com"
BUG_REPORT_URL="https://www.armbian.com/bugs"
ARMBIAN_PRETTY_NAME="Armbian 23.8.1 bookworm"
root@DietPi:/home/dietpi#

Update and upgrade

root@DietPi:/home/dietpi# apt update
Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm-updates InRelease
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://fi.mirror.armbian.de/apt bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@DietPi:/home/dietpi# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Listing package versions

root@DietPi:/home/dietpi# apt show linux-image-current-rockchip64
Package: linux-image-current-rockchip64
Version: 23.8.1
Priority: optional
Section: kernel
Source: linux-6.1.50
Maintainer: Armbian Linux <info@armbian.com>
Installed-Size: 219 MB
Provides: linux-image, linux-image-armbian, armbian-current
Armbian-Kernel-Version: 6.1.50
Armbian-Kernel-Version-Family: 6.1.50-current-rockchip64
Armbian-Original-Hash: 6.1.50-Sa294-Dc86f-Pce21-Ca63dHfe66-HK01ba-Vc222-Bc698-R448a
Download-Size: 41.7 MB
APT-Manual-Installed: yes
APT-Sources: https://apt.armbian.com bookworm/main arm64 Packages
Description: Armbian Linux current kernel image 6.1.50-current-rockchip64
 This package contains the Linux kernel, modules and corresponding other files.
 version "6.1.50" git revision "a2943d2d9a00ae7c5c1fde2b2e7e9cdb47e7db05" codename "Curry Ramen" drivers hash "c86f62e905cb6c4f" patches hash "ce216da673453349" .config hash "a63dfd4faffcc759" .config hook hash "fe661159ee64825e" variables hash "c22207b66dc5dd57157df2cd7b9c20559b2ed8ac44b9c3c3b9704002c06b8921" framework bash hash "c698747a3bfc6ef0"

N: There is 1 additional record. Please use the '-a' switch to see it
root@DietPi:/home/dietpi# apt show -a linux-image-current-rockchip64
Package: linux-image-current-rockchip64
Version: 23.8.1
Priority: optional
Section: kernel
Source: linux-6.1.50
Maintainer: Armbian Linux <info@armbian.com>
Installed-Size: 219 MB
Provides: linux-image, linux-image-armbian, armbian-current
Armbian-Kernel-Version: 6.1.50
Armbian-Kernel-Version-Family: 6.1.50-current-rockchip64
Armbian-Original-Hash: 6.1.50-Sa294-Dc86f-Pce21-Ca63dHfe66-HK01ba-Vc222-Bc698-R448a
Download-Size: 41.7 MB
APT-Manual-Installed: yes
APT-Sources: https://apt.armbian.com bookworm/main arm64 Packages
Description: Armbian Linux current kernel image 6.1.50-current-rockchip64
 This package contains the Linux kernel, modules and corresponding other files.
 version "6.1.50" git revision "a2943d2d9a00ae7c5c1fde2b2e7e9cdb47e7db05" codename "Curry Ramen" drivers hash "c86f62e905cb6c4f" patches hash "ce216da673453349" .config hash "a63dfd4faffcc759" .config hook hash "fe661159ee64825e" variables hash "c22207b66dc5dd57157df2cd7b9c20559b2ed8ac44b9c3c3b9704002c06b8921" framework bash hash "c698747a3bfc6ef0"

Package: linux-image-current-rockchip64
Version: 23.02.2
Priority: optional
Section: kernel
Source: linux-5.15.93-rockchip64
Maintainer: Igor Pecovnik <igor.pecovnik@****l.com>
Installed-Size: 95.6 MB
Provides: armbian-current, linux-image, linux-image-armbian
Homepage: https://www.kernel.org/
Download-Size: 53.4 MB
APT-Sources: https://apt.armbian.com bookworm/main arm64 Packages
Description: Linux kernel, armbian version 5.15.93-rockchip64 current
 This package contains the Linux kernel, modules and corresponding other
 files, version: 5.15.93-rockchip64.

Still no luck. No USB3 disk detected, even after reboot.
Any ideas what to do next?

There is another kernel update available, but it has not been synced to the APT mirrors yet. I’m also still waiting for a report at Armbian. Can you test one of their images and see whether those have the same issue? Nanopc T4 – Armbian

They use the same kernel, so should be the same issue. There are “rolling release” images with the newer 6.1.53 kernel I am awaiting to be synced across APT mirrors as well.

WIth Armbian_23.8.1_Nanopct4_bookworm_current_6.1.50_cinnamon_desktop.img
I get

uname -a
Linux nanopct4 6.1.50-current-rockchip64 #3 SMP PREEMPT Wed Aug 30 14:11:13 UTC 2023 aarch64 GNU/Linux
lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk2      179:0    0 14.6G  0 disk
└─mmcblk2p1  179:1    0 14.5G  0 part
mmcblk2boot0 179:32   0    4M  1 disk
mmcblk2boot1 179:64   0    4M  1 disk
mmcblk1      179:96   0 29.8G  0 disk
└─mmcblk1p1  179:97   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

No HDMI output and USB3 disk not detected

With rolling release (kernel 6.1.53) Armbian_23.11.0-trunk.88_Nanopct4_jammy_current_6.1.53_xfce_desktop.img

I get

uname -a
Linux nanopct4 6.1.53-current-rockchip64 #1 SMP PREEMPT Wed Sep 13 07:43:05 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mmcblk2      179:0    0 14.6G  0 disk
└─mmcblk2p1  179:1    0 14.5G  0 part
mmcblk2boot0 179:32   0    4M  1 disk
mmcblk2boot1 179:64   0    4M  1 disk
mmcblk1      179:96   0 29.8G  0 disk
└─mmcblk1p1  179:97   0 29.5G  0 part /var/log.hdd
                                      /
zram0        252:0    0  1.9G  0 disk [SWAP]
zram1        252:1    0   50M  0 disk /var/log
zram2        252:2    0    0B  0 disk

also no HDMI and no detection of sda drive.

Looks like I’m fighting a lost battle here :slight_smile:

Daniel

Keep continue discussion in this older + longer topic here: RK3399 HDMI output and USB 3.0 not working with Linux 6.1

So it is currently Radxa and FriendlyELEC SBCs with RK3399 SoCs affected, since Linux 6.1.50, and not just DietPi, but the Armbian images themselves as well.

I will keep an eye on the other thread and post my findings there.