LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 03-19-2022, 08:02 AM   #1
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Rep: Reputation: Disabled
NanoPi R4S RK3399 (aarch64)


information NanoPi R4S:

Specifications:
  • SoC: Rockchip RK3399
  • CPU: big.LITTLE,Dual-Core Cortex-A72(up to 2.0GHz) + Quad-Core Cortex-A53(up to 1.5GHz)
  • GPU: Mali-T864 GPU,supports OpenGL ES1.1/2.0/3.0/3.1, OpenCL, DX11, and AFBC
  • VPU: 4K VP9 and 4K 10bits H265/H264 60fps decoding, Dual VOP, etc
  • RAM: 4GB LPDDR4
  • Storage: no Onboard eMMC
  • Network: one Native Gigabit Ethernet, and one PCIe Gigabit Ethernet
  • PMU Power Management: RK808-D PMIC, cooperated with independent DC/DC, enabling DVFS, software power-down, RTC wake-up, system sleep mode
  • USB Host: two USB 3.0 Type-A ports
  • Debug Serial Port/UART0: one Debug UART, 3 Pin 2.54mm header, 3V level, 1500000bps
  • microSD Slot: 1
  • GPIO: 2x5-pin header: SPI x 1, I2C x 1
  • 4-pin header: USB 2.0
  • LED: 1 x power LED and 3 x GPIO Controlled LED (SYS, LAN, WAN)
  • PCB Dimension: 8 Layer, 66 mm x 66 mm
  • Power: DC 5V/3A, via USB-C connector or Pin header
  • Working temperature: -20℃ to 70℃
Attached Thumbnails
Click image for larger version

Name:	NanoPi_R4S-4GB_Front.jpg
Views:	13
Size:	247.7 KB
ID:	38629   Click image for larger version

Name:	NanoPi_R4S-4GB_Back.jpg
Views:	10
Size:	152.8 KB
ID:	38630  

Last edited by sndwvs; 03-19-2022 at 08:41 AM.
 
Old 04-20-2022, 08:15 AM   #3
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Hi sndwvs,

I hope you are well.
I finally got my NanoPi r4s, and it seems to work more or less okay.
I managed to hook it up to minicom, via a usb-serial adapter, and the boards debug UART connector.
Your image that you created without actually having such a device, booted well (enough).

My only problem is that out of the two network interfaces, only one shows up, and the other one is invisible for some reason.
Here are the boot logs, plus some additional activity:

Code:
U-Boot TPL 2022.01-rk3399 (Mar 19 2022 - 19:26:51)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...

U-Boot SPL 2022.01-rk3399 (Mar 19 2022 - 19:26:51 +0100)
Trying to boot from MMC1


U-Boot 2022.01-rk3399 (Mar 19 2022 - 19:28:42 +0100)

SoC: Rockchip rk3399
Reset cause: POR
Model: FriendlyElec NanoPi R4S
DRAM:  3.9 GiB
PMIC:  RK808 
MMC:   mmc@fe320000: 1
Loading Environment from MMC... MMC Device 0 not found
*** Warning - No MMC card found, using default environment

