I will be seeing to prepare a page for DWR922 soon.
Today I compiled your led-project image and uploaded the sysupgrade pro router.
Introduced kernel panic at the end, but failsafe works.
Now I'm going to analyze what's going on.
U-Boot 1.1.3 (Aug 2 2017 - 18:02:21)
Board: Ralink APSoC DRAM: 64 MB
GPIO#44 updated GPIOMODE register: 001a311c -> 001ab11c
MT7620 gpio init : WPS / RESET pin
GPIO#2 updated GPIOMODE register: 001ab11c -> 001ab11d
relocate_code Pointer at: 83fac000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: ef 40 18 0 0 (40180000)
find flash: W25Q128FV
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment
============================================
U-Boot_mt7620 Version: 0.0.0.1
--------------------------------------------
ASIC 7620_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Aug 2 2017 Time:18:02:21
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768
##### The CPU freq = 580 MHZ ####
estimate memory size =64 Mbytes
Press press WPS button for more than 2 seconds to run web failsafe mode
WPS button is pressed for: 0 second(s)
Catution: WPS button wasn't pressed or not long enough!
Continuing normal boot...
raspi_read: from:40028 len:6
raspi_read: from:40000 len:80
The device has not been encrypt!
Using default MAC address [00:03:14:15:92:65].
================================================================
Please choose the operation:
0: System Load Linux then write to Flash via Serial.
1: Load system code to SDRAM via TFTP.
2: Load system code then write to Flash via TFTP.
3: Boot system code via Flash (default).
4: Entr boot command line interface.
7: Load Boot Loader code then write to Flash via Serial.
8: System Load UBoot to SDRAM via TFTP.
9: Load Boot Loader code then write to Flash via TFTP.
================================================================ 0
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
Image Name: MIPS LEDE Linux-4.4.50
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1259340 Bytes = 1.2 MB
Load Address: 80000000
Entry Point: 80000000
raspi_read: from:50040 len:13374c
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64
Starting kernel ...
[ 0.000000] Linux version 4.4.50 (root@localhost.localdomain) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3584-19eba67) ) #0 Mon Mar 13 19:23:08 2017
[ 0.000000] Board has DDR1
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620N ver:2 eco:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is D-Link DWR-921
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00067af0
[ 0.000000] Readback ErrCtl register=00067af0
[ 0.000000] Memory: 60776K/65536K available (2894K kernel code, 138K rwdata, 696K rodata, 168K init, 203K bss, 4760K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000011] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.007564] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.070073] pid_max: default: 32768 minimum: 301
[ 0.074695] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.081066] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093261] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.102964] pinctrl core: initialized pinctrl subsystem
[ 0.108679] NET: Registered protocol family 16
[ 0.130752] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.136191] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.142317] rt2880_gpio 10000660.gpio: registering 32 gpios
[ 0.147712] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[ 0.153845] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.159158] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.166585] clocksource: Switched to clocksource systick
[ 0.173146] NET: Registered protocol family 2
[ 0.178252] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.184979] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.191196] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.197418] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.203044] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.209425] NET: Registered protocol family 1
[ 0.217662] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 0.224344] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.230388] Crashlog allocated RAM at address 0x3f00000
[ 0.250565] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.256180] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.268541] io scheduler noop registered
[ 0.272298] io scheduler deadline registered (default)
[ 0.277577] ralink-usb-phy usbphy: invalid resource
[ 0.282882] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.290227] console [ttyS0] disabled
[ 0.293673] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 0.303662] console [ttyS0] enabled
[ 0.317372] bootconsole [early0] disabled
[ 0.317372] bootconsole [early0] disabled
[ 0.337974] spi spi0.0: force spi mode3
[ 0.346134] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.355591] 4 ofpart partitions found on MTD device spi0.0
[ 0.366524] Creating 4 MTD partitions on "spi0.0":
[ 0.376080] 0x000000000000-0x000000030000 : "u-boot"
[ 0.387743] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.400150] 0x000000040000-0x000000050000 : "factory"
[ 0.412063] 0x000000050000-0x000001000000 : "firmware"
[ 1.745446] 2 uimage-fw partitions found on MTD device firmware
[ 1.757284] 0x000000050000-0x00000018378c : "kernel"
[ 1.768776] 0x00000018378c-0x000001000000 : "rootfs"
[ 1.780498] mtd: device 5 (rootfs) set to be root filesystem
[ 1.791972] 1 squashfs-split partitions found on MTD device rootfs
[ 1.804318] 0x00000035e000-0x000001000000 : "rootfs_data"
[ 1.820073] mtk_soc_eth 10100000.ethernet: generated random MAC address 3e:68:70:75:3a:09
[ 1.836492] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 1.849121] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.866170] rt2880_wdt 10000120.watchdog: Initialized
[ 1.877831] NET: Registered protocol family 10
[ 1.891057] NET: Registered protocol family 17
[ 1.900072] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.925232] 8021q: 802.1Q VLAN Support v1.8
[ 1.949040] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.964033] Freeing unused kernel memory: 168K (803a6000 - 803d0000)
[ 3.990915] init: Console is alive
[ 3.998024] init: - watchdog -
[ 5.374153] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.471388] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.487572] init: - preinit -
[ 6.410364] 8021q: adding VLAN 0 to HW filter on device eth0
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 6.893463] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 6.921712] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.050968] procd: - early -
[ 7.057488] procd: - watchdog -
[ 7.241160] procd: - ubus -
[ 7.259333] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.277823] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.295776] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.314074] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.332075] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.350167] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.368278] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 7.386544] procd: - init -
Please press Enter to activate this console.
[ 7.693883] kmodloader: loading kernel modules from /etc/modules.d/*
[ 7.712538] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 7.733726] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 7.749747] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 7.821109] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 7.840766] nf_conntrack version 0.5.0 (952 buckets, 3808 max)
[ 7.907070] xt_time: kernel timezone is -0000
[ 7.926366] PPP generic driver version 2.4.2
[ 7.937644] NET: Registered protocol family 24
[ 7.963609] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[ 7.978091] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0500 detected
[ 7.993559] ieee80211 phy0: rt2800_init_eeprom: Error - Invalid RF chipset 0xffff detected
[ 8.010037] ieee80211 phy0: rt2x00lib_probe_dev: Error - Failed to allocate device
[ 8.025138] ------------[ cut here ]------------
[ 8.034363] WARNING: CPU: 0 PID: 380 at mm/vmalloc.c:1460 release_firmware+0x64/0x144()
[ 8.050315] Trying to vfree() bad address (83097200)
[ 8.060206] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_conntrack_ipv6 iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 8.189512] CPU: 0 PID: 380 Comm: kmodloader Not tainted 4.4.50 #0
[ 8.201828] Stack : 80347274 00000000 00000001 80390000 839b2fcc 8038ad23 80328bcc 0000017c
803d3438 00000003 00000016 024000c0 80066144 8004ad64 8032e0d4 80380000
00000003 00000003 8032c4d8 83bc9ae4 80066144 80048cd0 00000002 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
...
[ 8.272733] Call Trace:
[ 8.277634] [<80066144>] module_sect_show+0x0/0x18
[ 8.287192] [<8004ad64>] vprintk_default+0x24/0x30
[ 8.296754] [<80066144>] module_sect_show+0x0/0x18
[ 8.306306] [<80048cd0>] printk+0x2c/0x38
[ 8.314315] [<80025354>] warn_slowpath_common+0xa0/0xd0
[ 8.324740] [<8014951c>] dump_stack+0x14/0x28
[ 8.333432] [<80014840>] show_stack+0x50/0x84
[ 8.342123] [<80025354>] warn_slowpath_common+0xa0/0xd0
[ 8.352554] [<801ae75c>] release_firmware+0x64/0x144
[ 8.362467] [<800253b0>] warn_slowpath_fmt+0x2c/0x38
[ 8.372388] [<80036454>] queue_work_on+0x44/0x74
[ 8.381609] [<801ae75c>] release_firmware+0x64/0x144
[ 8.391562] [<830a65fc>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.405126] [<830a1940>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[ 8.417935] [<83142464>] ieee80211_alloc_led_names+0xac/0xc0 [mac80211]
[ 8.431181] [<80066144>] module_sect_show+0x0/0x18
[ 8.440739] [<830b91e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 8.452730] [<8003cc0c>] blocking_notifier_call_chain+0x14/0x20
[ 8.464550] [<801abdc0>] devm_kfree+0x20/0x44
[ 8.473247] [<801aa2bc>] platform_drv_probe+0x28/0x70
[ 8.483336] [<801a88f0>] driver_probe_device+0x120/0x288
[ 8.493944] [<8008a080>] kstrdup+0x44/0x8c
[ 8.502120] [<801aa490>] platform_match+0x60/0x110
[ 8.511687] [<801a8ad4>] __driver_attach+0x7c/0xb4
[ 8.521242] [<801a6cf8>] next_device+0x10/0x30
[ 8.530109] [<801a8a58>] __driver_attach+0x0/0xb4
[ 8.539488] [<801a6db4>] bus_for_each_dev+0x9c/0xac
[ 8.549235] [<802d0c6c>] klist_add_tail+0x24/0x50
[ 8.558620] [<801a6b88>] bus_get+0x2c/0x50
[ 8.566788] [<801a7fe8>] bus_add_driver+0xec/0x20c
[ 8.576350] [<80066144>] module_sect_show+0x0/0x18
[ 8.585908] [<801550a8>] kvasprintf+0x70/0x94
[ 8.594598] [<801eb858>] __alloc_skb+0x88/0x184
[ 8.603644] [<800a5720>] __slab_alloc.isra.13.constprop.17+0x20/0x44
[ 8.616325] [<8309a000>] init_module+0x0/0x2c [rt2800soc]
[ 8.627102] [<801a91ec>] driver_register+0xa8/0xf8
[ 8.636669] [<800456bc>] __wake_up+0x24/0x48
[ 8.645194] [<8309a000>] init_module+0x0/0x2c [rt2800soc]
[ 8.655973] [<8000d890>] do_one_initcall+0x1e8/0x214
[ 8.665880] [<800456bc>] __wake_up+0x24/0x48
[ 8.674398] [<8309a000>] init_module+0x0/0x2c [rt2800soc]
[ 8.685176] [<80034374>] call_usermodehelper_exec+0x144/0x160
[ 8.696644] [<80033e64>] call_usermodehelper_setup+0x38/0xa8
[ 8.707942] [<80066144>] module_sect_show+0x0/0x18
[ 8.717497] [<80067364>] do_init_module+0x74/0x1cc
[ 8.727058] [<8009dbb0>] __vunmap+0xf0/0x114
[ 8.735599] [<80068bf8>] load_module+0x16c0/0x1b68
[ 8.745158] [<80066730>] unknown_module_param_cb+0x0/0xac
[ 8.755930] [<8009e0a4>] __vmalloc_node+0x34/0x40
[ 8.765326] [<80069134>] SyS_init_module+0x94/0x180
[ 8.775056] [<800691d0>] SyS_init_module+0x130/0x180
[ 8.784977] [<8000682c>] syscall_common+0x30/0x54
[ 8.794382] [<800a8580>] SyS_open+0x0/0x14
[ 8.802545]
[ 8.805504] ---[ end trace b92178621e4f27fb ]---
[ 8.814710] Kernel bug detected[#1]:
[ 8.821830] CPU: 0 PID: 380 Comm: kmodloader Tainted: G W 4.4.50 #0
[ 8.836560] task: 839b2d48 ti: 83bc8000 task.ti: 83bc8000
[ 8.847302] $ 0 : 00000000 00000000 810614e0 00000001
[ 8.857718] $ 4 : 830a78e0 ffffffff 000000c3 830a78e0
[ 8.868133] $ 8 : 0000002d 65313236 37326634 5d206266
[ 8.878545] $12 : 00000000 00000013 00000000 6d6f635f
[ 8.888956] $16 : 83b89460 ffffffed 83b88b40 8387dc10
[ 8.899372] $20 : 83b89734 00000003 00000016 024000c0
[ 8.909787] $24 : 00000003 8019e344
[ 8.920200] $28 : 83bc8000 83bc9bb0 80066144 830a65fc
[ 8.930619] Hi : 00000000
[ 8.936343] Lo : ec4e4000
[ 8.942076] epc : 800a4c30 kfree+0x70/0x150
[ 8.950775] ra : 830a65fc rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 8.964980] Status: 1100a403 KERNEL EXL IE
[ 8.973314] Cause : 10800034 (ExcCode 0d)
[ 8.981290] PrId : 00019650 (MIPS 24KEc)
[ 8.989262] Modules linked in: rt2800soc(+) rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_conntrack_ipv6 iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt mt76x2e mt7603e mt76 mac80211 cfg80211 compat ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables eeprom_93cx6 leds_gpio gpio_button_hotplug
[ 9.118381] Process kmodloader (pid: 380, threadinfo=83bc8000, task=839b2d48, tls=77181d48)
[ 9.135008] Stack : 83b89460 83bc9bd0 830a6b3c 83b89460 83b89460 830a1940 83897640 83142464
830a67b4 00000000 00000000 83098500 83b88160 024080c0 83b89460 02400000
83b88b40 8387dc10 8309e524 00000003 00000016 024000c0 80066144 830b91e4
80400000 8003cc0c 8309e7d4 801abdc0 8387dc10 8309e7d4 8309e7d4 80400000
80400000 801aa2bc 83098300 00000001 8309e7d4 8309e7d4 8387dc10 8387dc10
...
[ 9.205822] Call Trace:
[ 9.210688] [<800a4c30>] kfree+0x70/0x150
[ 9.218686] [<830a65fc>] rt2x00lib_free_eeprom_file+0x18/0x2c [rt2x00lib]
[ 9.232225] [<830a1940>] rt2x00lib_probe_dev+0x7a8/0x848 [rt2x00lib]
[ 9.244892] [<830b91e4>] rt2x00soc_probe+0x160/0x1bc [rt2x00soc]
[ 9.256869] [<801aa2bc>] platform_drv_probe+0x28/0x70
[ 9.266930] [<801a88f0>] driver_probe_device+0x120/0x288
[ 9.277508] [<801a8ad4>] __driver_attach+0x7c/0xb4
[ 9.287047] [<801a6db4>] bus_for_each_dev+0x9c/0xac
[ 9.296760] [<801a7fe8>] bus_add_driver+0xec/0x20c
[ 9.306301] [<801a91ec>] driver_register+0xa8/0xf8
[ 9.315849] [<8000d890>] do_one_initcall+0x1e8/0x214
[ 9.325746] [<80067364>] do_init_module+0x74/0x1cc
[ 9.335288] [<80068bf8>] load_module+0x16c0/0x1b68
[ 9.344829] [<800691d0>] SyS_init_module+0x130/0x180
[ 9.354723] [<8000682c>] syscall_common+0x30/0x54
[ 9.364081]
[ 9.367033]
Code: 30630001 24030001 38630001 <00030336> 8c430000 7c630380 10600003 00000000 10000002
[ 9.386857] ---[ end trace b92178621e4f27fc ]---
[ 9.398728] Fatal exception: panic in 5 seconds:>