Adding OpenWrt support for Netis N2 (RTL8197f-v5 +8812fr +rtl8367b)

Need help to porting new device
STOCK Bootlog

Booting...
init_ram
bond:0x0000000b
MCM 128MB
 
 dram_init_clk_frequency ,ddr_freq=1066 (Mbps), 533 (MHZ)
 
DRAM init disable
 
DRAM init enable
 
DRAM init is done , jump to DRAM
enable DRAM ODT
 
SDR init done dev_map=0xb8142000
 
Detect page_size = 2KB (3)
 
Detect bank_size = 8 banks(0x00000002)
 
Detect dram size = 128MB (0x08000000)
 
DDR init OK
init ddr ok
 
DRAM Type: DDR2
        DRAM frequency: 533MHz
        DRAM Size: 128MB
JEDEC id EF4017, EXT id 0x0000
found w25q64
flash vendor: Winbond
w25q64, size=8MB, erasesize=4KB, max_speed_hz=29000000Hz
auto_mode=0 addr_width=3 erase_opcode=0x00000020
Write PLL1=80c00042
=>CPU Wake-up interrupt happen! GISR=89000080
 
---Realtek RTL8197F-VG boot code at 2019.06.24-17:02+0800 v3.4.14 (999MHz)
no sys signature at 00010000!
no sys signature at 00020000!
no rootfs signature at 00260000!
no rootfs signature at 00270000!
no rootfs signature at 002B0000!
no rootfs signature at 00100000!
no rootfs signature at 00101000!
no rootfs signature at 00102000!
no rootfs signature at 00103000!
no rootfs signature at 00104000!
no rootfs signature at 00105000!
no rootfs signature at 00106000!
no rootfs signature at 00107000!
no rootfs signature at 00108000!
no rootfs signature at 00109000!
no rootfs signature at 0010A000!
no rootfs signature at 0010B000!
no rootfs signature at 0010C000!
no rootfs signature at 0010D000!
no rootfs signature at 0010E000!
no rootfs signature at 0010F000!
no rootfs signature at 00110000!
no rootfs signature at 00111000!
no rootfs signature at 00112000!
no rootfs signature at 00113000!
no rootfs signature at 00114000!
no rootfs signature at 00115000!
no rootfs signature at 00116000!
no rootfs signature at 00117000!
no rootfs signature at 00118000!
no rootfs signature at 00119000!
no rootfs signature at 0011A000!
no rootfs signature at 0011B000!
no rootfs signature at 0011C000!
no rootfs signature at 0011D000!
no rootfs signature at 0011E000!
no rootfs signature at 0011F000!
no rootfs signature at 00120000!
no rootfs signature at 00121000!
no rootfs signature at 00122000!
no rootfs signature at 00123000!
no rootfs signature at 00124000!
no rootfs signature at 00125000!
no rootfs signature at 00126000!
no rootfs signature at 00127000!
no rootfs signature at 00128000!
no rootfs signature at 00129000!
no rootfs signature at 0012A000!
no rootfs signature at 0012B000!
no rootfs signature at 0012C000!
no rootfs signature at 0012D000!
no rootfs signature at 0012E000!
no rootfs signature at 0012F000!
no rootfs signature at 00130000!
no rootfs signature at 00131000!
no rootfs signature at 00132000!
no rootfs signature at 00133000!
no rootfs signature at 00134000!
no rootfs signature at 00135000!
no rootfs signature at 00136000!
no rootfs signature at 00137000!
no rootfs signature at 00138000!
no rootfs signature at 00139000!
no rootfs signature at 0013A000!
no rootfs signature at 0013B000!
no rootfs signature at 0013C000!
no rootfs signature at 0013D000!
no rootfs signature at 0013E000!
no rootfs signature at 0013F000!
no rootfs signature at 00140000!
no rootfs signature at 00141000!
no rootfs signature at 00142000!
no rootfs signature at 00143000!
no rootfs signature at 00144000!
no rootfs signature at 00145000!
no rootfs signature at 00146000!
no rootfs signature at 00147000!
no rootfs signature at 00148000!
no rootfs signature at 00149000!
no rootfs signature at 0014A000!
no rootfs signature at 0014B000!
no rootfs signature at 0014C000!
no rootfs signature at 0014D000!
no rootfs signature at 0014E000!
no rootfs signature at 0014F000!
no rootfs signature at 00150000!
no rootfs signature at 00151000!
no rootfs signature at 00152000!
no rootfs signature at 00153000!
no rootfs signature at 00154000!
no rootfs signature at 00155000!
no rootfs signature at 00156000!
no rootfs signature at 00157000!
no rootfs signature at 00158000!
no rootfs signature at 00159000!
no rootfs signature at 0015A000!
no rootfs signature at 0015B000!
no rootfs signature at 0015C000!
no rootfs signature at 0015D000!
no rootfs signature at 0015E000!
no rootfs signature at 0015F000!
no rootfs signature at 00160000!
no rootfs signature at 00161000!
no rootfs signature at 00162000!
no rootfs signature at 00163000!
no rootfs signature at 00164000!
no rootfs signature at 00165000!
no rootfs signature at 00166000!
no rootfs signature at 00167000!
no rootfs signature at 00168000!
no rootfs signature at 00169000!
no rootfs signature at 0016A000!
no rootfs signature at 0016B000!
no rootfs signature at 0016C000!
no rootfs signature at 0016D000!
no rootfs signature at 0016E000!
no rootfs signature at 0016F000!
no rootfs signature at 00170000!
no rootfs signature at 00171000!
no rootfs signature at 00172000!
no rootfs signature at 00173000!
no rootfs signature at 00174000!
no rootfs signature at 00175000!
no rootfs signature at 00176000!
no rootfs signature at 00177000!
no rootfs signature at 00178000!
no rootfs signature at 00179000!
no rootfs signature at 0017A000!
no rootfs signature at 0017B000!
no rootfs signature at 0017C000!
no rootfs signature at 0017D000!
no rootfs signature at 0017E000!
no rootfs signature at 0017F000!
no rootfs signature at 00180000!
no rootfs signature at 00181000!
no rootfs signature at 00182000!
no rootfs signature at 00183000!
no rootfs signature at 00184000!
no rootfs signature at 00185000!
no rootfs signature at 00186000!
no rootfs signature at 00187000!
no rootfs signature at 00188000!
no rootfs signature at 00189000!
no rootfs signature at 0018A000!
no rootfs signature at 0018B000!
no rootfs signature at 0018C000!
no rootfs signature at 0018D000!
no rootfs signature at 0018E000!
no rootfs signature at 0018F000!
no rootfs signature at 00190000!
no rootfs signature at 00191000!
no rootfs signature at 00192000!
no rootfs signature at 00193000!
no rootfs signature at 00194000!
no rootfs signature at 00195000!
no rootfs signature at 00196000!
no rootfs signature at 00197000!
no rootfs signature at 00198000!
no rootfs signature at 00199000!
no rootfs signature at 0019A000!
no rootfs signature at 0019B000!
no rootfs signature at 0019C000!
no rootfs signature at 0019D000!
no rootfs signature at 0019E000!
no rootfs signature at 0019F000!
no rootfs signature at 001A0000!
no rootfs signature at 001A1000!
no rootfs signature at 001A2000!
no rootfs signature at 001A3000!
no rootfs signature at 001A4000!
no rootfs signature at 001A5000!
no rootfs signature at 001A6000!
no rootfs signature at 001A7000!
no rootfs signature at 001A8000!
no rootfs signature at 001A9000!
no rootfs signature at 001AA000!
no rootfs signature at 001AB000!
no rootfs signature at 001AC000!
no rootfs signature at 001AD000!
no rootfs signature at 001AE000!
no rootfs signature at 001AF000!
no rootfs signature at 001B0000!
no rootfs signature at 001B1000!
no rootfs signature at 001B2000!
no rootfs signature at 001B3000!
no rootfs signature at 001B4000!
no rootfs signature at 001B5000!
no rootfs signature at 001B6000!
no rootfs signature at 001B7000!
no rootfs signature at 001B8000!
no rootfs signature at 001B9000!
no rootfs signature at 001BA000!
no rootfs signature at 001BB000!
no rootfs signature at 001BC000!
no rootfs signature at 001BD000!
no rootfs signature at 001BE000!
no rootfs signature at 001BF000!
no rootfs signature at 001C0000!
no rootfs signature at 001C1000!
no rootfs signature at 001C2000!
no rootfs signature at 001C3000!
no rootfs signature at 001C4000!
no rootfs signature at 001C5000!
no rootfs signature at 001C6000!
no rootfs signature at 001C7000!
no rootfs signature at 001C8000!
no rootfs signature at 001C9000!
no rootfs signature at 001CA000!
no rootfs signature at 001CB000!
no rootfs signature at 001CC000!
no rootfs signature at 001CD000!
no rootfs signature at 001CE000!
no rootfs signature at 001CF000!
no rootfs signature at 001D0000!
no rootfs signature at 001D1000!
no rootfs signature at 001D2000!
no rootfs signature at 001D3000!
no rootfs signature at 001D4000!
no rootfs signature at 001D5000!
no rootfs signature at 001D6000!
no rootfs signature at 001D7000!
no rootfs signature at 001D8000!
no rootfs signature at 001D9000!
no rootfs signature at 001DA000!
no rootfs signature at 001DB000!
no rootfs signature at 001DC000!
no rootfs signature at 001DD000!
no rootfs signature at 001DE000!
no rootfs signature at 001DF000!
no rootfs signature at 001E0000!
no rootfs signature at 001E1000!
no rootfs signature at 001E2000!
no rootfs signature at 001E3000!
no rootfs signature at 001E4000!
no rootfs signature at 001E5000!
no rootfs signature at 001E6000!
no rootfs signature at 001E7000!
no rootfs signature at 001E8000!
no rootfs signature at 001E9000!
no rootfs signature at 001EA000!
no rootfs signature at 001EB000!
no rootfs signature at 001EC000!
no rootfs signature at 001ED000!
no rootfs signature at 001EE000!
no rootfs signature at 001EF000!
no rootfs signature at 001F0000!
no rootfs signature at 001F1000!
no rootfs signature at 001F2000!
no rootfs signature at 001F3000!
no rootfs signature at 001F4000!
no rootfs signature at 001F5000!
no rootfs signature at 001F6000!
no rootfs signature at 001F7000!
no rootfs signature at 001F8000!
no rootfs signature at 001F9000!
no rootfs signature at 001FA000!
no rootfs signature at 001FB000!
no rootfs signature at 001FC000!
no rootfs signature at 001FD000!
no rootfs signature at 001FE000!
no rootfs signature at 001FF000!
no rootfs signature at 00200000!
no rootfs signature at 00201000!
no rootfs signature at 00202000!
no rootfs signature at 00203000!
no rootfs signature at 00204000!
no rootfs signature at 00205000!
no rootfs signature at 00206000!
no rootfs signature at 00207000!
no rootfs signature at 00208000!
no rootfs signature at 00209000!
no rootfs signature at 0020A000!
no rootfs signature at 0020B000!
no rootfs signature at 0020C000!
no rootfs signature at 0020D000!
no rootfs signature at 0020E000!
no rootfs signature at 0020F000!
no rootfs signature at 00210000!
no rootfs signature at 00211000!
no rootfs signature at 00212000!
no rootfs signature at 00213000!
no rootfs signature at 00214000!
no rootfs signature at 00215000!
no rootfs signature at 00216000!
no rootfs signature at 00217000!
no rootfs signature at 00218000!
no rootfs signature at 00219000!
no rootfs signature at 0021A000!
no rootfs signature at 0021B000!
no rootfs signature at 0021C000!
no rootfs signature at 0021D000!
no rootfs signature at 0021E000!
no rootfs signature at 0021F000!
no rootfs signature at 00220000!
no rootfs signature at 00221000!
no rootfs signature at 00222000!
no rootfs signature at 00223000!
no rootfs signature at 00224000!
no rootfs signature at 00225000!
no rootfs signature at 00226000!
no rootfs signature at 00227000!
no rootfs signature at 00228000!
no rootfs signature at 00229000!
no rootfs signature at 0022A000!
no rootfs signature at 0022B000!
no rootfs signature at 0022C000!
no rootfs signature at 0022D000!
no rootfs signature at 0022E000!
no rootfs signature at 0022F000!
no rootfs signature at 00230000!
no rootfs signature at 00231000!
no rootfs signature at 00232000!
no rootfs signature at 00233000!
no rootfs signature at 00234000!
no rootfs signature at 00235000!
no rootfs signature at 00236000!
no rootfs signature at 00237000!
no rootfs signature at 00238000!
no rootfs signature at 00239000!
no rootfs signature at 0023A000!
no rootfs signature at 0023B000!
no rootfs signature at 0023C000!
no rootfs signature at 0023D000!
no rootfs signature at 0023E000!
no rootfs signature at 0023F000!
no rootfs signature at 00240000!
no rootfs signature at 00241000!
no rootfs signature at 00242000!
no rootfs signature at 00243000!
no rootfs signature at 00244000!
no rootfs signature at 00245000!
no rootfs signature at 00246000!
no rootfs signature at 00247000!
no rootfs signature at 00248000!
no rootfs signature at 00249000!
no rootfs signature at 0024A000!
no rootfs signature at 0024B000!
no rootfs signature at 0024C000!
no rootfs signature at 0024D000!
no rootfs signature at 0024E000!
no rootfs signature at 0024F000!
no rootfs signature at 00250000!
no rootfs signature at 00251000!
no rootfs signature at 00252000!
no rootfs signature at 00253000!
no rootfs signature at 00254000!
no rootfs signature at 00255000!
no rootfs signature at 00256000!
no rootfs signature at 00257000!
no rootfs signature at 00258000!
no rootfs signature at 00259000!
no rootfs signature at 0025A000!
no rootfs signature at 0025B000!
no rootfs signature at 0025C000!
no rootfs signature at 0025D000!
no rootfs signature at 0025E000!
no rootfs signature at 0025F000!
no rootfs signature at 00261000!
no rootfs signature at 00262000!
no rootfs signature at 00263000!
no rootfs signature at 00264000!
no rootfs signature at 00265000!
no rootfs signature at 00266000!
no rootfs signature at 00267000!
no rootfs signature at 00268000!
no rootfs signature at 00269000!
no rootfs signature at 0026A000!
no rootfs signature at 0026B000!
no rootfs signature at 0026C000!
no rootfs signature at 0026D000!
no rootfs signature at 0026E000!
no rootfs signature at 0026F000!
no rootfs signature at 00271000!
no rootfs signature at 00272000!
no rootfs signature at 00273000!
no rootfs signature at 00274000!
no rootfs signature at 00275000!
no rootfs signature at 00276000!
no rootfs signature at 00277000!
no rootfs signature at 00278000!
no rootfs signature at 00279000!
no rootfs signature at 0027A000!
no rootfs signature at 0027B000!
no rootfs signature at 0027C000!
no rootfs signature at 0027D000!
no rootfs signature at 0027E000!
no rootfs signature at 0027F000!
no rootfs signature at 00280000!
no rootfs signature at 00281000!
no rootfs signature at 00282000!
no rootfs signature at 00283000!
no rootfs signature at 00284000!
no rootfs signature at 00285000!
no rootfs signature at 00286000!
no rootfs signature at 00287000!
no rootfs signature at 00288000!
no rootfs signature at 00289000!
no rootfs signature at 0028A000!
no rootfs signature at 0028B000!
no rootfs signature at 0028C000!
no rootfs signature at 0028D000!
no rootfs signature at 0028E000!
no rootfs signature at 0028F000!
no rootfs signature at 00290000!
no rootfs signature at 00291000!
no rootfs signature at 00292000!
no rootfs signature at 00293000!
no rootfs signature at 00294000!
no rootfs signature at 00295000!
no rootfs signature at 00296000!
no rootfs signature at 00297000!
no rootfs signature at 00298000!
no rootfs signature at 00299000!
no rootfs signature at 0029A000!
no rootfs signature at 0029B000!
no rootfs signature at 0029C000!
no rootfs signature at 0029D000!
no rootfs signature at 0029E000!
no rootfs signature at 0029F000!
no rootfs signature at 002A0000!
no rootfs signature at 002A1000!
no rootfs signature at 002A2000!
no rootfs signature at 002A3000!
no rootfs signature at 002A4000!
no rootfs signature at 002A5000!
no rootfs signature at 002A6000!
no rootfs signature at 002A7000!
no rootfs signature at 002A8000!
no rootfs signature at 002A9000!
no rootfs signature at 002AA000!
no rootfs signature at 002AB000!
no rootfs signature at 002AC000!
no rootfs signature at 002AD000!
no rootfs signature at 002AE000!
no rootfs signature at 002AF000!
no rootfs signature at 002B1000!
no rootfs signature at 002B2000!
no rootfs signature at 002B3000!
no rootfs signature at 002B4000!
no rootfs signature at 002B5000!
no rootfs signature at 002B6000!
no rootfs signature at 002B7000!
no rootfs signature at 002B8000!
no rootfs signature at 002B9000!
no rootfs signature at 002BA000!
no rootfs signature at 002BB000!
no rootfs signature at 002BC000!
no rootfs signature at 002BD000!
no rootfs signature at 002BE000!
no rootfs signature at 002BF000!
no rootfs signature at 002C0000!
no rootfs signature at 002C1000!
no rootfs signature at 002C2000!
no rootfs signature at 002C3000!
no rootfs signature at 002C4000!
no rootfs signature at 002C5000!
no rootfs signature at 002C6000!
no rootfs signature at 002C7000!
no rootfs signature at 002C8000!
no rootfs signature at 002C9000!
no rootfs signature at 002CA000!
no rootfs signature at 002CB000!
no rootfs signature at 002CC000!
no rootfs signature at 002CD000!
no rootfs signature at 002CE000!
no rootfs signature at 002CF000!
no rootfs signature at 002D0000!
no rootfs signature at 002D1000!
no rootfs signature at 002D2000!
no rootfs signature at 002D3000!
no rootfs signature at 002D4000!
no rootfs signature at 002D5000!
no rootfs signature at 002D6000!
no rootfs signature at 002D7000!
no rootfs signature at 002D8000!
no rootfs signature at 002D9000!
no rootfs signature at 002DA000!
no rootfs signature at 002DB000!
no rootfs signature at 002DC000!
no rootfs signature at 002DD000!
no rootfs signature at 002DE000!
no rootfs signature at 002DF000!
no rootfs signature at 002E0000!
no rootfs signature at 002E1000!
no rootfs signature at 002E2000!
no rootfs signature at 002E3000!
no rootfs signature at 002E4000!
no rootfs signature at 002E5000!
no rootfs signature at 002E6000!
no rootfs signature at 002E7000!
no rootfs signature at 002E8000!
no rootfs signature at 002E9000!
no rootfs signature at 002EA000!
no rootfs signature at 002EB000!
no rootfs signature at 002EC000!
no rootfs signature at 002ED000!
no rootfs signature at 002EE000!
no rootfs signature at 002EF000!
no rootfs signature at 002F0000!
no rootfs signature at 002F1000!
no rootfs signature at 002F2000!
no rootfs signature at 002F3000!
no rootfs signature at 002F4000!
no rootfs signature at 002F5000!
no rootfs signature at 002F6000!
no rootfs signature at 002F7000!
no rootfs signature at 002F8000!
no rootfs signature at 002F9000!
no rootfs signature at 002FA000!
no rootfs signature at 002FB000!
no rootfs signature at 002FC000!
no rootfs signature at 002FD000!
no rootfs signature at 002FE000!
no rootfs signature at 002FF000!
Jump to image start=0x80a00000...
decompressing kernel:
Uncompressing Linux... done, booting the kernel.
done decompressing kernel.
start address: 0x80528bf0
Linux version 3.10.90 (root@kenny) (gcc version 4.4.7 (Realtek MSDK-4.4.7 Build 2001) ) #423 Fri Mar 6 10:23:16 CST 2020
bootconsole [early0] enabled
CPU revision is: 00019385 (MIPS 24Kc)
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
Zone ranges:
  Normal   [mem 0x00000000-0x07ffffff]