rk3399_vop vop@ff8f0000: failed to get ahb reset (ret=-524)
rk3399_vop vop@ff8f0000: failed to get ahb reset (ret=-524)
In:    serial
Out:   serial
Err:   serial
Model: FriendlyElec NanoPi R4S
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0 
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
Bus usb@fe800000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus usb@fe900000: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fe380000 for devices... 1 USB Device(s) found
scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found
scanning bus usb@fe800000 for devices... 1 USB Device(s) found
scanning bus usb@fe900000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
1689 bytes read in 8 ms (206.1 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
78 bytes read in 8 ms (8.8 KiB/s)
78981 bytes read in 16 ms (4.7 MiB/s)
29403648 bytes read in 1264 ms (22.2 MiB/s)
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
9553546 bytes read in 419 ms (21.7 MiB/s)
Moving Image from 0x2080000 to 0x2200000, end=3eb0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    9553482 Bytes = 9.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
Host not halted after 16000 microseconds.
Host not halted after 16000 microseconds.
   Loading Ramdisk to f1615000, end f1f3164a ... OK
   Loading Device Tree to 00000000f1599000, end 00000000f1614fff ... OK

Starting kernel ...

[    1.417723] rockchip-usb2phy ff770000.syscon:usb2phy@e450: failed to create phy
[    1.419368] rockchip-usb2phy ff770000.syscon:usb2phy@e460: failed to create phy
[    7.102060] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[    9.471628] Bluetooth: hci0: command 0xfc45 tx timeout
[   17.631682] Bluetooth: hci0: BCM: failed to write clock (-110)
[   17.632268] Bluetooth: hci0: Failed to set baudrate
[   19.647630] Bluetooth: hci0: command 0x0c03 tx timeout
[   27.871666] Bluetooth: hci0: BCM: Reset failed (-110)

...

root@nanopi-r4s:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs            32M  2.5M   30M   8% /run
devtmpfs        8.0M     0  8.0M   0% /dev
/dev/mmcblk1p1   29G  5.0G   24G  18% /
shm             1.9G     0  1.9G   0% /dev/shm
cgroup_root     8.0M     0  8.0M   0% /sys/fs/cgroup
tmpfs           387M     0  387M   0% /run/user/0
root@nanopi-r4s:~# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether 8e:36:bf:5f:82:34 brd ff:ff:ff:ff:ff:ff
root@nanopi-r4s:~# ifconfig eth0 up
root@nanopi-r4s:~# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 8e:36:bf:5f:82:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.A.B/24 brd 192.168.A.255 scope global dynamic noprefixroute eth0
       valid_lft 28794sec preferred_lft 25194sec

root@nanopi-r4s:~# lspci   
00:00.0 PCI bridge: Rockchip Electronics Co., Ltd RK3399 PCI Express Root Port
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
root@nanopi-r4s:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@nanopi-r4s:~#
 
Old 04-20-2022, 08:20 AM   #4
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Code:
root@nanopi-r4s:~# dmesg       
Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Linux version 5.16.16 (root@pi4-build) (gcc (GCC) 11.2.0, GNU ld version 2.38-slack151) #1 SMP PREEMPT Sat Mar 19 19:30:14 CET 2022
Machine model: FriendlyElec NanoPi R4S
efi: UEFI not found.
NUMA: No NUMA configuration found
NUMA: Faking a node at [mem 0x0000000000200000-0x00000000f7ffffff]
NUMA: NODE_DATA [mem 0xf77d1040-0xf77d2fff]
Zone ranges:
  DMA      [mem 0x0000000000200000-0x00000000f7ffffff]
  DMA32    empty
  Normal   empty
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x0000000000200000-0x00000000f7ffffff]
Initmem setup node 0 [mem 0x0000000000200000-0x00000000f7ffffff]
On node 0, zone DMA: 512 pages in unavailable ranges
cma: Reserved 128 MiB at 0x00000000e9400000
psci: probing for conduit method from DT.
psci: PSCIv1.1 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: MIGRATE_INFO_TYPE not supported.
psci: SMC Calling Convention v1.2
percpu: Embedded 29 pages/cpu s80472 r8192 d30120 u118784
pcpu-alloc: s80472 r8192 d30120 u118784 alloc=29*4096
pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 
Detected VIPT I-cache on CPU0
CPU features: detected: GIC system register CPU interface
CPU features: detected: ARM erratum 845719
Fallback order for Node 0: 0 
Built 1 zonelists, mobility grouping on.  Total pages: 999432
Policy zone: DMA
Kernel command line: root=/dev/mmcblk1p1 ro rootwait rootfstype=ext4 init=/sbin/init console=ttyS2,1500000n8 console=tty1 consoleblank=0 loglevel=4 usb-storage.quirks= 
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
mem auto-init: stack:off, heap alloc:on, heap free:off
Memory: 3812608K/4061184K available (15552K kernel code, 2666K rwdata, 6084K rodata, 4288K init, 589K bss, 117504K reserved, 131072K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
trace event string verifier disabled
rcu: Preemptible hierarchical RCU implementation.
rcu:     RCU event tracing is enabled.
rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=6.
 Trampoline variant of Tasks RCU enabled.
 Rude variant of Tasks RCU enabled.
 Tracing variant of Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
GICv3: GIC: Using split EOI/Deactivate mode
GICv3: 256 SPIs implemented
GICv3: 0 Extended SPIs implemented
GICv3: Distributor has no Range Selector support
Root IRQ handler: gic_handle_irq
GICv3: 16 PPIs implemented
GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000
ITS [mem 0xfee20000-0xfee3ffff]
ITS@0x00000000fee20000: allocated 65536 Devices @500000 (flat, esz 8, psz 64K, shr 0)
ITS: using cache flushing for cmd queue
GICv3: using LPI property table @0x00000000004d0000
GIC: using cache flushing for LPI property table
GICv3: CPU0: using allocated LPI pending table @0x00000000004e0000
GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
random: get_random_bytes called from start_kernel+0x7dc/0x9c4 with crng_init=0
arch_timer: cp15 timer(s) running at 24.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
Console: colour dummy device 80x25
printk: console [tty1] enabled
Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
pid_max: default: 32768 minimum: 301
LSM: Security Framework initializing
Yama: becoming mindful.
AppArmor: AppArmor initialized
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
rcu: Hierarchical SRCU implementation.
Platform MSI: interrupt-controller@fee20000 domain created
PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
EFI services will not be available.
smp: Bringing up secondary CPUs ...
Detected VIPT I-cache on CPU1
GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000
GICv3: CPU1: using allocated LPI pending table @0x00000000004f0000
CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
Detected VIPT I-cache on CPU2
GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000
GICv3: CPU2: using allocated LPI pending table @0x0000000000580000
CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
Detected VIPT I-cache on CPU3
GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000
GICv3: CPU3: using allocated LPI pending table @0x0000000000590000
CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
CPU features: detected: Spectre-v2
CPU features: detected: Spectre-BHB
CPU features: detected: ARM errata 1165522, 1319367, or 1530923
Detected PIPT I-cache on CPU4
GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000
GICv3: CPU4: using allocated LPI pending table @0x00000000005a0000
CPU4: Booted secondary processor 0x0000000100 [0x410fd082]
Detected PIPT I-cache on CPU5
GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000
GICv3: CPU5: using allocated LPI pending table @0x00000000005b0000
CPU5: Booted secondary processor 0x0000000101 [0x410fd082]
smp: Brought up 1 node, 6 CPUs
SMP: Total of 6 processors activated.
CPU features: detected: 32-bit EL0 Support
CPU features: detected: 32-bit EL1 Support
CPU features: detected: CRC32 instructions
CPU: All CPU(s) started at EL2
alternatives: patching kernel code
devtmpfs: initialized
Registered cp15_barrier emulation handler
Registered setend emulation handler
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
pinctrl core: initialized pinctrl subsystem
DMI not present or invalid.
NET: Registered PF_NETLINK/PF_ROUTE protocol family
DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.072:1): state=initialized audit_enabled=0 res=1
thermal_sys: Registered thermal governor 'fair_share'
thermal_sys: Registered thermal governor 'bang_bang'
thermal_sys: Registered thermal governor 'step_wise'
thermal_sys: Registered thermal governor 'user_space'
cpuidle: using governor menu
hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
ASID allocator initialised with 65536 entries
Serial: AMBA PL011 UART driver
platform ff940000.hdmi: Fixing up cyclic dependency with ff8f0000.vop
platform ff940000.hdmi: Fixing up cyclic dependency with ff900000.vop
rockchip-gpio ff720000.gpio: probed /pinctrl/gpio@ff720000
rockchip-gpio ff730000.gpio: probed /pinctrl/gpio@ff730000
rockchip-gpio ff780000.gpio: probed /pinctrl/gpio@ff780000
rockchip-gpio ff788000.gpio: probed /pinctrl/gpio@ff788000
rockchip-gpio ff790000.gpio: probed /pinctrl/gpio@ff790000
HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
cryptd: max_cpu_qlen set to 1000
raid6: neonx8   gen()  1666 MB/s
raid6: neonx8   xor()  1221 MB/s
raid6: neonx4   gen()  1679 MB/s
raid6: neonx4   xor()  1265 MB/s
raid6: neonx2   gen()  1502 MB/s
raid6: neonx2   xor()  1172 MB/s
raid6: neonx1   gen()  1160 MB/s
raid6: neonx1   xor()   955 MB/s
raid6: int64x8  gen()   905 MB/s
raid6: int64x8  xor()   552 MB/s
raid6: int64x4  gen()  1005 MB/s
raid6: int64x4  xor()   579 MB/s
raid6: int64x2  gen()   948 MB/s
raid6: int64x2  xor()   515 MB/s
raid6: int64x1  gen()   724 MB/s
raid6: int64x1  xor()   383 MB/s
raid6: using algorithm neonx4 gen() 1679 MB/s
raid6: .... xor() 1265 MB/s, rmw enabled
raid6: using neon recovery algorithm
iommu: Default domain type: Translated 
iommu: DMA domain TLB invalidation policy: strict mode 
vgaarb: loaded
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
NetLabel:  unlabeled traffic allowed by default
clocksource: Switched to clocksource arch_sys_counter
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
AppArmor: AppArmor Filesystem Enabled
NET: Registered PF_INET protocol family
IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
TCP: Hash tables configured (established 32768 bind 32768)
UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
NET: Registered PF_UNIX/PF_LOCAL protocol family
NET: Registered PF_XDP protocol family
PCI: CLS 0 bytes, default 64
Trying to unpack rootfs image as initramfs...
hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
kvm [1]: IPA Size Limit: 40 bits
kvm [1]: vgic-v2@fff20000
kvm [1]: GIC system register CPU interface enabled
kvm [1]: vgic interrupt IRQ18
kvm [1]: Hyp mode initialized successfully
Initialise system trusted keyrings
Key type blacklist registered
workingset: timestamp_bits=44 max_order=20 bucket_order=0
zbud: loaded
squashfs: version 4.0 (2009/01/31) Phillip Lougher
fuse: init (API version 7.35)
integrity: Platform Keyring initialized
xor: measuring software checksum speed
   8regs           :  2537 MB/sec
   32regs          :  2918 MB/sec
   arm64_neon      :  2239 MB/sec
