immortalwrt / immortalwrt

An opensource OpenWrt variant for mainland China users.
https://downloads.immortalwrt.org
Other
5.5k stars 1.6k forks source link

NanoPi R5S 固件存在问题 #910

Closed qingtian110 closed 1 year ago

qingtian110 commented 1 year ago

Describe the bug

拉取最新 master 分支源码,编译 nanopi-r5s 固件 emmc 无法开机tf 卡可以正常开机,通过 tf 卡启动固件后,2.5G 网口只能协商 1000M 速率。

源码 commit 65a05816053836b0081ef830c25fd8e457813584

这是我进行的编译操作,尚未对源码做任何更改:

git clone https://github.com/immortalwrt/immortalwrt --depth=1

cd immortalwrt/

./scripts/feeds update -a && ./scripts/feeds install -a

echo -e "CONFIG_TARGET_rockchip=y\nCONFIG_TARGET_rockchip_armv8=y\nCONFIG_TARGET_rockchip_armv8_DEVICE_friendlyarm_nanopi-r5s=y\nCONFIG_PACKAGE_luci=y\nCONFIG_PACKAGE_luci-base=y" > .config

make defconfig

make -j17

无论我使用 dd 命令写入到 emmc 或者通过 瑞芯微开发工具 MASK 模式 固件 + rk356x_spl_loader_v1.15.112.bin 方式写入,均无法启动,通电后电源红灯常亮。


