gnuton / asuswrt-merlin.ng

Extends the support of Merlin firmware to more ASUS routers
Other
1.31k stars 75 forks source link

Unable to flash on RT-AX82U v2 #475

Closed ZorianNL closed 8 months ago

ZorianNL commented 9 months ago

Router Model Affected Models: (eg: DSL-AX82U/RT-AX82U/...) RT-AX82U v2

Firmware Version Affected 3004.388.4_0-gnuton0_beta2

Is this bug present in upstream Merlin releases too? No

Describe the bug I cannot upload the firmware file to my router. All other files have the .w extension but this file does not, and for some reason the Beta 1 file is shown under Beta 2 aswell. I can select the file just fine on the firmware update page, but after the "flash" is done nothing has happened.

To Reproduce Steps to reproduce the behavior: Update firmware, nothing happens because probably wrong file extension/file.

Expected behavior Firmware flashed successfully.

gnuton commented 9 months ago

thanks for reporting this. The problem is not the extension, but I think the problem is something nasty that happens during linking phase of some executables in the last stages of the build. I just need to rebuild the code and check.

gnuton commented 9 months ago

https://github.com/gnuton/asuswrt-merlin.ng/issues/474 is linked to this issue

ZorianNL commented 9 months ago

To add, using the file from beta 1 instead of beta 2 worked, it has flashed but has a few quirks (see other issue reports, such as wifi insight giving the 404).

gnuton commented 9 months ago

Here the syslog after uploading a broken image syslog.txt Look at the crashlog