xor: using function: 32regs (2918 MB/sec)
Key type asymmetric registered
Asymmetric key parser 'x509' registered
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
io scheduler mq-deadline registered
io scheduler kyber registered
io scheduler bfq registered
rockchip-usb2phy ff770000.syscon:usb2phy@e450: failed to create phy
rockchip-usb2phy ff770000.syscon:usb2phy@e460: failed to create phy
dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
dma-pl330 ff6d0000.dma-controller:       DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
dma-pl330 ff6e0000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 41, base_baud = 1500000) is a 16550A
serial serial0: tty port ttyS0 registered
ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 42, base_baud = 1500000) is a 16550A
printk: console [ttyS2] enabled
Serial: AMBA driver
cacheinfo: Unable to detect cache hierarchy for CPU 0
loop: module loaded
tun: Universal TUN/TAP device driver, 1.6
thunder_xcv, ver 1.0
thunder_bgx, ver 1.0
nicpf, ver 1.0
e1000e: Intel(R) PRO/1000 Network Driver
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
igb: Intel(R) Gigabit Ethernet Network Driver
igb: Copyright (c) 2007-2014 Intel Corporation.
igbvf: Intel(R) Gigabit Virtual Function Network Driver
igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
sky2: driver version 1.30
VFIO - User Level meta-driver version: 0.3
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c_dev: i2c /dev entries driver
dw_wdt ff848000.watchdog: No valid TOPs array specified
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
Synopsys Designware Multimedia Card Interface Driver
sdhci-pltfm: SDHCI platform and OF driver helper
ledtrig-cpu: registered to indicate activity on CPUs
SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
hid: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
drop_monitor: Initializing network drop monitor service
NET: Registered PF_INET6 protocol family
Freeing initrd memory: 9328K
Segment Routing with IPv6
In-situ OAM (IOAM) with IPv6
NET: Registered PF_PACKET protocol family
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
registered taskstats version 1
Loading compiled-in X.509 certificates
Loaded X.509 cert 'Build time autogenerated kernel key: fb9fab9e77f4a6090d7619a5336ece780194f545'
zswap: loaded using pool lzo/zbud
Key type ._fscrypt registered
Key type .fscrypt registered
Key type fscrypt-provisioning registered
Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
Key type encrypted registered
AppArmor: AppArmor sha1 policy hashing enabled
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x8000000002010010
xhci-hcd xhci-hcd.0.auto: irq 73, io mem 0xfe900000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: xHCI Host Controller
usb usb1: Manufacturer: Linux 5.16.16 xhci-hcd
usb usb1: SerialNumber: xhci-hcd.0.auto
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.16
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 5.16.16 xhci-hcd
usb usb2: SerialNumber: xhci-hcd.0.auto
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ehci-platform fe380000.usb: EHCI Host Controller
ehci-platform fe380000.usb: new USB bus registered, assigned bus number 3
ehci-platform fe380000.usb: irq 33, io mem 0xfe380000
ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00
usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: EHCI Host Controller
usb usb3: Manufacturer: Linux 5.16.16 ehci_hcd
usb usb3: SerialNumber: fe380000.usb
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
ehci-platform fe3c0000.usb: EHCI Host Controller
ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 4
ehci-platform fe3c0000.usb: irq 35, io mem 0xfe3c0000
ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00
usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.16
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: EHCI Host Controller
usb usb4: Manufacturer: Linux 5.16.16 ehci_hcd
usb usb4: SerialNumber: fe3c0000.usb
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
ohci-platform fe3a0000.usb: Generic Platform OHCI controller
ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 5
ohci-platform fe3a0000.usb: irq 34, io mem 0xfe3a0000
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.16
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: Generic Platform OHCI controller
usb usb5: Manufacturer: Linux 5.16.16 ohci_hcd
usb usb5: SerialNumber: fe3a0000.usb
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 1 port detected
ohci-platform fe3e0000.usb: Generic Platform OHCI controller
ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 6
ohci-platform fe3e0000.usb: irq 36, io mem 0xfe3e0000
usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.16
usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb6: Product: Generic Platform OHCI controller
usb usb6: Manufacturer: Linux 5.16.16 ohci_hcd
usb usb6: SerialNumber: fe3e0000.usb
hub 6-0:1.0: USB hub found
hub 6-0:1.0: 1 port detected
fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected!
fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected!
rk808 0-001b: chip id: 0x0
rk808-regulator rk808-regulator: there is no dvs0 gpio
rk808-regulator rk808-regulator: there is no dvs1 gpio
rk808-regulator rk808-regulator: max buck steps per change: 8
random: fast init done
rk808-rtc rk808-rtc: registered as rtc0
rk808-rtc rk808-rtc: setting system clock to 2013-01-18T08:50:17 UTC (1358499017)
dwmmc_rockchip fe320000.mmc: IDMAC supports 32-bit address mode.
dwmmc_rockchip fe320000.mmc: Using internal DMA controller.
dwmmc_rockchip fe320000.mmc: Version ID is 270a
dwmmc_rockchip fe320000.mmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo
dwmmc_rockchip fe320000.mmc: Got CD GPIO
rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges:
rockchip-pcie f8000000.pcie:      MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000
rockchip-pcie f8000000.pcie:       IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000
rockchip-pcie f8000000.pcie: no bus scan delay, default to 0 ms
rockchip-pcie f8000000.pcie: no vpcie12v regulator found
mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
rockchip-pcie f8000000.pcie: wait 0 ms (from device tree) before bus scan
rockchip-pcie f8000000.pcie: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [bus 00-1f]
pci_bus 0000:00: root bus resource [mem 0xfa000000-0xfbdfffff]
pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0xfbe00000-0xfbefffff])
pci 0000:00:00.0: [1d87:0100] type 01 class 0x060400
pci 0000:00:00.0: supports D1
pci 0000:00:00.0: PME# supported from D0 D1 D3hot
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:01:00.0: [10ec:8168] type 00 class 0x020000
pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
pci 0000:01:00.0: reg 0x10: [io  size 0x0100]
pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit]
pci 0000:01:00.0: Upstream bridge's Max Payload Size set to 128 (was 256, max 256)
pci 0000:01:00.0: Max Payload Size set to 128 (was 128, max 128)
pci 0000:01:00.0: supports D1 D2
pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
pci_bus 0000:01: busn_res: [bus 01-1f] end is updated to 01
pci 0000:00:00.0: BAR 14: assigned [mem 0xfa000000-0xfa0fffff]
pci 0000:01:00.0: BAR 4: assigned [mem 0xfa000000-0xfa003fff 64bit]
pci 0000:01:00.0: BAR 2: assigned [mem 0xfa004000-0xfa004fff 64bit]
pci 0000:01:00.0: BAR 0: no space for [io  size 0x0100]
pci 0000:01:00.0: BAR 0: failed to assign [io  size 0x0100]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0:   bridge window [mem 0xfa000000-0xfa0fffff]
pcieport 0000:00:00.0: enabling device (0000 -> 0002)
pcieport 0000:00:00.0: PME: Signaling with IRQ 89
pcieport 0000:00:00.0: AER: enabled with IRQ 89
input: gpio-keys as /devices/platform/gpio-keys/input/input0
Freeing unused kernel memory: 4288K
Run /init as init process
  with arguments:
    /init
  with environment:
    HOME=/
    TERM=linux
