RNG #20

Open
opened 2026-01-05 20:16:58 +00:00 by Sirherobrine23 · 10 comments
Owner

https://forum.openwrt.org/t/quantum-fiber-w1700k-support/222776/1311

@merbanan if i use devmem 0x1FAA182C, my system completely frozen, do you have the same problem?

> https://forum.openwrt.org/t/quantum-fiber-w1700k-support/222776/1311 @merbanan if i use `devmem 0x1FAA182C`, my system completely frozen, do you have the same problem?
Owner

It is unclear if the EN7523 has the same rng. And if it has, the registers might be protected if the random number engine is started.

There are many unknowns and I think the correct solution is to just set the quality value to 900.

And to be clear I have not tested looking at the register myself. I am rebuilding my test setup so I can run more boards at the same time.

It is unclear if the EN7523 has the same rng. And if it has, the registers might be protected if the random number engine is started. There are many unknowns and I think the correct solution is to just set the quality value to 900. And to be clear I have not tested looking at the register myself. I am rebuilding my test setup so I can run more boards at the same time.
Author
Owner
in dts have rng definitions https://sirherobrine23.com.br/airoha_en7523/netgear_exs27/src/commit/0e0066b1750dee9dbbe507c751c8cc3e78826c01/target/linux/airoha/files/arch/arm/boot/dts/en7523_kernel_api.dtsi#L20-L24 https://sirherobrine23.com.br/airoha_en7523/netgear_exs27/src/commit/0e0066b1750dee9dbbe507c751c8cc3e78826c01/feeds/airoha/target/linux/airoha/files/arch/arm/boot/dts/en7523.dts#L37-L41 in xx520v v1 and xx230 https://sirherobrine23.com.br/tplink_gpl/tplink-xx530v_v1/src/commit/0932f2c9b3e2f753d161f147e60fc59c0866a9ee/sdk/en7529/linux-ecnt/arch/arm/boot/dts/en7523.dts#L287-L291 https://sirherobrine23.com.br/tplink_gpl/tplink-xx230v/src/commit/4d76b590398d1e510a2a893f6fc4c69bfedb5768/sdk/en7529/linux-4.4.115/arch/arm/boot/dts/en7523.dts#L287-L291
Author
Owner
trng in en7523 needs enable with scu https://sirherobrine23.com.br/airoha_en7523/xPON/src/commit/74e58d4a82e27fb314fc69cbe711d6e2425694a9/econet_public/arch/arm/mach-econet/ecnt_scu.c#L792-L810 https://sirherobrine23.com.br/airoha_en7523/xPON/src/commit/74e58d4a82e27fb314fc69cbe711d6e2425694a9/econet_public/arch/arm/mach-econet/ecnt_scu.c#L1319-L1321
Owner

Interesting, all this resolves to to the trng module. First the bus clock then the trng clock and then the trng_rc clock whatever that is.

Anyway all these should be enabled by default.

#define CR_CHIP_SCU_NP_BUS_DOM_CLK_GAT (CR_CHIP_SCU_BASE + 0x1E4)
#define CR_CHIP_SCU_NP_PER_DOM_CLK_GAT_1 (CR_CHIP_SCU_BASE + 0x1E8)
#define CR_CHIP_SCU_NP_PER_DOM_CLK_GAT_2 (CR_CHIP_SCU_BASE + 0x1EC)

You can check all these 3 with devmem.

Interesting, all this resolves to to the trng module. First the bus clock then the trng clock and then the trng_rc clock whatever that is. Anyway all these should be enabled by default. #define CR_CHIP_SCU_NP_BUS_DOM_CLK_GAT (CR_CHIP_SCU_BASE + 0x1E4) #define CR_CHIP_SCU_NP_PER_DOM_CLK_GAT_1 (CR_CHIP_SCU_BASE + 0x1E8) #define CR_CHIP_SCU_NP_PER_DOM_CLK_GAT_2 (CR_CHIP_SCU_BASE + 0x1EC) You can check all these 3 with devmem.
Author
Owner
root@OpenWrt:~# devmem 0x1fb001e4
0xDEADBEEF
root@OpenWrt:~# devmem 0x1fb001E8
0xDEADBEEF
root@OpenWrt:~# devmem 0x1fb001EC
0xDEADBEEF
root@OpenWrt:~# 
``` root@OpenWrt:~# devmem 0x1fb001e4 0xDEADBEEF root@OpenWrt:~# devmem 0x1fb001E8 0xDEADBEEF root@OpenWrt:~# devmem 0x1fb001EC 0xDEADBEEF root@OpenWrt:~# ```
Owner

1FA20000 is the Chip SCU base.

1FA20000 is the Chip SCU base.
Owner

The clock driver should be completed with gating support. I doubt it will matter for power consumption though.

The clock driver should be completed with gating support. I doubt it will matter for power consumption though.
Author
Owner
devmem 0x1fa201e4;devmem 0x1fa201E8;devmem 0x1fa201EC

0xFBFBFFF7
0xF7DFFFF5
0x0000FFFE
``` devmem 0x1fa201e4;devmem 0x1fa201E8;devmem 0x1fa201EC 0xFBFBFFF7 0xF7DFFFF5 0x0000FFFE ```
Owner

Ok, some clocks are gated. Long term these should be moved to the clock driver.

Ok, some clocks are gated. Long term these should be moved to the clock driver.
Author
Owner

I was able to read the rng data without the system crashing, but I had to separate the scu, just like in the AN7581

a7b3a01d79/target/linux/airoha/dts/en7523.dtsi (L263-L284)

Bootlog
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.12.67 (sirherobrine23@matheus-note) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 14.3.0 r32493-8d680de76a) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Fri Jan 30 15:20:19 2026
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TP-Link xx230v
[    0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[    0.000000] earlycon: ns16550 at MMIO32 0x1fbf0000 (options '115200n8')
[    0.000000] printk: legacy bootconsole [ns16550] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] OF: reserved mem: Reserved memory: failed to reserve memory for node 'npu_binary@84000000': base 0x84000000, size 10 MiB
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080200000-0x0000000086ffffff]
[    0.000000]   node   0: [mem 0x0000000087000000-0x0000000089ffffff]
[    0.000000]   node   0: [mem 0x000000008a000000-0x000000008fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000008fffffff]
[    0.000000] On node 0, zone Normal: 512 pages in unavailable ranges
[    0.000000] OF: reserved mem: 0x80000000..0x801fffff (2048 KiB) nomap non-reusable atf@80000000
[    0.000000] OF: reserved mem: 0x84000000..0x849fffff (10240 KiB) nomap non-reusable npu_binary@84000000
[    0.000000] OF: reserved mem: 0x87000000..0x88ffffff (32768 KiB) nomap non-reusable qdma0-buf@87000000
[    0.000000] OF: reserved mem: 0x89000000..0x89ffffff (16384 KiB) nomap non-reusable qdma1-buf@89000000
[    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.1
[    0.000000] percpu: Embedded 14 pages/cpu s25100 r8192 d24052 u57344
[    0.000000] Kernel command line: console=ttyS0,115200 earlycon
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GICv3: 256 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=0
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x09080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000001] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008800] Switching to timer-based delay loop, resolution 40ns
[    0.015568] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.026957] CPU: Testing write buffer coherency: ok
[    0.032340] pid_max: default: 32768 minimum: 301
[    0.044440] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.052492] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.064141] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.071368] Setting up static identity map for 0x80300000 - 0x80300060
[    0.078725] rcu: Hierarchical SRCU implementation.
[    0.083989] rcu:     Max phase no-delay instances is 1000.
[    0.090013] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.099217] smp: Bringing up secondary CPUs ...
[    0.119283] GICv3: CPU1: found redistributor 1 region 0:0x090a0000
[    0.119340] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.119488] smp: Brought up 1 node, 2 CPUs
[    0.137002] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.143901] CPU: All CPU(s) started in SVC mode.
[    0.149440] Memory: 139052K/260096K available (7850K kernel code, 601K rwdata, 2060K rodata, 57344K init, 220K bss, 120288K reserved, 0K cma-reserved)
[    0.168660] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.179525] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.190565] pinctrl core: initialized pinctrl subsystem
[    0.198165] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.204965] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.213266] thermal_sys: Registered thermal governor 'step_wise'
[    0.213350] cpuidle: using governor menu
[    0.226540] /pcie@1fa91000: Fixed dependency cycle(s) with /pcie@1fa91000/interrupt-controller
[    0.236384] /pcie@1fa92000: Fixed dependency cycle(s) with /pcie@1fa92000/interrupt-controller
[    0.256522] SCSI subsystem initialized
[    0.260849] usbcore: registered new interface driver usbfs
[    0.266974] usbcore: registered new interface driver hub
[    0.272842] usbcore: registered new device driver usb
[    0.278547] Advanced Linux Sound Architecture Driver Initialized.
[    0.286714] clocksource: Switched to clocksource arch_sys_counter
[    0.299795] NET: Registered PF_INET protocol family
[    0.305355] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.314017] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.323281] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.331816] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.340261] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.348163] TCP: Hash tables configured (established 2048 bind 2048)
[    0.355537] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.363766] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.370979] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.379094] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.385346] PCI: CLS 0 bytes, default 64
[    0.391138] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    0.399977] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.406409] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.424043] mtk-pcie 1fa91000.pcie: host bridge /pcie@1fa91000 ranges:
[    0.431375] mtk-pcie 1fa91000.pcie:      MEM 0x0020000000..0x0021ffffff -> 0x0020000000
[    1.046727] mtk-pcie 1fa91000.pcie: Port0 link down
[    1.052393] mtk-pcie 1fa91000.pcie: PCI host bridge to bus 0000:00
[    1.059254] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.065285] pci_bus 0000:00: root bus resource [mem 0x20000000-0x21ffffff]
[    1.074011] PCI: bus0: Fast back to back transfers enabled
[    1.080069] pci_bus 0000:00: resource 4 [mem 0x20000000-0x21ffffff]
[    1.087326] mtk-pcie 1fa92000.pcie: host bridge /pcie@1fa92000 ranges:
[    1.094533] mtk-pcie 1fa92000.pcie:      MEM 0x0022000000..0x0023ffffff -> 0x0022000000
[    1.625193] mtk-pcie 1fa92000.pcie: PCI host bridge to bus 0001:00
[    1.632042] pci_bus 0001:00: root bus resource [bus 00-ff]
[    1.638106] pci_bus 0001:00: root bus resource [mem 0x22000000-0x23ffffff]
[    1.645970] pci 0001:00:01.0: [14c3:0811] type 01 class 0x060400 PCIe Root Port
[    1.654206] pci 0001:00:01.0: BAR 0: can't handle BAR larger than 4GB (size 0x200000000)
[    1.663113] pci 0001:00:01.0: BAR 0 [mem size 0x00000001 64bit pref disabled]
[    1.671039] pci 0001:00:01.0: PCI bridge to [bus 00]
[    1.676558] pci 0001:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.686377] PCI: bus0: Fast back to back transfers disabled
[    1.692567] pci 0001:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.702066] pci 0001:01:00.0: [14c3:7915] type 00 class 0x000280 PCIe Endpoint
[    1.710228] pci 0001:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit pref]
[    1.717911] pci 0001:01:00.0: BAR 2 [mem 0x00000000-0x00003fff 64bit pref]
[    1.725566] pci 0001:01:00.0: BAR 4 [mem 0x00000000-0x00000fff 64bit pref]
[    1.733836] pci 0001:01:00.0: supports D1 D2
[    1.738530] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.746139] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    1.763167] PCI: bus1: Fast back to back transfers disabled
[    1.769334] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    1.776690] pci 0001:00:01.0: bridge window [mem 0x22000000-0x221fffff]: assigned
[    1.784920] pci 0001:00:01.0: BAR 0 [mem 0x22200000 64bit pref disabled]: assigned
[    1.793296] pci 0001:00:01.0: BAR 0: error updating (0x2220000c != 0x0000000c)
[    1.801278] pci 0001:01:00.0: BAR 0 [mem 0x22000000-0x220fffff 64bit pref]: assigned
[    1.809879] pci 0001:01:00.0: BAR 2 [mem 0x22100000-0x22103fff 64bit pref]: assigned
[    1.818483] pci 0001:01:00.0: BAR 4 [mem 0x22104000-0x22104fff 64bit pref]: assigned
[    1.827083] pci 0001:00:01.0: PCI bridge to [bus 01]
[    1.832565] pci 0001:00:01.0:   bridge window [mem 0x22000000-0x221fffff]
[    1.840105] pci_bus 0001:00: resource 4 [mem 0x22000000-0x23ffffff]
[    1.847003] pci_bus 0001:01: resource 1 [mem 0x22000000-0x221fffff]
[    1.854115] pcieport 0001:00:01.0: enabling device (0140 -> 0142)
[    1.861560] pcieport 0001:00:01.0: PME: Signaling with IRQ 31
[    1.869503] airoha_hsdma 1fa01800.hsdma: Airoha HSDMA driver registered
[    1.877301] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.885299] printk: legacy console [ttyS0] disabled
[    1.891293] 1fbf0000.serial: ttyS0 at MMIO 0x1fbf0000 (irq = 33, base_baud = 115200) is a 16550
[    1.900946] printk: legacy console [ttyS0] enabled
[    1.900946] printk: legacy console [ttyS0] enabled
[    1.911020] printk: legacy bootconsole [ns16550] disabled
[    1.911020] printk: legacy bootconsole [ns16550] disabled
[    1.923394] airoha-trng 1faa1000.rng: Setting SCU to trng
[    1.928893] airoha-trng 1faa1000.rng: registring trng
[    1.933961] airoha-trng 1faa1000.rng: starting trng
[    1.939052] airoha-trng 1faa1000.rng: [v1.01] registerd TRNG driver
[    1.939059] airoha-trng 1faa1000.rng: trng read
[    1.940679] spi-nand spi0.0: ESMT SPI NAND was found.
[    1.945395] random: crng init done
[    1.949920] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.978379] 7 fixed-partitions partitions found on MTD device spi0.0
[    1.984759] Creating 7 MTD partitions on "spi0.0":
[    1.989680] 0x000000000000-0x000000080000 : "bootloader"
[    1.996616] 0x000000080000-0x000000120000 : "romfile"
[    2.003901] 0x0000000a0000-0x000000240000 : "misc"
[    2.011925] 0x0000001a0000-0x0000011a0000 : "kernel"
[    2.050640] 0x0000011a0000-0x0000011a0001 : "rootfs_dummy"
[    2.057058] 0x0000011a0000-0x000007500000 : "rootfs"
[    2.275046] mtd: setting mtd5 (rootfs) as root device
[    2.280511] 1 squashfs-split partitions found on MTD device rootfs
[    2.286736] 0x000002180000-0x000007500000 : "rootfs_data"
[    2.293303] 0x000007500000-0x000008000000 : "reserved_bmt"
[    2.409096] airoha-npu 1e900000.npu: L2C sram size: 0x00
[    2.414426] airoha-npu 1e900000.npu: FPGA Stage: 1
[    2.929747] airoha-npu 1e900000.npu: Cannot get NPU Version
[    2.950222] airoha-usb-phy 1fad0000.phy: Frequency not detected, using default SR calibration.
[    2.963426] xhci-mtk 1fab0000.usb: xHCI Host Controller
[    2.966800] airoha-trng 1faa1000.rng: trng read
[    2.968754] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 1
[    2.984562] xhci-mtk 1fab0000.usb: hcc params 0x01400f98 hci version 0x110 quirks 0x0000000000200010
[    2.993795] xhci-mtk 1fab0000.usb: irq 45, io mem 0x1fab0000
[    2.999630] xhci-mtk 1fab0000.usb: xHCI Host Controller
[    3.004873] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 2
[    3.012312] xhci-mtk 1fab0000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    3.020132] hub 1-0:1.0: USB hub found
[    3.024061] hub 1-0:1.0: 2 ports detected
[    3.028870] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.037711] hub 2-0:1.0: USB hub found
[    3.041624] hub 2-0:1.0: 1 port detected
[    3.046375] i2c-mt7621 1fbf8000.i2c0: clock 100 kHz
[    3.064701] en7523-audio 1fbe2200.audio-controller: mtk_afe_combine_sub_dai(), num of dai 2
[    3.073661] debugfs: Directory '1fbe2200.audio-controller' with parent 'en7523-i2s' already present!
[    3.083733] NET: Registered PF_INET6 protocol family
[    3.090171] Segment Routing with IPv6
[    3.093880] In-situ OAM (IOAM) with IPv6
[    3.097943] NET: Registered PF_PACKET protocol family
[    3.103293] 8021q: 802.1Q VLAN Support v1.8
[    3.107639] Registering SWP/SWPB emulation handler
[    3.195033] mt7530-mmio 1fb58000.switch: configuring for fixed/internal link mode
[    3.202819] mt7530-mmio 1fb58000.switch lan1 (uninitialized): PHY [mt7530-0:09] driver [Airoha EN7523 PHY] (irq=POLL)
[    3.214511] mt7530-mmio 1fb58000.switch lan2 (uninitialized): PHY [mt7530-0:0a] driver [Airoha EN7523 PHY] (irq=POLL)
[    3.226008] mt7530-mmio 1fb58000.switch lan3 (uninitialized): PHY [mt7530-0:0b] driver [Airoha EN7523 PHY] (irq=POLL)
[    3.237510] mt7530-mmio 1fb58000.switch wan (uninitialized): PHY [mt7530-0:0c] driver [Airoha EN7523 PHY] (irq=POLL)
[    3.248895] airoha_eth 1fb50000.ethernet eth0: entered promiscuous mode
[    3.255581] DSA: tree 0 setup
[    3.258965] mt7530-mmio 1fb58000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    3.267418] clk: Disabling unused clocks
[    3.271370] PM: genpd: Disabling unused power domains
[    3.276421] ALSA device list:
[    3.279476]   #0: en7523-i2s
[    3.340521] Freeing unused kernel image (initmem) memory: 57344K
[    3.346902] Run /init as init process
[    3.964621] init: Console is alive
[    3.968379] init: - watchdog -
[    3.983178] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.992137] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    3.999566] airoha-trng 1faa1000.rng: trng read
[    4.018789] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.036483] init: - preinit -
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.036697] airoha-trng 1faa1000.rng: trng read
[    5.382218] procd: - early -
[    5.385257] procd: - watchdog -
[    5.922762] procd: - watchdog -
[    5.926160] procd: - ubus -
[    5.982262] procd: - init -
Please press Enter to activate this console.
[    6.247404] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.553151] i2c_dev: i2c /dev entries driver
[    6.561909] Loading modules backported from Linux version v6.18.7-0-g5dfbc5357
[    6.569222] Backport generated by backports.git c8a37ce
[    6.672813] xt_time: kernel timezone is -0000
[    6.832012] mt7915e 0001:01:00.0: enabling device (0140 -> 0142)
[    7.002409] urngd: v1.0.2 started.
[    7.049198] mt7915e 0001:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240429200716a
[    7.088491] mt7915e 0001:01:00.0: WM Firmware Version: ____000000, Build Time: 20240429200752
[    7.117531] airoha-trng 1faa1000.rng: trng read
[    7.142963] mt7915e 0001:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20240429200812
[    7.300198] mt7915e 0001:01:00.0: registering led 'mt76-phy0'
[    7.368072] mt7915e 0001:01:00.0: registering led 'mt76-phy1'
[    7.506780] PPP generic driver version 2.4.2
[    7.515948] NET: Registered PF_PPPOX protocol family
[    7.540045] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    7.548024] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    7.599563] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.156807] airoha-trng 1faa1000.rng: trng read
[   15.196836] airoha-trng 1faa1000.rng: trng read
[   17.178607] mt7530-mmio 1fb58000.switch lan1: configuring for phy/internal link mode
[   17.195060] br-lan: port 1(lan1) entered blocking state
[   17.200464] br-lan: port 1(lan1) entered disabled state
[   17.205872] mt7530-mmio 1fb58000.switch lan1: entered allmulticast mode
[   17.212613] airoha_eth 1fb50000.ethernet eth0: entered allmulticast mode
[   17.219826] mt7530-mmio 1fb58000.switch lan1: entered promiscuous mode
[   17.238063] mt7530-mmio 1fb58000.switch lan2: configuring for phy/internal link mode
[   17.258781] br-lan: port 2(lan2) entered blocking state
[   17.264069] br-lan: port 2(lan2) entered disabled state
[   17.269430] mt7530-mmio 1fb58000.switch lan2: entered allmulticast mode
[   17.276385] mt7530-mmio 1fb58000.switch lan2: entered promiscuous mode
[   17.286502] mt7530-mmio 1fb58000.switch lan3: configuring for phy/internal link mode
[   17.297133] br-lan: port 3(lan3) entered blocking state
[   17.302406] br-lan: port 3(lan3) entered disabled state
[   17.307910] mt7530-mmio 1fb58000.switch lan3: entered allmulticast mode
[   17.314997] mt7530-mmio 1fb58000.switch lan3: entered promiscuous mode
[   17.366341] mt7530-mmio 1fb58000.switch wan: configuring for phy/internal link mode
[   17.915622] br-lan: port 4(phy0-ap0) entered blocking state
[   17.921348] br-lan: port 4(phy0-ap0) entered disabled state
[   17.927126] mt7915e 0001:01:00.0 phy0-ap0: entered allmulticast mode
[   17.933802] mt7915e 0001:01:00.0 phy0-ap0: entered promiscuous mode
[   17.947249] mt7915e 0001:01:00.0 phy0-ap0: left allmulticast mode
[   17.953444] mt7915e 0001:01:00.0 phy0-ap0: left promiscuous mode
[   17.959730] br-lan: port 4(phy0-ap0) entered disabled state
[   18.030925] br-lan: port 4(phy0-ap0) entered blocking state
[   18.036521] br-lan: port 4(phy0-ap0) entered disabled state
[   18.042235] mt7915e 0001:01:00.0 phy0-ap0: entered allmulticast mode
[   18.048942] mt7915e 0001:01:00.0 phy0-ap0: entered promiscuous mode
[   18.055455] br-lan: port 4(phy0-ap0) entered blocking state
[   18.061132] br-lan: port 4(phy0-ap0) entered forwarding state
[   18.067857] br-lan: port 4(phy0-ap0) entered disabled state
[   18.773928] br-lan: port 5(phy1-ap0) entered blocking state
[   18.779684] br-lan: port 5(phy1-ap0) entered disabled state
[   18.785409] mt7915e 0001:01:00.0 phy1-ap0: entered allmulticast mode
[   18.792135] mt7915e 0001:01:00.0 phy1-ap0: entered promiscuous mode
[   18.855251] br-lan: port 5(phy1-ap0) entered blocking state
[   18.860935] br-lan: port 5(phy1-ap0) entered forwarding state
[   18.868110] mt7915e 0001:01:00.0 phy1-ap0: left allmulticast mode
[   18.874293] mt7915e 0001:01:00.0 phy1-ap0: left promiscuous mode
[   18.880558] br-lan: port 5(phy1-ap0) entered disabled state
[   18.905493] br-lan: port 5(phy1-ap0) entered blocking state
[   18.911220] br-lan: port 5(phy1-ap0) entered disabled state
[   18.916939] mt7915e 0001:01:00.0 phy1-ap0: entered allmulticast mode
[   18.923730] mt7915e 0001:01:00.0 phy1-ap0: entered promiscuous mode
[   21.438499] mt7530-mmio 1fb58000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   21.447592] br-lan: port 3(lan3) entered blocking state
[   21.452840] br-lan: port 3(lan3) entered forwarding state
[   22.316701] airoha-trng 1faa1000.rng: trng read
[   22.373272] br-lan: port 5(phy1-ap0) entered blocking state
[   22.378922] br-lan: port 5(phy1-ap0) entered forwarding state
[   25.853085] br-lan: port 4(phy0-ap0) entered blocking state
[   25.858725] br-lan: port 4(phy0-ap0) entered forwarding state
[   33.836741] airoha-trng 1faa1000.rng: trng read
[   50.476717] airoha-trng 1faa1000.rng: trng read
[   76.076700] airoha-trng 1faa1000.rng: trng read



