Adding OpenWrt Support for Netgear RAX120 (Nighthawk AX12)

I did it as you wrote and now I have :


IPQ807x# setenv bootcmd "nand read 0x44000000 0x1980000 0x01D00000; bootm"
IPQ807x# saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xd60000 -- 100% complete.
Writing to NAND... OK
IPQ807x# reset
resetting ...

Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1-00147
S - IMAGE_VARIANT_STRING=HAACANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002e5
B -       201 - PBL, Start
B -      2735 - bootable_media_detect_entry, Start
B -      3441 - bootable_media_detect_success, Start
B -      3445 - elf_loader_entry, Start
B -      6107 - auth_hash_seg_entry, Start
B -      6349 - auth_hash_seg_exit, Start
B -     68412 - elf_segs_hash_verify_entry, Start
B -    131108 - PBL, End
B -    216916 - SBL1, Start
B -    296002 - GCC [RstStat:0x10, RstDbg:0x600000] WDog Stat : 0x4
B -    305854 - pm_device_init, Start
B -    486597 - PM_SET_VAL:Skip
D -    178669 - pm_device_init, Delta
B -    488854 - pm_driver_init, Start
D -      5307 - pm_driver_init, Delta
B -    495350 - clock_init, Start
D -      2074 - clock_init, Delta
B -    499346 - boot_flash_init, Start
D -     12566 - boot_flash_init, Delta
B -    515663 - boot_config_data_table_init, Start
D -      3080 - boot_config_data_table_init, Delta - (575 Bytes)
B -    523166 - Boot Setting :  0x00000618
B -    527101 - CDT version:2,Platform ID:8,Major ID:1,Minor ID:0,Subtype:0
B -    534024 - sbl1_ddr_set_params, Start
B -    537837 - CPR configuration: 0x30c
B -    541192 - cpr_init, Start
B -    544059 - Rail:0 Mode: 5 Voltage: 816000
B -    549183 - CL CPR settled at 768000mV
B -    551989 - Rail:1 Mode: 5 Voltage: 880000
B -    556289 - Rail:1 Mode: 7 Voltage: 904000
D -     16531 - cpr_init, Delta
B -    563060 - Pre_DDR_clock_init, Start
B -    567178 - Pre_DDR_clock_init, End
B -    570472 - DDR Type : PCDDR3
B -    576236 - do ddr sanity test, Start
D -      1037 - do ddr sanity test, Delta
B -    580994 - DDR: Start of HAL DDR Boot Training
B -    585630 - DDR: End of HAL DDR Boot Training
B -    591395 - DDR: Checksum to be stored on flash is 146326827
B -    601643 - Image Load, Start
D -    224327 - QSEE Image Loaded, Delta - (1373936 Bytes)
B -    826062 - Image Load, Start
D -        61 - SEC Image Loaded, Delta - (0 Bytes)
B -    833717 - Image Load, Start
D -     10736 - DEVCFG Image Loaded, Delta - (26004 Bytes)
B -    844545 - Image Load, Start
D -     25254 - RPM Image Loaded, Delta - (105964 Bytes)
B -    869860 - Image Load, Start
D -     74938 - APPSBL Image Loaded, Delta - (451008 Bytes)
B -    944951 - QSEE Execution, Start
D -        91 - QSEE Execution, Delta
B -    950746 - USB D+ check, Start
D -         0 - USB D+ check, Delta
B -    957151 - SBL1, End
D -    742522 - SBL1, Delta
S - Flash Throughput, 6697 KB/s  (1958159 Bytes,  292365 us)
S - DDR Frequency, 466 MHz
S - Core 0 Frequency, 1651 MHz


U-Boot 2016.01 (Nov 12 2019 - 11:55:34 +0800)