mmc_host mmc1: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0)
random: udevd: uninitialized urandom read (16 bytes read)
random: udevd: uninitialized urandom read (16 bytes read)
random: udevd: uninitialized urandom read (16 bytes read)
udevd[251]: starting eudev-3.2.11
dwmmc_rockchip fe320000.mmc: Successfully tuned phase to 173
mmc1: new ultra high speed SDR104 SDHC card at address 0007
mmcblk1: mmc1:0007 SL32G 29.0 GiB 
 mmcblk1: p1
SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
urandom_read: 3 callbacks suppressed
random: vgchange: uninitialized urandom read (4 bytes read)
EXT4-fs (mmcblk1p1): mounted filesystem without journal. Opts: (null). Quota mode: none.
random: udevd: uninitialized urandom read (16 bytes read)
random: udevd: uninitialized urandom read (16 bytes read)
random: udevd: uninitialized urandom read (16 bytes read)
udevd[533]: starting eudev-3.2.11
mc: Linux media interface: v0.10
videodev: Linux video capture interface: v2.00
rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found
rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found
rk_gmac-dwmac fe300000.ethernet: PTP uses main clock
rk_gmac-dwmac fe300000.ethernet: clock input or output? (input).
rk_gmac-dwmac fe300000.ethernet: TX delay(0x28).
rk_gmac-dwmac fe300000.ethernet: RX delay(0x11).
rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no).
rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
rk_gmac-dwmac fe300000.ethernet: clock input from PHY
Bluetooth: Core ver 2.22
NET: Registered PF_BLUETOOTH protocol family
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
rk_gmac-dwmac fe300000.ethernet: init for RGMII
rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35
rk_gmac-dwmac fe300000.ethernet:         DWMAC1000
rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported
rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported
rk_gmac-dwmac fe300000.ethernet: COE Type 2
rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported
rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported
rk_gmac-dwmac fe300000.ethernet: Normal descriptors
rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
rockchip-rga ff680000.rga: HW Version: 0x03.02
rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
rockchip-iep ff670000.iep: Device rockchip-iep registered as /dev/video1
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol LL registered
Bluetooth: HCI UART protocol ATH3K registered
Bluetooth: HCI UART protocol Three-wire (H5) registered
Bluetooth: HCI UART protocol Intel registered
Bluetooth: HCI UART protocol Broadcom registered
Driver 'hci_uart_qca' needs updating - please use bus_type methods
Bluetooth: HCI UART protocol QCA registered
Bluetooth: HCI UART protocol AG6XX registered
Bluetooth: HCI UART protocol Marvell registered
rockchip_vdec: module is from the staging directory, the quality is unknown, you have been warned.
rkvdec ff660000.video-codec: Adding to iommu group 1
dw-apb-uart ff180000.serial: failed to request DMA
Bluetooth: hci0: command 0xfc45 tx timeout
EXT4-fs (mmcblk1p1): Remounting file system with no journal so ignoring journalled data option
EXT4-fs (mmcblk1p1): re-mounted. Opts: data=writeback,errors=remount-ro. Quota mode: none.
Bluetooth: hci0: BCM: failed to write clock (-110)
Bluetooth: hci0: Failed to set baudrate
Bluetooth: hci0: command 0x0c03 tx timeout
Adding 131068k swap on /swap.  Priority:5 extents:2 across:139260k SSFS
Bluetooth: hci0: BCM: Reset failed (-110)
random: crng init done
cfg80211: Loading compiled-in X.509 certificates for regulatory database
cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=91)
rk_gmac-dwmac fe300000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: hci0: command 0xfc45 tx timeout
Bluetooth: hci0: BCM: failed to write clock (-110)
Bluetooth: hci0: Failed to set baudrate
Bluetooth: hci0: command 0x0c03 tx timeout
Bluetooth: hci0: BCM: Reset failed (-110)
dw-apb-uart ff1a0000.serial: forbid DMA for kernel console
rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet] (irq=91)
rk_gmac-dwmac fe300000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found
rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW
rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode
rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 
Old 04-20-2022, 02:58 PM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wowbaggerHU View Post
Hi sndwvs,