BusyBox v1.37.0 (2026-01-09 13:35:48 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r32871-b7a6b0cafc
 -----------------------------------------------------

 === WARNING! =====================================
 There is no root password defined on this device!
 Use the "passwd" command to set up a new password
 in order to prevent unauthorized SSH logins.
 --------------------------------------------------


 OpenWrt recently switched to the "apk" package manager!

 OPKG Command           APK Equivalent      Description
 ------------------------------------------------------------------
 opkg install <pkg>     apk add <pkg>       Install a package
 opkg remove <pkg>      apk del <pkg>       Remove a package
 opkg upgrade           apk upgrade         Upgrade all packages
 opkg files <pkg>       apk info -L <pkg>   List package contents
 opkg list-installed    apk info            List installed packages
 opkg update            apk update          Update package lists
 opkg search <pkg>      apk search <pkg>    Search for packages
 ------------------------------------------------------------------

For more information visit:
https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet

root@OpenWrt:~# cd /dev/
root@OpenWrt:/dev# dd if=/[  114.476731] airoha-trng 1faa1000.rng: trng read
root@OpenWrt:/dev# dd if=hwrng of=null count=512
[  129.547243] airoha-trng 1faa1000.rng: trng read
[  129.551804] airoha-trng 1faa1000.rng: trng read
[  129.556339] airoha-trng 1faa1000.rng: trng read
[  129.560944] airoha-trng 1faa1000.rng: trng read
[  129.576984] airoha-trng 1faa1000.rng: trng read
[  129.581582] airoha-trng 1faa1000.rng: trng read
[  129.596801] airoha-trng 1faa1000.rng: trng read
512+0 records in
512+0 records out
root@OpenWrt:/dev# [  172.076775] airoha-trng 1faa1000.rng: trng read
[  197.278185] mt7530-mmio 1fb58000.switch wan: Link is Up - 1Gbps/Full - flow control rx
[  200.317455] mt7530-mmio 1fb58000.switch lan3: Link is Down
[  200.324086] br-lan: port 3(lan3) entered disabled state
[  203.438535] mt7530-mmio 1fb58000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[  203.447733] br-lan: port 3(lan3) entered blocking state
[  203.452998] br-lan: port 3(lan3) entered forwarding state
[  233.516793] airoha-trng 1faa1000.rng: trng read
[  294.958171] airoha-trng 1faa1000.rng: trng read

root@OpenWrt:/dev# dd if=hwrng count=1
[  307.910747] airoha-trng 1faa1000.rng: trng read
[  307.915311] airoha-trng 1faa1000.rng: trng read
[  307.919892] airoha-trng 1faa1000.rng: trng read
[  307.924430] airoha-trng 1faa1000.rng: trng read
[  307.948600] airoha-trng 1faa1000.rng: trng read
[  307.953158] airoha-trng 1faa1000.rng: trng read
[  307.968734] airoha-trng 1faa1000.rng: trng read
[  307.973286] airoha-trng 1faa1000.rng: trng read
��Ħ��X}��u���������^��9 ����X�d��)c���d
V��Z��쥗m#p�������<����ʘ�Dԕ�h�#(
                                D@s����!�4�^���?p��q��q�X�6�";���u�JR;@�>̗�8���cn��\BnܐN��o5�_�x�XY-�2▒�u]癃��2�����e��6�
                                                                                                                        �LE��V�p�"��-v=}�թz�"��J��zDr�
                                                                                                                                                      �6����G�U�z/i�5x�C3�^D<����S��c1▒`

                  ˶L���Lu�7P^�6���a;���B��v�r��z�>eB?���S�lwn^\6�!./Y�r��~W▒�
                                                                             ����m�����W`��^�Gc�/,
                                                                                                  ��3x �Ğ��f��f:���_�mw�51��(�X�@;D������i�r�r�7>1���^����v��8OZ�q��%�ŝdՂ���▒7�
:����J$j(nr$�S����]��t��D5��"t��Ƅ��#H1+0 records in
1+0 records out
root@OpenWrt:/dev# dd if=hwrng count=1 bs=
dd: invalid number ''
root@OpenWrt:/dev# dd if=hwrng count=1 bs=1
[  316.341236] airoha-trng 1faa1000.rng: trng read
1+0 records in
1+0 records out
root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 | xxd
-ash: xxd: not found
dd: error writing 'standard output': Broken pipe
1+0 records in
0+0 records out
root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 | xxd -C
1+0 records in
1+0 records out
-ash: xxd: not found
root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 | xxd -C32
-ash: xxd: not found
dd: error writing 'standard output': Broken pipe
1+0 records in
0+0 records out
root@OpenWrt:/dev# dd if=hwrng count=1 bs=2 | xxd -C32
1+0 records in
1+0 records out
-ash: xxd: not found
root@OpenWrt:/dev# dd if=hwrng count=1 bs=2 | xxd -C32^C

root@OpenWrt:/dev# xxd
-ash: xxd: not found
root@OpenWrt:/dev# xxd^C

root@OpenWrt:/dev# hexdump 
^C
root@OpenWrt:/dev# hexdump ^C

root@OpenWrt:/dev# dd if=hwrng count=1 bs=2 | hexdump 
1+0 records in
1+0 records out
0000000 90f1                                   
0000002
root@OpenWrt:/dev# dd if=hwrng count=1 bs=6 | hexdump 
1+0 records in
1+0 records out
0000000 8d33 8005 1380                         
0000006
root@OpenWrt:/dev# dd if=hwrng count=1 bs=6 | hexdump [  356.399373] airoha-trng 1faa1000.rng: trng read

1+0 records in
1+0 records out
0000000 72dd 0012 f0e3                         
0000006
root@OpenWrt:/dev# dd if=hwrng count=2 bs=6 | hexdump 
2+0 records in
2+0 records out
0000000 94af 98c9 30c4 66c9 8134 f337          
000000c
root@OpenWrt:/dev# dd if=hwrng count=2 bs=12 | hexdump 
2+0 records in
2+0 records out
0000000 c7ba 31f0 78af fbc1 f960 78b0 0077 b2b6
0000010 c8eb 4aeb 47d1 0726                    
0000018
root@OpenWrt:/dev# dd if=hwrng count=6 bs=12 | hexdump 
[  372.208252] airoha-trng 1faa1000.rng: trng read
6+0 records in
6+0 records out
0000000 318a 23a0 68c9 5171 f5f4 899f c656 ef3b
0000010 9703 469c 1dcd 6e9d 0cc7 33cc 0d60 f4ff
0000020 38e2 c90c e580 7b95 2f4f 01b7 a213 1afc
0000030 0ba8 0248 b0c1 e0de b97d d16a 151a 7d76
0000040 e3fb b7b9 2504 589c                    
0000048
root@OpenWrt:/dev# [  417.908014] airoha-trng 1faa1000.rng: trng read
[  479.294656] airoha-trng 1faa1000.rng: trng read
[  540.823015] airoha-trng 1faa1000.rng: trng read
I was able to read the rng data without the system crashing, but I had to separate the `scu`, just like in the AN7581 https://sirherobrine23.com.br/airoha_en7523/openwrt/src/commit/a7b3a01d79fc6a3713d021f8b5275ed1c849b3ce/target/linux/airoha/dts/en7523.dtsi#L263-L284 <details> <summary>Bootlog</summary> ``` [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 6.12.67 (sirherobrine23@matheus-note) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 14.3.0 r32493-8d680de76a) 14.3.0, GNU ld (GNU Binutils) 2.44) #0 SMP Fri Jan 30 15:20:19 2026 [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: TP-Link xx230v [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] earlycon: ns16550 at MMIO32 0x1fbf0000 (options '115200n8') [ 0.000000] printk: legacy bootconsole [ns16550] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] OF: reserved mem: Reserved memory: failed to reserve memory for node 'npu_binary@84000000': base 0x84000000, size 10 MiB [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000080200000-0x000000008fffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x0000000086ffffff] [ 0.000000] node 0: [mem 0x0000000087000000-0x0000000089ffffff] [ 0.000000] node 0: [mem 0x000000008a000000-0x000000008fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000008fffffff] [ 0.000000] On node 0, zone Normal: 512 pages in unavailable ranges [ 0.000000] OF: reserved mem: 0x80000000..0x801fffff (2048 KiB) nomap non-reusable atf@80000000 [ 0.000000] OF: reserved mem: 0x84000000..0x849fffff (10240 KiB) nomap non-reusable npu_binary@84000000 [ 0.000000] OF: reserved mem: 0x87000000..0x88ffffff (32768 KiB) nomap non-reusable qdma0-buf@87000000 [ 0.000000] OF: reserved mem: 0x89000000..0x89ffffff (16384 KiB) nomap non-reusable qdma1-buf@89000000 [ 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.1 [ 0.000000] percpu: Embedded 14 pages/cpu s25100 r8192 d24052 u57344 [ 0.000000] Kernel command line: console=ttyS0,115200 earlycon [ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024 [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GICv3: 256 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] GICv3: GICv3 features: 16 PPIs [ 0.000000] GICv3: GICD_CTRL.DS=0, SCR_EL3.FIQ=0 [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x09080000 [ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns [ 0.000001] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns [ 0.008800] Switching to timer-based delay loop, resolution 40ns [ 0.015568] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000) [ 0.026957] CPU: Testing write buffer coherency: ok [ 0.032340] pid_max: default: 32768 minimum: 301 [ 0.044440] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.052492] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.064141] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.071368] Setting up static identity map for 0x80300000 - 0x80300060 [ 0.078725] rcu: Hierarchical SRCU implementation. [ 0.083989] rcu: Max phase no-delay instances is 1000. [ 0.090013] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level [ 0.099217] smp: Bringing up secondary CPUs ... [ 0.119283] GICv3: CPU1: found redistributor 1 region 0:0x090a0000 [ 0.119340] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.119488] smp: Brought up 1 node, 2 CPUs [ 0.137002] SMP: Total of 2 processors activated (100.00 BogoMIPS). [ 0.143901] CPU: All CPU(s) started in SVC mode. [ 0.149440] Memory: 139052K/260096K available (7850K kernel code, 601K rwdata, 2060K rodata, 57344K init, 220K bss, 120288K reserved, 0K cma-reserved) [ 0.168660] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.179525] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.190565] pinctrl core: initialized pinctrl subsystem [ 0.198165] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.204965] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.213266] thermal_sys: Registered thermal governor 'step_wise' [ 0.213350] cpuidle: using governor menu [ 0.226540] /pcie@1fa91000: Fixed dependency cycle(s) with /pcie@1fa91000/interrupt-controller [ 0.236384] /pcie@1fa92000: Fixed dependency cycle(s) with /pcie@1fa92000/interrupt-controller [ 0.256522] SCSI subsystem initialized [ 0.260849] usbcore: registered new interface driver usbfs [ 0.266974] usbcore: registered new interface driver hub [ 0.272842] usbcore: registered new device driver usb [ 0.278547] Advanced Linux Sound Architecture Driver Initialized. [ 0.286714] clocksource: Switched to clocksource arch_sys_counter [ 0.299795] NET: Registered PF_INET protocol family [ 0.305355] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.314017] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.323281] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.331816] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.340261] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.348163] TCP: Hash tables configured (established 2048 bind 2048) [ 0.355537] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.363766] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.370979] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.379094] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.385346] PCI: CLS 0 bytes, default 64 [ 0.391138] workingset: timestamp_bits=14 max_order=16 bucket_order=2 [ 0.399977] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.406409] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.424043] mtk-pcie 1fa91000.pcie: host bridge /pcie@1fa91000 ranges: [ 0.431375] mtk-pcie 1fa91000.pcie: MEM 0x0020000000..0x0021ffffff -> 0x0020000000 [ 1.046727] mtk-pcie 1fa91000.pcie: Port0 link down [ 1.052393] mtk-pcie 1fa91000.pcie: PCI host bridge to bus 0000:00 [ 1.059254] pci_bus 0000:00: root bus resource [bus 00-ff] [ 1.065285] pci_bus 0000:00: root bus resource [mem 0x20000000-0x21ffffff] [ 1.074011] PCI: bus0: Fast back to back transfers enabled [ 1.080069] pci_bus 0000:00: resource 4 [mem 0x20000000-0x21ffffff] [ 1.087326] mtk-pcie 1fa92000.pcie: host bridge /pcie@1fa92000 ranges: [ 1.094533] mtk-pcie 1fa92000.pcie: MEM 0x0022000000..0x0023ffffff -> 0x0022000000 [ 1.625193] mtk-pcie 1fa92000.pcie: PCI host bridge to bus 0001:00 [ 1.632042] pci_bus 0001:00: root bus resource [bus 00-ff] [ 1.638106] pci_bus 0001:00: root bus resource [mem 0x22000000-0x23ffffff] [ 1.645970] pci 0001:00:01.0: [14c3:0811] type 01 class 0x060400 PCIe Root Port [ 1.654206] pci 0001:00:01.0: BAR 0: can't handle BAR larger than 4GB (size 0x200000000) [ 1.663113] pci 0001:00:01.0: BAR 0 [mem size 0x00000001 64bit pref disabled] [ 1.671039] pci 0001:00:01.0: PCI bridge to [bus 00] [ 1.676558] pci 0001:00:01.0: bridge window [mem 0x00000000-0x000fffff] [ 1.686377] PCI: bus0: Fast back to back transfers disabled [ 1.692567] pci 0001:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 1.702066] pci 0001:01:00.0: [14c3:7915] type 00 class 0x000280 PCIe Endpoint [ 1.710228] pci 0001:01:00.0: BAR 0 [mem 0x00000000-0x000fffff 64bit pref] [ 1.717911] pci 0001:01:00.0: BAR 2 [mem 0x00000000-0x00003fff 64bit pref] [ 1.725566] pci 0001:01:00.0: BAR 4 [mem 0x00000000-0x00000fff 64bit pref] [ 1.733836] pci 0001:01:00.0: supports D1 D2 [ 1.738530] pci 0001:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold [ 1.746139] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:01.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link) [ 1.763167] PCI: bus1: Fast back to back transfers disabled [ 1.769334] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01 [ 1.776690] pci 0001:00:01.0: bridge window [mem 0x22000000-0x221fffff]: assigned [ 1.784920] pci 0001:00:01.0: BAR 0 [mem 0x22200000 64bit pref disabled]: assigned [ 1.793296] pci 0001:00:01.0: BAR 0: error updating (0x2220000c != 0x0000000c) [ 1.801278] pci 0001:01:00.0: BAR 0 [mem 0x22000000-0x220fffff 64bit pref]: assigned [ 1.809879] pci 0001:01:00.0: BAR 2 [mem 0x22100000-0x22103fff 64bit pref]: assigned [ 1.818483] pci 0001:01:00.0: BAR 4 [mem 0x22104000-0x22104fff 64bit pref]: assigned [ 1.827083] pci 0001:00:01.0: PCI bridge to [bus 01] [ 1.832565] pci 0001:00:01.0: bridge window [mem 0x22000000-0x221fffff] [ 1.840105] pci_bus 0001:00: resource 4 [mem 0x22000000-0x23ffffff] [ 1.847003] pci_bus 0001:01: resource 1 [mem 0x22000000-0x221fffff] [ 1.854115] pcieport 0001:00:01.0: enabling device (0140 -> 0142) [ 1.861560] pcieport 0001:00:01.0: PME: Signaling with IRQ 31 [ 1.869503] airoha_hsdma 1fa01800.hsdma: Airoha HSDMA driver registered [ 1.877301] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 1.885299] printk: legacy console [ttyS0] disabled [ 1.891293] 1fbf0000.serial: ttyS0 at MMIO 0x1fbf0000 (irq = 33, base_baud = 115200) is a 16550 [ 1.900946] printk: legacy console [ttyS0] enabled [ 1.900946] printk: legacy console [ttyS0] enabled [ 1.911020] printk: legacy bootconsole [ns16550] disabled [ 1.911020] printk: legacy bootconsole [ns16550] disabled [ 1.923394] airoha-trng 1faa1000.rng: Setting SCU to trng [ 1.928893] airoha-trng 1faa1000.rng: registring trng [ 1.933961] airoha-trng 1faa1000.rng: starting trng [ 1.939052] airoha-trng 1faa1000.rng: [v1.01] registerd TRNG driver [ 1.939059] airoha-trng 1faa1000.rng: trng read [ 1.940679] spi-nand spi0.0: ESMT SPI NAND was found. [ 1.945395] random: crng init done [ 1.949920] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64 [ 1.978379] 7 fixed-partitions partitions found on MTD device spi0.0 [ 1.984759] Creating 7 MTD partitions on "spi0.0": [ 1.989680] 0x000000000000-0x000000080000 : "bootloader" [ 1.996616] 0x000000080000-0x000000120000 : "romfile" [ 2.003901] 0x0000000a0000-0x000000240000 : "misc" [ 2.011925] 0x0000001a0000-0x0000011a0000 : "kernel" [ 2.050640] 0x0000011a0000-0x0000011a0001 : "rootfs_dummy" [ 2.057058] 0x0000011a0000-0x000007500000 : "rootfs" [ 2.275046] mtd: setting mtd5 (rootfs) as root device [ 2.280511] 1 squashfs-split partitions found on MTD device rootfs [ 2.286736] 0x000002180000-0x000007500000 : "rootfs_data" [ 2.293303] 0x000007500000-0x000008000000 : "reserved_bmt" [ 2.409096] airoha-npu 1e900000.npu: L2C sram size: 0x00 [ 2.414426] airoha-npu 1e900000.npu: FPGA Stage: 1 [ 2.929747] airoha-npu 1e900000.npu: Cannot get NPU Version [ 2.950222] airoha-usb-phy 1fad0000.phy: Frequency not detected, using default SR calibration. [ 2.963426] xhci-mtk 1fab0000.usb: xHCI Host Controller [ 2.966800] airoha-trng 1faa1000.rng: trng read [ 2.968754] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 1 [ 2.984562] xhci-mtk 1fab0000.usb: hcc params 0x01400f98 hci version 0x110 quirks 0x0000000000200010 [ 2.993795] xhci-mtk 1fab0000.usb: irq 45, io mem 0x1fab0000 [ 2.999630] xhci-mtk 1fab0000.usb: xHCI Host Controller [ 3.004873] xhci-mtk 1fab0000.usb: new USB bus registered, assigned bus number 2 [ 3.012312] xhci-mtk 1fab0000.usb: Host supports USB 3.2 Enhanced SuperSpeed [ 3.020132] hub 1-0:1.0: USB hub found [ 3.024061] hub 1-0:1.0: 2 ports detected [ 3.028870] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 3.037711] hub 2-0:1.0: USB hub found [ 3.041624] hub 2-0:1.0: 1 port detected [ 3.046375] i2c-mt7621 1fbf8000.i2c0: clock 100 kHz [ 3.064701] en7523-audio 1fbe2200.audio-controller: mtk_afe_combine_sub_dai(), num of dai 2 [ 3.073661] debugfs: Directory '1fbe2200.audio-controller' with parent 'en7523-i2s' already present! [ 3.083733] NET: Registered PF_INET6 protocol family [ 3.090171] Segment Routing with IPv6 [ 3.093880] In-situ OAM (IOAM) with IPv6 [ 3.097943] NET: Registered PF_PACKET protocol family [ 3.103293] 8021q: 802.1Q VLAN Support v1.8 [ 3.107639] Registering SWP/SWPB emulation handler [ 3.195033] mt7530-mmio 1fb58000.switch: configuring for fixed/internal link mode [ 3.202819] mt7530-mmio 1fb58000.switch lan1 (uninitialized): PHY [mt7530-0:09] driver [Airoha EN7523 PHY] (irq=POLL) [ 3.214511] mt7530-mmio 1fb58000.switch lan2 (uninitialized): PHY [mt7530-0:0a] driver [Airoha EN7523 PHY] (irq=POLL) [ 3.226008] mt7530-mmio 1fb58000.switch lan3 (uninitialized): PHY [mt7530-0:0b] driver [Airoha EN7523 PHY] (irq=POLL) [ 3.237510] mt7530-mmio 1fb58000.switch wan (uninitialized): PHY [mt7530-0:0c] driver [Airoha EN7523 PHY] (irq=POLL) [ 3.248895] airoha_eth 1fb50000.ethernet eth0: entered promiscuous mode [ 3.255581] DSA: tree 0 setup [ 3.258965] mt7530-mmio 1fb58000.switch: Link is Up - 10Gbps/Full - flow control rx/tx [ 3.267418] clk: Disabling unused clocks [ 3.271370] PM: genpd: Disabling unused power domains [ 3.276421] ALSA device list: [ 3.279476] #0: en7523-i2s [ 3.340521] Freeing unused kernel image (initmem) memory: 57344K [ 3.346902] Run /init as init process [ 3.964621] init: Console is alive [ 3.968379] init: - watchdog - [ 3.983178] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 3.992137] gpio_button_hotplug: loading out-of-tree module taints kernel. [ 3.999566] airoha-trng 1faa1000.rng: trng read [ 4.018789] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 4.036483] init: - preinit - Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level [ 5.036697] airoha-trng 1faa1000.rng: trng read [ 5.382218] procd: - early - [ 5.385257] procd: - watchdog - [ 5.922762] procd: - watchdog - [ 5.926160] procd: - ubus - [ 5.982262] procd: - init - Please press Enter to activate this console. [ 6.247404] kmodloader: loading kernel modules from /etc/modules.d/* [ 6.553151] i2c_dev: i2c /dev entries driver [ 6.561909] Loading modules backported from Linux version v6.18.7-0-g5dfbc5357 [ 6.569222] Backport generated by backports.git c8a37ce [ 6.672813] xt_time: kernel timezone is -0000 [ 6.832012] mt7915e 0001:01:00.0: enabling device (0140 -> 0142) [ 7.002409] urngd: v1.0.2 started. [ 7.049198] mt7915e 0001:01:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240429200716a [ 7.088491] mt7915e 0001:01:00.0: WM Firmware Version: ____000000, Build Time: 20240429200752 [ 7.117531] airoha-trng 1faa1000.rng: trng read [ 7.142963] mt7915e 0001:01:00.0: WA Firmware Version: DEV_000000, Build Time: 20240429200812 [ 7.300198] mt7915e 0001:01:00.0: registering led 'mt76-phy0' [ 7.368072] mt7915e 0001:01:00.0: registering led 'mt76-phy1' [ 7.506780] PPP generic driver version 2.4.2 [ 7.515948] NET: Registered PF_PPPOX protocol family [ 7.540045] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information. [ 7.548024] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. [ 7.599563] kmodloader: done loading kernel modules from /etc/modules.d/* [ 10.156807] airoha-trng 1faa1000.rng: trng read [ 15.196836] airoha-trng 1faa1000.rng: trng read [ 17.178607] mt7530-mmio 1fb58000.switch lan1: configuring for phy/internal link mode [ 17.195060] br-lan: port 1(lan1) entered blocking state [ 17.200464] br-lan: port 1(lan1) entered disabled state [ 17.205872] mt7530-mmio 1fb58000.switch lan1: entered allmulticast mode [ 17.212613] airoha_eth 1fb50000.ethernet eth0: entered allmulticast mode [ 17.219826] mt7530-mmio 1fb58000.switch lan1: entered promiscuous mode [ 17.238063] mt7530-mmio 1fb58000.switch lan2: configuring for phy/internal link mode [ 17.258781] br-lan: port 2(lan2) entered blocking state [ 17.264069] br-lan: port 2(lan2) entered disabled state [ 17.269430] mt7530-mmio 1fb58000.switch lan2: entered allmulticast mode [ 17.276385] mt7530-mmio 1fb58000.switch lan2: entered promiscuous mode [ 17.286502] mt7530-mmio 1fb58000.switch lan3: configuring for phy/internal link mode [ 17.297133] br-lan: port 3(lan3) entered blocking state [ 17.302406] br-lan: port 3(lan3) entered disabled state [ 17.307910] mt7530-mmio 1fb58000.switch lan3: entered allmulticast mode [ 17.314997] mt7530-mmio 1fb58000.switch lan3: entered promiscuous mode [ 17.366341] mt7530-mmio 1fb58000.switch wan: configuring for phy/internal link mode [ 17.915622] br-lan: port 4(phy0-ap0) entered blocking state [ 17.921348] br-lan: port 4(phy0-ap0) entered disabled state [ 17.927126] mt7915e 0001:01:00.0 phy0-ap0: entered allmulticast mode [ 17.933802] mt7915e 0001:01:00.0 phy0-ap0: entered promiscuous mode [ 17.947249] mt7915e 0001:01:00.0 phy0-ap0: left allmulticast mode [ 17.953444] mt7915e 0001:01:00.0 phy0-ap0: left promiscuous mode [ 17.959730] br-lan: port 4(phy0-ap0) entered disabled state [ 18.030925] br-lan: port 4(phy0-ap0) entered blocking state [ 18.036521] br-lan: port 4(phy0-ap0) entered disabled state [ 18.042235] mt7915e 0001:01:00.0 phy0-ap0: entered allmulticast mode [ 18.048942] mt7915e 0001:01:00.0 phy0-ap0: entered promiscuous mode [ 18.055455] br-lan: port 4(phy0-ap0) entered blocking state [ 18.061132] br-lan: port 4(phy0-ap0) entered forwarding state [ 18.067857] br-lan: port 4(phy0-ap0) entered disabled state [ 18.773928] br-lan: port 5(phy1-ap0) entered blocking state [ 18.779684] br-lan: port 5(phy1-ap0) entered disabled state [ 18.785409] mt7915e 0001:01:00.0 phy1-ap0: entered allmulticast mode [ 18.792135] mt7915e 0001:01:00.0 phy1-ap0: entered promiscuous mode [ 18.855251] br-lan: port 5(phy1-ap0) entered blocking state [ 18.860935] br-lan: port 5(phy1-ap0) entered forwarding state [ 18.868110] mt7915e 0001:01:00.0 phy1-ap0: left allmulticast mode [ 18.874293] mt7915e 0001:01:00.0 phy1-ap0: left promiscuous mode [ 18.880558] br-lan: port 5(phy1-ap0) entered disabled state [ 18.905493] br-lan: port 5(phy1-ap0) entered blocking state [ 18.911220] br-lan: port 5(phy1-ap0) entered disabled state [ 18.916939] mt7915e 0001:01:00.0 phy1-ap0: entered allmulticast mode [ 18.923730] mt7915e 0001:01:00.0 phy1-ap0: entered promiscuous mode [ 21.438499] mt7530-mmio 1fb58000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx [ 21.447592] br-lan: port 3(lan3) entered blocking state [ 21.452840] br-lan: port 3(lan3) entered forwarding state [ 22.316701] airoha-trng 1faa1000.rng: trng read [ 22.373272] br-lan: port 5(phy1-ap0) entered blocking state [ 22.378922] br-lan: port 5(phy1-ap0) entered forwarding state [ 25.853085] br-lan: port 4(phy0-ap0) entered blocking state [ 25.858725] br-lan: port 4(phy0-ap0) entered forwarding state [ 33.836741] airoha-trng 1faa1000.rng: trng read [ 50.476717] airoha-trng 1faa1000.rng: trng read [ 76.076700] airoha-trng 1faa1000.rng: trng read BusyBox v1.37.0 (2026-01-09 13:35:48 UTC) built-in shell (ash) _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- OpenWrt SNAPSHOT, r32871-b7a6b0cafc ----------------------------------------------------- === WARNING! ===================================== There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -------------------------------------------------- OpenWrt recently switched to the "apk" package manager! OPKG Command APK Equivalent Description ------------------------------------------------------------------ opkg install <pkg> apk add <pkg> Install a package opkg remove <pkg> apk del <pkg> Remove a package opkg upgrade apk upgrade Upgrade all packages opkg files <pkg> apk info -L <pkg> List package contents opkg list-installed apk info List installed packages opkg update apk update Update package lists opkg search <pkg> apk search <pkg> Search for packages ------------------------------------------------------------------ For more information visit: https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet root@OpenWrt:~# cd /dev/ root@OpenWrt:/dev# dd if=/[ 114.476731] airoha-trng 1faa1000.rng: trng read root@OpenWrt:/dev# dd if=hwrng of=null count=512 [ 129.547243] airoha-trng 1faa1000.rng: trng read [ 129.551804] airoha-trng 1faa1000.rng: trng read [ 129.556339] airoha-trng 1faa1000.rng: trng read [ 129.560944] airoha-trng 1faa1000.rng: trng read [ 129.576984] airoha-trng 1faa1000.rng: trng read [ 129.581582] airoha-trng 1faa1000.rng: trng read [ 129.596801] airoha-trng 1faa1000.rng: trng read 512+0 records in 512+0 records out root@OpenWrt:/dev# [ 172.076775] airoha-trng 1faa1000.rng: trng read [ 197.278185] mt7530-mmio 1fb58000.switch wan: Link is Up - 1Gbps/Full - flow control rx [ 200.317455] mt7530-mmio 1fb58000.switch lan3: Link is Down [ 200.324086] br-lan: port 3(lan3) entered disabled state [ 203.438535] mt7530-mmio 1fb58000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx [ 203.447733] br-lan: port 3(lan3) entered blocking state [ 203.452998] br-lan: port 3(lan3) entered forwarding state [ 233.516793] airoha-trng 1faa1000.rng: trng read [ 294.958171] airoha-trng 1faa1000.rng: trng read root@OpenWrt:/dev# dd if=hwrng count=1 [ 307.910747] airoha-trng 1faa1000.rng: trng read [ 307.915311] airoha-trng 1faa1000.rng: trng read [ 307.919892] airoha-trng 1faa1000.rng: trng read [ 307.924430] airoha-trng 1faa1000.rng: trng read [ 307.948600] airoha-trng 1faa1000.rng: trng read [ 307.953158] airoha-trng 1faa1000.rng: trng read [ 307.968734] airoha-trng 1faa1000.rng: trng read [ 307.973286] airoha-trng 1faa1000.rng: trng read ��Ħ��X}��u���������^��9 ����X�d��)c���d V��Z��쥗m#p�������<����ʘ�Dԕ�h�#( D@s����!�4�^���?p��q��q�X�6�";���u�JR;@�>̗�8���cn��\BnܐN��o5�_�x�XY-�2▒�u]癃��2�����e��6� �LE��V�p�"��-v=}�թz�"��J��zDr� �6����G�U�z/i�5x�C3�^D<����S��c1▒` ˶L���Lu�7P^�6���a;���B��v�r��z�>eB?���S�lwn^\6�!./Y�r��~W▒� ����m�����W`��^�Gc�/, ��3x �Ğ��f��f:���_�mw�51��(�X�@;D������i�r�r�7>1���^����v��8OZ�q��%�ŝdՂ���▒7� :����J$j(nr$�S����]��t��D5��"t��Ƅ��#H1+0 records in 1+0 records out root@OpenWrt:/dev# dd if=hwrng count=1 bs= dd: invalid number '' root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 [ 316.341236] airoha-trng 1faa1000.rng: trng read 1+0 records in 1+0 records out root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 | xxd -ash: xxd: not found dd: error writing 'standard output': Broken pipe 1+0 records in 0+0 records out root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 | xxd -C 1+0 records in 1+0 records out -ash: xxd: not found root@OpenWrt:/dev# dd if=hwrng count=1 bs=1 | xxd -C32 -ash: xxd: not found dd: error writing 'standard output': Broken pipe 1+0 records in 0+0 records out root@OpenWrt:/dev# dd if=hwrng count=1 bs=2 | xxd -C32 1+0 records in 1+0 records out -ash: xxd: not found root@OpenWrt:/dev# dd if=hwrng count=1 bs=2 | xxd -C32^C root@OpenWrt:/dev# xxd -ash: xxd: not found root@OpenWrt:/dev# xxd^C root@OpenWrt:/dev# hexdump ^C root@OpenWrt:/dev# hexdump ^C root@OpenWrt:/dev# dd if=hwrng count=1 bs=2 | hexdump 1+0 records in 1+0 records out 0000000 90f1 0000002 root@OpenWrt:/dev# dd if=hwrng count=1 bs=6 | hexdump 1+0 records in 1+0 records out 0000000 8d33 8005 1380 0000006 root@OpenWrt:/dev# dd if=hwrng count=1 bs=6 | hexdump [ 356.399373] airoha-trng 1faa1000.rng: trng read 1+0 records in 1+0 records out 0000000 72dd 0012 f0e3 0000006 root@OpenWrt:/dev# dd if=hwrng count=2 bs=6 | hexdump 2+0 records in 2+0 records out 0000000 94af 98c9 30c4 66c9 8134 f337 000000c root@OpenWrt:/dev# dd if=hwrng count=2 bs=12 | hexdump 2+0 records in 2+0 records out 0000000 c7ba 31f0 78af fbc1 f960 78b0 0077 b2b6 0000010 c8eb 4aeb 47d1 0726 0000018 root@OpenWrt:/dev# dd if=hwrng count=6 bs=12 | hexdump [ 372.208252] airoha-trng 1faa1000.rng: trng read 6+0 records in 6+0 records out 0000000 318a 23a0 68c9 5171 f5f4 899f c656 ef3b 0000010 9703 469c 1dcd 6e9d 0cc7 33cc 0d60 f4ff 0000020 38e2 c90c e580 7b95 2f4f 01b7 a213 1afc 0000030 0ba8 0248 b0c1 e0de b97d d16a 151a 7d76 0000040 e3fb b7b9 2504 589c 0000048 root@OpenWrt:/dev# [ 417.908014] airoha-trng 1faa1000.rng: trng read [ 479.294656] airoha-trng 1faa1000.rng: trng read [ 540.823015] airoha-trng 1faa1000.rng: trng read ``` </details>
Sirherobrine23 added reference airoha_en7523_trng 2026-01-30 16:29:17 +00:00
Sirherobrine23 added a new dependency 2026-01-30 16:29:50 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Depends on
#23 trng
airoha_en7523/kernel
Reference: airoha_en7523/kernel#20