Movable zone start for each node
Early memory node ranges
  node   0: [mem 0x00000000-0x07ffffff]
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8176
Kernel command line: console=ttyS0,38400 root=/dev/mtdblock1
PID hash table entries: 512 (order: -3, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 2, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 1, 32768 bytes)
Writing ErrCtl register=0004000a
Readback ErrCtl register=0004000a
Memory: 107200k/131072k available (5305k kernel code, 23872k reserved, 2179k data, 192k init, 0k highmem)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:192
Realtek GPIO IRQ init
Calibrating delay loop... 666.41 BogoMIPS (lpj=3332096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048
NET: Registered protocol family 16
<<<<<Register PCI Controller>>>>>
Do MDIO_RESET
40MHz
Find PCIE Port, Device:Vender ID=f81210ec
Realtek GPIO controller driver init
INFO: registering sheipa spi device
bio: create slab <bio-0> at 0
INFO: sheipa spi driver register
INFO: sheipa spi probe
Switching to clocksource MIPS
NET: Registered protocol family 2
TCP established hash table entries: 2048 (order: 0, 16384 bytes)
TCP bind hash table entries: 2048 (order: -1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 16384 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 16384 bytes)
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 209
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
β–’β–’β–’Ν½β–’β–’β–’β–’β–’β–’β–’Mβ–’β–’*▒▒▒▒▒▒▒▒▒э▒▒ͽ▒▒▒"β–’Ν…β–’β–’β–’β–’5Rβ–’β–’Ν½β–’β–’β–’β–’β–’β–’β–’Mβ–’β–’*▒▒▒▒▒▒▒▒▒э▒▒ͽ▒▒▒"β–’Ν…β–’β–’β–’β–’5Rβ–’Realtek GPIO Driver for Flash Reload Default
loop: module loaded
m25p80 spi0.0: change speed to 15000000Hz, div 7
JEDEC id EF4017
m25p80 spi0.0: found w25q64, expected m25p80
flash vendor: Winbond
m25p80 spi0.0: w25q64 (8192 Kbytes) (29000000 Hz)
2 rtkxxpart partitions found on MTD device m25p80
Creating 2 MTD partitions on "m25p80":
0x000000000000-0x000000300000 : "boot+cfg+linux"
0x000000300000-0x000000f00000 : "rootfs"
mtd: partition "rootfs" extends beyond the end of device "m25p80" -- size truncated to 0x500000
PPP generic driver version 2.4.2
NET: Registered protocol family 24
MPPE/MPPC encryption/compression module registered
Realtek WLAN driver - version 3.8.0(2017-12-26)(SVN:Unversioned directory)
Adaptivity function - version 9.7.07
Do MDIO_RESET
40MHz
Find PCIE Port, Device:Vender ID=f81210ec
rtl8192cd_init_one(15521): vendor_deivce_id(f81210ec) sub(f81210ec)
 
 found 8812F !!!
IS_RTL8812F_SERIES value8 = 14
Hardware type = RTL8812FE
MACHAL_version_init
11692M
HALMAC_MAJOR_VER = 1
HALMAC_PROTOTYPE_VER = 6
HALMAC_MINOR_VER = 6
HALMAC_PATCH_VER = 6
[TRACE]halmac_init_adapter <===
halmac_init_adapter Succss
[MACFM_software_init 297]wifi hal support Mac function = 0x11ff
 
 
#######################################################
SKB_BUF_SIZE=4432 MAX_SKB_NUM=1024
#######################################################
 
[wlan0] init sae_peer_table
 [wlan0] init sae_blacklist_table
 [MACFM_software_init 297]wifi hal support Mac function = 0x11ff
[MACFM_software_init 297]wifi hal support Mac function = 0x11ff
[MACFM_software_init 297]wifi hal support Mac function = 0x11ff
[MACFM_software_init 297]wifi hal support Mac function = 0x11ff
[MACFM_software_init 297]wifi hal support Mac function = 0x11ff
MACHAL_version_init
[MACFM_software_init 297]wifi hal support Mac function = 0x8108
 
 
#######################################################
SKB_BUF_SIZE=3032 MAX_SKB_NUM=400
#######################################################
 
[wlan1] init sae_peer_table
 [wlan1] init sae_blacklist_table
 [MACFM_software_init 297]wifi hal support Mac function = 0x8108
[MACFM_software_init 297]wifi hal support Mac function = 0x8108
[MACFM_software_init 297]wifi hal support Mac function = 0x8108
[MACFM_software_init 297]wifi hal support Mac function = 0x8108
[MACFM_software_init 297]wifi hal support Mac function = 0x8108
u32 classifier
nf_conntrack version 0.5.0 (1675 buckets, 6700 max)
nf_conntrack_l2tp version 3.1 loaded
nf_conntrack_rtsp v0.6.21 loading
nf_conntrack_ipsec loaded
nf_nat_ipsec loaded
nf_nat_rtsp v0.6.21 loading
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP: cubic registered
NET: Registered protocol family 10
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6 over IPv4 tunneling driver
ip6_gre: GRE over IPv6 tunneling driver
NET: Registered protocol family 17
l2tp_core: L2TP core driver, V2.0
8021q: 802.1Q VLAN Support v1.8
Realtek FastPath:v1.03
 
Probing RTL819X NIC-kenel stack size order[0]...
  SoC: 8197FS-VG
Switch API version: v1.3.11, chip id: 0x6367-0020
[rtl865x_adjustQueueLen:8656] memory: bb80457c,  value: fc00ff
[rtl865x_adjustQueueLen:8656] memory: bb804580,  value: fc00ff
[rtl865x_adjustQueueLen:8656] memory: bb804584,  value: fc00ff
[rtl865x_adjustQueueLen:8656] memory: bb8045c4,  value: fc00ff
[rtl865x_adjustQueueLen:8656] memory: bb8045c8,  value: fc00ff
[rtl865x_adjustQueueLen:8656] memory: bb8045cc,  value: fc00ff
eth0 added. vid=9 Member port 0x11e...
eth1 added. vid=8 Member port 0x1...
[peth0] added, mapping to [eth1]...
m25p80 spi0.0: change speed to 29000000Hz, div 4
VFS: Mounted root (squashfs filesystem) readonly on device 31:1.
Freeing unused kernel memory: 192K (80750000 - 80780000)
init started: BusyBox v1.13.4 (2020-03-06 10:04:52 CST)
# /bin/script/startup.sh=
cp: cannot stat '/etc/tmp/pics*': No such file or directory
type:3, enable:0, percent0
/bin/sh: can't create /proc/sys/net/ipv6/conf/br0/disable_ipv6: nonexistent directory
/bin/sh: can't create /proc/sys/net/ipv6/conf/br0/accept_ra: nonexistent directory
udpsvd: listening on 0.0.0.0:69, starting
/bin/script/password.sh=
Password for 'guest' changed
Changed Username and Password ...........
device eth0 entered promiscuous mode
IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
br0: port 1(eth0) entered forwarding state
br0: port 1(eth0) entered forwarding state
IPv6: ADDRCONF(NETDEV_CHANGE): br0: link becomes ready
/bin/script/start_wifi.sh=
chip_version=0x2001,WlanSupportAbility = 0x3
[wlan0] SAE INIT...
clock 40MHz
[TRACE]pre_init_system_cfg_8812f ===>
[TRACE]set_hw_value_88xx ===>
[TRACE]set_hw_value_88xx <===
[TRACE]pre_init_system_cfg_8812f <===
[TRACE]mac_pwr_switch_pcie_8812f ===>
[TRACE]pwr = 1
[TRACE]8812F pwr seq ver = V01
[TRACE]mac_pwr_switch_pcie_8812f <===
InitPON OK!!!
REG_HCI_MIX_CFG = 2b
[TRACE]init_system_cfg_8812f ===>
[TRACE]init_system_cfg_8812f <===
InitMAC Page0
[TRACE]download_firmware_88xx ===>
[TRACE]halmac h2c ver = f, fw h2c ver = e!!
[TRACE]=== FW info ===
[TRACE]ver : 3
[TRACE]sub-ver : 3
[TRACE]sub-idx : 0
[TRACE]build : 2019/8/13 9:35
[TRACE]Dlfw OK, enable CPU
[TRACE]0x80=0xC078, cnt=5000
[TRACE]download_firmware_88xx <===
>>SetBeaconDownload88XX
Init Download FW OK
[TRACE]cfg_la_mode_88xx ===>
[TRACE]cfg_la_mode_88xx <===
[TRACE]init_mac_cfg_88xx ===>
[TRACE]init_trx_cfg_8812f ===>
[TRACE]rqpn_parser_88xx done
[TRACE]pg_num_parser_88xx done
[TRACE]Set FIFO page
[TRACE]h2c fs : 1024
[TRACE]init_trx_cfg_8812f <===
[TRACE]init_protocol_cfg_8812f ===>
[TRACE]init_protocol_cfg_8812f <===
[TRACE]init_edca_cfg_8812f ===>
[TRACE]init_edca_cfg_8812f <===
[TRACE]init_wmac_cfg_8812f ===>
[TRACE]init_low_pwr_8812f ===>
[TRACE]init_low_pwr_8812f <===
[TRACE]init_wmac_cfg_8812f <===
[TRACE]init_mac_cfg_88xx <===
halmac_init_mac_cfg OK
halmac_cfg_rx_aggregation OK
[TRACE]cfg_mac_addr_88xx ===>
[TRACE]cfg_mac_addr_88xx <===
halmac_init_mac_cfg OK
[TRACE]cfg_drv_info_8812f ===>
[TRACE]drv info = 1
[TRACE]set_hw_value_8812f ===>
[TRACE]set_hw_value_88xx ===>
[TRACE]cfg_rx_ignore_8812f ===>
[TRACE]cfg_rx_ignore_8812f <===
[TRACE]set_hw_value_8812f <===
[TRACE]cfg_drv_info_8812f <===
[GetHwReg88XX][size PHY_REG_PG_8812Fmp_Type0]
[GetHwReg88XX][PHY_REG_PG_8812Fmp_Type0]
start_addr=(0x20000), end_addr=(0x40000), buffer_size=(0x20000), smp_number_max=(16384)
[set_8812F_trx_regs] +++
chip_version=0x100f,WlanSupportAbility = 0x2
PrepareRXBD88XX_V1 134
test 0x879d2c00,0x30,0x79d2e80,0x0,
test 0x879d2c80,0x30,0x79d2ec0,0x0,
test 0x879d2d00,0x30,0x79d2f00,0x0,
test 0x879d2d80,0x30,0x79d2f40,0x0,
test 0x879d2e00,0x30,0x79d2f80,0x0,
[wlan1] SAE INIT...
[97F] RFE type 0 PHY paratemters: DEFAULT
clock 40MHz
AP-mode enabled...
RT_OP_MODE_AP...
[GetHwReg88XX][rtl8197Gfw]
[GetHwReg88XX][rtl8197Gfw size]
InitMACTRX OK
InitMACProtocolHandler OK
InitMACSchedulerHandler OK
InitMACWMACHandler OK
InitMACSysyemCfgHandler OK
InitMACFunctionHandler OK
[GetHwReg88XX][PHY_REG_PG_8197Gmp_Type0] size = 0x872 *((pu4Byte)(val))=0
[GetHwReg88XX][PHY_REG_PG_8197Gmp_Type0 start ] 806be340
start_addr=(0x0), end_addr=(0x10000), buffer_size=(0x10000), smp_number_max=(8192)
device wlan0 is not a slave of br0
device wlan0 entered promiscuous mode
br0: port 2(wlan0) entered forwarding state
br0: port 2(wlan0) entered forwarding state
device wlan0-va0 is not a slave of br0
device wlan0-va1 is not a slave of br0
device wlan0-va2 is not a slave of br0
device wlan0-va3 is not a slave of br0
device device wlan1 entered promiscuous mode
wlan0-vxd is notbr0: port 3(wlan1) entered forwarding state
br0: port 3(wlan1) entered forwarding state
 
device wlan1 is not a slave of br0
device wlan1-va0 is not a slave of br0
device wlan1-va1 is not a slave of br0
device wlan1-va2 is not a slave of br0
device wlan1-va3 is not a slave of br0
device wlan1-vxd is not a slave of br0
br0: port 3(wlan1) entered disabled state
br0: port 2(wlan0) entered disabled state
br0: port 1(eth0) entered disabled state
br0: port 3(wlan1) entered forwarding state
br0: port 3(wlan1) entered forwarding state
br0: port 2(wlan0) entered forwarding state
br0: port 2(wlan0) entered forwarding state
br0: port 1(eth0) entered forwarding state
br0: port 1(eth0) entered forwarding state
/bin/script/udhcpd.sh=
Register to wlan0
Register to wlan1
iwcontrol Write 83XX phyId(1), regId(0), regData:0x1940
RegisterPID to (wlan0)
iwcontrol RegisterPID to (wlan1)
Write 83XX phyId(2), regId(0), regData:0x1940
route: SIOCDELRT: No such process
Write 83XX phyId(3), regId(0), regData:0x1940
IEEE 802.11f (IAPP) using interface br0 (v1.8)
Write 83XX phyId(4), regId(0), regData:0x1940
Write 83XX phyId(1), regId(0), regData:0x1140
Write 83XX phyId(2), regId(0), regData:0x1140
Write 83XX phyId(3), regId(0), regData:0x1140
Write 83XX phyId(4), regId(0), regData:0x1140
/bin/script/time.sh=
/bin/script/pingWatchdog.sh=
/bin/script/schedule.sh=
enable 0 interval
boa: server version Boa/0.94.14rc21
boa: server built Mar  6 2020 at 09:59:32.
boa: starting server pid=1130, port 80
/bin/script/igmpsnooping.sh=
/bin/script/portSetting.sh=
/bin/script/upnpd.sh=
/bin/script/filter.sh=
/bin/script/dmz.sh=
/bin/script/portforward.sh=
/bin/script/vpn_pass.sh=
/bin/script/remoteAccess.sh=
/bin/script/staticRoute.sh= 2
/bin/script/qos.sh= 0
/bin/script/internet.sh= 6
IFINDEX(x) = 1-0-15-15

Openwrt Bootlog but switch and wifi doesnt work now

Booting...
init_ram
bond:0x0000000b
MCM 128MB

 dram_init_clk_frequency ,ddr_freq=1066 (Mbps), 533 (MHZ)

DRAM init disable

DRAM init enable

DRAM init is done , jump to DRAM
enable DRAM ODT

SDR init done dev_map=0xb8142000

Detect page_size = 2KB (3)

Detect bank_size = 8 banks(0x00000002)

Detect dram size = 128MB (0x08000000)

DDR init OK
init ddr ok

DRAM Type: DDR2
        DRAM frequency: 533MHz
        DRAM Size: 128MB
JEDEC id EF4017, EXT id 0x0000
found w25q64
flash vendor: Winbond
w25q64, size=8MB, erasesize=4KB, max_speed_hz=29000000Hz
auto_mode=0 addr_width=3 erase_opcode=0x00000020
Write PLL1=80c00042
=>CPU Wake-up interrupt happen! GISR=89000080
Reboot Result from Watchdog Timeout!

---Realtek RTL8197F-VG boot code at 2019.06.24-17:02+0800 v3.4.14 (999MHz)
no sys signature at 00010000!
no sys signature at 00020000!
Jump to image start=0x80a00000...


OpenWrt kernel loader for Realtek RTL819X
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Copyright (C) 2017 Weijie Gao <hackpascal@gmail.com>
Copyright (C) 2019 Gaspare Bruno <gaspare@anlix.io>
Decompressing kernel... done!
Starting kernel at 80000000...

[    0.000000] Linux version 4.14.180 (leks@kt) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11063-85e04e9f46)) #0 Sat May 16 18:32:20 2020
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019385 (MIPS 24Kc)
[    0.000000] MIPS: machine is NETIS N2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] BOOTSTRAP = 81970001 0 41258ee0 80003000
[    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] 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] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,38400
[    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=00040000
[    0.000000] Readback ErrCtl register=00040000
[    0.000000] Memory: 58612K/65536K available (3852K kernel code, 163K rwdata, 836K rodata, 1220K init, 204K bss, 6924K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 128
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520893 ns
[    0.000007] sched_clock: 32 bits at 500MHz, resolution 2ns, wraps every 4294967295ns
[    0.025443] Calibrating delay loop... 663.55 BogoMIPS (lpj=1327104)
[    0.077674] pid_max: default: 32768 minimum: 301
[    0.092942] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.114468] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.139724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.171433] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.191747] NET: Registered protocol family 16
[    0.222037] clocksource: Switched to clocksource MIPS
[    0.239129] NET: Registered protocol family 2
[    0.253708] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.276311] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.297080] TCP: Hash tables configured (established 1024 bind 1024)
[    0.318009] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.337032] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.357729] NET: Registered protocol family 1
[    0.375171] 18003500.gpio-controller: Using Mux A
[    0.390556] 18003500.gpio-controller: Realtek GPIO controller driver
[    0.411232] 1800351c.gpio-controller: Using Mux B
[    0.426677] 1800351c.gpio-controller: Realtek GPIO controller driver
[    0.447891] Crashlog allocated RAM at address 0x3f00000
[    0.466855] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.491098] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.509955] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.550105] io scheduler noop registered
[    0.562671] io scheduler deadline registered (default)
[    0.579797] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.600634] console [ttyS0] disabled
[    0.612121] 18147000.serial: ttyS0 at MMIO 0x18147000 (irq = 17, base_baud = 6250000) is a 16550A
[    0.641155] console [ttyS0] enabled
[    0.641155] console [ttyS0] enabled
[    0.661995] bootconsole [early0] disabled
[    0.661995] bootconsole [early0] disabled
[    0.686656] m25p80 spi0.0: change speed to 41000000Hz, div 3
[    0.714969] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.729666] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.748751] Creating 3 MTD partitions on "spi0.0":
[    0.763114] 0x000000000000-0x000000020000 : "boot"
[    0.778168] 0x000000020000-0x000000030000 : "config"
[    0.793645] 0x000000030000-0x0000007f0000 : "firmware"
[    0.813312] 2 cvimg-fw partitions found on MTD device firmware
[    0.830872] 0x000000030000-0x0000001c0284 : "kernel"
[    0.846422] 0x0000001c0284-0x0000007f0000 : "rootfs"
[    0.861884] mtd: device 4 (rootfs) set to be root filesystem
[    0.880091] 1 squashfs-split partitions found on MTD device rootfs
[    0.898677] 0x0000004a0000-0x0000007f0000 : "rootfs_data"
[    0.916104] libphy: Fixed MDIO Bus: probed
[    0.929364] NET: Registered protocol family 10
[    0.947080] Segment Routing with IPv6
[    0.958178] NET: Registered protocol family 17
[    0.971544] 8021q: 802.1Q VLAN Support v1.8
[    0.989150] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.015410] Freeing unused kernel memory: 1220K
[    1.029001] This architecture does not have kernel memory protection.
[    1.541521] init: Console is alive
[    1.738046] random: fast init done
[    2.360551] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.495593] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.527751] init: - preinit -
[    3.242256] random: jshn: uninitialized urandom read (4 bytes read)
[    3.347919] random: jshn: uninitialized urandom read (4 bytes read)
[    3.392717] random: jshn: uninitialized urandom read (4 bytes read)
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.660966] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[    6.709999] urandom-seed: Seed file not found (/etc/urandom.seed)
[    6.830926] procd: - early -
[    7.421981] procd: - ubus -
[    7.528116] urandom_read: 2 callbacks suppressed
[    7.528124] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.563070] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.582702] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.602665] procd: - init -
Please press Enter to activate this console.
[    8.124271] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.206328] zram: Added device: zram0
[    8.240372] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.287480] Loading modules backported from Linux version v5.8-rc2-0-g48778464bb7d
[    8.310251] Backport generated by backports.git v5.8-rc2-1-0-g7a69429b
[    8.380171] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.416924] lib80211: common routines for IEEE802.11 drivers
[    8.440783] urngd: v1.0.2 started.
[    8.476482] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    8.622290] xt_time: kernel timezone is -0000
[    8.736878] random: crng init done
[    8.747095] random: 2 urandom warning(s) missed due to ratelimiting
[    8.770489] PPP generic driver version 2.4.2
[    8.785570] NET: Registered protocol family 24
[    8.826198] RTL8723BS: module init start
[    8.837949] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[    8.859064] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[    8.878707] RTL8723BS: module init ret =0
[    8.974264] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.031471] zram0: detected capacity change from 0 to 30408704
[   12.109420] Adding 29692k swap on /dev/zram0.  Priority:-2 extents:1 across:29692k SS
[   20.751326] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   20.821672] jffs2_build_filesystem(): unlocking the mtd device...
[   20.821722] done.
[   20.846042] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   21.287560] INFO: flash mode error, cmd 0x04, flash_mode 0
[   21.571289] INFO: flash mode error, cmd 0x04, flash_mode 0
[   21.818189] INFO: flash mode error, cmd 0x04, flash_mode 0
[   22.068352] INFO: flash mode error, cmd 0x04, flash_mode 0
[   22.315804] INFO: flash mode error, cmd 0x04, flash_mode 0
[   22.566125] INFO: flash mode error, cmd 0x04, flash_mode 0
[   22.831436] INFO: flash mode error, cmd 0x04, flash_mode 0
[   23.088932] INFO: flash mode error, cmd 0x04, flash_mode 0
[   23.342403] INFO: flash mode error, cmd 0x04, flash_mode 0
[   23.593998] INFO: flash mode error, cmd 0x04, flash_mode 0
[   23.839912] INFO: flash mode error, cmd 0x04, flash_mode 0
[   24.091479] INFO: flash mode error, cmd 0x04, flash_mode 0
[   24.355001] INFO: flash mode error, cmd 0x04, flash_mode 0
[   24.608723] INFO: flash mode error, cmd 0x04, flash_mode 0
[   24.871379] INFO: flash mode error, cmd 0x04, flash_mode 0
[   25.140871] INFO: flash mode error, cmd 0x04, flash_mode 0
[   25.415570] INFO: flash mode error, cmd 0x04, flash_mode 0
[   25.664697] INFO: flash mode error, cmd 0x04, flash_mode 0
[   25.914071] INFO: flash mode error, cmd 0x04, flash_mode 0
[   26.179802] INFO: flash mode error, cmd 0x04, flash_mode 0
[   26.437346] INFO: flash mode error, cmd 0x04, flash_mode 0
[   26.690864] INFO: flash mode error, cmd 0x04, flash_mode 0
[   26.962246] INFO: flash mode error, cmd 0x04, flash_mode 0
[   27.226832] INFO: flash mode error, cmd 0x04, flash_mode 0
[   27.482077] INFO: flash mode error, cmd 0x04, flash_mode 0
[   27.753624] INFO: flash mode error, cmd 0x04, flash_mode 0
[   28.007064] INFO: flash mode error, cmd 0x04, flash_mode 0
[   28.273686] INFO: flash mode error, cmd 0x04, flash_mode 0
[   28.540562] INFO: flash mode error, cmd 0x04, flash_mode 0
[   28.794111] INFO: flash mode error, cmd 0x04, flash_mode 0
[   29.059699] INFO: flash mode error, cmd 0x04, flash_mode 0
[   29.328571] INFO: flash mode error, cmd 0x04, flash_mode 0
[   29.581507] INFO: flash mode error, cmd 0x04, flash_mode 0
[   29.841954] INFO: flash mode error, cmd 0x04, flash_mode 0
[   30.115158] INFO: flash mode error, cmd 0x04, flash_mode 0
[   30.378122] INFO: flash mode error, cmd 0x04, flash_mode 0
[   30.638967] INFO: flash mode error, cmd 0x04, flash_mode 0
[   30.896434] INFO: flash mode error, cmd 0x04, flash_mode 0
[   31.175843] INFO: flash mode error, cmd 0x04, flash_mode 0
[   31.446323] INFO: flash mode error, cmd 0x04, flash_mode 0
[   31.711489] INFO: flash mode error, cmd 0x04, flash_mode 0
[   31.969252] INFO: flash mode error, cmd 0x04, flash_mode 0
[   32.232387] INFO: flash mode error, cmd 0x04, flash_mode 0
[   32.486390] INFO: flash mode error, cmd 0x04, flash_mode 0
[   32.752816] INFO: flash mode error, cmd 0x04, flash_mode 0
[   33.006932] INFO: flash mode error, cmd 0x04, flash_mode 0
[   33.268337] INFO: flash mode error, cmd 0x04, flash_mode 0
[   33.538781] INFO: flash mode error, cmd 0x04, flash_mode 0
[   33.802085] INFO: flash mode error, cmd 0x04, flash_mode 0
[   34.058771] INFO: flash mode error, cmd 0x04, flash_mode 0
[   34.326326] INFO: flash mode error, cmd 0x04, flash_mode 0
[   34.583913] INFO: flash mode error, cmd 0x04, flash_mode 0
[   34.864907] INFO: flash mode error, cmd 0x04, flash_mode 0
[   34.900582] done.
[   34.906371] jffs2: notice: (1095) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   35.107835] overlayfs: upper fs does not support tmpfile.