Model: QCA, IPQ807x-HK01
U-boot dni1 V1.6 for DNI HW ID: 29765589; NAND flash 512MB; RAM 1024MB .
developed based on 'qsdk-ipq807x.ilq.10.0-spf.10.0.CS_patch_4'
DRAM:  smem ram ptable found: ver: 1 len: 4
1 GiB
NAND:  ONFI device found
ID = 1590acef
Vendor = ef
Device = ac
SF: Unsupported flash IDs: manuf 00, jedec 0000, ext_jedec 0000
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
512 MiB
MMC:   <NULL>: 0
In:    serial@78B3000
Out:   serial@78B3000
Err:   serial@78B3000
machid: 8010000
Net:   MAC0 addr:6c:cd:d6:bb:df:5d
PHY ID1: 0x4d
PHY ID2: 0xd0b1

NAND read: device 0 offset 0x7e00000, size 0x80000
 524288 bytes read: OK
bad magic on ETHPHYFW partition
PHY ID1: 0x3a1
PHY ID2: 0xb612
EDMA ver 1 hw init
Num rings - TxDesc:1 (0-0) TxCmpl:1 (7-7)
RxDesc:1 (15-15) RxFill:1 (7-7)
ipq807x_edma_alloc_rings: successfull
ipq807x_edma_setup_ring_resources: successfull
ipq807x_edma_configure_rings: successfull
ipq807x_edma_hw_init: successfull
eth0
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x1980000, size 0x1d00000
 30408704 bytes read: OK
## Loading kernel from FIT Image at 44000000 ...
   Using 'config@hk01' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.15.88
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x440000e8
     Data Size:    4562577 Bytes = 4.4 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x41000000
     Entry Point:  0x41000000
     Hash algo:    crc32
     Hash value:   bb0fdfa9
     Hash algo:    sha1
     Hash value:   424302bebc9f89dd7c7ffdfd058c9de641100666
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 44000000 ...
   Using 'config@hk01' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt netgear_rax120v2 device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x4445a0bc
     Data Size:    45710 Bytes = 44.6 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   bac2b7b0
     Hash algo:    sha1
     Hash value:   e6c97d5c82ca67c2719e203986e07682993b983d
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x4445a0bc
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 4a770000, end 4a77e28d ... OK
mtdids not defined, no default present
Using machid 0x8010000 from environment

Starting kernel ...