I hope you are well.
I finally got my NanoPi r4s, and it seems to work more or less okay.
I managed to hook it up to minicom, via a usb-serial adapter, and the boards debug UART connector.
Your image that you created without actually having such a device, booted well (enough).

My only problem is that out of the two network interfaces, only one shows up, and the other one is invisible for some reason.

Hi wowbaggerHU,

Thank you, everything is OK.
Yes, I found the missing driver added CONFIG_R8169=m and put on the assembly.
 
Old 04-21-2022, 06:38 AM   #7
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
Yes, I found the missing driver added CONFIG_R8169=m and put on the assembly.
Thank you sndwvs!
Both Ethernet ports work now great!
The only thing not working that I can see is that the LAN LED (there are altogether 4 status leds on the board: WAN LAN SYS PWR) does not turn on when there is link on the LAN (eth0) port. On the other hand, the WAN LED does light up okay when there is link on the WAN port (eth1). But either way, I can live with that.
Thanks again!
 
Old 04-21-2022, 06:53 AM   #8
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Original Poster
Rep: Reputation: Disabled
Yep, you can experiment with /sys/class/leds/lan_led/trigger and see the default value (set to lan_led)
 
Old 04-21-2022, 01:45 PM   #9
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
Yep, you can experiment with /sys/class/leds/lan_led/trigger and see the default value (set to lan_led)
Well, these are my possibilities:
Code:
root@nanopi-r4s:~# cat /sys/class/leds/wan_led/trigger | tr " " '\n'
[none]
usb-gadget
usb-host
kbd-scrolllock
kbd-numlock
kbd-capslock
kbd-kanalock
kbd-shiftlock
kbd-altgrlock
kbd-ctrllock
kbd-altlock
kbd-shiftllock
kbd-shiftrlock
kbd-ctrlllock
kbd-ctrlrlock
usbport
disk-activity
disk-read
disk-write
ide-disk
mtd
nand-disk
heartbeat
cpu
cpu0
cpu1
cpu2
cpu3
cpu4
cpu5
activity
default-on
panic
mmc1
rfkill-any
rfkill-none
r8169-0-100:00:link
r8169-0-100:00:1Gbps
r8169-0-100:00:100Mbps
r8169-0-100:00:10Mbps
root@nanopi-r4s:~# cat /sys/class/leds/lan_led/trigger | tr " " '\n'
[none]
usb-gadget
usb-host
kbd-scrolllock
kbd-numlock
kbd-capslock
kbd-kanalock
kbd-shiftlock
kbd-altgrlock
kbd-ctrllock
kbd-altlock
kbd-shiftllock
kbd-shiftrlock
kbd-ctrlllock
kbd-ctrlrlock
usbport
disk-activity
disk-read
disk-write
ide-disk
mtd
nand-disk
heartbeat
cpu
cpu0
cpu1
cpu2
cpu3
cpu4
cpu5
activity
default-on
panic
mmc1
rfkill-any
rfkill-none
r8169-0-100:00:link
r8169-0-100:00:1Gbps
r8169-0-100:00:100Mbps
r8169-0-100:00:10Mbps
root@nanopi-r4s:~#
While on the other hand, in the device tree source (dts) file, the following triggers are listed:
Code:
+// Armbian tweaks
+&lan_led {
+	linux,default-trigger = "r8169-100:00:link";
+};
+
+&wan_led {
+	linux,default-trigger = "stmmac-0:01:link";
+};
So all in all, the stmmac-0:01:link trigger doesn't seem to be available for some reason.
 