一下是通过 tf 卡启动得到的 dmesg,不知道能不能找到 2.5G 无法协议的原因。

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 5.15.98 (nssl@debian) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r0-65a0581) 12.2.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP PREEMPT Thu Mar 16 07:02:02 2023
[    0.000000] Machine model: FriendlyElec NanoPi R5S
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000fe660000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 64 MiB at 0x00000000e5000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 18 pages/cpu s33432 r8192 d32104 u73728
[    0.000000] pcpu-alloc: s33432 r8192 d32104 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] alternatives: patching kernel code
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 967176
[    0.000000] Kernel command line: console=ttyS2,1500000 console=tty1 earlycon=uart8250,mmio32,0xfe660000 swiotlb=1 root=PARTUUID=5452574f-02 rw rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 3769848K/3930112K available (8320K kernel code, 2374K rwdata, 5508K rodata, 1664K init, 731K bss, 94728K reserved, 65536K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 320 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    0.000000] ITS [mem 0xfd440000-0xfd45ffff]
[    0.000000] ITS@0x00000000fd440000: allocated 8192 Devices @440000 (indirect, esz 8, psz 64K, shr 0)
[    0.000000] ITS@0x00000000fd440000: allocated 32768 Interrupt Collections @450000 (flat, esz 2, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x0000000000460000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000000470000
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001432] Console: colour dummy device 80x25
[    0.001883] printk: console [tty1] enabled
[    0.002330] printk: bootconsole [uart8250] disabled
[    0.002863] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.002897] pid_max: default: 32768 minimum: 301
[    0.003142] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003196] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.005536] rcu: Hierarchical SRCU implementation.
[    0.005798] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.005892] Platform MSI: interrupt-controller@fd440000 domain created
[    0.006187] PCI/MSI: /interrupt-controller@fd400000/interrupt-controller@fd440000 domain created
[    0.006826] smp: Bringing up secondary CPUs ...
[    0.007557] Detected VIPT I-cache on CPU1
[    0.007604] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    0.007631] GICv3: CPU1: using allocated LPI pending table @0x0000000000480000
[    0.007688] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.008483] Detected VIPT I-cache on CPU2
[    0.008523] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    0.008547] GICv3: CPU2: using allocated LPI pending table @0x0000000000490000
[    0.008591] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    0.009370] Detected VIPT I-cache on CPU3
[    0.009406] GICv3: CPU3: found redistributor 300 region 0:0x00000000fd4c0000
[    0.009429] GICv3: CPU3: using allocated LPI pending table @0x00000000004a0000
[    0.009470] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    0.009584] smp: Brought up 1 node, 4 CPUs
[    0.009729] SMP: Total of 4 processors activated.
[    0.009745] CPU features: detected: 32-bit EL0 Support
[    0.009761] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.009782] CPU features: detected: Common not Private translations
[    0.009798] CPU features: detected: CRC32 instructions
[    0.009813] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.009827] CPU features: detected: Privileged Access Never
[    0.009841] CPU features: detected: RAS Extension Support
[    0.009856] CPU features: detected: Hardware update of the Access flag
[    0.009872] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.010228] CPU: All CPU(s) started at EL2
[    0.022656] KASLR disabled due to lack of seed
[    0.022844] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.022891] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.025048] pinctrl core: initialized pinctrl subsystem
[    0.026647] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.028553] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.029097] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.029877] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.031698] thermal_sys: Registered thermal governor 'step_wise'
[    0.031710] thermal_sys: Registered thermal governor 'power_allocator'
[    0.032293] cpuidle: using governor menu
[    0.032438] ASID allocator initialised with 65536 entries
[    0.032568] Serial: AMBA PL011 UART driver
[    0.057130] rockchip-gpio fdd60000.gpio: probed /pinctrl/gpio@fdd60000
[    0.057693] rockchip-gpio fe740000.gpio: probed /pinctrl/gpio@fe740000
[    0.058261] rockchip-gpio fe750000.gpio: probed /pinctrl/gpio@fe750000
[    0.058793] rockchip-gpio fe760000.gpio: probed /pinctrl/gpio@fe760000
[    0.059331] rockchip-gpio fe770000.gpio: probed /pinctrl/gpio@fe770000
[    0.074140] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.074185] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.074205] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.074224] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.076071] cryptd: max_cpu_qlen set to 1000
[    0.079473] vcc3v3_sys: supplied by vdd_usbc
[    0.080059] vcc5v0_sys: supplied by vdd_usbc
[    0.080665] vcc3v3_pcie: supplied by vcc5v0_sys
[    0.080992] vcc5v0_usb: supplied by vdd_usbc
[    0.081489] vcc5v0_usb_host: supplied by vcc5v0_usb
[    0.082165] vcc5v0_usb_otg: supplied by vcc5v0_usb
[    0.082507] pcie30_avdd0v9: supplied by vcc3v3_sys
[    0.082871] pcie30_avdd1v8: supplied by vcc3v3_sys
[    0.083449] iommu: Default domain type: Translated 
[    0.083471] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.084429] SCSI subsystem initialized
[    0.084674] usbcore: registered new interface driver usbfs
[    0.084744] usbcore: registered new interface driver hub
[    0.084809] usbcore: registered new device driver usb
[    0.085131] pps_core: LinuxPPS API ver. 1 registered
[    0.085151] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.085192] PTP clock support registered
[    0.085808] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    0.085899] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
[    0.087437] clocksource: Switched to clocksource arch_sys_counter
[    0.087681] VFS: Disk quotas dquot_6.6.0
[    0.087767] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.092233] NET: Registered PF_INET protocol family
[    0.092568] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.095048] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.095132] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.095167] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.095476] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[    0.095966] TCP: Hash tables configured (established 32768 bind 32768)
[    0.096134] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.096237] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.096553] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.096609] PCI: CLS 0 bytes, default 64
[    0.102200] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.108874] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.108912] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.163781] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.163991] io scheduler mq-deadline registered
[    0.173805] rockchip-dw-pcie 3c0000000.pcie: host bridge /pcie@fe260000 ranges:
[    0.173879] rockchip-dw-pcie 3c0000000.pcie:       IO 0x00f4100000..0x00f41fffff -> 0x00f4100000
[    0.173923] rockchip-dw-pcie 3c0000000.pcie:      MEM 0x00f4200000..0x00f5ffffff -> 0x00f4200000
[    0.173957] rockchip-dw-pcie 3c0000000.pcie:      MEM 0x0300000000..0x033fffffff -> 0x0040000000
[    0.174098] rockchip-dw-pcie 3c0000000.pcie: iATU unroll: enabled
[    0.174122] rockchip-dw-pcie 3c0000000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[    0.379452] rockchip-dw-pcie 3c0000000.pcie: Link up
[    0.379609] rockchip-dw-pcie 3c0000000.pcie: PCI host bridge to bus 0000:00
[    0.379637] pci_bus 0000:00: root bus resource [bus 00-0f]
[    0.379663] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xf4100000-0xf41fffff])
[    0.379690] pci_bus 0000:00: root bus resource [mem 0xf4200000-0xf5ffffff]
[    0.379712] pci_bus 0000:00: root bus resource [mem 0x300000000-0x33fffffff] (bus address [0x40000000-0x7fffffff])
[    0.379773] pci 0000:00:00.0: [1d87:3566] type 01 class 0x060400
[    0.379817] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    0.379903] pci 0000:00:00.0: supports D1 D2
[    0.379922] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.384900] pci_bus 0000:01: busn_res: can not insert [bus 01-ff] under [bus 00-0f] (conflicts with (null) [bus 00-0f])
[    0.385100] pci 0000:01:00.0: [10ec:8125] type 00 class 0x020000
[    0.385204] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    0.385225] pci 0000:01:00.0: reg 0x10: [io  size 0x0100]
[    0.385327] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x0000ffff 64bit]
[    0.385401] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit]
[    0.385925] pci 0000:01:00.0: supports D1 D2
[    0.385944] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.399804] pci 0000:00:00.0: BAR 8: assigned [mem 0xf4200000-0xf42fffff]
[    0.399844] pci 0000:00:00.0: BAR 6: assigned [mem 0xf4300000-0xf430ffff pref]
[    0.399875] pci 0000:00:00.0: BAR 7: assigned [io  0x1000-0x1fff]
[    0.399905] pci 0000:01:00.0: BAR 2: assigned [mem 0xf4200000-0xf420ffff 64bit]
[    0.399977] pci 0000:01:00.0: BAR 4: assigned [mem 0xf4210000-0xf4213fff 64bit]
[    0.400045] pci 0000:01:00.0: BAR 0: assigned [io  0x1000-0x10ff]
[    0.400080] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.400101] pci 0000:00:00.0:   bridge window [io  0x1000-0x1fff]
[    0.400124] pci 0000:00:00.0:   bridge window [mem 0xf4200000-0xf42fffff]
[    0.400249] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
[    0.402974] pcieport 0000:00:00.0: PME: Signaling with IRQ 67
[    0.403450] pcieport 0000:00:00.0: AER: enabled with IRQ 76
[    0.611531] phy phy-fe8c0000.phy.7: lane number 0, val 1
[    0.611562] phy phy-fe8c0000.phy.7: lane number 1, val 2
[    0.611581] phy phy-fe8c0000.phy.7: bifurcation enabled
[    0.627472] phy phy-fe8c0000.phy.7: p3phy (fw-d54d0eb) initialized
[    0.627589] rockchip-dw-pcie 3c0400000.pcie: host bridge /pcie@fe270000 ranges:
[    0.627646] rockchip-dw-pcie 3c0400000.pcie:       IO 0x037ef00000..0x037effffff -> 0x003ef00000
[    0.627687] rockchip-dw-pcie 3c0400000.pcie:      MEM 0x0340000000..0x037eefffff -> 0x0000000000
[    0.641400] rockchip-dw-pcie 3c0400000.pcie: iATU unroll: enabled
[    0.641425] rockchip-dw-pcie 3c0400000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[    0.847438] rockchip-dw-pcie 3c0400000.pcie: Link up
[    0.847589] rockchip-dw-pcie 3c0400000.pcie: PCI host bridge to bus 0001:10
[    0.847618] pci_bus 0001:10: root bus resource [bus 10-1f]
[    0.847645] pci_bus 0001:10: root bus resource [io  0x100000-0x1fffff] (bus address [0x3ef00000-0x3effffff])
[    0.847674] pci_bus 0001:10: root bus resource [mem 0x340000000-0x37eefffff] (bus address [0x00000000-0x3eefffff])
[    0.847735] pci 0001:10:00.0: [1d87:3566] type 01 class 0x060400
[    0.847779] pci 0001:10:00.0: reg 0x38: [mem 0x340000000-0x34000ffff pref]
[    0.847865] pci 0001:10:00.0: supports D1 D2
[    0.847883] pci 0001:10:00.0: PME# supported from D0 D1 D3hot
[    0.852605] pci 0001:10:00.0: Primary bus is hard wired to 0
[    0.852638] pci 0001:10:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
[    0.852945] pci 0001:11:00.0: [10ec:8125] type 00 class 0x020000
[    0.853047] pci 0001:11:00.0: reg 0x10: [io  0x0000-0x00ff]
[    0.853152] pci 0001:11:00.0: reg 0x18: [mem 0x340000000-0x34000ffff 64bit]
[    0.853227] pci 0001:11:00.0: reg 0x20: [mem 0x340000000-0x340003fff 64bit]
[    0.853746] pci 0001:11:00.0: supports D1 D2
[    0.853764] pci 0001:11:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.867815] pci_bus 0001:11: busn_res: [bus 11-1f] end is updated to 11
[    0.867875] pci 0001:10:00.0: BAR 8: assigned [mem 0x340000000-0x3400fffff]
[    0.867906] pci 0001:10:00.0: BAR 6: assigned [mem 0x340100000-0x34010ffff pref]
[    0.867933] pci 0001:10:00.0: BAR 7: assigned [io  0x100000-0x100fff]
[    0.867962] pci 0001:11:00.0: BAR 2: assigned [mem 0x340000000-0x34000ffff 64bit]
[    0.868037] pci 0001:11:00.0: BAR 4: assigned [mem 0x340010000-0x340013fff 64bit]
[    0.868105] pci 0001:11:00.0: BAR 0: assigned [io  0x100000-0x1000ff]
[    0.868141] pci 0001:10:00.0: PCI bridge to [bus 11]
[    0.868161] pci 0001:10:00.0:   bridge window [io  0x100000-0x100fff]
[    0.868184] pci 0001:10:00.0:   bridge window [mem 0x340000000-0x3400fffff]
[    0.870997] pcieport 0001:10:00.0: PME: Signaling with IRQ 86
[    0.871467] pcieport 0001:10:00.0: AER: enabled with IRQ 87
[    0.872759] rockchip-dw-pcie 3c0800000.pcie: host bridge /pcie@fe280000 ranges:
[    0.872821] rockchip-dw-pcie 3c0800000.pcie:       IO 0x03bef00000..0x03beffffff -> 0x003ef00000
[    0.872862] rockchip-dw-pcie 3c0800000.pcie:      MEM 0x0380000000..0x03beefffff -> 0x0000000000
[    0.885997] rockchip-dw-pcie 3c0800000.pcie: iATU unroll: enabled
[    0.886024] rockchip-dw-pcie 3c0800000.pcie: Detected iATU regions: 8 outbound, 8 inbound
[    1.091429] rockchip-dw-pcie 3c0800000.pcie: Link up
[    1.091589] rockchip-dw-pcie 3c0800000.pcie: PCI host bridge to bus 0002:20
[    1.091617] pci_bus 0002:20: root bus resource [bus 20-2f]
[    1.091642] pci_bus 0002:20: root bus resource [io  0x200000-0x2fffff] (bus address [0x3ef00000-0x3effffff])
[    1.091670] pci_bus 0002:20: root bus resource [mem 0x380000000-0x3beefffff] (bus address [0x00000000-0x3eefffff])
[    1.091731] pci 0002:20:00.0: [1d87:3566] type 01 class 0x060400
[    1.091766] pci 0002:20:00.0: reg 0x10: [mem 0x00000000-0x3fffffff]
[    1.091792] pci 0002:20:00.0: reg 0x14: [mem 0x00000000-0x3fffffff]
[    1.091818] pci 0002:20:00.0: reg 0x38: [mem 0x380000000-0x38000ffff pref]
[    1.091901] pci 0002:20:00.0: supports D1 D2
[    1.091919] pci 0002:20:00.0: PME# supported from D0 D1 D3hot
[    1.096638] pci 0002:20:00.0: Primary bus is hard wired to 0
[    1.096668] pci 0002:20:00.0: bridge configuration invalid ([bus 01-ff]), reconfiguring
[    1.096920] pci 0002:21:00.0: [144d:a808] type 00 class 0x010802
[    1.097033] pci 0002:21:00.0: reg 0x10: [mem 0x380000000-0x380003fff 64bit]
[    1.097715] pci 0002:21:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0002:20:00.0 (capable of 31.504 Gb/s with 8.0 GT/s PCIe x4 link)
[    1.111787] pci_bus 0002:21: busn_res: [bus 21-2f] end is updated to 21
[    1.111846] pci 0002:20:00.0: BAR 0: no space for [mem size 0x40000000]
[    1.111872] pci 0002:20:00.0: BAR 0: failed to assign [mem size 0x40000000]
[    1.111896] pci 0002:20:00.0: BAR 1: no space for [mem size 0x40000000]
[    1.111916] pci 0002:20:00.0: BAR 1: failed to assign [mem size 0x40000000]
[    1.111939] pci 0002:20:00.0: BAR 8: assigned [mem 0x380000000-0x3800fffff]
[    1.111962] pci 0002:20:00.0: BAR 6: assigned [mem 0x380100000-0x38010ffff pref]
[    1.111995] pci 0002:21:00.0: BAR 0: assigned [mem 0x380000000-0x380003fff 64bit]
[    1.112062] pci 0002:20:00.0: PCI bridge to [bus 21]
[    1.112084] pci 0002:20:00.0:   bridge window [mem 0x380000000-0x3800fffff]
[    1.114918] pcieport 0002:20:00.0: PME: Signaling with IRQ 97
[    1.115368] pcieport 0002:20:00.0: AER: enabled with IRQ 98
[    1.120864] dma-pl330 fe530000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.120907] dma-pl330 fe530000.dma-controller:   DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    1.122982] dma-pl330 fe550000.dma-controller: Loaded driver for PL330 DMAC-241330
[    1.123014] dma-pl330 fe550000.dma-controller:   DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    1.124176] arm-scmi firmware:scmi: Failed. SCMI protocol 22 not active.
[    1.125955] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.127613] printk: console [ttyS2] disabled
[    1.127701] fe660000.serial: ttyS2 at MMIO 0xfe660000 (irq = 45, base_baud = 1500000) is a 16550A
[    1.279722] printk: console [ttyS2] enabled
[    1.282509] random: crng init done
[    1.282864] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.287510] loop: module loaded
[    1.287828] mtip32xx Version 1.3.1
[    1.289513] nvme nvme0: pci function 0002:21:00.0
[    1.290022] nvme 0002:21:00.0: enabling device (0000 -> 0002)
[    1.293787] rk_gmac-dwmac fe2a0000.ethernet: IRQ eth_lpi not found
[    1.294799] rk_gmac-dwmac fe2a0000.ethernet: no regulator found
[    1.295345] rk_gmac-dwmac fe2a0000.ethernet: clock input or output? (output).
[    1.296013] rk_gmac-dwmac fe2a0000.ethernet: TX delay(0x3c).
[    1.296529] rk_gmac-dwmac fe2a0000.ethernet: RX delay(0x2f).
[    1.297048] rk_gmac-dwmac fe2a0000.ethernet: integrated PHY? (no).
[    1.302662] rk_gmac-dwmac fe2a0000.ethernet: init for RGMII
[    1.303411] rk_gmac-dwmac fe2a0000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    1.304063] rk_gmac-dwmac fe2a0000.ethernet:     DWMAC4/5
[    1.304532] rk_gmac-dwmac fe2a0000.ethernet: DMA HW capability register supported
[    1.305203] rk_gmac-dwmac fe2a0000.ethernet: RX Checksum Offload Engine supported
[    1.305873] rk_gmac-dwmac fe2a0000.ethernet: TX Checksum insertion supported
[    1.306503] rk_gmac-dwmac fe2a0000.ethernet: Wake-Up On Lan supported
[    1.307079] rk_gmac-dwmac fe2a0000.ethernet: TSO supported
[    1.307598] rk_gmac-dwmac fe2a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.308323] rk_gmac-dwmac fe2a0000.ethernet: device MAC address 26:36:74:c3:4d:85
[    1.308999] rk_gmac-dwmac fe2a0000.ethernet: Enabled RFS Flow TC (entries=8)
[    1.309633] rk_gmac-dwmac fe2a0000.ethernet: TSO feature enabled
[    1.310174] rk_gmac-dwmac fe2a0000.ethernet: Using 32 bits DMA width
[    1.454896] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.455553] ehci-platform: EHCI generic platform driver
[    1.458317] ehci-platform fd800000.usb: EHCI Host Controller
[    1.458856] ehci-platform fd800000.usb: new USB bus registered, assigned bus number 1
[    1.459706] ehci-platform fd800000.usb: irq 20, io mem 0xfd800000
[    1.475418] ehci-platform fd800000.usb: USB 2.0 started, EHCI 1.00
[    1.476563] hub 1-0:1.0: USB hub found
[    1.476947] hub 1-0:1.0: 1 port detected
[    1.480126] ehci-platform fd880000.usb: EHCI Host Controller
[    1.480663] ehci-platform fd880000.usb: new USB bus registered, assigned bus number 2
[    1.481476] ehci-platform fd880000.usb: irq 22, io mem 0xfd880000
[    1.495417] ehci-platform fd880000.usb: USB 2.0 started, EHCI 1.00
[    1.496463] hub 2-0:1.0: USB hub found
[    1.496841] hub 2-0:1.0: 1 port detected
[    1.497945] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.498536] ohci-platform: OHCI generic platform driver
[    1.499272] ohci-platform fd840000.usb: Generic Platform OHCI controller
[    1.499935] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
[    1.500747] ohci-platform fd840000.usb: irq 21, io mem 0xfd840000
[    1.563908] hub 3-0:1.0: USB hub found
[    1.564293] hub 3-0:1.0: 1 port detected
[    1.565332] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
[    1.565954] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 4
[    1.566769] ohci-platform fd8c0000.usb: irq 23, io mem 0xfd8c0000
[    1.627882] hub 4-0:1.0: USB hub found
[    1.628264] hub 4-0:1.0: 1 port detected
[    1.629936] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.630459] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 5
[    1.631300] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
[    1.632230] xhci-hcd xhci-hcd.0.auto: irq 18, io mem 0xfcc00000
[    1.632930] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    1.633438] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 6
[    1.634136] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    1.635224] hub 5-0:1.0: USB hub found
[    1.635640] hub 5-0:1.0: 1 port detected
[    1.636417] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.637591] hub 6-0:1.0: USB hub found
[    1.637970] hub 6-0:1.0: 1 port detected
[    1.638816] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    1.639333] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 7
[    1.640192] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
[    1.641091] xhci-hcd xhci-hcd.1.auto: irq 19, io mem 0xfd000000
[    1.641782] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    1.642290] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 8
[    1.642988] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    1.644062] hub 7-0:1.0: USB hub found
[    1.644442] hub 7-0:1.0: 1 port detected
[    1.645211] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.646386] hub 8-0:1.0: USB hub found
[    1.646775] hub 8-0:1.0: 1 port detected
[    1.647668] usbcore: registered new interface driver usb-storage
[    1.648519] i2c_dev: i2c /dev entries driver
[    1.650862] fan53555-regulator 0-001c: FAN53555 Option[12] Rev[15] Detected!
[    1.653327] vdd_cpu: supplied by vcc5v0_sys
[    1.658522] rk808 0-0020: chip id: 0x8090
[    1.733422] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    1.734016] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    1.736666] vdd_logic: supplied by vcc3v3_sys
[    1.742442] vdd_gpu: supplied by vcc3v3_sys
[    1.747242] vcc_ddr: supplied by vcc3v3_sys
[    1.752620] vdd_npu: supplied by vcc3v3_sys
[    1.754058] vcc_1v8: supplied by vcc3v3_sys
[    1.757390] vdda0v9_image: Bringing 900000uV into 950000-950000uV
[    1.761258] vdda0v9_image: supplied by vcc3v3_sys
[    1.762734] vdda_0v9: supplied by vcc3v3_sys
[    1.767525] vdda0v9_pmu: supplied by vcc3v3_sys
[    1.772377] vccio_acodec: supplied by vcc3v3_sys
[    1.777357] vccio_sd: supplied by vcc3v3_sys
[    1.779272] vcc3v3_pmu: supplied by vcc3v3_sys
[    1.784114] vcca_1v8: supplied by vcc3v3_sys
[    1.788936] vcca1v8_pmu: supplied by vcc3v3_sys
[    1.794376] vcca1v8_image: supplied by vcc3v3_sys
[    1.795395] vcc_3v3: supplied by vcc3v3_sys
[    1.797778] vcc3v3_sd: supplied by vcc3v3_sys
[    1.805639] input: rk805 pwrkey as /devices/platform/fdd40000.i2c/i2c-0/0-0020/rk805-pwrkey/input/input0
[    1.817582] rk808-rtc rk808-rtc: registered as rtc0
[    1.820689] rk808-rtc rk808-rtc: setting system clock to 2017-08-05T09:00:08 UTC (1501923608)
[    1.829696] arm-scmi firmware:scmi: Failed. SCMI protocol 19 not active.
[    1.831255] sdhci: Secure Digital Host Controller Interface driver
[    1.831892] sdhci: Copyright(c) Pierre Ossman
[    1.832295] Synopsys Designware Multimedia Card Interface Driver
[    1.833387] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.834168] dwmmc_rockchip fe2b0000.mmc: IDMAC supports 32-bit address mode.
[    1.834834] dwmmc_rockchip fe2b0000.mmc: Using internal DMA controller.
[    1.835561] dwmmc_rockchip fe2b0000.mmc: Version ID is 270a
[    1.836101] dwmmc_rockchip fe2b0000.mmc: DW MMC controller at irq 35,32 bit host data width,256 deep fifo
[    1.837017] ledtrig-cpu: registered to indicate activity on CPUs
[    1.837891] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    1.838636] usbcore: registered new interface driver usbhid
[    1.839136] usbhid: USB HID core driver
[    1.840818] NET: Registered PF_INET6 protocol family
[    1.842287] Segment Routing with IPv6
[    1.842644] In-situ OAM (IOAM) with IPv6
[    1.843040] NET: Registered PF_PACKET protocol family
[    1.843583] 8021q: 802.1Q VLAN Support v1.8
[    1.851465] mmc_host mmc0: Bus speed (slot 0) = 375000Hz (slot req 400000Hz, actual 375000HZ div = 0)
[    1.866921] mmc1: SDHCI controller on fe310000.mmc [fe310000.mmc] using ADMA
[    1.925698] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    1.926638] mmc0: new high speed SDHC card at address aaaa
[    1.928020] mmcblk0: mmc0:aaaa SC32G 29.7 GiB 
[    1.931404]  mmcblk0: p1 p2
[    1.934501] mmc1: new HS200 MMC card at address 0001
[    1.935712] mmcblk1: mmc1:0001 8GTF4R 7.28 GiB 
[    1.937718]  mmcblk1: p1 p2
[    1.938627] mmcblk1boot0: mmc1:0001 8GTF4R 4.00 MiB 
[    1.940460] mmcblk1boot1: mmc1:0001 8GTF4R 4.00 MiB 
[    1.941534] mmcblk1rpmb: mmc1:0001 8GTF4R 512 KiB, chardev (246:0)
[    2.698304] nvme nvme0: missing or invalid SUBNQN field.
[    2.698990] nvme nvme0: Shutdown timeout set to 8 seconds
[    2.718871] nvme nvme0: 4/0/0 default/read/poll queues
[    2.732071]  nvme0n1: p1
[    2.742124] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    2.744250] Freeing unused kernel memory: 1664K
[    2.755690] Run /sbin/init as init process
[    2.756102]   with arguments:
[    2.756111]     /sbin/init
[    2.756120]   with environment:
[    2.756125]     HOME=/
[    2.756133]     TERM=linux
[    3.033958] init: Console is alive
[    3.034538] init: - watchdog -
[    3.257509] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.300422] usbcore: registered new interface driver uas
[    3.301050] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.307426] init: - preinit -
[    3.731772] dw-apb-uart fe660000.serial: forbid DMA for kernel console
[    5.780606] mount_root: loading kmods from internal overlay
[    5.788598] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    5.790194] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    5.987169] block: attempting to load /etc/config/fstab
[    5.991758] block: unable to load configuration (fstab: Entry not found)
[    5.992423] block: no usable configuration
[    5.993337] loop0: detected capacity change from 0 to 1769472
[    6.023462] loop0: detected capacity change from 1769472 to 1758080
[    6.026882] mount_root: overlay filesystem in /dev/loop0 has not been formatted yet
[    6.456491] F2FS-fs (loop0): Found nat_bits in checkpoint
[    6.465781] F2FS-fs (loop0): Mounted with checkpoint version = 63bce0d3
[    6.541409] block: attempting to load /etc/config/fstab
[    6.541946] block: unable to load configuration (fstab: Entry not found)
[    6.542570] block: no usable configuration
[    6.543619] mount_root: overlay filesystem has not been fully initialized yet
[    6.544623] mount_root: switching to f2fs overlay
[    6.631624] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null). Quota mode: none.
[    6.638173] urandom-seed: Seed file not found (/etc/urandom.seed)
[    6.654065] procd: - early -
[    6.654435] procd: - watchdog -
[    7.202462] procd: - watchdog -
[    7.203077] procd: - ubus -
[    7.257535] procd: - init -
[    7.424206] urngd: v1.0.2 started.
[    7.461226] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.469304] NET: Registered PF_ALG protocol family
[    7.475839] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.478259] cryptodev: driver 1.12 loaded.
[    7.481387] ntfs3: Max link count 4000
[    7.481747] ntfs3: Enabled Linux POSIX ACLs support
[    7.492842] r8125 0000:01:00.0: of_irq_parse_pci: failed with rc=-22
[    7.493433] r8125 2.5Gigabit Ethernet driver 9.011.00-NAPI-RSS loaded
[    7.494062] r8125 0000:01:00.0: enabling device (0000 -> 0003)
[    7.512118] r8125 0000:01:00.0 (unnamed net_device) (uninitialized): Invalid ether addr 00:00:00:00:00:00
[    7.512990] r8125 0000:01:00.0 (unnamed net_device) (uninitialized): Random ether addr ee:07:4c:47:02:3a
[    7.514367] r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[    7.517487] r8125  Copyright (C) 2022 Realtek NIC software team <nicfae@realtek.com> 
[    7.517487]  This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>. 
[    7.517487]  This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>. 
[    7.520468] r8125 2.5Gigabit Ethernet driver 9.011.00-NAPI-RSS loaded
[    7.521106] r8125 0001:11:00.0: enabling device (0000 -> 0003)
[    7.539233] r8125 0001:11:00.0 (unnamed net_device) (uninitialized): Invalid ether addr 00:00:00:00:00:00
[    7.540158] r8125 0001:11:00.0 (unnamed net_device) (uninitialized): Random ether addr 92:b5:f0:e8:02:b4
[    7.541602] r8125: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[    7.544635] r8125  Copyright (C) 2022 Realtek NIC software team <nicfae@realtek.com> 
[    7.544635]  This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>. 
[    7.544635]  This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>. 
[    7.549080] usbcore: registered new interface driver ums-alauda
[    7.550269] usbcore: registered new interface driver ums-cypress
[    7.551463] usbcore: registered new interface driver ums-datafab
[    7.552481] usbcore: registered new interface driver ums-freecom
[    7.553806] usbcore: registered new interface driver ums-isd200
[    7.555038] usbcore: registered new interface driver ums-jumpshot
[    7.556046] usbcore: registered new interface driver ums-karma
[    7.557007] usbcore: registered new interface driver ums-sddr09
[    7.557929] usbcore: registered new interface driver ums-sddr55
[    7.558914] usbcore: registered new interface driver ums-usbat
[    7.582073] PPP generic driver version 2.4.2
[    7.583077] PPP MPPE Compression module registered
[    7.584129] NET: Registered PF_PPPOX protocol family
[    7.587899] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.637212] eth1: 0xffff800009cd0000, e2:4e:9b:24:d3:52, IRQ 0
[   14.685591] br-lan: port 1(eth1) entered blocking state
[   14.686093] br-lan: port 1(eth1) entered disabled state
[   14.686770] device eth1 entered promiscuous mode
[   14.720247] eth2: 0xffff800009c90000, e2:4e:9b:24:d3:52, IRQ 77
[   14.768555] br-lan: port 2(eth2) entered blocking state
[   14.769045] br-lan: port 2(eth2) entered disabled state
[   14.769837] device eth2 entered promiscuous mode
[   14.776246] rk_gmac-dwmac fe2a0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[   14.871436] rk_gmac-dwmac fe2a0000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[   14.879432] dwmac4: Master AXI performs any burst length
[   14.879948] rk_gmac-dwmac fe2a0000.ethernet eth0: No Safety Features support found
[   14.880647] rk_gmac-dwmac fe2a0000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[   14.881554] rk_gmac-dwmac fe2a0000.ethernet eth0: registered PTP clock
[   14.882555] rk_gmac-dwmac fe2a0000.ethernet eth0: configuring for phy/rgmii link mode
[   17.367198] r8125: eth2: link up
[   17.367673] br-lan: port 2(eth2) entered blocking state
[   17.368184] br-lan: port 2(eth2) entered forwarding state
[   17.369262] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   17.835210] r8125: eth1: link up
[   17.835726] br-lan: port 1(eth1) entered blocking state
[   17.836245] br-lan: port 1(eth1) entered forwarding state
[   19.015516] rk_gmac-dwmac fe2a0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx
[   19.016407] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  341.484639] pppoe-wan: renamed from ppp0

