Jump to content

Efforts to develop firmware for HK1 RBOX R2 4G/64G


Hqnicolas

Recommended Posts

I have tried mainline uboot too, of course, there is no support, only evb-rk3568_defconfig here, I gave it a shot:
 

Quote

U-Boot SPL board init
U-Boot SPL 2017.09-gbb96596-dirty #ubuntu (Jun 16 2023 - 03:20:14)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256+ OK
## Checking u-boot 0x00a00000 ... sha256+ OK
## Checking fdt-1 0x00aa5c68 ... sha256+ OK
## Checking atf-2 0x0006a000 ... sha256+ OK
## Checking atf-3 0x0006c000 ... sha256+ OK
## Checking atf-4 0xfdcc1000 ... sha256+ OK
## Checking atf-5 0xfdcce000 ... sha256+ OK
## Checking atf-6 0xfdcd0000 ... sha256+ OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 302.565 ms

INFO:    Preloader serial: 2
NOTICE:  BL31: v2.3():v2.3-594-g7f859117f:cl
NOTICE:  BL31: Built : 04:51:16, May 11 2023
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    pmu v1 is valid 220114
INFO:    dfs DDR fsp_param[0].freq_mhz= 1056MHz
INFO:    dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO:    dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO:    dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO:    BL31: Initialising Exception Handling Framework
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0xa00000
INFO:    SPSR = 0x3c9


U-Boot 2023.07-rc4-g68c07fc5 (Jun 23 2023 - 12:33:46 +0000)

Model: Rockchip RK3568 EVB1 DDR4 V10 Board
DRAM:  4 GiB (effective 3.7 GiB)
Core:  300 devices, 22 uclasses, devicetree: separate
MMC:   mmc@fe2b0000: 1, mmc@fe310000: 0
Loading Environment from nowhere... OK
In:    serial@fe660000
Out:   serial@fe660000
Err:   serial@fe660000
Model: Rockchip RK3568 EVB1 DDR4 V10 Board
can't get vref-supply: -121
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
** Booting bootflow 'mmc@fe2b0000.bootdev.part_2' with extlinux
1:      Armbian
Retrieving file: /boot/Image
Retrieving file: /boot/uInitrd
append: root=UUID=952978b3-dfa5-664b-bbcf-8fdc9328763f rootflags=data=writeback rw rootwait console=ttyS02,1500000 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 logle7
Retrieving file: /boot/rk3566-box-demo_rboxr2_5.dtb
Moving Image from 0x2080000 to 0x2200000, end=3cc0000
## Flattened Device Tree blob at 0a100000
   Booting using the fdt blob at 0xa100000
Working FDT set to a100000
   Loading Ramdisk to eaf24000, end eceefe02 ... OK
   Loading Device Tree to 00000000eaf06000, end 00000000eaf23887 ... OK