Jumping to AARCH64 kernel via monitor
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.88 (user@user-virtual-machine) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.2.0 r21804+24-0a15bb6510) 12.2.0, GNU ld (GNU Binutils) 2.39) #0 SMP Tue Jan 17 06:26:02 2023
[    0.000000] Machine model: Netgear RAX120v2
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    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 0x0000000040000000-0x0000000040ffffff]
[    0.000000]   node   0: [mem 0x0000000041000000-0x000000004a3fffff]
[    0.000000]   node   0: [mem 0x000000004a400000-0x000000004a5fffff]
[    0.000000]   node   0: [mem 0x000000004a600000-0x000000004aafffff]
[    0.000000]   node   0: [mem 0x000000004ab00000-0x00000000510fffff]
[    0.000000]   node   0: [mem 0x0000000051100000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 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.0
[    0.000000] psci: OSI mode supported.
[    0.000000] percpu: Embedded 17 pages/cpu s30360 r8192 d31080 u69632
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: console=ttyMSM0,115200n8 ubi.mtd=rootfs root=/dev/ubiblock0_1
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 893416K/1048576K available (7424K kernel code, 848K rwdata, 2036K rodata, 1216K init, 273K bss, 155160K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, 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] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv2m: range[mem 0x0b00a000-0x0b00affc], SPI[448:479]
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (virt/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000001] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000128] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000145] pid_max: default: 32768 minimum: 301
[    0.000303] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000321] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.001932] rcu: Hierarchical SRCU implementation.
[    0.002104] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.002688] smp: Bringing up secondary CPUs ...
[    0.003285] Detected VIPT I-cache on CPU1
[    0.003353] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.003984] Detected VIPT I-cache on CPU2
[    0.004026] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.004603] Detected VIPT I-cache on CPU3
[    0.004640] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.004706] smp: Brought up 1 node, 4 CPUs
[    0.004733] SMP: Total of 4 processors activated.
[    0.004741] CPU features: detected: 32-bit EL0 Support
[    0.004748] CPU features: detected: CRC32 instructions
[    0.004802] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.004812] CPU: All CPU(s) started at EL1
[    0.004834] alternatives: patching kernel code
[    0.013199] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013235] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.013375] pinctrl core: initialized pinctrl subsystem
[    0.014380] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.014833] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.014877] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.014914] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.015255] thermal_sys: Registered thermal governor 'step_wise'
[    0.016771] cpuidle: using governor menu
[    0.016987] ASID allocator initialised with 65536 entries
[    0.018200] OF: /opp-table: could not get #nvmem-cell-cells for /soc/efuse@a4000/speedbin@125
[    0.072395] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    0.079936] SCSI subsystem initialized
[    0.080161] usbcore: registered new interface driver usbfs
[    0.080207] usbcore: registered new interface driver hub
[    0.080243] usbcore: registered new device driver usb
[    0.080475] CPUidle PSCI: failed to enable OSI mode: -95
[    0.080823] qcom_scm: convention: smc arm 64
[    0.082024] clocksource: Switched to clocksource arch_sys_counter
[    0.082674] NET: Registered PF_INET protocol family
[    0.082810] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.083639] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.083670] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.083686] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.083774] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.083924] TCP: Hash tables configured (established 8192 bind 8192)
[    0.084021] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.084062] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.084233] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.084266] PCI: CLS 0 bytes, default 64
[    0.085319] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.088932] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.088947] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.090928] qcom-qmp-phy 58000.phy: supply vdda-phy not found, using dummy regulator
[    0.091080] qcom-qmp-phy 58000.phy: supply vdda-pll not found, using dummy regulator
[    0.092144] qcom-qmp-phy 58000.phy: Registered Qcom-QMP phy
[    0.092418] qcom-qmp-phy 78000.phy: supply vdda-phy not found, using dummy regulator
[    0.092551] qcom-qmp-phy 78000.phy: supply vdda-pll not found, using dummy regulator
[    0.093438] qcom-qmp-phy 78000.phy: Registered Qcom-QMP phy
[    0.094317] qcom-qusb2-phy 59000.phy: supply vdda-pll not found, using dummy regulator
[    0.094437] qcom-qusb2-phy 59000.phy: supply vdda-phy-dpdm not found, using dummy regulator
[    0.094607] qcom-qusb2-phy 59000.phy: Registered Qcom-QUSB2 phy
[    0.094783] qcom-qusb2-phy 79000.phy: supply vdda-pll not found, using dummy regulator
[    0.094893] qcom-qusb2-phy 79000.phy: supply vdda-phy-dpdm not found, using dummy regulator
[    0.095031] qcom-qusb2-phy 79000.phy: Registered Qcom-QUSB2 phy
[    0.099228] bam-dma-engine 704000.dma-controller: num-channels unspecified in dt
[    0.099255] bam-dma-engine 704000.dma-controller: num-ees unspecified in dt
[    0.103006] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.103564] msm_serial 78b3000.serial: msm_serial: detected port #0
[    0.103609] msm_serial 78b3000.serial: uartclk = 3686400
[    0.103655] 78b3000.serial: ttyMSM0 at MMIO 0x78b3000 (irq = 22, base_baud = 230400) is a MSM
[    0.103689] msm_serial: console setup on port #0
[    0.804549] printk: console [ttyMSM0] enabled
[    0.809687] msm_serial: driver initialized
[    0.817507] loop: module loaded
[    0.818798] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xac
[    0.820506] nand: Winbond W29N04GZ
[    0.827122] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.830622] 26 fixed-partitions partitions found on MTD device qcom_nand.0
[    0.837940] Creating 26 MTD partitions on "qcom_nand.0":
[    0.844732] 0x000000000000-0x000000100000 : "0:sbl1"
[    0.851465] 0x000000100000-0x000000200000 : "0:mibib"
[    0.856353] 0x000000200000-0x000000280000 : "0:bootconfig"
[    0.860855] 0x000000280000-0x000000300000 : "0:bootconfig_1"
[    0.866331] 0x000000300000-0x000000600000 : "0:qsee"
[    0.874167] 0x000000600000-0x000000900000 : "0:qsee_1"
[    0.879093] 0x000000900000-0x000000980000 : "0:devcfg"
[    0.881973] 0x000000980000-0x000000a00000 : "0:devcfg_1"
[    0.887120] 0x000000a00000-0x000000a80000 : "0:apdp"
[    0.892589] 0x000000a80000-0x000000b00000 : "0:apdp_1"
[    0.897516] 0x000000b00000-0x000000b80000 : "0:rpm"
[    0.902495] 0x000000b80000-0x000000c00000 : "0:rpm_1"
[    0.907249] 0x000000c00000-0x000000c80000 : "0:cdt"
[    0.912446] 0x000000c80000-0x000000d00000 : "0:cdt_1"
[    0.917133] 0x000000d00000-0x000000d80000 : "0:appsblenv"
[    0.922381] 0x000000d80000-0x000000e80000 : "0:appsbl"
[    0.928137] 0x000000e80000-0x000000f80000 : "0:appsbl_1"
[    0.933195] 0x000000f80000-0x000001000000 : "0:art"
[    0.938224] 0x000001000000-0x000001080000 : "0:art.bak"
[    0.942883] 0x000001080000-0x000001180000 : "config"
[    0.948460] 0x000001180000-0x000001280000 : "boarddata1"
[    0.953666] 0x000001280000-0x000001380000 : "boarddata2"
[    0.958957] 0x000001380000-0x000001480000 : "pot"
[    0.964277] 0x000001480000-0x000001980000 : "dnidata"
[    0.972221] 0x000001980000-0x000003680000 : "kernel"
[    0.997090] 0x00000e880000-0x000020000000 : "rootfs"
[    1.221871] mtd: setting mtd25 (rootfs) as root device
[    1.222176] mtdsplit: no squashfs found in "rootfs"
[    1.233895] spmi spmi-0: PMIC arbiter version v2 (0x20010000)
[    1.236897] s1: supplied by regulator-dummy
[    1.238810] s2: supplied by regulator-dummy
[    1.242793] vdd_s3: supplied by regulator-dummy
[    1.247078] vdd_s4: supplied by regulator-dummy
[    1.251620] s5: supplied by regulator-dummy
[    1.255999] l1: supplied by regulator-dummy
[    1.260138] l2: supplied by regulator-dummy
[    1.264337] l3: supplied by regulator-dummy
[    1.268480] l4: supplied by regulator-dummy
[    1.272648] l5: supplied by regulator-dummy
[    1.276823] l6: supplied by regulator-dummy
[    1.280975] l7: supplied by regulator-dummy
[    1.285154] l8: supplied by regulator-dummy
[    1.289330] l9: supplied by regulator-dummy
[    1.293599] l11: supplied by regulator-dummy
[    1.297648] l12: supplied by regulator-dummy
[    1.302202] l13: supplied by regulator-dummy
[    1.322354] i2c_dev: i2c /dev entries driver
[    1.327310] sdhci: Secure Digital Host Controller Interface driver
[    1.327357] sdhci: Copyright(c) Pierre Ossman
[    1.332429] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.340305] remoteproc remoteproc0: releasing cd00000.q6v5_wcss
[    1.344855] NET: Registered PF_INET6 protocol family
[    1.349060] Segment Routing with IPv6
[    1.353488] In-situ OAM (IOAM) with IPv6
[    1.357015] NET: Registered PF_PACKET protocol family
[    1.360997] 8021q: 802.1Q VLAN Support v1.8
[    1.381803] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    1.382155] cpr4_ipq807x_apss_read_fuse_data: apc_corner: speed bin = 0
[    1.387931] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR fusing revision = 1
[    1.394583] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR misc fuse value = 0
[    1.402206] cpr4_ipq807x_apss_read_fuse_data: apc_corner: Voltage boost fuse config = 0 boost = disable
[    1.409710] cpr3_mem_acc_init: apc: not using memory accelerator regulator
[    1.418846] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      SVS: open-loop= 704000 uV
[    1.425792] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      NOM: open-loop= 816000 uV
[    1.435775] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused    TURBO: open-loop= 872000 uV
[    1.445582] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused   STURBO: open-loop= 952000 uV
[    1.455444] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      SVS: quot[ 7]= 709, quot_offset[ 7]=   0
[    1.465205] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      NOM: quot[ 7]= 928, quot_offset[ 7]= 215
[    1.476054] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused    TURBO: quot[ 7]=1026, quot_offset[ 7]=  95
[    1.486991] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused   STURBO: quot[ 7]=1176, quot_offset[ 7]= 150
[    1.498071] cpr3_regulator_init_ctrl: apc: Default CPR mode = closed-loop
[    1.500693] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 19200 KHz, changing to: 1017600 KHz
[    1.516644] remoteproc remoteproc0: cd00000.q6v5_wcss is available
[    1.526670] ubi0: attaching mtd25
[    2.112028] random: crng init done
[    2.799060] ubi0: scanning is finished
[    2.806388] ubi0: attached mtd25 (name "rootfs", size 279 MiB)
[    2.806433] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.811126] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.818007] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.824845] ubi0: good PEBs: 2236, bad PEBs: 0, corrupted PEBs: 0
[    2.831609] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    2.837869] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 877678502
[    2.844986] ubi0: available PEBs: 0, total reserved PEBs: 2236, PEBs reserved for bad PEB handling: 80
▒[    2.871175] /dev/root: Can't open blockdevt0d" started, PID 518
[    2.871205] VFS: Cannot open root device "ubiblock0_1" or unknown-block(0,0): error -6
[    2.874180] Please append a correct "root=" boot option; here are the available partitions:
[    2.882085] 1f00            1024 mtdblock0
[    2.882090]  (driver?)
[    2.894478] 1f01            1024 mtdblock1
[    2.894481]  (driver?)
[    2.900980] 1f02             512 mtdblock2
[    2.900982]  (driver?)
[    2.907490] 1f03             512 mtdblock3
[    2.907493]  (driver?)
[    2.914004] 1f04            3072 mtdblock4
[    2.914007]  (driver?)
[    2.920510] 1f05            3072 mtdblock5
[    2.920513]  (driver?)
[    2.927020] 1f06             512 mtdblock6
[    2.927023]  (driver?)
[    2.933537] 1f07             512 mtdblock7
[    2.933540]  (driver?)
[    2.940041] 1f08             512 mtdblock8
[    2.940044]  (driver?)
[    2.946552] 1f09             512 mtdblock9
[    2.946555]  (driver?)
[    2.953066] 1f0a             512 mtdblock10
[    2.953069]  (driver?)
[    2.959920] 1f0b             512 mtdblock11
[    2.959923]  (driver?)
[    2.966517] 1f0c             512 mtdblock12
[    2.966520]  (driver?)
[    2.973119] 1f0d             512 mtdblock13
[    2.973122]  (driver?)
[    2.979711] 1f0e             512 mtdblock14
[    2.979714]  (driver?)
[    2.986313] 1f0f            1024 mtdblock15
[    2.986316]  (driver?)
[    2.992910] 1f10            1024 mtdblock16
[    2.992912]  (driver?)
[    2.999504] 1f11             512 mtdblock17
[    2.999506]  (driver?)
[    3.006106] 1f12             512 mtdblock18
[    3.006109]  (driver?)
[    3.012702] 1f13            1024 mtdblock19
[    3.012705]  (driver?)
[    3.019295] 1f14            1024 mtdblock20
[    3.019298]  (driver?)
[    3.025897] 1f15            1024 mtdblock21
[    3.025900]  (driver?)
[    3.032499] 1f16            1024 mtdblock22
[    3.032501]  (driver?)
[    3.039088] 1f17            5120 mtdblock23
[    3.039090]  (driver?)
[    3.045688] 1f18           29696 mtdblock24
[    3.045690]  (driver?)
[    3.052288] 1f19          286208 mtdblock25
[    3.052291]  (driver?)
[    3.058878] fe00            7688 ubiblock0_0
[    3.058881]  (driver?)
[    3.065479] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.067744] SMP: stopping secondary CPUs
[    3.075984] Kernel Offset: disabled
[    3.080060] CPU features: 0x0,00000000,00000802
[    3.083274] Memory Limit: none
[    3.087786] Rebooting in 1 seconds..

What is wrong?

For me in the DTS file I had to change

bootargs-append = " ubi.mtd=rootfs root=/dev/ubiblock0_1";
to
bootargs-append = " ubi.mtd=rootfs root=/dev/ubiblock0_0";

ubiblock0_0 is the last of the partitions it walks through

[    3.058878] fe00            7688 ubiblock0_0
[    3.058881]  (driver?)

Thank you for the info. Unfortunately, I can't compile the image myself and I used the one that is in the installation instructions for this model here:

Ok, I see, that won't work then indeed. Maybe @jewest will put out another release soon.

Could you upload your version (sysupgrade) somewhere on the server and add a download link?

I uploaded it as a pre-release to github. Works for me but otherwise completely untested and minimal build.

1 Like

I work your bild but I think the wifi range is significantly worse than the original firmware. In addition, in the original firmware on 5GHz, 1 radio is visible and on openwrt we have 2 radios. Why is that?

WiFi is not my strong point, I hope someone else can chime in.

I assume you adjusted the power for the radio? According to the wikidev it got two 5GHz chips, not sure how stock represents them.

RAX120 has two 5Ghz Radios and ath11k represents that as two independent devices both capable of 4x4 streams.

Stock firmware use proprietary QCA-WIFI that is combining that two radios to one device with 8x8 streams.