ethtool

root@ImmortalWrt:~# ethtool eth2
Settings for eth2:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
                                2500baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
                                             2500baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes
root@ImmortalWrt:~#

ImmortalWrt version

master分支,忘记记录这个字段具体内容了

ImmortalWrt target/subtarget

rockchip/armv8

Device

FriendlyElec NanoPi R5S

Image kind

Self-built image

Steps to reproduce

No response

Actual behaviour

No response

Expected behaviour

No response

Additional info

image image

Diffconfig

No response

Terms

1715173329 commented 1 year ago

协商的问题: https://transfer.sh/ku7HQu/100-Revert-device-add-support-for-configuring-device-link-spe.patch 放到 package/network/config/netifd/patches 下面

或者用 R8169 驱动。

至于你说的刷入 EMMC 无法开机,无法复现,需要你自己接 TTL 看下是什么情况。

qingtian110 commented 1 year ago

我将 https://github.com/immortalwrt/immortalwrt/tree/master/package/kernel/r8125 目录内容替换成第三方的驱动后 https://github.com/sbwml/package_kernel_r8125 。2.5G 目前协商正常了,虽然不知道为什么显示为 2500baseX ,它明明是电口。不过它也工作正常了,iperf 测速也没有异常 2.37Gbps/s

Settings for eth2:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
                            2500baseX/Full 
    Supported pause frame use: Symmetric Receive-only
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                         100baseT/Half 100baseT/Full 
                                         1000baseT/Full 
                                         2500baseX/Full 
    Link partner advertised pause frame use: Symmetric Receive-only
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 2500Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    MDI-X: Unknown
    Supports Wake-on: pumbg
    Wake-on: g
    Current message level: 0x00000033 (51)
                   drv probe ifdown ifup
    Link detected: yes

image

不过EMMC 不能启动没有找到原因。也没有TTL 线在身边,目前有测试到 LEDE 的源码编译出来和第三方编译的OpenWrt 22.03 是可以正常通过 EMMC 启动的。

qingtian110 commented 1 year ago

至于你说的刷入 EMMC 无法开机,无法复现,需要你自己接 TTL 看下是什么情况。

好像uboot 的问题,我如果使用 LEDE 升级的方式将固件刷入 EMMC ,它可以正常启动。我只要完全破坏 EMMC 的数据后写入固件进去,他就无法启动了。

我是通过TF 启动固件,并将固件这样的方式写入EMMC dd if=immortalwrt-rockchip-armv8-friendlyarm_nanopi-r5s-squashfs-sysupgrade.img of=/dev/mmcblk1 bs=1M && sync

qingtian110 commented 1 year ago

解决EMMC了,替换掉 arm-trusted-firmware-rockchip 和 uboot-rockchip 后在我的机器上启动了