This you see because I start making DTS file for it.
Original firmware log:
U-Boot 1.1.3 (Mar 21 2016 - 16:55:00)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
enable ephy clock...done. rf reg 29 = 5
SSC disabled.
spi_wait_nsec: 29
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 4.1.1.0
--------------------------------------------
ASIC 7620_MP (Port5<->Phy)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Mar 21 2016 Time:16:55:00
Cameo Version: v1.00 Build:02
Module Name: D-Link DAP-1620A1
============================================
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
raspi_read: from:50000 len:40
raspi_read: from:4f0000 len:40
=================================================
Check image validation:
Image1 Header Magic Number --> OK
Image2 Header Magic Number --> OK
Image1 Header Checksum --> OK
Image2 Header Checksum --> OK
Image1 Data Checksum --> raspi_read: from:50040 len:dc7e6
OK
Image2 Data Checksum --> raspi_read: from:4f0040 len:c9469
OK
Image1: OK Image2: OK
Both images are OK!!!
=================================================
Please choose the operation:
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.
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: Linux Kernel Image
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 903142 Bytes = 882 kB
Load Address: 80000000
Entry Point: 8000c310
raspi_read: from:50040 len:dc7e6
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 8000c310) ...
## Giving linux memsize in MB, 64
Starting kernel ...
LINUX started...
THIS IS ASIC
Linux version 2.6.36.x (root@roger-1620a-desktop) (gcc version 3.4.2) #2 Mon Dec 11 10:56:07 CST 2017
The CPU feqenuce set to 580 MHz
PCIE: bypass PCIe DLL.
PCIE: Elastic buffer control: Addr:0x68 -> 0xB4
disable all power about PCIe
CPU revision is: 00019650 (MIPS 24Kc)
Software DMA cache coherency
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock5 console=ttyS0,57600 root=31:05 rootfstype=squashfs init=/sbin/init
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0003a00b
Readback ErrCtl register=0003a00b
Memory: 61980k/65536k available (2209k kernel code, 3556k reserved, 339k data, 168k init, 0k highmem)
NR_IRQS:128
console [ttyS1] enabled
Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
RALINK_GPIOMODE = 1a301d
RALINK_GPIOMODE = 18301d
PPLL_CFG1=0xe48000
MT7620 PPLL lock
PPLL_DRV =0x80080504
start PCIe register access
RALINK_RSTCTRL = 2400000
RALINK_CLKCFG1 = 75afffc0
*************** MT7620 PCIe RC mode *************
PCIE0 enabled
Port 0 N_FTS = 1b105000
init_rt2880pci done
bio: create slab <bio-0> at 0
vgaarb: loaded
pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
pci 0000:00:00.0: BAR 1: set to [mem 0x20200000-0x2020ffff] (PCI address [0x20200000-0x2020ffff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
pci 0000:01:00.0: BAR 0: set to [mem 0x20000000-0x200fffff 64bit] (PCI address [0x20000000-0x200fffff]
pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0: bridge window [io disabled]
pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
BAR0 at slot 0 = 0
bus=0x0, slot = 0x0
res[0]->start = 0
res[0]->end = 0
res[1]->start = 20200000
res[1]->end = 2020ffff
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
bus=0x1, slot = 0x0
res[0]->start = 20000000
res[0]->end = 200fffff
res[1]->start = 0
res[1]->end = 0
res[2]->start = 0
res[2]->end = 0
res[3]->start = 0
res[3]->end = 0
res[4]->start = 0
res[4]->end = 0
res[5]->start = 0
res[5]->end = 0
Switching to clocksource Ralink Systick timer
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 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: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Load Ralink Timer0 Module
Load Ralink Timer1 Module
squashfs: version 4.0 (2009/01/31) Phillip Lougher
msgmni has been set to 121
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered (default)
Ralink gpio driver initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x10000500 (irq = 37) is a 16550A
serial8250: ttyS1 at MMIO 0x10000c00 (irq = 12) is a 16550A
brd: module loaded
deice id : c2 20 17 c2 20 (2017c220)
MX25L6405D(c2 2017c220) (8192 Kbytes)
mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536
Creating 9 MTD partitions on "raspi":
0x000000000000-0x000000800000 : "ALL"
0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000040000 : "nvram"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000140000 : "linux4"
0x000000140000-0x0000004e0000 : "rootfs"
0x0000004e0000-0x0000004f0000 : "LANG"
0x0000004f0000-0x0000005c0000 : "linux4b"
0x0000005c0000-0x000000800000 : "rootfsb"
rdm_major = 253
SMACCR1 -- : 0x0000000c
SMACCR0 -- : 0x43762077
Ralink APSoC Ethernet Driver Initilization. v3.1 512 rx/tx descriptors allocated, mtu = 1500!
SMACCR1 -- : 0x0000000c
SMACCR0 -- : 0x43762077
PROC INIT OK!
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
Freeing unused kernel memory: 168k freed
init started: BusyBox v1.01 (2017.12.11-02:52+0000) multi-call binary
Algorithmics/MIPS FPU Emulator v1.5
devpts: called with bogus options
init NVRAM_SPACE from mtdblock size
init nvram memory map size: 0x10000 order of pages: 0x4
nvram module init:
/dev/nvram major number 225 glues to mtd: "nvram" size: 0x00010000
nvram_space: 0x00010000 mapped via mmap(2)
openfile :/etc/sysinfo
read_mp_info: read 65536 data from /dev/mtdblock3 successfully
openfile :/etc/nvram.default
BusyBox v1.01 (2017.12.11-02:52+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
/ # rm: cannot remove `/var/wizard_lang.js': No such file or directory
eth2: Cannot assign requested address
umount: cannot umount /tmp/lang_pack: No such file or Raeth v3.1 (directory
Tasklet,SkbRecycle)
phy_tx_ring = 0x03fd6000, tx_ring = 0xa3fd6000
phy_rx_ring0 = 0x03fd8000, rx_ring0 = 0xa3fd8000
SMACCR1 -- : 0x0000409b
SMACCR0 -- : 0xcd7c27ce
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
umount: cannot umount /tmp/lang_pack: No such file or directory
eth2: Cannot assign requested address
mount: mounting /dev/mtdblock6 on /tmp/lang_pack failed
device eth2 entered promiscuous mode
killall: syslogd: no process killed
killall: klogd: no process killed
Thu Jan 1 00:00:00 UTC 2015
/tmp/password has been created
2015-01-01 00:00:00: (network.c.247) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
checksum=0x849E141B
openfile :/etc/nvram.default
nvram: ap_wlan0_5g_auto_channel_enable="0", but default is "br0: port 1(eth2) entering forwarding state
1"
nvram: ap_wlbr0: port 1(eth2) entering forwarding state
an0_11n_protection="20", but default is "auto"
nvram: ap_wlan0_auto_channel_enable="0", but default is "1"
nvram: ap_wlan0_channel="4", but default is "11"
nvram: ap_wlan0_disablecoext="0", but default is "1"
nvram: cookie="1144823555", but default is "X"
nvram: wlan0_5g_enable="0", but default is "1"
nvram: ap_ipv6_wan_proto="link_local", but default is "ipv6_autoconfig"
nvram: default_downlink_ssid="0", but default is "1"
nvram: setup_wizard_ap="0", but default is "1"
nvram: wlan1_psk_pass_phrase="", but default is "1234567890"
nvram: wlan0_disable_wps_pbc="1", but default is "0"
nvram: wlan0_wps_configured_mode="1", but default is "5"
nvram: wlan0_wps_enable="0", but default is "1"
nvram: wlan0_disablecoext="0", but default is "1"
nvram: wlan0_11n_protection="20", but default is "auto"
nvram: wlan0_auto_channel_enable="0", but default is "1"
nvram: wlan0_channel="4", but default is "11"
nvram: wlan0_5g_auto_channel_enable="0", but default is "1"
nvram: dhcpc_enable="0", but default is "1"
nvram: ap_primary_dns="192.168.2.1", but default is "0.0.0.0"
nvram: ap_gateway="192.168.2.50", but default is "0.0.0.0"
nvram: ap_ipaddr="192.168.2.50", but default is "192.168.0.50"
nvram: admin_password="abc123test", but default is ""
nvram: wlan1_enable="0", but default is "1"
nvram: rp_mode="0", but default is "1"
default_val=0
===============DUTinfo_file detail=============
[Type]0x0001[Length]8[Value]DAP-1620
[Type]0x0002[Length]2[Value]A2
[Type]0x0004[Length]1[Value]0
[Type]0x0005[Length]7[Value]1.06b04
[Type]0x0009[Length]17[Value]40:9b:cd:7c:27:ce
[Type]0x000A[Length]17[Value]40:9b:cd:7c:27:ce
[Type]0x000B[Length]17[Value]40:9b:cd:7c:27:d0
[Type]0x000C[Length]4[Value]0x37
[Type]0x0010[Length]10[Value]dlink-27CE
[Type]0x0011[Length]15[Value]dlink-27CE-5GHz
[Type]0x0012[Length]10[Value]ayyce34805
[Type]0x0013[Length]12[Value]abc123test
[Type]0x0014[Length]10[Value]0x849E141B
[Type]0x001A[Length]12[Value]201760101662
[Type]0x000D[Length]9[Value]/var/tmp/
[Type]0x000E[Length][Value]
set_5G_wlan_basic: >>>> wlan0_5g_dfs_enable[0]
set_5G_wlan_basic: A11>>>> forced_enable[0] wlan1_enable[0] current_system_mode[0] wlan0_5g_dfs_enable[0]
set_5G_wlan_basic: A22>>>> wlan1_enable[0] current_system_mode[0]
register rt2860
=== pAd = c0582000, size = 2286352 ===
<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
pAd->CSRBaseAddress =0xc0480000, csr_addr=0xc0480000!
device_id =0x7662
==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0x20a
RtmpChipOpsEepromHook::e2p_type=0, inf_Type=5
RtmpEepromGetDefault::e2p_dafault=2
NVM is efuse and the information is too less to bring up the interface
Force to use Flash mode
NVM is FLASH mode (pAd->flash_offset = 0x48000)
get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=rai
===> rt2880_probe
=== pAd = c07b3000, size = 2286352 ===
<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
RtmpChipOpsEepromHook::e2p_type=0, inf_Type=4
RtmpEepromGetDefault::e2p_dafault=2
NVM is FLASH mode (pAd->flash_offset = 0x40000)
get_dev_name_prefix(): dev_idx = 0, dev_name_prefix=ra
ra0: at CSR addr 0xb0180000, IRQ 4.
<=== rt2880_probe
RX[0] DESC a2f35000 size = 4096
RX[1] DESC a2f36000 size = 4096
cfg_mode=9
cfg_mode=9
wmode_band_equal(): Band Equal!
APSDCapable[0]=0
APSDCapable[1]=0
APSDCapable[2]=0
APSDCapable[3]=0
APSDCapable[4]=0
APSDCapable[5]=0
APSDCapable[6]=0
APSDCapable[7]=0
APSDCapable[8]=0
APSDCapable[9]=0
APSDCapable[10]=0
APSDCapable[11]=0
APSDCapable[12]=0
APSDCapable[13]=0
APSDCapable[14]=0
APSDCapable[15]=0
default ApCliAPSDCapable[0]=0
pAd->ed_threshold = 90
pAd->ed_chk = 2
pAd->ed_false_cca_threshold = 3000
IF(ra0) The length of WAPI PSKPassPhrase is invalid(len=0).
1. Phy Mode = 14
Country Region from e2p = ffff
E2PROM: D0 target power=0xff1e
E2PROM: 40 MW Power Delta= 0
2. Phy Mode = 14
3. Phy Mode = 14
AntCfgInit: primary/secondary ant 0/1
D1 = 1, D2 = 3, CalCode = 5 !!!
RT6352_Temperature_Init : BBPR49 = 0x1
RT6352_Temperature_Init : TemperatureRef25C = 0xfffffff7
Current Temperature from BBP_R49=0xfffffff1
TX BW Filter Calibration !!!
RX BW Filter Calibration !!!
LOFT Calibration Done!
IQCalibration Start!
IQCalibration Done! CH = 0, (gain= 1, phase=3d)
IQCalibration Start!
IQCalibration Done! CH = 1, (gain= f, phase= 2)
TX IQ Calibration Done!
ChipStructAssign(): RALINK6352 hook !
MCS Set = ff ff 00 00 00
APStartUp(): AP Set CentralFreq at 4(Prim=4, HT-CentCh=4, VHT-CentCh=0, BBP_BW=0)
@@@ ed_monitor_init : ===>
@@@ ed_monitor_init : <===
Main bssid = 40:9b:cd:7c:27:ce
<==== rt28xx_init, Status=0
get_dev_name_prefix(): dev_idx = 0, dev_name_prefix=apcli
RTMPDrvOpen(1):Check if PDMA is idle!
RTMPDrvOpen(2):Check if PDMA is idle!
@@@ ed_monitor_init : ===>
@@@ ed_monitor_init : <===
device ra0 entered promiscuous mode
br0: port 2(ra0) entering forwarding state
br0: port 2(ra0) entering forwarding state
build time =
20141115060606a
rom patch for E3 IC
platform =
ALPS
hw/sw version =
▒▒
patch version =
FW Version:0.0.00 Build:1
Build Time:201507311614____
fw for E3 IC
RX[0] DESC a36a6000 size = 4096
RX[1] DESC a36a7000 size = 4096
cfg_mode=14
cfg_mode=14
wmode_band_equal(): Band Not Equal!
APSDCapable[0]=0
APSDCapable[1]=0
APSDCapable[2]=0
APSDCapable[3]=0
APSDCapable[4]=0
APSDCapable[5]=0
APSDCapable[6]=0
APSDCapable[7]=0
APSDCapable[8]=0
APSDCapable[9]=0
APSDCapable[10]=0
APSDCapable[11]=0
APSDCapable[12]=0
APSDCapable[13]=0
APSDCapable[14]=0
APSDCapable[15]=0
default ApCliAPSDCapable[0]=0
IF(ra0) The length of WAPI PSKPassPhrase is invalid(len=0).
1. Phy Mode = 49
get_chl_grp:illegal channel (167)
get_chl_grp:illegal channel (167)
get_chl_grp:illegal channel (169)
get_chl_grp:illegal channel (169)
get_chl_grp:illegal channel (171)
get_chl_grp:illegal channel (171)
/home/AthSDK/wireless/MT76x2E_24G_5G_v3040P/rlt_wifi_ap/../rlt_wifi/chips/mt76x2.c:2915 assert (ad->TxPower[choffset].Channel == 42)failed
Country Region from e2p = ffff
mt76x2_read_temp_info_from_eeprom:: is_temp_tx_alc=0, temp_tx_alc_enable=0
mt76x2_read_tx_alc_info_from_eeprom:: is_ePA_mode=0, ePA_type=3
mt76x2_read_tx_alc_info_from_eeprom:: [5G band] high_temp_slope=0, low_temp_slope=0
mt76x2_read_tx_alc_info_from_eeprom:: [2G band] high_temp_slope=0, low_temp_slope=0
mt76x2_read_tx_alc_info_from_eeprom:: [5G band] tc_lower_bound=0, tc_upper_bound=0
mt76x2_read_tx_alc_info_from_eeprom:: [2G band] tc_lower_bound=0, tc_upper_bound=0
mt76x2_get_external_lna_gain::LNA type=0x11, BLNAGain=0x0, ALNAGain0=0x0, ALNAGain1=0x0, ALNAGain2=0x0
2. Phy Mode = 49
3. Phy Mode = 49
andes_pci_fw_init
0x1300 = 00073200
AntCfgInit: primary/secondary ant 0/1
andes_load_cr:cr_type(2)
ChipStructAssign(): MT76x2 hook !
MCS Set = ff ff 00 00 01
mt76x2_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=36, HT-CentCh=38, VHT-CentCh=42
TX0 power compensation = 0x38
TX1 power compensation = 0x38
APStartUp(): AP Set CentralFreq at 42(Prim=36, HT-CentCh=38, VHT-CentCh=42, BBP_BW=2)
mt76x2_calibration(channel = 42)
@@@ ed_monitor_init : ===>
@@@ ed_monitor_init : <===
Main bssid = 40:9b:cd:7c:27:d0
mt76x2_reinit_agc_gain:original agc_vga0 = 0x5c, agc_vga1 = 0x5c
mt76x2_reinit_agc_gain:updated agc_vga0 = 0x5c, agc_vga1 = 0x5c
mt76x2_reinit_hi_lna_gain:original hi_lna0 = 0x27, hi_lna1 = 0x27
mt76x2_reinit_hi_lna_gain:updated hi_lna0 = 0x27, hi_lna1 = 0x27
original vga value(chain0) = 5c
original vga value(chain1) = 5c
<==== rt28xx_init, Status=0
get_dev_name_prefix(): dev_idx = 1, dev_name_prefix=apclii
RTMPDrvOpen(1):Check if PDMA is idle!
RTMPDrvOpen(2):Check if PDMA is idle!
@@@ ed_monitor_init : ===>
@@@ ed_monitor_init : <===
device rai0 entered promiscuous mode
br0: port 3(rai0) entering forwarding state
br0: port 3(rai0) entering forwarding state
device rai0 left promiscuous mode
br0: port 3(rai0) entering forwarding state
@@@ APStop: go to ed_monitor_exit()!!
@@@ ed_monitor_exit : ===>
@@@ ed_monitor_exit : <===
andes_pci_erasefw
==>rlt_wlan_chip_onoff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0x20b, Reg-WlanFunCtrl=0x20b