Working FDT set to eaf06000

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[    0.000000] Linux version 6.1.34-media (armbian@next) (aarch64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT_DYNAMIC Wed Jun 14 09:15:34 UTC 2023
[    0.000000] Machine model: Rockchip RK3566 BOX DEMO Board
[    0.000000] efi: UEFI not found.
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000] NUMA: NODE_DATA [mem 0xef7e4100-0xef7e9fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000efffffff]
[    0.000000] On node 0, zone DMA: 512 pages in unavailable ranges
[    0.000000] cma: Reserved 256 MiB at 0x00000000d7200000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 30 pages/cpu s83112 r8192 d31576 u122880
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Virtualization Host Extensions
[    0.000000] CPU features: detected: Qualcomm erratum 1009, or ARM erratum 1286807, 2441009
[    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Fallback order for Node 0: 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 967176
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=UUID=952978b3-dfa5-664b-bbcf-8fdc9328763f rootflags=data=writeback rw rootwait console=ttyS02,1500000 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.re7
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 3531540K/3930112K available (14528K kernel code, 3388K rwdata, 4740K rodata, 3520K init, 1028K bss, 136428K reserved, 262144K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] Dynamic Preempt: none
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 320 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: MBI range [296:319]
[    0.000000] GICv3: Using MBI frame 0x00000000fd410000
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001514] Console: colour dummy device 80x25
[    0.002161] printk: console [tty0] enabled
[    0.002324] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.002367] pid_max: default: 32768 minimum: 301
[    0.002657] LSM: Security Framework initializing
[    0.002757] Yama: becoming mindful.
[    0.002845] LSM support for eBPF active
[    0.003056] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003110] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.005021] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.006243] cblist_init_generic: Setting adjustable number of callback queues.
[    0.006283] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.006455] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.006845] rcu: Hierarchical SRCU implementation.
[    0.006870] rcu:     Max phase no-delay instances is 1000.
[    0.013122] EFI services will not be available.
[    0.013832] smp: Bringing up secondary CPUs ...
[    0.014899] Detected VIPT I-cache on CPU1
[    0.015024] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    0.015047] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    0.015107] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    0.016280] Detected VIPT I-cache on CPU2
[    0.016385] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    0.016407] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    0.016456] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    0.017522] Detected VIPT I-cache on CPU3
[    0.017629] cacheinfo: Unable to detect cache hierarchy for CPU 3
[    0.017650] GICv3: CPU3: found redistributor 300 region 0:0x00000000fd4c0000
[    0.017696] CPU3: Booted secondary processor 0x0000000300 [0x412fd050]
[    0.017835] smp: Brought up 1 node, 4 CPUs
[    0.018001] SMP: Total of 4 processors activated.
[    0.018020] CPU features: detected: 32-bit EL0 Support
[    0.018037] CPU features: detected: 32-bit EL1 Support
[    0.018056] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[    0.018077] CPU features: detected: Common not Private translations
[    0.018095] CPU features: detected: CRC32 instructions
[    0.018110] CPU features: detected: Data cache clean to Point of Persistence
[    0.018131] CPU features: detected: RCpc load-acquire (LDAPR)
[    0.018147] CPU features: detected: LSE atomic instructions
[    0.018164] CPU features: detected: Privileged Access Never
[    0.018178] CPU features: detected: RAS Extension Support
[    0.018197] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.018325] CPU: All CPU(s) started at EL2
[    0.018348] alternatives: applying system-wide alternatives
[    0.026198] devtmpfs: initialized
[    0.056010] Registered cp15_barrier emulation handler
[    0.056065] Registered setend emulation handler
[    0.056394] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.056443] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.064459] pinctrl core: initialized pinctrl subsystem
[    0.065426] DMI not present or invalid.
[    0.066435] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.068323] DMA: preallocated 2048 KiB GFP_KERNEL pool for atomic allocations
[    0.069072] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.069658] DMA: preallocated 2048 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.069762] audit: initializing netlink subsys (disabled)
[    0.070044] audit: type=2000 audit(0.064:1): state=initialized audit_enabled=0 res=1
[    0.071362] thermal_sys: Registered thermal governor 'fair_share'
[    0.071375] thermal_sys: Registered thermal governor 'bang_bang'
[    0.071401] thermal_sys: Registered thermal governor 'step_wise'
[    0.071419] thermal_sys: Registered thermal governor 'user_space'
[    0.071510] cpuidle: using governor ladder
[    0.071581] cpuidle: using governor menu
[    0.071954] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.072177] ASID allocator initialised with 65536 entries
[    0.074167] Serial: AMBA PL011 UART driver
[    0.087914] platform fe040000.vop: Fixed dependency cycle(s) with /hdmi@fe0a0000
[    0.114932] rockchip-gpio fdd60000.gpio: probed /pinctrl/gpio@fdd60000
[    0.115722] rockchip-gpio fe740000.gpio: probed /pinctrl/gpio@fe740000
[    0.116605] rockchip-gpio fe750000.gpio: probed /pinctrl/gpio@fe750000
[    0.117354] rockchip-gpio fe760000.gpio: probed /pinctrl/gpio@fe760000
[    0.118191] rockchip-gpio fe770000.gpio: probed /pinctrl/gpio@fe770000
[    0.119329] platform fe0a0000.hdmi: Fixed dependency cycle(s) with /hdmi-con
[    0.126604] KASLR disabled due to lack of seed
[    0.137765] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[    0.137810] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[    0.137832] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[    0.137850] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[    0.137870] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[    0.137887] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[    0.137906] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[    0.137924] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[    0.204805] raid6: neonx8   gen()  1414 MB/s
[    0.272940] raid6: neonx4   gen()  1443 MB/s
[    0.341091] raid6: neonx2   gen()  1337 MB/s
[    0.409222] raid6: neonx1   gen()  1097 MB/s
[    0.477363] raid6: int64x8  gen()   909 MB/s
[    0.545503] raid6: int64x4  gen()  1047 MB/s
[    0.613638] raid6: int64x2  gen()   936 MB/s
[    0.681790] raid6: int64x1  gen()   686 MB/s
[    0.681814] raid6: using algorithm neonx4 gen() 1443 MB/s
[    0.749911] raid6: .... xor() 1099 MB/s, rmw enabled
[    0.749934] raid6: using neon recovery algorithm
[    0.751162] fbcon: Taking over console
[    0.751268] ACPI: Interpreter disabled.
[    0.756564] iommu: Default domain type: Translated 
[    0.756605] iommu: DMA domain TLB invalidation policy: lazy mode 
[    0.757485] usbcore: registered new interface driver usbfs
[    0.757588] usbcore: registered new interface driver hub
[    0.757677] usbcore: registered new device driver usb
[    0.758127] pps_core: LinuxPPS API ver. 1 registered
[    0.758153] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.758195] PTP clock support registered
[    0.758751] EDAC MC: Ver: 3.0.0
[    0.759351] arm-scmi firmware:scmi: Enabled polling mode TX channel - prot_id:16
[    0.759590] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    0.759678] arm-scmi firmware:scmi: SCMI Protocol v2.0 'rockchip:' Firmware version 0x0
[    0.761415] NetLabel: Initializing
[    0.761443] NetLabel:  domain hash size = 128
[    0.761460] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.761554] NetLabel:  unlabeled traffic allowed by default
[    0.761862] vgaarb: loaded
[    0.762574] clocksource: Switched to clocksource arch_sys_counter
[    0.763243] VFS: Disk quotas dquot_6.6.0
[    0.763352] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.763802] pnp: PnP ACPI: disabled
[    0.778474] NET: Registered PF_INET protocol family
[    0.778939] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.783282] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.783379] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.783449] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.783748] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.784800] TCP: Hash tables configured (established 32768 bind 32768)
[    0.785200] MPTCP token hash table entries: 4096 (order: 4, 98304 bytes, linear)
[    0.785397] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.785507] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.785886] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.785976] NET: Registered PF_XDP protocol family
[    0.786010] PCI: CLS 0 bytes, default 64
[    0.787075] Trying to unpack rootfs image as initramfs...
[    0.787233] rootfs image is not initramfs (invalid magic at start of compressed archive); looks like an initrd
[    0.812368] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[    0.813447] kvm [1]: IPA Size Limit: 40 bits
[    0.813567] kvm [1]: GICv3: no GICV resource entry
[    0.813595] kvm [1]: disabling GICv2 emulation
[    0.813640] kvm [1]: GIC system register CPU interface enabled
[    0.813939] kvm [1]: vgic interrupt IRQ9
[    0.814215] kvm [1]: VHE mode initialized successfully
[    0.817032] Initialise system trusted keyrings
[    0.817552] workingset: timestamp_bits=39 max_order=20 bucket_order=0
[    0.827106] zbud: loaded
[    0.830663] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.830939] fuse: init (API version 7.37)
[    0.872810] Freeing initrd memory: 32556K
[    0.886737] xor: measuring software checksum speed
[    0.892519]    8regs           :  1722 MB/sec
[    0.898814]    32regs          :  1577 MB/sec
[    0.904669]    arm64_neon      :  1692 MB/sec
[    0.904691] xor: using function: 8regs (1722 MB/sec)
[    0.904718] Key type asymmetric registered
[    0.904736] Asymmetric key parser 'x509' registered
[    0.906809] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    0.906967] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.907197] io scheduler mq-deadline registered
[    0.907556] io scheduler bfq registered
[    0.924313] arm-scmi firmware:scmi: Failed. SCMI protocol 22 not active.
[    0.930231] Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled
[    0.934910] fe650000.serial: ttyS1 at MMIO 0xfe650000 (irq = 23, base_baud = 1500000) is a 16550A
[    0.935149] serial serial0: tty port ttyS1 registered
[    0.936258] fe660000.serial: ttyS2 at MMIO 0xfe660000 (irq = 24, base_baud = 1500000) is a 16550A
[    1.048221] printk: console [ttyS2] enabled
[    1.050295] Serial: AMBA driver
[    1.053924] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.067674] brd: module loaded
[    1.077926] loop: module loaded
[    1.083320] thunder_xcv, ver 1.0
[    1.083725] thunder_bgx, ver 1.0
[    1.084079] nicpf, ver 1.0
[    1.086679] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
[    1.087489] rk_gmac-dwmac fe010000.ethernet: supply phy not found, using dummy regulator
[    1.088418] rk_gmac-dwmac fe010000.ethernet: clock input or output? (input).
[    1.089066] rk_gmac-dwmac fe010000.ethernet: TX delay(0x4b).
[    1.089587] rk_gmac-dwmac fe010000.ethernet: RX delay(0x2b).
[    1.090116] rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).
[    1.090741] rk_gmac-dwmac fe010000.ethernet: clock input from PHY
[    1.096316] rk_gmac-dwmac fe010000.ethernet: init for RGMII
[    1.097195] rk_gmac-dwmac fe010000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    1.097854] rk_gmac-dwmac fe010000.ethernet:         DWMAC4/5
[    1.098329] rk_gmac-dwmac fe010000.ethernet: DMA HW capability register supported
[    1.099037] rk_gmac-dwmac fe010000.ethernet: RX Checksum Offload Engine supported
[    1.099717] rk_gmac-dwmac fe010000.ethernet: TX Checksum insertion supported
[    1.100351] rk_gmac-dwmac fe010000.ethernet: Wake-Up On Lan supported
[    1.101011] rk_gmac-dwmac fe010000.ethernet: TSO supported
[    1.101515] rk_gmac-dwmac fe010000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    1.102240] rk_gmac-dwmac fe010000.ethernet: Enabled RFS Flow TC (entries=10)
[    1.102911] rk_gmac-dwmac fe010000.ethernet: TSO feature enabled
[    1.103461] rk_gmac-dwmac fe010000.ethernet: Using 32/32 bits DMA host/device width
[    1.242065] usbcore: registered new interface driver usbserial_generic
[    1.242744] usbserial: USB Serial support registered for generic
[    1.243350] usbcore: registered new interface driver ch341
[    1.243880] usbserial: USB Serial support registered for ch341-uart
[    1.244488] usbcore: registered new interface driver cp210x
[    1.245023] usbserial: USB Serial support registered for cp210x
[    1.245599] usbcore: registered new interface driver ftdi_sio
[    1.246172] usbserial: USB Serial support registered for FTDI USB Serial Device
[    1.246909] usbcore: registered new interface driver pl2303
[    1.247446] usbserial: USB Serial support registered for pl2303
[    1.248694] mousedev: PS/2 mouse device common for all mice
[    1.254796] ledtrig-cpu: registered to indicate activity on CPUs
[    1.256085] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.
[    1.256776] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    1.262634] NET: Registered PF_INET6 protocol family
[    1.266751] Segment Routing with IPv6
[    1.267222] In-situ OAM (IOAM) with IPv6
[    1.269176] registered taskstats version 1
[    1.269601] Loading compiled-in X.509 certificates
[    1.273969] zswap: loaded using pool zstd/z3fold
[    1.275425] Key type .fscrypt registered
[    1.275802] Key type fscrypt-provisioning registered
[    1.278152] Btrfs loaded, crc32c=crc32c-generic, assert=on, integrity-checker=on, zoned=yes, fsverity=yes
[    1.280814] Key type encrypted registered
[    1.281248] ima: No TPM chip found, activating TPM-bypass!
[    1.281762] ima: Allocated hash algorithm: sha1
[    1.282213] ima: No architecture policies found
[    1.282766] evm: Initialising EVM extended attributes:
[    1.283240] evm: security.selinux
[    1.283548] evm: security.SMACK64
[    1.283854] evm: security.SMACK64EXEC
[    1.284190] evm: security.SMACK64TRANSMUTE
[    1.284562] evm: security.SMACK64MMAP
[    1.284898] evm: security.apparmor
[    1.285212] evm: security.ima
[    1.285486] evm: security.capability
[    1.285813] evm: HMAC attrs: 0x1
[    1.341466] psci_checker: PSCI checker started using 4 CPUs
[    1.342006] psci_checker: Starting hotplug tests
[    1.342434] psci_checker: Trying to turn off and on again all CPUs
[    1.343843] psci: CPU0 killed (polled 0 ms)
[    1.346765] psci: CPU1 killed (polled 0 ms)
[    1.349211] psci: CPU2 killed (polled 0 ms)
[    1.352157] Detected VIPT I-cache on CPU0
[    1.352586] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.353142] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    1.353821] CPU0: Booted secondary processor 0x0000000000 [0x412fd050]
[    1.356257] Detected VIPT I-cache on CPU1
[    1.356683] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    1.357239] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    1.357927] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    1.361014] Detected VIPT I-cache on CPU2
[    1.361476] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    1.362035] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    1.362722] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    1.364782] psci_checker: Trying to turn off and on again group 0 (CPUs 0-3)
[    1.366583] psci: CPU0 killed (polled 4 ms)
[    1.370009] psci: CPU1 killed (polled 0 ms)
[    1.372484] psci: CPU2 killed (polled 0 ms)
[    1.375067] Detected VIPT I-cache on CPU0
[    1.375497] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.376053] GICv3: CPU0: found redistributor 0 region 0:0x00000000fd460000
[    1.376732] CPU0: Booted secondary processor 0x0000000000 [0x412fd050]
[    1.379375] Detected VIPT I-cache on CPU1
[    1.379802] cacheinfo: Unable to detect cache hierarchy for CPU 1
[    1.380357] GICv3: CPU1: found redistributor 100 region 0:0x00000000fd480000
[    1.381047] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[    1.383818] Detected VIPT I-cache on CPU2
[    1.384282] cacheinfo: Unable to detect cache hierarchy for CPU 2
[    1.384840] GICv3: CPU2: found redistributor 200 region 0:0x00000000fd4a0000
[    1.385529] CPU2: Booted secondary processor 0x0000000200 [0x412fd050]
[    1.387527] psci_checker: Hotplug tests passed OK
[    1.387969] psci_checker: Starting suspend tests (10 cycles per state)
[    1.388617] psci_checker: cpuidle not available on CPU 0, ignoring
[    1.389184] psci_checker: cpuidle not available on CPU 1, ignoring
[    1.389742] psci_checker: cpuidle not available on CPU 2, ignoring
[    1.390298] psci_checker: cpuidle not available on CPU 3, ignoring
[    1.390895] psci_checker: Could not start suspend tests on any CPU
[    1.391456] psci_checker: PSCI checker completed
[    1.393202] md: Waiting for all devices to be available before autodetect
[    1.393825] md: If you don't use raid, use raid=noautodetect
[    1.394338] md: Autodetecting RAID arrays.
[    1.394753] md: autorun ...
[    1.395018] md: ... autorun DONE.
[    1.395445] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[    1.396070] Waiting for root device UUID=952978b3-dfa5-664b-bbcf-8fdc9328763f...
[   11.491305] platform fdc20000.syscon:io-domains: deferred probe pending
 


