NPU won’t start

Hi @jack I can’t seem to start the NPU. See the dmesg. Ideas?
How do I validate the NPU?
I am running the Ubuntu image from the downloads. u-boot in 2021.04 as installed on the eMMC.

I booted into 4.4 so that I could validate the steps before I try again with mainline.

http://paste.ubuntu.com/p/FJgsFqjfb2/

https://dl.radxa.com/rockpin10/images/ubuntu/rockpin10bc_ubuntu_bionic_server_arm64_20210125_2038-gpt.img.gz

U-Boot TPL 2021.04 (Apr 30 2021 - 12:55:51)
Trying to boot from BOOTROM
Returning to boot ROM…

U-Boot SPL 2021.04 (Apr 30 2021 - 12:55:51 +0000)
Trying to boot from MMC2

U-Boot 2021.04 (Apr 30 2021 - 12:55:51 +0000)

SoC: Rockchip rk3399
Reset cause: POR
Model: Radxa ROCK Pi N10
DRAM: 3.9 GiB
PMIC: RK8090 (on=0x10, off=0x00)
MMC: mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC… OK
stdio_add_devices: Video device failed (ret=-2)
In: serial@ff1a0000
Out: serial@ff1a0000
Err: serial@ff1a0000
Model: Radxa ROCK Pi N10
Net: eth0: ethernet@fe300000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1737 bytes read in 21 ms (80.1 KiB/s)
select kernel
1:kernel-5.12
2:kernel-4.4
3:kernel-4.4.167-16-rockchip-gd6ee13d61c6d
4:kernel-5.12a
5:kernel-5.12b
6:libreelec
7:LibreELECa
Enter choice:
Net: eth0: ethernet@fe300000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1…
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1737 bytes read in 21 ms (80.1 KiB/s)
select kernel
1:kernel-5.12
2:kernel-4.4
3:kernel-4.4.167-16-rockchip-gd6ee13d61c6d
4:kernel-5.12a
5:kernel-5.12b
6:libreelec
7:LibreELECa
Enter choice: 3
3:kernel-4.4.167-16-rockchip-gd6ee13d61c6d
Retrieving file: /initrd.img-4.4.167-16-rockchip-gd6ee13d61c6d
6351925 bytes read in 625 ms (9.7 MiB/s)
Retrieving file: /vmlinuz-4.4.167-16-rockchip-gd6ee13d61c6d
20240392 bytes read in 1956 ms (9.9 MiB/s)
append: earlycon=uart8250,mmio32,0xff1a0000 root=/dev/mmcblk1p2 rw rootwait
Retrieving file: /dtbs/4.4.167-16-rockchip-gd6ee13d61c6d/rockchip/rk3399pro-rock-pi-n10.dtb
100920 bytes read in 63 ms (1.5 MiB/s)

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000
Loading Ramdisk to f1917000, end f1f25c35 … OK
ERROR: reserving fdt memory region failed (addr=0 size=0)
Loading Device Tree to 00000000f18fb000, end 00000000f1916a37 … OK

Starting kernel …

I find this below error from your log, which is related to usb bus between NPU and RK3399.

[  150.723289] usb 7-1: device not accepting address 83, error -71
[  150.733702] usb usb7-port1: unable to enumerate USB device
[  150.855372] usb 7-1: new high-speed USB device number 84 using xhci-hcd
[  150.967425] usb 7-1: device descriptor read/64, error -71
[  151.203201] usb 7-1: device descriptor read/64, error -71
[  151.439092] usb 7-1: new high-speed USB device number 85 using xhci-hcd
[  151.555151] usb 7-1: device descriptor read/64, error -71
[  151.775138] usb 7-1: device descriptor read/64, error -71

This error occurs after NPU is given power.

If you revert U-Boot to the version 2017.09, that error will disappear.

Ok will try and let you know.