Old 04-21-2022, 02:27 PM   #10
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Original Poster
Rep: Reputation: Disabled
yes there is no such trigger (stmmac-0:01:link) in wan, strange.

and in /sys/class/leds/ are there other leds? look into them.
 
Old 04-22-2022, 12:28 AM   #11
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
yes there is no such trigger (stmmac-0:01:link) in wan, strange.

and in /sys/class/leds/ are there other leds? look into them.
Hi sndwvs,

Unfortunately I don't see anything else being available for the status led.

Code:
root@nanopi-r4s:~# ls -1 /sys/class/leds/
lan_led
status_led
wan_led
root@nanopi-r4s:~# cat /sys/class/leds/status_led/trigger | tr " " '\n'
none
usb-gadget
usb-host
kbd-scrolllock
kbd-numlock
kbd-capslock
kbd-kanalock
kbd-shiftlock
kbd-altgrlock
kbd-ctrllock
kbd-altlock
kbd-shiftllock
kbd-shiftrlock
kbd-ctrlllock
kbd-ctrlrlock
usbport
disk-activity
disk-read
disk-write
ide-disk
mtd
nand-disk
[heartbeat]
cpu
cpu0
cpu1
cpu2
cpu3
cpu4
cpu5
activity
default-on
panic
mmc1
rfkill-any
rfkill-none
r8169-0-100:00:link
r8169-0-100:00:1Gbps
r8169-0-100:00:100Mbps
r8169-0-100:00:10Mbps
root@nanopi-r4s:~#
 