May  5 07:05:05 crashlog: <7>pci 0001:00:00.0: PME# supported from D0 D3hot
May  5 07:05:05 crashlog: <6>PCI: bus0: Fast back to back transfers disabled
May  5 07:05:05 crashlog: <7>pci 0001:01:00.0: [14e4:6715] type 00 class 0x028000
May  5 07:05:05 crashlog: <7>pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
May  5 07:05:05 crashlog: <7>pci 0001:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
May  5 07:05:05 crashlog: <7>pci 0001:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
May  5 07:05:05 crashlog: <7>pci 0001:01:00.0: supports D1 D2
May  5 07:05:05 crashlog: <6>pci 0001:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0001:00:00.0 (capable of 8.000 Gb/s with 5 GT/s x2 link)
May  5 07:05:05 crashlog: <7>pci 0001:00:00.0: Checking PCIe ASPM for vendor 14e4 device 6715
May  5 07:05:05 crashlog: <7>pci 0001:00:00.0: Disabling PCIe ASPM for vendor 14e4 device 6715
May  5 07:05:05 crashlog: <6>PCI: bus1: Fast back to back transfers disabled
May  5 07:05:05 crashlog: <6>pci 0001:00:00.0: BAR 8: assigned [mem 0xc0000000-0xc0bfffff]
May  5 07:05:05 crashlog: <6>pci 0001:00:00.0: BAR 9: assigned [mem 0xc0c00000-0xc0cfffff 64bit pref]
May  5 07:05:05 crashlog: <6>pci 0001:01:00.0: BAR 2: assigned [mem 0xc0000000-0xc07fffff 64bit]
May  5 07:05:05 crashlog: <6>pci 0001:01:00.0: BAR 4: assigned [mem 0xc0c00000-0xc0cfffff 64bit pref]
May  5 07:05:05 crashlog: <6>pci 0001:01:00.0: BAR 0: assigned [mem 0xc0800000-0xc080ffff 64bit]
May  5 07:05:05 crashlog: <6>pci 0001:00:00.0: PCI bridge to [bus 01]
May  5 07:05:05 crashlog: <6>pci 0001:00:00.0:   bridge window [mem 0xc0000000-0xc0bfffff]
May  5 07:05:05 crashlog: <6>pci 0001:00:00.0:   bridge window [mem 0xc0c00000-0xc0cfffff 64bit pref]
May  5 07:05:05 crashlog: <6>pcieport 0001:00:00.0: enabling device (0140 -> 0142)
May  5 07:05:05 crashlog: <6>pcieport 0001:00:00.0: Max Payload Size set to  512/ 512 (was  128), Max Read Rq  512
May  5 07:05:05 crashlog: <6>pci 0001:01:00.0: Max Payload Size set to  512/ 512 (was  128), Max Read Rq  512
May  5 07:05:05 crashlog: <2>broadcomThermalDrv ubus@ff800000:brcm-therm: init (CPU count 3 3 3 3)
May  5 07:05:05 crashlog: <4>brcm_otp_init entry
May  5 07:05:05 crashlog: <6>init (1): drop_caches: 1
>>>>>>>>>>>>>>>>>  BEGIN: THIS ARE DEBUGGING MESSAGES WHICH ARE FINE ACCORDING TO ASUS
May  5 07:05:05 crashlog: <4>emf: Unknown symbol osl_malloc (err -2)
May  5 07:05:05 crashlog: <4>emf: Unknown symbol osl_pktdup_cpy (err -2)
May  5 07:05:05 crashlog: <4>emf: Unknown symbol osl_mfree (err -2)
May  5 07:05:05 crashlog: <4>emf: Unknown symbol linux_pktfree (err -2)
May  5 07:05:05 crashlog: <4>emf: Unknown symbol osl_pktdup (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_wmf_scbfind (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol osl_malloc (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_mfdb_ipv6_membership_add (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol osl_detach (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_rtport_del (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_igmp_snooper_register (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol osl_attach (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_mfdb_ipv6_membership_del (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_wmf_get_igsc (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_rtport_add (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_igmp_snooper_unregister (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_mfdb_membership_del (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol osl_mfree (err -2)
May  5 07:05:05 crashlog: <4>igs: Unknown symbol emfc_mfdb_membership_add (err -2)
>>>>>>>>>>>>>>>>>>>> END 
May  5 07:05:05 crashlog: <4>Archer TCP Pure ACK Enabled
May  5 07:05:05 crashlog: <4>Loading wlshared Module...
May  5 07:05:05 crashlog: <5>cfg80211: Loading compiled-in X.509 certificates for regulatory database
May  5 07:05:05 crashlog: <5>cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
May  5 07:05:05 crashlog: <4>platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
May  5 07:05:05 crashlog: <6>cfg80211: failed to load regulatory.db
May  5 07:05:05 crashlog: <4>Loading HND Module
May  5 07:05:05 crashlog: <4>igs_module_init:840:    IGS 29 create network socket successful
May  5 07:05:05 crashlog: <4>osl_skb_audit: PASS 
May  5 07:05:05 crashlog: <4>wl_module_init: passivemode set to 0x1
May  5 07:05:05 crashlog: <4>wl_module_init: txworkq set to 0x0
May  5 07:05:05 crashlog: <4>^[[0;32mwl_pktfwd_sys_init:  ^[[1m^[[34mWL_PKTFWD[1.1.0]^[[0m Success^[[0m
May  5 07:05:05 crashlog: <6>wl 0000:01:00.0: enabling device (0140 -> 0142)
May  5 07:05:05 crashlog: <6>wl0: creating kthread wl0-kthrd
May  5 07:05:05 crashlog: <4>si_doattach: using BAR0 value: enum_base=84000000
May  5 07:05:05 crashlog: <4>BME Service Initialization
May  5 07:05:05 crashlog: <4>BME: M2M Core id 0x844 rev 128
May  5 07:05:05 crashlog: <4>M2M Service Initialization: M2M_DD_ENAB 0x00000003
May  5 07:05:05 crashlog: <4>M2M: M2M Core id 0x844 rev 128
May  5 07:05:05 crashlog: <4>M2M: SUCCESS eng 0 alloc rings <c58359fc,247eb62d>,61e081cd depth 256
May  5 07:05:05 crashlog: <4>M2M: SUCCESS eng 1 alloc rings <81a6fdf9,e23bbf7d>,fac15980 depth 256
May  5 07:05:05 crashlog: <4>M2M: DMA 0 IntRcvLazy 01000000
May  5 07:05:05 crashlog: <4>M2M: DMA 0 RcvCtrl XmtCtrl enabled
May  5 07:05:05 crashlog: <4>M2M: DMA 1 IntRcvLazy 01000000
May  5 07:05:05 crashlog: <4>M2M: DMA 1 RcvCtrl XmtCtrl enabled
May  5 07:05:05 crashlog: <4>wl0: wlc_ap_attach dynamic_ed_thresh_enable = 0 
May  5 07:05:05 crashlog: <4>BME:register key<1010804> user RLM sel IDX set 1 mem 4 8 hi 0 0
May  5 07:05:05 crashlog: <4>CSIMON module registered
May  5 07:05:05 crashlog: <4>wl0_awl attach successful tx: 1, rx: 2
May  5 07:05:05 crashlog: <4>WL_FLCTL[0] bpm_total_skb 29959, exhaustion_hi 2995, exhaustion_lo 7489, prio_favor 4
May  5 07:05:05 crashlog: <4>^[[0;34mArcher WLAN Bind: eth1, wl_radio_idx 0, radio_index 0, mode SKB^[[0m
May  5 07:05:05 crashlog: <4>Archer WLAN XFER Thread 0 Initialized
May  5 07:05:05 crashlog: <4>^[[0;32mwl_wfd_bind: wl0 wfd_idx 0 success^[[0m
May  5 07:05:05 crashlog: <4>eth5: Broadcom BCM63178 802.11 Wireless Controller 17.10.188.6401 (r808804)
May  5 07:05:05 crashlog: <4>dgasp: kerSysRegisterDyingGaspHandler: eth5 registered 
May  5 07:05:05 crashlog: <4>DHD_FKB_POOL size is:1280 and entry size:2624
May  5 07:05:05 crashlog: <4>DHD_PKTTAG POOL size is:2592 and entry size:64
May  5 07:05:05 crashlog: <4>^[[0;32mdhd_pktfwd_sys_init:  ^[[1m^[[34mdhd_PKTFWD[1.0.0]^[[0m Success^[[0m
May  5 07:05:05 crashlog: <4>PCI_PROBE:  bus 1, slot 0,vendor 14E4, device 6715(good PCI location)
May  5 07:05:05 crashlog: <6>pcieh 0001:01:00.0: enabling device (0140 -> 0142)
May  5 07:05:05 crashlog: <4>dor1: runner supported ring format types TxP 0x5, RxP 0x3 TxC 0x3 RxC 0x3^M
May  5 07:05:05 crashlog: <4>
May  5 07:05:05 crashlog: <4>dhd_runner_attach: Tx Offload - Enabled, Ring Size = 1024
May  5 07:05:05 crashlog: <4>dhd_runner_attach: Rx Offload - Enabled, Ring Size = 1024
May  5 07:05:05 crashlog: <4>wakeup_information: radio_idx 1, reg 0x80498284, rx 0x10(4), tx 0x20(5)
May  5 07:05:05 crashlog: <4>TX wakeup info: reg = <0x80498284>, val = <0x00000020>
May  5 07:05:05 crashlog: <4>RX wakeup info: reg = <0x80498284>, val = <0x00000010>
May  5 07:05:05 crashlog: <6>CFG80211-ERROR) wl_setup_wiphy : 
May  5 07:05:05 crashlog: <4>Registering Vendor80211
May  5 07:05:05 crashlog: <6>CFG80211-ERROR) wl_cfg80211_apply_eventbuffer : 
May  5 07:05:05 crashlog: <4>Get event_msgs error (-19)
May  5 07:05:05 crashlog: <6>CFG80211-ERROR) wl_cfg80211_set_cac_state_change_eventbits : 
May  5 07:05:05 crashlog: <4>failed to set WLC_E_CAC_STATE_CHANGE bit
May  5 07:05:05 crashlog: <4>dhd1_awl attach successful tx: 1, rx: 2
May  5 07:05:05 crashlog: <4>dhd_attach(): thread:dhd_watchdog_thread:321 started
May  5 07:05:05 crashlog: <4>^[[0;34mArcher WLAN Bind: eth1, wl_radio_idx 1, radio_index 1, mode FKB^[[0m
May  5 07:05:05 crashlog: <4>Archer WLAN XFER Thread 1 Initialized
May  5 07:05:05 crashlog: <4>^[[0;32mdhd_wfd_bind: wl1 wfd_idx 1 success^[[0m
May  5 07:05:05 crashlog: <4>dhd_os_stop_wd_thread(): thread:dhd_watchdog_thread:321 terminated OK
May  5 07:05:05 crashlog: <1>Unable to handle kernel NULL pointer dereference at virtual address 000002c8
May  5 07:05:05 crashlog: <1>pgd = c072593c
May  5 07:05:05 crashlog: <1>[000002c8] *pgd=19286835, *pte=00000000, *ppte=00000000
May  5 07:05:05 crashlog: <0>Internal error: Oops: 17 [#1] PREEMPT SMP ARM
May  5 07:05:05 crashlog: <4>CPU: 0 PID: 800 Comm: insmod Tainted: P                  4.19.183 #1
May  5 07:05:05 crashlog: <4>Hardware name: Generic DT based system
May  5 07:05:05 crashlog: <4>PC is at rdpa_dhd_helper_rx_post_uninit+0x8/0x54 [archer]
May  5 07:05:05 crashlog: <4>LR is at dhd_runner_notify+0x1c4/0x1230 [dhd]
May  5 07:05:05 crashlog: <4>pc : [<bf145dd8>]    lr : [<bfb4f77c>]    psr: 000b0013
May  5 07:05:05 crashlog: <4>sp : dc641bf8  ip : 00000000  fp : db203000
May  5 07:05:05 crashlog: <4>r10: d8ae1638  r9 : d8ae0008  r8 : 00000000
May  5 07:05:05 crashlog: <4>r7 : 00000000  r6 : bfbf7454  r5 : 00000003  r4 : db284000
May  5 07:05:05 crashlog: <4>r3 : 0000002f  r2 : 00000000  r1 : 00000003  r0 : 00000000
May  5 07:05:05 crashlog: <4>Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
May  5 07:05:05 crashlog: <4>Control: 10c5387d  Table: 18ab004a  DAC: 00000051
May  5 07:05:05 crashlog: <0>Process insmod (pid: 800, stack limit = 0x71525e5f)
May  5 07:05:05 crashlog: <4>Modules linked in: dhd(+) init_addr(bfc1a000 - bfc1b000), core_addr(bfb46000 - bfbd3000)
May  5 07:05:05 crashlog: <4> wl(P) init_addr(00000000 - 00000000), core_addr(bf30a000 - bf690000)
May  5 07:05:05 crashlog: <4> igs init_addr(00000000 - 00000000), core_addr(bf2fc000 - bf300000)
May  5 07:05:05 crashlog: <4> emf init_addr(00000000 - 00000000), core_addr(bf2f0000 - bf2f3000)
May  5 07:05:05 crashlog: <4> hnd init_addr(00000000 - 00000000), core_addr(bf281000 - bf2af000)
May  5 07:05:05 crashlog: <4> cfg80211 init_addr(00000000 - 00000000), core_addr(bf235000 - bf260000)
May  5 07:05:05 crashlog: <4> firmware_class init_addr(00000000 - 00000000), core_addr(bf22c000 - bf22d000)
May  5 07:05:05 crashlog: <4> wlshared init_addr(00000000 - 00000000), core_addr(bf223000 - bf224000)
May  5 07:05:05 crashlog: <4> otp(P) init_addr(00000000 - 00000000), core_addr(bf200000 - bf201000)
May  5 07:05:05 crashlog: <4> bcm_thermal init_addr(00000000 - 00000000), core_addr(bf1f6000 - bf1f7000)
May  5 07:05:05 crashlog: <4> pwrmngtd(P) init_addr(00000000 - 00000000), core_addr(bf1ed000 - bf1ee000)
May  5 07:05:05 crashlog: <4> bcm_pcie_hcd init_addr(00000000 - 00000000), core_addr(bf1d4000 - bf1de000)
May  5 07:05:05 crashlog: <4> bcmmcast init_addr(00000000 - 00000000), core_addr(bf1b3000 - bf1c1000)
May  5 07:05:05 crashlog: <4> bcm_enet init_addr(00000000 - 00000000), core_addr(bf17c000 - bf198000)
May  5 07:05:05 crashlog: <4> archer(P) init_addr(00000000 - 00000000), core_addr(bf12e000 - bf150000)
May  5 07:05:05 crashlog: <4> cmdlist(P) init_addr(00000000 - 00000000), core_addr(bf111000 - bf11f000)
May  5 07:05:05 crashlog: <4> pktflow(P) init_addr(00000000 - 00000000), core_addr(bf0bb000 - bf0e8000)
May  5 07:05:05 crashlog: <4> bcm_ingqos(P) init_addr(00000000 - 00000000), core_addr(bf07d000 - bf081000)
May  5 07:05:05 crashlog: <4> chipinfo(P) init_addr(00000000 - 00000000), core_addr(bf074000 - bf075000)
May  5 07:05:05 crashlog: <4> bcm_license(P) init_addr(00000000 - 00000000), core_addr(bf062000 - bf065000)
May  5 07:05:05 crashlog: <4> bcmvlan(P) init_addr(00000000 - 00000000), core_addr(bf03f000 - bf04e000)
May  5 07:05:05 crashlog: <4> bcm_bpm(P) init_addr(00000000 - 00000000), core_addr(bf031000 - bf034000)
May  5 07:05:05 crashlog: <4> bcmlibs(P) init_addr(00000000 - 00000000), core_addr(bf015000 - bf019000)
May  5 07:05:05 crashlog: <4> mtdoops init_addr(00000000 - 00000000), core_addr(bf00c000 - bf00d000)
May  5 07:05:05 crashlog: <4> wlcsm(P) init_addr(00000000 - 00000000), core_addr(bf000000 - bf002000)
May  5 07:05:05 crashlog: <0>Stack: (0xdc641bf8 to 0xdc642000)
May  5 07:05:05 crashlog: <0>1be0:                                                       00187961 c02a1fd8
May  5 07:05:05 crashlog: <0>1c00: 00000000 bfb4f77c deff2000 00000003 de801e40 d94bc204 d94bc2b0 d929db80
May  5 07:05:05 crashlog: <0>1c20: d8ae0000 c0b05048 d8ae1008 d94bc000 d8ae0008 d8ae0000 bfbfdbe4 d8ae1008
May  5 07:05:05 crashlog: <0>1c40: 00000000 bfb71a94 d8ae0008 d8ae3000 d8ae0000 bfbfdbe4 bfbf7454 bfb6082c
May  5 07:05:05 crashlog: <0>1c60: 00000000 00000000 d8ae1000 d87c03e0 d927e000 d929db80 00000000 d929dc00
May  5 07:05:05 crashlog: <0>1c80: d929db80 d927c000 d927e000 d929db80 bfbf7454 00000000 d929dc00 d929db80
May  5 07:05:05 crashlog: <0>1ca0: bfbffec8 bfb79764 daed1400 00000001 bfbf7454 d927c000 bfbd5d30 bfb80890
May  5 07:05:05 crashlog: <0>1cc0: 00006715 c0496224 0000003a 00000004 bfbf7804 bfbe7098 daed1400 daed1470
May  5 07:05:05 crashlog: <0>1ce0: bfbfbb80 daed1400 00000000 bfbfbb30 bfbfbaf8 0000000e bfbd4258 c04a2ff4
May  5 07:05:05 crashlog: <0>1d00: c0b5af30 daed1470 00000000 c0b5af34 bfbfbb30 00000000 0000000e c04dde18
May  5 07:05:05 crashlog: <0>1d20: daed1470 bfbfbb30 daed14a4 c0b1a464 bfbdf7ec 00000000 bfbfec20 c04de1f4
May  5 07:05:05 crashlog: <0>1d40: 00000000 bfbfbb30 c04de108 c04dc148 de98646c de986458 dae9f1b4 c0b05048
May  5 07:05:05 crashlog: <0>1d60: bfbfbb30 d929db00 00000000 c04dd2f0 bfbe712c bfbfbaf8 bfbfdc10 bfbfbb30
May  5 07:05:05 crashlog: <0>1d80: bfbfbaf8 bfbfdc10 00000003 c04de8ac bfbf7454 bfbfbaf8 bfbfdc10 bfb7ff88
May  5 07:05:05 crashlog: <0>1da0: 00000000 c0b05048 00000000 bfbf7454 bfbfdbd8 bfc1a1f4 00000000 c0b37000
May  5 07:05:05 crashlog: <0>1dc0: bfc1a000 ffffe000 00000000 d9645780 00000000 00000028 bfbfd880 c0202d94
May  5 07:05:05 crashlog: <0>1de0: c080ee58 d9287040 00000000 c02a23e0 00000000 c0b0b044 fffffffc c0b30300
May  5 07:05:05 crashlog: <0>1e00: c0b30040 fffffc00 8040003f df353704 df3570a4 c0b05048 d9287040 df3170e0
May  5 07:05:05 crashlog: <0>1e20: df3170e0 dc640000 bfbfd880 c0b05048 00000002 bfbfd880 d9645740 d9645840
May  5 07:05:05 crashlog: <0>1e40: 00000002 c0290c38 dc641f38 d9645740 00000002 dc641f38 d9645740 00000002
May  5 07:05:05 crashlog: <0>1e60: 00000002 c0292d1c bfbfd88c 00007fff bfbfd880 c028ff0c c0a4dcb4 bfbfd8c8
May  5 07:05:05 crashlog: <0>1e80: db202818 bfbfd9f0 bfbfd970 c090e450 c0803ffc c08b757c c08b75ec c0489b5c
May  5 07:05:05 crashlog: <0>1ea0: c0795c74 200b0013 ffffffff dc641ef4 000587ec dc640000 00000000 00000000
May  5 07:05:05 crashlog: <0>1ec0: 00000000 00000000 00000000 00000000 6e72656b 00006c65 00000000 00000000
May  5 07:05:05 crashlog: <0>1ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
May  5 07:05:05 crashlog: <0>1f00: 00000000 00000000 00000000 c0b05048 dc640000 00002228 e3923228 b6d0f230
May  5 07:05:05 crashlog: <0>1f20: 00000000 008189c0 dc640000 00000051 00000000 c0293224 e38acf96 e38b3ac0
May  5 07:05:05 crashlog: <0>1f40: e3801000 00122228 e3922a08 e39227fc e38d6ddc 000bd000 000c9120 00000000
May  5 07:05:05 crashlog: <0>1f60: 00000000 00000000 00031438 00000031 00000032 00000027 00000000 0000001e
May  5 07:05:05 crashlog: <0>1f80: 00000000 c0b05048 00122228 00820338 00808260 00000080 c0201228 dc640000
May  5 07:05:05 crashlog: <0>1fa0: 00000080 c0201000 00122228 00820338 b6bed008 00122228 008189c0 00820338
May  5 07:05:05 crashlog: <0>1fc0: 00122228 00820338 00808260 00000080 00085514 00000000 b6f97000 00000000
May  5 07:05:05 crashlog: <0>1fe0: beefec88 beefec78 0001ebc8 b6ddeed0 600b0010 b6bed008 00000000 00000000
May  5 07:05:05 crashlog: <4>[<bf145dd8>] (rdpa_dhd_helper_rx_post_uninit [archer]) from [<bfb4f77c>] (dhd_runner_notify+0x1c4/0x1230 [dhd])
May  5 07:05:05 crashlog: <4>[<bfb4f77c>] (dhd_runner_notify [dhd]) from [<bfb71a94>] (dhd_prot_detach+0x90/0x1cc [dhd])
May  5 07:05:05 crashlog: <4>[<bfb71a94>] (dhd_prot_detach [dhd]) from [<bfb6082c>] (dhd_detach+0x1a0/0x530 [dhd])
May  5 07:05:05 crashlog: <4>[<bfb6082c>] (dhd_detach [dhd]) from [<bfb79764>] (dhdpcie_bus_release+0xd4/0x288 [dhd])
May  5 07:05:05 crashlog: <4>[<bfb79764>] (dhdpcie_bus_release [dhd]) from [<bfb80890>] (dhdpcie_pci_probe+0x3e4/0x460 [dhd])
May  5 07:05:05 crashlog: <4>[<bfb80890>] (dhdpcie_pci_probe [dhd]) from [<c04a2ff4>] (pci_device_probe+0x9c/0x124)
May  5 07:05:05 crashlog: <4>[<c04a2ff4>] (pci_device_probe) from [<c04dde18>] (really_probe+0x1e4/0x2b0)
May  5 07:05:05 crashlog: <4>[<c04dde18>] (really_probe) from [<c04de1f4>] (__driver_attach+0xec/0xf0)
May  5 07:05:05 crashlog: <4>[<c04de1f4>] (__driver_attach) from [<c04dc148>] (bus_for_each_dev+0x78/0xc0)
May  5 07:05:05 crashlog: <4>[<c04dc148>] (bus_for_each_dev) from [<c04dd2f0>] (bus_add_driver+0x184/0x208)
May  5 07:05:05 crashlog: <4>[<c04dd2f0>] (bus_add_driver) from [<c04de8ac>] (driver_register+0x74/0x108)
May  5 07:05:05 crashlog: <4>[<c04de8ac>] (driver_register) from [<bfb7ff88>] (dhdpcie_bus_register+0x44/0x118 [dhd])
May  5 07:05:05 crashlog: <4>[<bfb7ff88>] (dhdpcie_bus_register [dhd]) from [<bfc1a1f4>] (dhd_module_init+0x1f4/0x1000 [dhd])
May  5 07:05:05 crashlog: <4>[<bfc1a1f4>] (dhd_module_init [dhd]) from [<c0202d94>] (do_one_initcall+0x58/0x1a0)
May  5 07:05:05 crashlog: <4>[<c0202d94>] (do_one_initcall) from [<c0290c38>] (do_init_module+0x60/0x1f4)
May  5 07:05:05 crashlog: <4>[<c0290c38>] (do_init_module) from [<c0292d1c>] (load_module+0x1eac/0x2260)
May  5 07:05:05 crashlog: <4>[<c0292d1c>] (load_module) from [<c0293224>] (sys_init_module+0x154/0x190)
May  5 07:05:05 crashlog: <4>[<c0293224>] (sys_init_module) from [<c0201000>] (ret_fast_syscall+0x0/0x58)
May  5 07:05:05 crashlog: <4>Exception stack(0xdc641fa8 to 0xdc641ff0)
May  5 07:05:05 crashlog: <4>1fa0:                   00122228 00820338 b6bed008 00122228 008189c0 00820338
May  5 07:05:05 crashlog: <4>1fc0: 00122228 00820338 00808260 00000080 00085514 00000000 b6f97000 00000000
May  5 07:05:05 crashlog: <4>1fe0: beefec88 beefec78 0001ebc8 b6ddeed0
May  5 07:05:05 crashlog: <0>Code: 13e00001 e8bd8010 e52de004 e24dd00c (e59002c8) 
May  5 07:05:05 crashlog: <4>---[ end trace c138e2b06581dcd7 ]---
May  5 07:05:05 crashlog: <0>Kernel panic - not syncing: Fatal exception
May  5 07:05:05 crashlog: <2>CPU2: stopping
May  5 07:05:05 crashlog: <4>CPU: 2 PID: 0 Comm: swapper/2 Tainted: P      D           4.19.183 #1
May  5 07:05:05 crashlog: <4>Hardware name: Generic DT based system
May  5 07:05:05 crashlog: <4>[<c0210d54>] (unwind_backtrace) from [<c020bcf4>] (show_stack+0x10/0x14)
May  5 07:05:05 crashlog: <4>[<c020bcf4>] (show_stack) from [<c07b499c>] (dump_stack+0x90/0xa4)
May  5 07:05:05 crashlog: <4>[<c07b499c>] (dump_stack) from [<c020eeb8>] (handle_IPI+0x164/0x18c)
May  5 07:05:05 crashlog: <4>[<c020eeb8>] (handle_IPI) from [<c0489b9c>] (gic_handle_irq+0x8c/0x90)
May  5 07:05:05 crashlog: <4>[<c0489b9c>] (gic_handle_irq) from [<c02020cc>] (__irq_svc+0x6c/0xa8)
May  5 07:05:05 crashlog: <4>Exception stack(0xde881f38 to 0xde881f80)
May  5 07:05:05 crashlog: <4>1f20:                                                       00000000 00000003
May  5 07:05:05 crashlog: <4>1f40: 1e56c000 defba100 de880000 00000002 00000003 161575ac defb95e8 00000001
May  5 07:05:05 crashlog: <4>1f60: 00000003 160c795c fffffff5 de881f88 c055c258 c055c25c 00000013 ffffffff
May  5 07:05:05 crashlog: <4>[<c02020cc>] (__irq_svc) from [<c055c25c>] (cpuidle_enter_state+0x88/0x314)
May  5 07:05:05 crashlog: <4>[<c055c25c>] (cpuidle_enter_state) from [<c024b9e8>] (do_idle+0x1b0/0x218)
May  5 07:05:05 crashlog: <4>[<c024b9e8>] (do_idle) from [<c024bd2c>] (cpu_startup_entry+0x18/0x1c)
May  5 07:05:05 crashlog: <4>[<c024bd2c>] (cpu_startup_entry) from [<00202acc>] (0x202acc)
May  5 07:05:05 crashlog: <2>CPU1: stopping
May  5 07:05:05 crashlog: <4>CPU: 1 PID: 0 Comm: swapper/1 Tainted: P      D           4.19.183 #1
May  5 07:05:05 crashlog: <4>Hardware name: Generic DT based system
May  5 07:05:05 crashlog: <4>[<c0210d54>] (unwind_backtrace) from [<c020bcf4>] (show_stack+0x10/0x14)
May  5 07:05:05 crashlog: <4>[<c020bcf4>] (show_stack) from [<c07b499c>] (dump_stack+0x90/0xa4)
May  5 07:05:05 crashlog: <4>[<c07b499c>] (dump_stack) from [<c020eeb8>] (handle_IPI+0x164/0x18c)
May  5 07:05:05 crashlog: <4>[<c020eeb8>] (handle_IPI) from [<c0489b9c>] (gic_handle_irq+0x8c/0x90)
May  5 07:05:05 crashlog: <4>[<c0489b9c>] (gic_handle_irq) from [<c02020cc>] (__irq_svc+0x6c/0xa8)
May  5 07:05:05 crashlog: <4>Exception stack(0xde877f38 to 0xde877f80)
May  5 07:05:05 crashlog: <4>7f20:                                                       00000000 00000003
May  5 07:05:05 crashlog: <4>7f40: 1e552000 defa0100 de876000 00000001 00000003 16157688 def9f5e8 00000000
May  5 07:05:05 crashlog: <4>7f60: 00000003 1615764c fffffff5 de877f88 c055c258 c055c25c 000b0013 ffffffff
May  5 07:05:05 crashlog: <4>[<c02020cc>] (__irq_svc) from [<c055c25c>] (cpuidle_enter_state+0x88/0x314)
May  5 07:05:05 crashlog: <4>[<c055c25c>] (cpuidle_enter_state) from [<c024b9e8>] (do_idle+0x1b0/0x218)
May  5 07:05:05 crashlog: <4>[<c024b9e8>] (do_idle) from [<c024bd2c>] (cpu_startup_entry+0x18/0x1c)
May  5 07:05:05 crashlog: <4>[<c024bd2c>] (cpu_startup_entry) from [<00202acc>] (0x202acc)```
gnuton commented 9 months ago

Checked dhd prebuilts and they are fine ./release/src/router/rom/dhd ./release/src-rt-5.04axhnd.675x/bcmdrivers/broadcom/net/wl/impl87/sys/src/dhd/exe/prebuilt/dhd ./release/src-rt-5.04axhnd.675x/bcmdrivers/broadcom/net/wl/impl87/sys/src/dhd/exe/prebuilt/dhd

ZorianNL commented 9 months ago

Yes, the build from beta 1 flashed for me, but the one that was previously linked in beta 2 did not. Something is definitely different between the 2. Looks like it happens pretty early on aswell.

gnuton commented 9 months ago

from the build looks these lines look suspicious too (this was from a build on my machine)

/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/usr/bin/arm-buildroot-linux-gnueabi-strip: unable to copy file '/build/release/src-rt-5.04axhnd.675x/targets/96750GW/fs/sbin/write_3g_ppp_conf'; reason: Permission denied
/opt/toolchains/crosstools-arm-gcc-9.2-linux-4.19-glibc-2.30-binutils-2.32/usr/bin/arm-buildroot-linux-gnueabi-strip:/build/release/src-rt-5.04axhnd.675x/targets/96750GW/fs/usr/bin/net-snmp-config: file format not recognized
gnuton commented 9 months ago

Complete build logs from circle ci

ZorianNL commented 9 months ago

Those definitely will cause problems yeah.

gnuton commented 9 months ago

I checked once again the GPL that I got from ASUS and it's broken The build fails with

CONFIG_BCM_BOOTSTATE_IMPL=1 cp ../../bcmdrivers/broadcom/char/archer/bcm963178/archer.o ../../bcmdrivers/broadcom/char/archer/bcm963178/archer_dep.o cp: cannot stat '../../bcmdrivers/broadcom/char/archer/bcm963178/archer.o': No such file or directory make[6]: [../../bcmdrivers/broadcom/char/archer/bcm963178/Makefile:6: ../../bcmdrivers/broadcom/char/archer/bcm963178/archer_dep.o] Error 1 make[5]: [scripts/Makefile.build:565: ../../bcmdrivers/broadcom/char/archer/bcm963178] Error 2 make[4]: [Makefile:1081: ../../bcmdrivers] Error 2 make[4]: Leaving directory '/build/asuswrt/release/src-rt-5.04axhnd.675x/kernel/linux-4.19' make[3]: [Bcmkernel.mk:83: default] Error 2 make[3]: Leaving directory '/build/asuswrt/release/src-rt-5.04axhnd.675x/build' make[2]: [build/Makefile:509: kernelbuild] Error 2 make[2]: Leaving directory '/build/asuswrt/release/src-rt-5.04axhnd.675x' make[1]: [Makefile:5952: bin] Error 2 make[1]: Leaving directory '/build/asuswrt/release/src-rt-5.04axhnd.675x' make: * [Makefile:6173: rt-ax82u_v2] Error 2

as it was failing for me before my fix. Moving the archer.o from hnd_extras folder to the SDK folder fixes the problem and the built stock image looks to flash and work correctly.

According to Eric the crash seems to come from archer. The prebuil I used is btw correct.

Johankp commented 9 months ago

edit: I succed to revert to stock fw by downloading an much earlier version. Then upgrading to latest again. Phuu.. thought my days was gone at home.. children and wife was all things but happy. Why is this Beta2 available for downloading when it seems to fukk up peoples router?

Earlier this day: This also happens to my v1 of RT AX82U. It fukked up my whole wifi system at home. I have a 82u as a nod to GT-AX6000 router in a wifi mesh. I tried downgrading to earlier version but no success. Not even with official fw 🤔 the most strange is that the nod messes with my router so it freezes, I dont understand why?

TelecomDoctor commented 9 months ago

Not clear from reading through here what the status is on Beta 2 for the 82U V2? Is this any closer to resolution or is the stock GPL code from Asus also in trouble? I don't want to F*** my router but I wanted to put it into production, like yesterday....;-)

gnuton commented 9 months ago

@TelecomDoctor the RT-AX82U_V2 is still unstable so it remains in beta. I will push a new beta when i get this fixed.

ZorianNL commented 9 months ago

Not clear from reading through here what the status is on Beta 2 for the 82U V2? Is this any closer to resolution or is the stock GPL code from Asus also in trouble? I don't want to F*** my router but I wanted to put it into production, like yesterday....;-)

Beta 1 works for me on my v2.

TelecomDoctor commented 9 months ago

Not clear from reading through here what the status is on Beta 2 for the 82U V2? Is this any closer to resolution or is the stock GPL code from Asus also in trouble? I don't want to F*** my router but I wanted to put it into production, like yesterday....;-)

Beta 1 works for me on my v2.

Yes thanks for chiming in. I did/do have the B1 on my V2. There is a BUG report #476 open on it.

TelecomDoctor commented 8 months ago

@TelecomDoctor the RT-AX82U_V2 is still unstable so it remains in beta. I will push a new beta when i get this fixed.

Hi there - any updated status for the Beta 2 for this router? Thanks

gnuton commented 8 months ago

@TelecomDoctor the RT-AX82U_v2 comes with a new SDK and something is not right. I am still investigating.. I have not given up yet. The problem is in the building process. The crash happens when I try to flash bad built images.

ZorianNL commented 8 months ago

Found anything new on this yet? So far the Beta 1 is still running fine without a hitch for me.

gnuton commented 8 months ago

Fixed a few things, but the main problem is still there and to me it still feel like it's in the building system of the new SDK. I think I will try to release a new image soon.

sadoneli commented 8 months ago

To fix this issue for RT-AX82U_V2, just do as below:

cd release/src-rt-5.04axhnd.675x/bcmdrivers/broadcom/net/wl
ln -sf impl87 bcm963178

then you can run your build process

gnuton commented 8 months ago

thanks @sadoneli testing... the symlink is actually missing in the git repo.. but I thought it was created by the build system. Moreover the build actually runs fine on my local machine.. the build fails only on CircleCI. On both I build using the very same docker image.

from the circle ci logs:

...
linking broadcom/net/wl/bcm963178 => impl87
...

In any case I am testing this now. Here is the test build with this fix https://app.circleci.com/pipelines/github/gnuton/asuswrt-merlin.ng/1676/workflows/f26d80e9-7098-4b9c-92d2-bcb1258f37b6/jobs/5612

gnuton commented 8 months ago

The problem was indded related to the missing symlink. d7a469e87a5e9fac71059cc22a78ca5af43d9297

I had to fix also a few smaller stuff 42128bac52c7f41ca3f3cb077b7129b5777bfece - use local execstack ffc7faa360d16eb9fa3c989af17a7c67f190432d - fix libcreduction Makefile which may fail if some dependencies are in "NEEDED" 4c655c955f248d93ed1da13dec162f0686700d5a - do not execstack and libelf from GPLs

gnuton commented 8 months ago

you can find the stable release for the current stable https://github.com/gnuton/asuswrt-merlin.ng/releases/tag/3004.388.4_0-gnuton1