with evb-rk3568_defconfig: no USB detected, although uboot shell detected emmc but I don't know why it can't find rootfs uuid on emmc, need some advice

Link to comment
Share on other sites

2 hours ago, hotnikq said:

you're building entire uboot just because misconfig lan card?

No, not really. It's just my hope if I can boot with mainline uboot then "maybe" ethernet work. I don't know how to fix RGMII so I tried to do something that I can do when looking for help from others 😅😅

 

On 6/16/2023 at 8:25 PM, ewww said:

But now I can not reproduce it, it hangs at something like

I made that post about legacy uboot to take note for myself in case my sdcard dies (I have forgotten how to build it in the past 😅). And maybe it will help other people?

 

 

Link to comment
Share on other sites

2 hours ago, ewww said:

in case my sdcard dies

 

 

the topic H96MAX have an description how to create a MMC flashing image
"legacy u-boot"

 

2 hours ago, ewww said:

I don't know how to fix RGMII

 

ask on wrt forum and bring that to our topic

 

Quote

............Found the fix, their is a mismatch in mainline vs downstream uboot that causes its clock "fix up" based on the kernels DTB set the wrong clocks for (at least) GPLL and CPLL................

 

can you edit the legacy uboot to the same config as the mainline for LAN?

 

Quote

[ 25.647045] rk_gmac-dwmac fe1c0000.ethernet: rk3588_set_to_rgmii - RK3588_GRF_GMAC_CON0 : 544

