No mtd devices when running from nvme drive

I am currently at the stage where I have debian running off a pcie3 nvme. I still require the sd card to boot, as it’s not compatible for booting but other that that, it works well.

Now, when I boot without the nvme drive, off the image on the sd card, the system shows up the spi flash as an mtd device. When booted from the nvme device, I don’t have any mtd devices.

I’ve gone through all the steps from this tutorial:

https://wiki.radxa.com/Rockpi4/Linux_system_runs_on_M.2_NVME_SSD

In order to be completely certain I have all the same packages installed as on the SD card image, but there is still no mtd device.

Does anyone have any idea of what I might be doing wrong?

There is one SPI Flash on board. If you load spi1-flash overlay, there will be an mtd device.

You can check file file /boot/hw_intfc.conf. Make sure that UART4 is disabled and SPI1 is enabled. Besides, spi1-flash overlay is added.

intfc:uart4=off
intfc:spi1=on
intfc:dtoverlay=spi1-flash

Yeah I’ve been through all those steps exhaustively and repeatedly. Everything is configured as described in the tutorial and I’ve physically checked the board for the presence of the SPI chip.

When I run from the SD card, I have a flashable mtd device, when I run from the nvme, it isn’t there.

Contents of: /boot/hw_intfc.conf

# Hardware Interface Config

# For more details, check https://wiki.radxa.com/Rockpi4/hardware/devtree_overlays.

# Set "on" to enable the optional hardware interfaces while set "off" to disable.

intfc:pwm0=off
intfc:pwm1=off
intfc:uart2=off
intfc:uart4=off
intfc:spi1=on
intfc:spi2=off
intfc:i2c2=off
intfc:i2c6=off
intfc:i2c7=off

# Devicetree Overlay Enable, uncomment to enable .dtbo under /boot/overlays/.

# EEPROM on I2C2
#intfc:dtoverlay=at24c02

# Serial console on UART2
intfc:dtoverlay=console-on-ttyS2

# Serial console on UART4
#intfc:dtoverlay=console-on-ttyS4

# Dummy spi device on SPI1 for test. Need set: intfc:spi1=on
#intfc:dtoverlay=devspi1

# Dummy spi device on SPI2 for test. Need set: intfc:spi2=on
#intfc:dtoverlay=devspi2

# PCIE running on GEN2 mode
intfc:dtoverlay=pcie-gen2

# ALLNET 4duino B10/B11 two-coloe-led module on 40-pin Header Pin#35 and Pin#36
#intfc:dtoverlay=two-color-led

# waveshare 3.5inch lcd (B v2) on SPI1. Need set: intfc:uart4=off intfc:spi1=on
#intfc:dtoverlay=spi1-waveshare35b-v2

# waveshare 3.5inch lcd (C) on SPI1. Need set: intfc:uart4=off intfc:spi1=on
#intfc:dtoverlay=spi1-waveshare35c

# spi flash on SPI1. Need set: intfc:uart4=off intfc:spi1=on
intfc:dtoverlay=spi1-flash

#hifiberry-dac
#intfc:dtoverlay=hifiberry-dac

#hifiberry-dacplus on I2C7. Need set: intfc:i2c7=on
#intfc:dtoverlay=hifiberry-dacplus

#enable raspberry pi official 7 inch LCD support
#intfc:dtoverlay=raspberrypi-7-inch-lcd

# setting cpu frequency over-2GHz
#intfc:dtoverlay=cpufreq

# Add imx219 camera module support. Need disabled ov5647 camera module.
#intfc:dtoverlay=imx219

# Add ov5647 camera module support. Need disabled imx219 camera module.
#intfc:dtoverlay=ov5647

# Add w1 on GPIO4_D6 to support devices such as DS18B20.
#intfc:dtoverlay=w1-gpio4-30

Unless there’s some other setting in that file that causes problems, I don’t think this is the issue.

I think that the reason is that you did not change the configuration.

Try the following steps.

Check whose mount point the boot directory belongs to. Use command, lsblk.

If it is /dev/mmcblk0p4, one partition of uSD Card, umount it. Instead, mount /dev/nvme0n0p4 to boot directory. And change the hw_intfc.conf.

If it is /dev/nvme0n0p4, one partition of NVME SSD, umount it. Instead, mount /dev/mmcblk0p4 to boot directory. And change the hw_intfc.conf.

Finally, reboot ROCK Pi 4.

This is the output from lsblk when booted from the nvme drive

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  28.9G  0 disk 
|-mmcblk0p1 179:1    0   3.9M  0 part 
|-mmcblk0p2 179:2    0     4M  0 part 
|-mmcblk0p3 179:3    0     4M  0 part 
|-mmcblk0p4 179:4    0   256M  0 part 
`-mmcblk0p5 179:5    0  28.6G  0 part /media/linaro/rootfs
nvme0n1     259:0    0 238.5G  0 disk 
|-nvme0n1p1 259:1    0   3.9M  0 part 
|-nvme0n1p2 259:2    0     4M  0 part 
|-nvme0n1p3 259:3    0     4M  0 part 
|-nvme0n1p4 259:4    0   112M  0 part /boot
`-nvme0n1p5 259:5    0 238.4G  0 part /

This the contents of the hw_intfc.conf file on the mmdblk0p4 are:

# Hardware Interface Config

# For more details, check https://wiki.radxa.com/Rockpi4/hardware/devtree_overlays.

# Set "on" to enable the optional hardware interfaces while set "off" to disable.

intfc:pwm0=off
intfc:pwm1=off
intfc:uart2=off
intfc:uart4=off
intfc:spi1=on
intfc:spi2=off
intfc:i2c2=off
intfc:i2c6=off
intfc:i2c7=off

# Devicetree Overlay Enable, uncomment to enable .dtbo under /boot/overlays/.

# EEPROM on I2C2
#intfc:dtoverlay=at24c02

# Serial console on UART2
intfc:dtoverlay=console-on-ttyS2

# Serial console on UART4
#intfc:dtoverlay=console-on-ttyS4

# Dummy spi device on SPI1 for test. Need set: intfc:spi1=on
#intfc:dtoverlay=devspi1

# Dummy spi device on SPI2 for test. Need set: intfc:spi2=on
#intfc:dtoverlay=devspi2

# PCIE running on GEN2 mode
#intfc:dtoverlay=pcie-gen2

# ALLNET 4duino B10/B11 two-coloe-led module on 40-pin Header Pin#35 and Pin#36
#intfc:dtoverlay=two-color-led

# waveshare 3.5inch lcd (B v2) on SPI1. Need set: intfc:uart4=off intfc:spi1=on
#intfc:dtoverlay=spi1-waveshare35b-v2

# waveshare 3.5inch lcd (C) on SPI1. Need set: intfc:uart4=off intfc:spi1=on
#intfc:dtoverlay=spi1-waveshare35c

# spi flash on SPI1. Need set: intfc:uart4=off intfc:spi1=on
intfc:dtoverlay=spi1-flash

#hifiberry-dac 
#intfc:dtoverlay=hifiberry-dac

#hifiberry-dacplus on I2C7. Need set: intfc:i2c7=on
#intfc:dtoverlay=hifiberry-dacplus

#enable raspberry pi official 7 inch LCD support
#intfc:dtoverlay=raspberrypi-7-inch-lcd

# setting cpu frequency over-2GHz
#intfc:dtoverlay=cpufreq

# Add imx219 camera module support. Need disabled ov5647 camera module.
#intfc:dtoverlay=imx219

# Add ov5647 camera module support. Need disabled imx219 camera module.
#intfc:dtoverlay=ov5647

# Add w1 on GPIO4_D6 to support devices such as DS18B20.
#intfc:dtoverlay=w1-gpio4-30

As you can see, the only difference is that pcie gen2 is not enabled on the boot partition of the SD card install.

If both hw_intfc.conf files contain the neccessary config for the mtd device to show, it really doesn’t seem likely the problem is related to that, it’s just that I have no idea where to look next.

To see whether the spi1-flash is loaded, we can check the U-Boot and kernel log (using command sudo dmesg) on the serial console. And please show the log here.

Wow, you guys work on weekends? That’s not healthy. The output is below, but no need to rush.

output was too much for the forum, the complete output is at the pastebin link, I’ve only pasted the errors that were at the end of the output below:

[    5.973535] rtt_do_get_ioctl: failed to send getbuf proxd iovar (CMD ID : 1), status=-23
[    5.973541] dhd_rtt_init : FTM is not supported
[    5.973547] dhd_preinit_ioctls: SensorHub diabled 0
[    5.974052] dhd_preinit_ioctls failed to set ShubHub disable
[    5.975673] wl_android_wifi_on: Success
[    5.985865] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.003252] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.005898] dhd_open: Exit ret=0
[    6.020650] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.037890] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.055227] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.072719] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.090441] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.106187] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.120339] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.126445] P2P interface registered
[    6.126466] wl_cfgp2p_add_p2p_disc_if: wdev: ffffffc0de19b800, wdev->net:           (null)
[    6.136275] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.144104] WLC_E_IF: NO_IF set, event Ignored
[    6.145266] P2P interface started
[    6.152210] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.168299] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.184234] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.200256] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.216236] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.233840] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.251431] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.269132] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.286822] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.304212] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.321884] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.339493] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.356985] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.374455] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.392052] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.409539] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.426982] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.444482] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.462207] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.479705] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.497198] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.514648] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.532010] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.549464] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.566737] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.584101] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.601485] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.618766] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.636133] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.653502] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.670736] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.688107] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.705469] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.722744] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.740111] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.757474] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.774735] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.792105] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.809468] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.826734] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.844100] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.861473] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.878743] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.896110] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.913473] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.930766] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.948263] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.965640] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    6.982967] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.000467] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.018157] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.035660] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.053151] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.070744] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.088241] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.105616] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.122984] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.140482] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.158168] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.175688] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.193180] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.210785] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.228276] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.245655] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.262990] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.280486] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.298181] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.315684] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.333174] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.350743] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.368236] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.385721] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.402828] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.420436] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.438175] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.455696] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.473188] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.490751] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.508250] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.525626] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.542948] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.560446] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.578172] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.595674] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.613167] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.630769] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.648262] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.665644] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.682975] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.700471] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.718162] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.735687] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.753176] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.770772] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.788262] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.805639] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.822940] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.836234] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.853723] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.870943] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.888442] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.906171] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.923673] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.941167] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.958763] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.976256] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    7.993632] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.010965] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.028465] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.046177] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.063691] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.081187] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.098745] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.116235] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.133362] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.150715] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.168318] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.186178] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.203679] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.221086] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.238573] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.256021] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.272248] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.288209] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.304467] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.320341] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.336237] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.352360] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.369948] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.387662] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.405155] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.422735] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.439998] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.457323] cdn-dp fec00000.dp: [drm:cdn_dp_dpcd_read] *ERROR* dpcd read failed: -22
[    8.466317] cdn-dp fec00000.dp: [drm:cdn_dp_check_sink_connection] *ERROR* Get sink capability timed out
[    8.466409] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] *ERROR* Enable dp failed -19
[    8.882954] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property
[    8.882997] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property
[    8.883022] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property
[    8.883044] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property
[    8.883067] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property
[    8.883088] [drm:dw_hdmi_rockchip_set_property] *ERROR* failed to set rockchip hdmi connector property
[   10.830563] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.221633] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[28644.174170] FAT-fs (mmcblk0p4): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

Can you show U-Boot log here?

I haven’t worked with u-boot before.

From what google tells me, it only logs to the terminal and there’s no simple way to store the logs? I found something that logging has to be compiled into it?

Is there’s some custom implementation I’m not aware of that I ought to be using to get the uboot log? Do I need to recompile the bootloader with logging flags and flash it into the spi? That’s going to require a little reading up…

You need a USB to TTL serial cable and serial tools like putty, minicom, etc. See Serial console.

OK, thanks. I’ll sort that out, but it will be next weekend at the earliest.