dts

// SPDX-License-Identifier: GPL-2.0
/dts-v1/;

#include "RTL8197FVG.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/ {
	compatible = "netis,n2", "realtek,rtl8197f-soc";
	model = "NETIS N2";

	aliases {
		led-boot = &led_status;
		led-failsafe = &led_status;
		led-running = &led_status;
		led-upgrade = &led_status;
	};

	memory {
		device_type = "memory";
		reg = <0x0 0x4000000>;
	};

	chosen {
		bootargs = "console=ttyS0,38400";
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <20>;

		reset {
			label = "reset";
			gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};
	};

	gpio-leds {
		compatible = "gpio-leds";

		led_status: power {
			label = "gwr1200ac:green:power";
			gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
			default-state = "on";
		};

	 	wlan_2g {
	 		label = "gwr1200ac:green:wlan_2g";
	 		gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
	 	};

	 	wps {
	 		label = "gwr1200ac:green:wps";
	 		gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
	 	};

	 	wlan_5g {
			label = "gwr1200ac:green:wlan_5g";
			gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
		};

	};
};

&gpio0 {
	status = "okay";
};

&gpio1 {
	status = "okay";
};

&gpio2 {
	status = "okay";
};

&spi0 {
	status = "okay";

	m25p80@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <41000000>;

		partition@0 {
			label = "boot";
			reg = <0x0 0x20000>;
			read-only;
		};

		partition@20000 {
			label = "config";
			reg = <0x20000 0x10000>;
			read-only;
		};

		partition@30000 {
			label = "firmware";
			reg = <0x30000 0x7C0000>;
		};
	};
};

buils with this sources https://github.com/anlix-io/openwrt/tree/feature/c7

1 Like

Hi, any news from porting of this device ? Thank you

1 Like

no success with this router yet. I stopped doing it