Please note that each radio is working in a different frequency range, one in the lower 5Ghz band and one in the upper band.

1 Like

just new here, and have a couple of questions:

  1. does this solve the random rebooting issue in the official firmware?
  2. is openwrt on rax120v2 stable enough for daily use?
  3. looks like official firmware is also based on openwrt, are we using the same stock radio driver?

thanks!!!

Looks like no movement on github for weeks...

How's the stability @patient0 ? Should we work with @robimarko to upstream ?

The custom QCA firmware that combines both 5G modems into one is also an interesting point to explore, but it's probably out of scope given there is no upstream support for it.

I left comments and they need to be resolved, author has not been active so far.

@nschimme I don't use it as my daily device and don't know about stability.
@robimarko @jewest added me as an collaborator back in January. I already made the changes you requested in my fork of his (I DM's him three weeks ago to ask if it is ok if I push the changes, no answer). So I can push them, what is preferred a forced push or an additional commit? I'm a dummy, I'm on holiday and while I can apply and push the commit, I can't test it. Only my trusty APU2 got with me on holiday :slight_smile:

I wonder if anyone can confirm (e.g. @jewest @patient0) if the jffs2 persistence related problem (mentioned by @NastyNeightK and me) happens on your side with an old or a newer (e.g. rebased and compiled in 2023) branch.

I am interested in giving this problem another shot, but before that I'd like to confirm if it's a unsloved problem for everyone. (is it already fixed?) (or is it a problem happens only on my and @NastyNeightK side bc of mis configuration?)

I haven't tested. But the method itself is pretty generic, it should work regardless of branch version: either work directly or with very light work to port to new branch.

I does work for me (with the commit/repo the image mentioned in the post 3 three weeks ago is based on). But it's a regular UBIFS image not jffs2 anymore, which seems appropriate for a NAND based device.

(how do I reference a previous post, any way to shortcut like #185?)

select the text with mouse, then click the "quote" popup button. like in the screenshot:

Thanks for confirm. If it's UBIFS now then the original problem shouldn't exist anymore...

Looks like the comments that @robimarko is referring to are here and here: https://github.com/robimarko/openwrt/pull/43
https://github.com/robimarko/openwrt/pull/45#event-8170810551

@patient0 I guess it's on you to resolve them?

Hi @nschimme, no he's referring to

After @robimarko ipq807x work was merged in OpenWrt a new PR was opened directly in OpenWrt. I'll be back from holiday this week and will look into it then.

1 Like