Old 04-22-2022, 12:17 PM   #12
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
I looked at the kernel config, and the stmmac driver is compiled as a module. Therefore I loaded manually, but the list of the available LED triggers did not change at all.
Also, no new kernel messages showed up when loading the driver, so that is a bit suspicious as well. The stmmac module also loaded some other related modules, so overall I would say the loading of the module was successful in itself.

Based on the kernel logs, the rk_gmac-dwmac kernel driver seems to be in use for the SoC-based network interface.

Last edited by wowbaggerHU; 04-22-2022 at 12:19 PM.
 
Old 04-22-2022, 03:04 PM   #13
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Original Poster
Rep: Reputation: Disabled
the module should be loaded automatically when loading because the interfaces appear in the systems?
 
Old 04-22-2022, 03:30 PM   #14
wowbaggerHU
Member
 
Registered: Feb 2017
Location: Hungary
Distribution: Slackware
Posts: 288

Rep: Reputation: Disabled
Quote:
Originally Posted by sndwvs View Post
the module should be loaded automatically when loading because the interfaces appear in the systems?
Yes, seems like it is loaded automatically. This is right after the system booted:

Code:
root@nanopi-r4s:~# lsmod | fgrep stmmac
stmmac_platform        24576  1 dwmac_rk
stmmac                237568  2 stmmac_platform,dwmac_rk
pcs_xpcs               24576  1 stmmac
root@nanopi-r4s:~# dmesg | fgrep stmmac
root@nanopi-r4s:~# dmesg | fgrep mac
[    1.550185] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    6.529584] rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found
[    6.529594] rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found
[    6.529650] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock
[    6.529782] rk_gmac-dwmac fe300000.ethernet: clock input or output? (input).
[    6.529786] rk_gmac-dwmac fe300000.ethernet: TX delay(0x28).
[    6.529790] rk_gmac-dwmac fe300000.ethernet: RX delay(0x11).
[    6.529797] rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no).
[    6.529820] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[    6.530434] rk_gmac-dwmac fe300000.ethernet: clock input from PHY
[    6.535446] rk_gmac-dwmac fe300000.ethernet: init for RGMII
[    6.535671] rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[    6.535681] rk_gmac-dwmac fe300000.ethernet:         DWMAC1000
[    6.535685] rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported
[    6.535688] rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported
[    6.535691] rk_gmac-dwmac fe300000.ethernet: COE Type 2
[    6.535694] rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported
[    6.535697] rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported
[    6.540439] rk_gmac-dwmac fe300000.ethernet: Normal descriptors
[    6.540465] rk_gmac-dwmac fe300000.ethernet: Ring mode enabled
[    6.540470] rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer
root@nanopi-r4s:~#
But then the question remains why doesn't the led trigger appear in the list?
 