[ 25.647117] rk_gmac-dwmac fe1c0000.ethernet: rk3588_set_to_rgmii - RK3588_GRF_CLK_CON1 : 512

[ 25.647149] rk_gmac-dwmac fe1c0000.ethernet: rk3588_set_to_rgmii - RK3588_GRF_GMAC_CON7 : 0

[ 25.647179] rk_gmac-dwmac fe1c0000.ethernet: rk3588_set_to_rgmii - offset_con reg : 0

[ 25.647207] rk_gmac-dwmac fe1c0000.ethernet: rk3588_set_to_rgmii - offset_con val : 804

 

Found some Github posts
Github is blocked on my work so i get it from google cache.... 

 

Quote

With the reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;

 in the device-tree on my N2, on some occasions I end up with the same issue as @n2qcn.

No interface at startup or ip down followed by ip up fails.

The only way I found in my case to end up with something stable, was removing the reset-gpios line AND to add a ugly fix

in /etc/network/interfaces in my case (using ifupdown for the network configuration):

auto eth0 iface eth0 inet dhcp

# Ugly fix to make ethernet work (able to up & down as pleased), works with DT patch pre-up ip link set dev eth0 up || true

When the system starts with a device-tree without the reset-gpios, you sometime en up with your issue @DarthGandalf.
The fix is to up the interface a second time (the theory is that the first time resets the hardware on failure which put the hardware back in the correct state for the second time to work).

My ugly fix just adds and ip link set up (would also work with ifconfig) before the normal up done by ifupdown.

I consider all this as temporary fix.

There definitely is a real issue somewhere, whether it is a hardware one on some revision of the Odroid N2, or a software one in the driver code.

I don't have neither the time nor the expertise at the moment to truly take some time to address this, so it will have to do for now as I'm only using this board for personal use.

Maybe some kernel developer could take a serious look at this.

This fix has been stable on my N2 for the last few months with 5.6, 5.7 and 5.8 kernels.

 

This problem also happends on N2
you will find a armbian solution....
 

@ewww

Edited by hotnikq
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines