NanoPC-T6 Install to internal storage?

Is M your sd card? It does look incorrect. Good spot.

Anything on the SD card will be erazed, so backup anything you need!

To install openwrt, you need to download the image from the firmware selector

https://firmware-selector.openwrt.org/?version=24.10.0&target=rockchip%2Farmv8&id=friendlyarm_nanopc-t6

I'd say you should use ext4

https://downloads.openwrt.org/releases/24.10.0/targets/rockchip/armv8/openwrt-24.10.0-rockchip-armv8-friendlyarm_nanopc-t6-ext4-sysupgrade.img.gz

You need to unzip the gz file. 7zip can do this.

Then write the image using etcher (https://etcher.balena.io/) or similar.

See if that works for you.

You guys won't believe it....

The UART issue was the power supply that shipped with the T6.

The grounding was so bad on it that it was causing a ton of noise over the UART connection.

Switching to another (higher quality) 12v power supply allows me to read the output from the serial console.

I can read the console at reasonable baud rates after changing out the power supply.

I think there is some miscommunication here.

I can boot OpenWRT via SD card just fine using the method you mention above.

What I am attempting here is to write the image from the bootable SD card to either the internal EMMC or NVME drive and boot from there given how quickly SD cards can fail.

Are you saying that I should be prompted to install the OS onto the internal storage or something similar when I load in the SD card?

I have the older supported board without a USB-C UART port.


[    0.884959] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    0.885448] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus nu                                                                                                                                                             mber 7
[    0.886195] xhci-hcd xhci-hcd.5.auto: hcc params 0x0220fe64 hci version 0x110                                                                                                                                                              quirks 0x0000008002000010
[    0.887040] xhci-hcd xhci-hcd.5.auto: irq 101, io mem 0xfc400000
[    0.887640] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    0.888122] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus nu                                                                                                                                                             mber 8
[    0.888791] xhci-hcd xhci-hcd.5.auto: Host supports USB 3.0 SuperSpeed
[    0.890211] hub 7-0:1.0: USB hub found
[    0.890636] hub 7-0:1.0: 1 port detected
[    0.891191] usb usb8: We don't know the algorithms for LPM for this host, dis                                                                                                                                                             abling LPM.
[    0.892142] hub 8-0:1.0: USB hub found
[    0.892486] hub 8-0:1.0: 1 port detected
[    0.896586] cpufreq: cpufreq_online: CPU0: Running at unlisted initial freque                                                                                                                                                             ncy: 816000 KHz, changing to: 1008000 KHz
[    0.897599] cpu cpu0: EM: created perf domain
[    0.899531] cpufreq: cpufreq_online: CPU4: Running at unlisted initial freque                                                                                                                                                             ncy: 816000 KHz, changing to: 1200000 KHz
[    0.900540] cpu cpu4: EM: created perf domain
[    0.905219] cpufreq: cpufreq_online: CPU6: Running at unlisted initial freque                                                                                                                                                             ncy: 816000 KHz, changing to: 1200000 KHz
[    0.906225] cpu cpu6: EM: created perf domain
[    0.907637] dwmmc_rockchip fe2c0000.mmc: IDMAC supports 32-bit address mode.
[    0.908269] dwmmc_rockchip fe2c0000.mmc: Using internal DMA controller.
[    0.908853] dwmmc_rockchip fe2c0000.mmc: Version ID is 270a
[    0.909382] dwmmc_rockchip fe2c0000.mmc: DW MMC controller at irq 99,32 bit h                                                                                                                                                             ost data width,256 deep fifo
[    0.910455] dwmmc_rockchip fe2c0000.mmc: Got CD GPIO
[    0.910608] rockchip-dw-pcie a41000000.pcie: host bridge /pcie@fe190000 range                                                                                                                                                             s:
[    0.911527] rockchip-dw-pcie a41000000.pcie:       IO 0x00f4100000..0x00f41ff                                                                                                                                                             fff -> 0x00f4100000
[    0.912294] rockchip-dw-pcie a41000000.pcie:      MEM 0x00f4200000..0x00f4fff                                                                                                                                                             fff -> 0x00f4200000
[    0.913058] rockchip-dw-pcie a41000000.pcie:      MEM 0x0a00000000..0x0a3ffff                                                                                                                                                             fff -> 0x0040000000
[    0.913878] rockchip-dw-pcie a41000000.pcie: iATU: unroll T, 8 ob, 8 ib, alig                                                                                                                                                             n 64K, limit 8G
[    0.923980] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[    0.924817] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz,                                                                                                                                                              actual 400000HZ div = 0)
[    0.924862] mmcblk0: mmc0:0001 A3A444 230 GiB
[    0.926604]  mmcblk0: p1 p2
[    0.927030] mmcblk0boot0: mmc0:0001 A3A444 4.00 MiB
[    0.927821] mmcblk0boot1: mmc0:0001 A3A444 4.00 MiB
[    0.928506] mmcblk0rpmb: mmc0:0001 A3A444 4.00 MiB, chardev (245:0)
[    1.084234] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    1.134273] rockchip-dw-pcie a41000000.pcie: PCIe Gen.2 x1 link up
[    1.134862] rockchip-dw-pcie a41000000.pcie: PCI host bridge to bus 0004:40
[    1.135469] pci_bus 0004:40: root bus resource [bus 40-4f]
[    1.135949] pci_bus 0004:40: root bus resource [io  0x200000-0x2fffff] (bus address [0xf4100000-0xf41fffff])
[    1.136802] pci_bus 0004:40: root bus resource [mem 0xf4200000-0xf4ffffff]
[    1.137399] pci_bus 0004:40: root bus resource [mem 0xa00000000-0xa3fffffff] (bus address [0x40000000-0x7fffffff])
[    1.138310] pci 0004:40:00.0: [1d87:3588] type 01 class 0x060400
[    1.138842] pci 0004:40:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    1.139453] pci 0004:40:00.0: supports D1 D2
[    1.139826] pci 0004:40:00.0: PME# supported from D0 D1 D3hot
[    1.141953] pci 0004:40:00.0: Primary bus is hard wired to 0
[    1.142446] pci 0004:40:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
[    1.143227] pci 0004:41:00.0: [10ec:8125] type 00 class 0x020000
[    1.143793] pci 0004:41:00.0: reg 0x10: [io  0x0000-0x00ff]
[    1.144342] pci 0004:41:00.0: reg 0x18: [mem 0x00000000-0x0000ffff 64bit]
[    1.144967] pci 0004:41:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit]
[    1.145876] pci 0004:41:00.0: supports D1 D2
[    1.146248] pci 0004:41:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.174232] usb 7-1: new high-speed USB device number 2 using xhci-hcd
[    1.174239] pci_bus 0004:41: busn_res: [bus 41-4f] end is updated to 41
[    1.175391] pci 0004:40:00.0: BAR 8: assigned [mem 0xf4200000-0xf42fffff]
[    1.175983] pci 0004:40:00.0: BAR 6: assigned [mem 0xf4300000-0xf430ffff pref]
[    1.176617] pci 0004:40:00.0: BAR 7: assigned [io  0x200000-0x200fff]
[    1.177179] pci 0004:41:00.0: BAR 2: assigned [mem 0xf4200000-0xf420ffff 64bit]
[    1.177843] pci 0004:41:00.0: BAR 4: assigned [mem 0xf4210000-0xf4213fff 64bit]
[    1.178507] pci 0004:41:00.0: BAR 0: assigned [io  0x200000-0x2000ff]
[    1.179076] pci 0004:40:00.0: PCI bridge to [bus 41]
[    1.179508] pci 0004:40:00.0:   bridge window [io  0x200000-0x200fff]
[    1.180069] pci 0004:40:00.0:   bridge window [mem 0xf4200000-0xf42fffff]
[    1.180661] pci_bus 0004:40: resource 4 [io  0x200000-0x2fffff]
[    1.181177] pci_bus 0004:40: resource 5 [mem 0xf4200000-0xf4ffffff]
[    1.181722] pci_bus 0004:40: resource 6 [mem 0xa00000000-0xa3fffffff]
[    1.182282] pci_bus 0004:41: reso pci_bus 0004:41: resource 1 [mem 0xf4200000-0xf42fffff]
[    1.184456] pcieport 0004:40:00.0: PME: Signaling with IRQ 113
[    1.185351] pcieport 0004:40:00.0: AER: enabled with IRQ 114
[    1.191681] rockchip-dw-pcie a40800000.pcie: host bridge /pcie@fe170000 ranges:
[    1.192322] rockchip-dw-pcie a40800000.pcie:       IO 0x00f2100000..0x00f21fffff -> 0x00f2100000
[    1.193086] rockchip-dw-pcie a40800000.pcie:      MEM 0x00f2200000..0x00f2ffffff -> 0x00f2200000
[    1.193849] rockchip-dw-pcie a40800000.pcie:      MEM 0x0980000000..0x09bfffffff -> 0x0040000000
[    1.194663] rockchip-dw-pcie a40800000.pcie: iATU: unroll T, 8 ob, 8 ib, align 64K, limit 8G
[    1.336138] hub 1-1:1.0: USB hub found
[    1.336563] hub 1-1:1.0: 4 ports detected
[    1.401749] hub 7-1:1.0: USB hub found
[    1.402448] hub 7-1:1.0: 4 ports detected
[    1.414283] rockchip-dw-pcie a40800000.pcie: PCIe Gen.2 x1 link up
[    1.414873] rockchip-dw-pcie a40800000.pcie: PCI host bridge to bus 0002:20
[    1.415480] pci_bus 0002:20: root bus resource [bus 20-2f]
[    1.415960] pci_bus 0002:20: root bus resource [io  0x300000-0x3fffff] (bus address [0xf2100000-0xf21fffff])
[    1.416814] pci_bus 0002:20: root bus resource [mem 0xf2200000-0xf2ffffff]
[    1.417412] pci_bus 0002:20: root bus resource [mem 0x980000000-0x9bfffffff] (bus address [0x40000000-0x7fffffff])
[    1.418320] pci 0002:20:00.0: [1d87:3588] type 01 class 0x060400
[    1.418853] pci 0002:20:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    1.419464] pci 0002:20:00.0: supports D1 D2
[    1.419837] pci 0002:20:00.0: PME# supported from D0 D1 D3hot
[    1.421932] pci 0002:20:00.0: Primary bus is hard wired to 0
[    1.422425] pci 0002:20:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
[    1.423209] pci 0002:21:00.0: [10ec:8125] type 00 class 0x020000
[    1.423776] pci 0002:21:00.0: reg 0x10: [io  0x0000-0x00ff]
[    1.424325] pci 0002:21:00.0: reg 0x18: [mem 0x00000000-0x0000ffff 64bit]
[    1.424950] pci 0002:21:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit]
[    1.425859] pci 0002:21:00.0: supports D1 D2
[    1.426231] pci 0002:21:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.454293] pci_bus 0002:21: busn_res: [bus 21-2f] end is updated to 21
[    1.454879] pci 0002:20:00.0: BAR 8: assigned [mem 0xf2200000-0xf22fffff]
[    1.455471] pci 0002:20:00.0: BAR 6: assigned [mem 0xf2300000-0xf230ffff pref]
[    1.456100] pci 0002:20:00.0: BAR 7: assigned [io  0x300000-0x300fff]
[    1.456662] pci 0002:21:00.0: BAR 2: assigned [mem 0xf2200000-0xf220ffff 64bit]
[    1.457326] pci 0002:21:00.0: BAR 4: assigned [mem 0xf2210000-0xf2213fff 64bit]
[    1.457990] pci 0002:21:00.0: BAR 0: assigned [io  0x300000-0x3000ff]
[    1.458558] pci 0002:20:00.0: PCI bridge to [bus 21]
[    1.458990] pci 0002:20:00.0:   bridge window [io  0x300000-0x300fff]
[    1.459551] pci 0002:20:00.0:   bridge window [mem 0xf2200000-0xf22fffff]
[    1.460142] pci_bus 0002:20: resource 4 [io  0x300000-0x3fffff]
[    1.460659] pci_bus 0002:20: resource 5 [mem 0xf2200000-0xf2ffffff]
[    1.461203] pci_bus 0002:20: resource 6 [mem 0x980000000-0x9bfffffff]
[    1.461763] pci_bus 0002:21: resource 0 [io  0x300000-0x300fff]
[    1.462279] pci_bus 0002:21: resource 1 [    1.463898] pcieport 0002:20:00.0: PME: Signaling with IRQ 125
[    1.464814] pcieport 0002:20:00.0: AER: enabled with IRQ 126
[    1.469259] clk: Disabling unused clocks
[    1.470307] dw-apb-uart feb50000.serial: forbid DMA for kernel console
[    1.504427] usb 8-1: new SuperSpeed USB device number 2 using xhci-hcd
[    1.524196] usb 3-1: new full-speed USB device number 2 using ohci-platform
[    1.578466] hub 8-1:1.0: USB hub found
[    1.579635] hub 8-1:1.0: 4 ports detected
[    1.664286] usb 1-1.1: new full-speed USB device number 3 using xhci-hcd
[    1.754215] usb 7-1.1: new full-speed USB device number 3 using xhci-hcd
[    1.854293] usb 8-1: Failed to suspend device, error -19
[    2.073517] hwmon hwmon7: temp1_input not attached to any thermal zone
[    2.076250] nvme nvme0: allocated 64 MiB host memory buffer.
[    2.137648] usb 8-1: reset SuperSpeed USB device number 2 using xhci-hcd
[    2.240321] nvme nvme0: 8/0/0 default/read/poll queues
[    2.284238] usb 7-1.2: new full-speed USB device number 4 using xhci-hcd
[    2.304294] usb 8-1: Failed to suspend device, error -19
[    2.365283]  nvme0n1: p1 p2
[    2.374092] EXT4-fs (mmcblk0p2): recovery complete
[    2.374546] EXT4-fs (mmcblk0p2): mounted filesystem ff313567-e9f1-5a5d-9895-3ba130b4a864 r/w with ordered data mode. Quota mode: none.
[    2.375618] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.376560] Freeing unused kernel memory: 2240K
[    2.377074] Run /sbin/init as init process
[    2.450227] I/O error, dev mmcblk0, sector 147984 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.526689] I/O error, dev mmcblk0, sector 147782 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2
[    2.540494] I/O error, dev mmcblk0, sector 147858 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.541449] I/O error, dev mmcblk0, sector 147859 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.542400] I/O error, dev mmcblk0, sector 147860 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.551005] I/O error, dev mmcblk0, sector 147940 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.629826] I/O error, dev mmcblk0, sector 147134 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.630793] I/O error, dev mmcblk0, sector 147135 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.631924] I/O error, dev mmcblk0, sector 147137 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.633323] I/O error, dev mmcblk0, sector 147143 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.700132] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007
[    2.700800] CPU: 7 PID: 1 Comm: init Not tainted 6.6.73 #0
[    2.701280] Hardware name: FriendlyElec NanoPC-T6 (DT)
[    2.701727] Call trace:
[    2.701941]  0xffff80008001c198
[    2.702217]  0xffff80008001c1f0
[    2.702491]  0xffff800080965b40
[    2.702765]  0xffff800080965b70
[    2.703039]  0xffff8000800466f0
[    2.703313]  0xffff80008004bf74
[    2.703587]  0xffff80008004c25c
[    2.703861]  0xffff8000800598b0
[    2.704135]  0xffff80008001ba20
[    2.704410]  0xffff80008098ad88
[    2.704683]  0xffff80008098b330
[    2.704957]  0xffff800080011558
[    2.705232] SMP: stopping secondary CPUs
[    2.705632] Kernel Offset: disabled
[    2.705936] CPU features: 0x0,c0000000,70028141,1000700b
[    2.706398] Memory Limit: none
[    2.706666] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007 ]---

I put the entire serial console output here: https://pastebin.com/A31C3ZRw

Just to be clear, this is the exact process of what I did prior to the kernal panic logs above.

For comparison, here are the serial logs of FriendlyWRT booting successfully: https://pastes.io/friendlywrt-serial-console-logs

Just tried flashing the EMMC from FriendlyWRTs web GUI.

Here are the logs when I rebooted the T6:

[    2.070393] hwmon hwmon7: temp1_input not attached to any thermal zone
[    2.073052] nvme nvme0: allocated 64 MiB host memory buffer.
[    2.094137] usb 7-1.2: new full-speed USB device number 4 using xhci-hcd
[    2.237194] nvme nvme0: 8/0/0 default/read/poll queues
[    2.362153]  nvme0n1: p1 p2
[    2.371591] EXT4-fs (mmcblk0p2): mounted filesystem ff313567-e9f1-5a5d-9895-3ba130b4a864 r/w with ordered data mode. Quota mode: none.
[    2.372674] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.373623] Freeing unused kernel memory: 2240K
[    2.374150] Run /sbin/init as init process
[    2.440417] I/O error, dev mmcblk0, sector 147984 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.522466] I/O error, dev mmcblk0, sector 147782 op 0x0:(READ) flags 0x80700 phys_seg 2 prio class 2
[    2.531052] I/O error, dev mmcblk0, sector 147858 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.532095] I/O error, dev mmcblk0, sector 147860 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.534706] I/O error, dev mmcblk0, sector 147880 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.541240] I/O error, dev mmcblk0, sector 147940 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.570386] usb 8-1.4: new SuperSpeed USB device number 3 using xhci-hcd
[    2.630225] I/O error, dev mmcblk0, sector 147134 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.631865] I/O error, dev mmcblk0, sector 147143 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.633363] I/O error, dev mmcblk0, sector 147151 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.636043] I/O error, dev mmcblk0, sector 147172 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
[    2.710029] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007
[    2.710697] CPU: 6 PID: 1 Comm: init Not tainted 6.6.73 #0
[    2.711177] Hardware name: FriendlyElec NanoPC-T6 (DT)
[    2.711625] Call trace:
[    2.711838]  0xffff80008001c198
[    2.712115]  0xffff80008001c1f0
[    2.712389]  0xffff800080965b40
[    2.712664]  0xffff800080965b70
[    2.712938]  0xffff8000800466f0
[    2.713213]  0xffff80008004bf74
[    2.713486]  0xffff80008004c25c
[    2.713760]  0xffff8000800598b0
[    2.714034]  0xffff80008001ba20
[    2.714308]  0xffff80008098ad88
[    2.714582]  0xffff80008098b330
[    2.714856]  0xffff800080011558
[    2.715131] SMP: stopping secondary CPUs
[    2.715531] Kernel Offset: disabled
[    2.715835] CPU features: 0x0,c0000000,70028141,1000700b
[    2.716297] Memory Limit: none
[    2.716565] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007 ]
---

Just as a sanity check, I used the same process with Armbian and it boots with no problem:

Maybe it has something to do with the kernel version?

I was taking a look at working OS images and found they're all using 6.1 instead of 6.4. Maybe that is the issue?

I've been comparing the boot process on internal memory vs SD card: https://www.diffchecker.com/UUU5aoLw/

Seems that something happens to break the GPT table when the image is loaded onto the internal memory.

I think I figured something out.

The issue seems to be with a corrupted GPT table after writing the image to the T6.

You can't install directly to EMMC internal memory, but you can copy the disk image directly to a NVME drive.