Old 04-22-2022, 03:59 PM   #15
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,915

Original Poster
Rep: Reputation: Disabled
maybe something has changed in kernel 5.17.y
Code:
# uname -a ; cat trigger | sed 's:\s:\n:g'
Linux slarm64-pkgs 5.16.10 #1 SMP PREEMPT Sun Feb 20 11:13:00 EET 2022 aarch64 GNU/Linux
none
usb-gadget
usb-host
kbd-scrolllock
kbd-numlock
kbd-capslock
kbd-kanalock
kbd-shiftlock
kbd-altgrlock
kbd-ctrllock
kbd-altlock
kbd-shiftllock
kbd-shiftrlock
kbd-ctrlllock
kbd-ctrlrlock
usbport
mmc2
mmc0
disk-activity
disk-read
disk-write
ide-disk
mtd
nand-disk
[heartbeat]
cpu
cpu0
cpu1
cpu2
cpu3
cpu4
cpu5
activity
default-on
panic
mmc1
rc-feedback
rfkill-any
rfkill-none
bluetooth-power
rfkill0
hci0-power
rfkill1
stmmac-0:00:link
stmmac-0:00:1Gbps
stmmac-0:00:100Mbps
stmmac-0:00:10Mbps
 
  


Reply

Tags
friendlyelec, rk3399, rockchip, slackware, slarm64



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NanoPi Neo Core2 H5 (slarm64, aarch64) shelldweller Slackware - ARM 8 02-08-2022 08:04 AM
[SOLVED] ROCKPro64 RK3399 (aarch64) sndwvs Slackware - ARM 36 12-07-2021 09:24 AM
LXer: Headless NanoPi combines RK3399 with dual GbE ports LXer Syndicated Linux News 0 11-13-2020 06:11 PM
LXer: NanoPi Neo4 SBC breaks RK3399 records for size and price LXer Syndicated Linux News 0 10-10-2018 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration