openwrt
openwrt copied to clipboard
ramips: Add Support for Hanyang HYC-G920
SoC: MediaTek MT7621AT RAM: 256M (SK hynix H5TQ2G63FFR) FLASH: 16MB (Winbond 25Q128FVSG) WiFi: MediaTek MT7602EN bgn 2SS WiFi: MediaTek MT7612EN nac 2SS BTN: Reset LED: Power RED
WAN Green LAN {1-4} WiFi 2.4 GHz Blue WiFi 5 GHz Blue USB Green UART: GND - 3V3 - TX - RX - GND / 57600-8N1 RESET BTN @ gpio 3 Active low Power LED @ gpio 0 Active low USB LED @ gpio 18 Active low
UART Menu
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.
Uboot can be replaced with BreedWeb boot loader for Phicomm K2P A1/A2 Choose Option 9 and follow instructions.
Otherwise Option 4 to enter Boot command line interface.
This file written based on ASUS RT-AC57U dts file.
Signed-off-by: WiFi Station [email protected]
@momothefox the commit title should be mediatek: .....
Also the commit description should include the installation steps and all the device details (aka add the missing installation steps and the data that you put in this pr)
It's a MT7621 (MIPS) device, not a MediaTek ARM (such as MT7622, MT7623, ...). So the prefix should be ramips:
.
@musashino205 got confused by the mediatek soc....
Also the commit description should include the installation steps and all the device details (aka add the missing installation steps and the data that you put in this pr)
Please Check updated Commit
I applied what checked as error in test details
You have updated the PR comment, but the commit message was not updated. You need to update the commit message and do force-push by Git CLI.
git commit --amend
(copy contents from PR comment to commit message and fix title)
git push -f
You have updated the PR comment, but the commit message was not updated. You need to update the commit message and do force-push by Git CLI.
git commit --amend (copy contents from PR comment to commit message and fix title) git push -f
Thanks Allot, This is my 1st pull request. i did update the commit message now. please check .
https://github.com/momothefox/openwrt/commit/0311b6bc3a93a9b85caff23b26b1101f9f32976e
Also the Sob should have a real name :( (hoping it's not a problem)
Well guess it's really to handle case when the device is backported.
Il Sab 11 Giu 2022, 16:24 mans0n @.***> ha scritto:
@.**** commented on this pull request.
In target/linux/ramips/image/mt7621.mk https://github.com/openwrt/openwrt/pull/10015#discussion_r895031658:
@@ -699,6 +699,16 @@ define Device/gnubee_gb-pc2 endef TARGET_DEVICES += gnubee_gb-pc2
+define Device/hanyang_hyc-g920
- $(Device/dsa-migration)
I still don't understand well but Adrian once told me that it should not be skipped even for new devices. #4416 (comment) https://github.com/openwrt/openwrt/pull/4416#discussion_r691544161
— Reply to this email directly, view it on GitHub https://github.com/openwrt/openwrt/pull/10015#discussion_r895031658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE2ZMQSGPW2Z6NZO7PXMZE3VOSOQZANCNFSM5YIOU4KA . You are receiving this because you commented.Message ID: @.***>
As you are the first-time contributor and you said you copied RT-AC57U dts file, I request you to check these (again):
- Does "LED-Power" regulator exist on your device? (What happens if you remove the node?)
- Does the MAC address match that of stock firmware? (lan, wan, wlan)
- Does "LED-Power" regulator exist on your device? (What happens if you remove the node?)
Well i do not understand what is regulator is but Power led is Working as it should work , flashing while upgrading firmware and can be programmed to work as heartbeat or always on or network activity or timer. and it is working .
- Does the MAC address match that of stock firmware? (lan, wan, wlan)
this is did not check but after i checked now. WLAN Match stock MAC LAN and WAN did not Match Stock MAC but generated random MAC "WAN and LAN with same MAC"
So i checked out Breed Web found out it did not read LAN and WAN MAC as i am using boot loader for Phicomm K2P A1/A2 So i manually changed MAC for LAN and WAN from Breed Web interface and now it is reading correct MAC address for all Interfaces.
Well i do not understand what is regulator is but Power led is Working as it should work , flashing while upgrading firmware and can be programmed to work as heartbeat or always on or network activity or timer. and it is working .
Wait, the device has "power" LED and "status" LED. And you're using the power LED as led-status
. Then what about the status LED?
IIUC the regulator should be able to turn all the LED on/off. If the device does not have the feature, please drop the node.
So i checked out Breed Web found out it did not read LAN and WAN MAC as i am using boot loader for Phicomm K2P A1/A2 So i manually changed MAC for LAN and WAN from Breed Web interface and now it is reading correct MAC address for all Interfaces.
What? My guess is that it does not store MAC address at offset 0xe000 so random address was used, but you manually changed it and that's why it shows the correct address now. But that is not the correct way to handle it, because that means every new user should manually change their MAC addresses. There should be the correct MAC address stored somewhere in the factory partition and you really should use it.
Wait, the device has "power" LED and "status" LED. And you're using the power LED as
led-status
. Then what about the status LED? IIUC the regulator should be able to turn all the LED on/off. If the device does not have the feature, please drop the node.
No Status LED i am not using Power LED as status LED but i can do so. LEDs that you can control are Power, USB, WiFi5, WiFi2
What? My guess is that it does not store MAC address at offset 0xe000 so random address was used, but you manually changed it and that's why it shows the correct address now. But that is not the correct way to handle it, because that means every new user should manually change their MAC addresses. There should be the correct MAC address stored somewhere in the factory partition and you really should use it.
That is because breed web boot loader is not made for this device. and uboot loader is blocked in some patches so i have no other option except to use breed web
i am using my custom built firmware images. but i thought i can make a contribution to the openwrt community, so anybody could use openwrt with this device.
No Status LED i am not using Power LED as status LED but i can do so. LEDs that you can control are Power, USB, WiFi5, WiFi2
I'm confused. As I see the pictures linked above, the leftmost red LED is named "power" and the rightmost green LED is named "status". And you've set the "power" LED as status LED via led-boot
alias. So you mean you cannot control the "status" LED?
That is because breed web boot loader is not made for this device.
Right. So you need to find out the actual position of the MAC address. Could you let me know the label MAC address written on the case and the Wi-Fi MAC address stored at 0x4 @ factory partition?
and uboot loader is blocked in some patches so i have no other option except to use breed web
Could you elaborate? Why and how is it blocked?
And please note that we don't accept pseudonym in the Signed-off-by tag. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=HEAD#n367
I'm confused. As I see the pictures linked above, the leftmost red LED is named "power" and the rightmost green LED is >named "status". And you've set the "power" LED as status LED via led-boot alias. So you mean you cannot control the "status" >LED?
The leftmost red LED is Power. and it works as status LED when doing firmware upgrades. and on boot. The rightmost Green LED is Status for USB it has nothing to do with power. Both of them Can be configured
Right. So you need to find out the actual position of the MAC address. Could you let me know the label MAC address written on the case and the Wi-Fi MAC address stored at 0x4 @ factory partition?
my only device i had i already flashed breedweb on. i will try to get another device or full dumb.
Could you elaborate? Why and how is it blocked?
MT7621 # printenv
bootcmd=tftp
bootdelay=3
baudrate=115200
ethaddr="00:21:F2:00:00:00"
ipaddr=192.168.100.55
serverip=192.168.100.100
debug=0
config_size=0x20000
firmware_size=0x7a0000
hw_device=G902
hw_version=V2.1
enable_console=1
kernel_zone=0
root_zone=1
cert=0
macstr=454C0AFD81E76123
serial_num=HG9A1708001619
test=0
loader_ver=V3.24(Aug 7 2019 09:47:48)
firmware_zone=0
stdin=serial
stdout=serial
stderr=serial
i remember i changed firmware size to match my firmware image.
MT7621 # tftpboot 192.168.100.100 g920.bin
netboot_common, argc= 3
NetTxPacket = 0x8FFE61C0
KSEG1ADDR(NetTxPacket) = 0xAFFE61C0
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
ETH_STATE_ACTIVE!!
TFTP from server 192.168.100.100; our IP address is 192.168.100.55
Filename 'g920.bin'.
TIMEOUT_COUNT=10,Load address: 0x192
Loading: checksum bad
Got ARP REPLY, set server/gtwy eth addr (64:51:06:a0:28:81)
Got it
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################Got ARP REQUEST, return our IP
################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################
done
Bytes transferred = 8205771 (7d35cb hex)
NetBootFileXferSize= 007d35cb
after that i failed to boot my firmware image. i do not remember every thing but i will start all over again to see what can we do with your guidance.
You probably need a rebase to make your commit on a top.
git rebase -i origin/master
and then force push it here
Sorry for my late response, I was a bit busy for a while...
The rightmost Green LED is Status for USB it has nothing to do with power.
Now I get it, thanks for your explanation. I wonder why it is not labeled just as "USB"...
i remember i changed firmware size to match my firmware image.
If the stock U-Boot can boot OpenWrt image just with an env variable change, that would be better...
So I want you to check:
- The MAC addresses of the stock firmware (and whether those exist in the "factory" partition)
- What happens if you drop
led-regulator
node entirely - If you can set
spi-max-frequency
to 40MHz without any issue
Sorry for my late response, I was a bit busy for a while...
It is ok nothing to worry about
If the stock U-Boot can boot OpenWrt image just with an env variable change, that would be better...
i could not manage to get it to work
So I want you to check:
- The MAC addresses of the stock firmware (and whether those exist in the "factory" partition)
- What happens if you drop
led-regulator
node entirely- If you can set
spi-max-frequency
to 40MHz without any issue
I do not have a stock device now, i will try to bring one soon
Sorry for my late response, I got a stock device with original uboot
If the stock U-Boot can boot OpenWrt image just with an env variable change, that would be better...
I managed to boot initramfs image via tftp device boot menu
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
set GPIO 8 and 19 to 1 !
using option 1 but unfortunately the system generated random MAC address as it was unable to locate factory MACs
So I want you to check:
- The MAC addresses of the stock firmware (and whether those exist in the "factory" partition)
original boot generating these partitions
Creating 15 MTD partitions on "raspi":
0x000000000000-0x000001000000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Mac"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x0000007f0000 : "RootFs"
0x0000007f0000-0x0000009f0000 : "Kernel_bak"
0x0000009f0000-0x000000f90000 : "RootFs_bak"
0x000000050000-0x0000007f0000 : "Kernel_RootFs"
0x0000007f0000-0x000000f90000 : "Kernel_RootFs_bak"
0x000000f90000-0x000000f90000 : "RootFS_Data"
0x000000f90000-0x000000fb0000 : "SystemLog"
0x000000fb0000-0x000000fd0000 : "Config"
0x000000fd0000-0x000000ff0000 : "Config_bak"
0x000000ff0000-0x000001000000 : "Mac_bak"
so i don't know what to change in dts file to correct MACs
- What happens if you drop
led-regulator
node entirely- If you can set
spi-max-frequency
to 40MHz without any issue
i removed led-regulator and it seems have no affection also i changed spi-max-frequency to 40MHz and i did not have any issue also i changed the ttyS0 to 115200 so now i can see boot on UART console.
Any advice ?
Here are parts of Original Boot log. it might help suggesting changes to dts file.
flash manufacture id: ef, device id 40 18
W25Q128BV(ef 40180000) (16384 Kbytes)
mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
hw_device==
Creating 15 MTD partitions on "raspi":
0x000000000000-0x000001000000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Mac"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x0000007f0000 : "RootFs"
0x0000007f0000-0x0000009f0000 : "Kernel_bak"
0x0000009f0000-0x000000f90000 : "RootFs_bak"
0x000000050000-0x0000007f0000 : "Kernel_RootFs"
0x0000007f0000-0x000000f90000 : "Kernel_RootFs_bak"
0x000000f90000-0x000000f90000 : "RootFS_Data"
0x000000f90000-0x000000fb0000 : "SystemLog"
0x000000fb0000-0x000000fd0000 : "Config"
0x000000fd0000-0x000000ff0000 : "Config_bak"
0x000000ff0000-0x000001000000 : "Mac_bak"
rdm_major = 253
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x432880f5
Ralink APSoC Ethernet Driver Initilization. v3.1 512 rx/tx descriptors allocated, mtu = 1500!
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x4328807f
PROC INIT OK!
set LAN/WAN WLLLL
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x4328807f
GDMA2_MAC_ADRH -- : 0x0000000c
GDMA2_MAC_ADRL -- : 0x4328802b
eth3: ===> VirtualIF_open
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
GDMA2_FWD_CFG = 20710000
ra2880stop()...Done
eth3: ===> VirtualIF_close
Free TX/RX Ring Memory!
GDMA2_MAC_ADRH -- : 0x00000021
GDMA2_MAC_ADRL -- : 0xf2000000
eth3: ===> VirtualIF_open
Raeth v3.1 (Tasklet)
set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
phy_tx_ring = 0x0f65c000, tx_ring = 0xaf65c000
phy_rx_ring0 = 0x0f65e000, rx_ring0 = 0xaf65e000
change HW-TRAP to 0x115c8f
set LAN/WAN WLLLL
GMAC1_MAC_ADRH -- : 0x00000021
GMAC1_MAC_ADRL -- : 0xf2000000
eth3: ===> VirtualIF_open
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
GDMA2_FWD_CFG = 20710000
muti-wan.sh setup wired
ra1
Chain 'PREROUTING' doesn't exist.
phy_link=wired
##muti-wan.sh setup##
index=1;wan_id=1;wan_vid=1;is_br=Route;key_word=tr069_goahead_telnet_snmp_sip_rtp_internet;bind_lan=;bind_wlan=;tag_mode=0;is_shared_vlan=
eth3: ===> VirtualIF_close
GDMA2_MAC_ADRH -- : 0x00000021
GDMA2_MAC_ADRL -- : 0xf2000001
eth3: ===> VirtualIF_open
wanif=eth3;is_shared_vlan=
full boot log
## Booting image at c03f0000 ...
raspi_read: from:7f0000 len:40
Image Name: Linux Kernel Image
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 2097088 Bytes = 2 MB
Load Address: 80001000
Entry Point: 8000d1d0
raspi_read: from:7f0040 len:1fffc0
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Kernel command line: console=ttyS1,115200n8 ramsize=256 hw_device=G902 firmware_zone=1 config_size=0x20000 firmware_size=0x7a0000 root=1f0d
No initrd
## Transferring control to Linux (at address 8000d1d0) ...
## Giving linux memsize in MB, 256
Starting kernel ...
LINUX started...
THIS IS ASIC
Linux version 2.6.36 (root@flyingvoice) (gcc version 4.6.3 (Buildroot 2012.11.1) ) #1 SMP Fri Aug 14 19:16:19 CST 2020
The CPU feqenuce set to 880 MHz
GCMP present
CPU revision is: 0001992f (MIPS 1004Kc)
Software DMA cache coherency
Determined physical RAM map:
memory: 10000000 @ 00000000 (usable)
Zone PFN ranges:
Normal 0x00000000 -> 0x00010000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00010000
avail: cpu2 is not ready
avail: cpu3 is not ready
Detected 1 available secondary CPU(s)
PERCPU: Embedded 7 pages/cpu @81203000 s6848 r8192 d13632 u65536
pcpu-alloc: s6848 r8192 d13632 u65536 alloc=16*4096
pcpu-alloc: [0] 0 [0] 1
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttyS1,115200n8 root=/dev/mtdblock7 rootfstype=squashfs,jffs2 console=ttyS1
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Writing ErrCtl register=00023ad1
Readback ErrCtl register=00023ad1
Memory: 255524k/262144k available (2924k kernel code, 6620k reserved, 871k data, 200k init, 0k highmem)
Hierarchical RCU implementation.
Verbose stalled-CPUs detection is disabled.
NR_IRQS:128
Trying to install interrupt handler for IRQ24
Trying to install interrupt handler for IRQ25
Trying to install interrupt handler for IRQ22
Trying to install interrupt handler for IRQ9
Trying to install interrupt handler for IRQ10
Trying to install interrupt handler for IRQ11
Trying to install interrupt handler for IRQ12
Trying to install interrupt handler for IRQ13
Trying to install interrupt handler for IRQ14
Trying to install interrupt handler for IRQ16
Trying to install interrupt handler for IRQ17
Trying to install interrupt handler for IRQ18
Trying to install interrupt handler for IRQ19
Trying to install interrupt handler for IRQ20
Trying to install interrupt handler for IRQ21
Trying to install interrupt handler for IRQ23
Trying to install interrupt handler for IRQ26
Trying to install interrupt handler for IRQ27
Trying to install interrupt handler for IRQ28
Trying to install interrupt handler for IRQ15
Trying to install interrupt handler for IRQ8
Trying to install interrupt handler for IRQ29
Trying to install interrupt handler for IRQ30
Trying to install interrupt handler for IRQ31
console [ttyS1] enabled
Calibrating delay loop... 579.58 BogoMIPS (lpj=1159168)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
launch: starting cpu1
launch: cpu1 gone!
CPU revision is: 0001992f (MIPS 1004Kc)
Primary instruction cache 32kB, VIPT, , 4-waylinesize 32 bytes.
Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
Brought up 2 CPUs
Synchronize counters across 2 CPUs: done.
NET: Registered protocol family 16
release PCIe RST: RALINK_RSTCTRL = 7000000
PCIE PHY initialize
***** Xtal 40MHz *****
start MT7621 PCIe register access
RALINK_RSTCTRL = 7000000
RALINK_CLKCFG1 = 77ffeff8
*************** MT7621 PCIe RC mode *************
PCIE2 no card, disable it(RST&CLK)
pcie_link status = 0x3
RALINK_RSTCTRL= 3000000
*** Configure Device number setting of Virtual PCI-PCI bridge ***
RALINK_PCI_PCICFG_ADDR = 21007f2 -> 21007f2
PCIE0 enabled
PCIE1 enabled
interrupt enable status: 300000
Port 1 N_FTS = 1b105000
Port 0 N_FTS = 1b105000
config reg done
init_rt2880pci done
bio: create slab <bio-0> at 0
SCSI subsystem initialized
pci 0000:00:00.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:01.0: BAR 0: can't assign mem (size 0x80000000)
pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
pci 0000:00:01.0: BAR 9: assigned [mem 0x60300000-0x603fffff pref]
pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
pci 0000:00:00.0: BAR 1: set to [mem 0x60400000-0x6040ffff] (PCI address [0x60400000-0x6040ffff]
pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
pci 0000:00:01.0: BAR 1: set to [mem 0x60410000-0x6041ffff] (PCI address [0x60410000-0x6041ffff]
pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
pci 0000:01:00.0: BAR 0: set to [mem 0x60000000-0x600fffff 64bit] (PCI address [0x60000000-0x600fffff]
pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff 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 0x60000000-0x600fffff]
pci 0000:00:00.0: bridge window [mem 0x60100000-0x601fffff pref]
pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit]
pci 0000:02:00.0: BAR 0: set to [mem 0x60200000-0x602fffff 64bit] (PCI address [0x60200000-0x602fffff]
pci 0000:02:00.0: BAR 6: assigned [mem 0x60300000-0x6030ffff pref]
pci 0000:00:01.0: PCI bridge to [bus 02-02]
pci 0000:00:01.0: bridge window [io disabled]
pci 0000:00:01.0: bridge window [mem 0x60200000-0x602fffff]
pci 0000:00:01.0: bridge window [mem 0x60300000-0x603fffff pref]
BAR0 at slot 0 = 0
bus=0x0, slot = 0x0
res[0]->start = 0
res[0]->end = 0
res[1]->start = 60400000
res[1]->end = 6040ffff
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
BAR0 at slot 1 = 0
bus=0x0, slot = 0x1
res[0]->start = 0
res[0]->end = 0
res[1]->start = 60410000
res[1]->end = 6041ffff
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, irq=0x4
res[0]->start = 60000000
res[0]->end = 600fffff
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
bus=0x2, slot = 0x1, irq=0x18
res[0]->start = 60200000
res[0]->end = 602fffff
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 MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
4 CPUs re-calibrate udelay(lpj = 1167360)
Load Ralink Timer0 Module
Load Ralink Timer1 Module
Load Ralink Timer2 Module
squashfs: version 4.0 (2009/01/31) Phillip Lougher
JFFS2 version 2.2 (NAND) (SUMMARY) (ZLIB) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
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 0x1e000d00 (irq = 27) is a 16550A
serial8250: ttyS1 at MMIO 0x1e000c00 (irq = 26) is a 16550A
brd: module loaded
flash manufacture id: ef, device id 40 18
W25Q128BV(ef 40180000) (16384 Kbytes)
mtd .name = raspi, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
hw_device=G902
Creating 15 MTD partitions on "raspi":
0x000000000000-0x000001000000 : "ALL"
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Mac"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000250000 : "Kernel"
0x000000250000-0x0000007f0000 : "RootFs"
0x0000007f0000-0x0000009f0000 : "Kernel_bak"
0x0000009f0000-0x000000f90000 : "RootFs_bak"
0x000000050000-0x0000007f0000 : "Kernel_RootFs"
0x0000007f0000-0x000000f90000 : "Kernel_RootFs_bak"
0x000000f90000-0x000000f90000 : "RootFS_Data"
0x000000f90000-0x000000fb0000 : "SystemLog"
0x000000fb0000-0x000000fd0000 : "Config"
0x000000fd0000-0x000000ff0000 : "Config_bak"
0x000000ff0000-0x000001000000 : "Mac_bak"
rdm_major = 253
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x432880a6
Ralink APSoC Ethernet Driver Initilization. v3.1 512 rx/tx descriptors allocated, mtu = 1500!
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x43288001
PROC INIT OK!
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
PPTP driver version 0.8.5
IMQ driver loaded successfully.
Hooking IMQ after NAT on PREROUTING.
Hooking IMQ before NAT on POSTROUTING.
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (3992 buckets, 15968 max)
matchsize=264
GRE over IPv4 demultiplexor driver
gre: can't add protocol
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Linux
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 17
Bridge firewalling registered
Ebtables v2.0 registered
L2TP core driver, V2.0
PPPoL2TP kernel driver, V2.0
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
Registering the dns_resolver key type
E3C PROC INIT OK!
VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
Freeing unused kernel memory: 200k freed
init started: BusyBox v1.12.1 (2020-08-14 19:17:21 CST)
starting pid 44, tty '': '/etc_ro/rcS'
Algorithmics/MIPS FPU Emulator v1.5
mount: mounting none on /dev/pts failed: No such file or directory
mount: mounting none on /proc/bus/usb failed: No such file or directory
Ralink APSoC Hardware Watchdog Timer
watchdog feed time is 60
mknod: /dev/mtd13ro: File exists
mknod: /dev/mtd14: File exists
mknod: /dev/pts/0: Operation not permitted
mknod: /dev/pts/1: Operation not permitted
mknod: /dev/pts/2: Operation not permitted
mknod: /dev/pts/3: Operation not permitted
/etc_ro/rcS -> webinit=1
old_value=
old_name=DBID_SIP_SERVER_HOST_NAME
new_value= len=0
new_name=DBID_SIP_SERVER_HOSTNAME
##new_value= len=0
crc = 12345678
param_ver_cur=1229, param_ver_new=1229
Started WatchDog Timer.
FV_ERROR e3c_watchdog.c->main()->line.240 : app=ipphone action=voip.sh restart boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=goahead action=goahead.sh & boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=trfv action=tr069.sh restart boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=aps_cjhv.sh action=aps_cjhv.sh start& boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=ntpclient action=ntp.sh boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=udhcpc action=muti-wan.sh config wired boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=udhcpd action=config-udhcpd.sh -r 1 boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=syslog action=syslog.sh boot_array=(null)
FV_ERROR e3c_watchdog.c->main()->line.240 : app=snmpd action=snmpd.sh restart& boot_array=(null)
/sbin/syslog.sh -> webinit=1
offset=427,i=427, end=427
syslog: rows=427 level=7 trace=0 sockfile=[/var/syslogd],ex_offset=108
usb slowblink 18
led=18, on=5, off=5, blinks,=4000, reset=1, time=1
/sbin/syslog.sh -> webinit=1
Password for 'cjroot' changed
insmod: xt_DSCP.ko: module not found
insmod: xt_helper.ko: module not found
insmod: xt_mac.ko: module not found
offset=427,i=427, end=427
syslog: rows=427 level=7 trace=0 sockfile=[/var/syslogd],ex_offset=109
insmod: xt_mark.ko: module not found
insmod: xt_MARK.ko: module not found
insmod: xt_multiport.ko: module not found
insmod: xt_state.ko: module not found
insmod: xt_TCPMSS.ko: module not found
insmod: xt_webstr.ko: module not found
Raeth v3.1 (Tasklet)
set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
phy_tx_ring = 0x0f73c000, tx_ring = 0xaf73c000
phy_rx_ring0 = 0x0f73e000, rx_ring0 = 0xaf73e000
change HW-TRAP to 0x115c8f
set LAN/WAN WLLLL
GMAC1_MAC_ADRH -- : 0x0000000c
GMAC1_MAC_ADRL -- : 0x43288001
GDMA2_MAC_ADRH -- : 0x0000000c
GDMA2_MAC_ADRL -- : 0x4328803a
eth3: ===> VirtualIF_open
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
GDMA2_FWD_CFG = 20710000
ra2880stop()...Done
eth3: ===> VirtualIF_close
Free TX/RX Ring Memory!
GDMA2_MAC_ADRH -- : 0x00001853
GDMA2_MAC_ADRL -- : 0xe03192d8
eth3: ===> VirtualIF_open
Raeth v3.1 (Tasklet)
set CLK_CFG_0 = 0x40a00020!!!!!!!!!!!!!!!!!!1
phy_tx_ring = 0x0f744000, tx_ring = 0xaf744000
phy_rx_ring0 = 0x0f746000, rx_ring0 = 0xaf746000
change HW-TRAP to 0x115c8f
set LAN/WAN WLLLL
GMAC1_MAC_ADRH -- : 0x00001853
GMAC1_MAC_ADRL -- : 0xe03192d8
eth3: ===> VirtualIF_open
CDMA_CSG_CFG = 81000000
GDMA1_FWD_CFG = 20710000
GDMA2_FWD_CFG = 20710000
power on 0
led=0, on=4000, off=1, blinks,=1, reset=1, time=1
muti-wan.sh setup wired
MT7621 GE2 link rate to 100M
ra1 rai1 rai3
E3C: Link Status Changed - Port1 Link UP
Chain 'PREROUTING' doesn't exist.
phy_link=wired
##muti-wan.sh setup##
usb slowblink 18
led=18, on=5, off=5, blinks,=4000, reset=1, time=1
index=1;wan_id=1;wan_vid=1;is_br=Route;key_word=tr069_goahead_telnet_snmp_sip_rtp_internet;bind_lan=_lan1_lan2_lan3_lan4;bind_wlan=_ra0_rai0_ra1_rai1_ra2_rai2_ra3_rai3;tag_mode=0;is_shared_vlan=
eth3: ===> VirtualIF_close
GDMA2_MAC_ADRH -- : 0x00001853
GDMA2_MAC_ADRL -- : 0xe03192d9
eth3: ===> VirtualIF_open
wanif=eth3;is_shared_vlan=
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
vconfig: ioctl error for set_egress_map: Invalid argument
2
lan_pvid=2
lan_vif=eth2.2
device eth2.2 entered promiscuous mode
device eth2 entered promiscuous mode
br0: port 1(eth2.2) entering learning state
br0: port 1(eth2.2) entering learning state
lan_pvid=2;lan_vif=eth2.2
lan=lan1;is_bind=1;bind_lan=_lan1_lan2_lan3_lan4
lan=lan2;is_bind=1;bind_lan=_lan1_lan2_lan3_lan4
lan=lan3;is_bind=1;bind_lan=_lan1_lan2_lan3_lan4
lan=lan4;is_bind=1;bind_lan=_lan1_lan2_lan3_lan4
wlan=ra0;is_bind=1
wlan=ra1;is_bind=1
wlan=ra2;is_bind=1
wlan=ra3;is_bind=1
wlan=rai0;is_bind=1
wlan=rai1;is_bind=1
wlan=rai2;is_bind=1
wlan=rai3;is_bind=1
Chain 'PREROUTING' doesn't exist.
killall: udhcpc: no process killed
killall: udhcpc: no process killed
killall: pppd: no process killed
killall: pppd: no process killed
@@@muti-wan.sh setup end
switch register base addr to 0xbe110000
apcli0 no private ioctls.
ifconfig: SIOCSIFADDR: No such device
internet off 23
led=23, on=1, off=4000, blinks,=1, reset=1, time=1
#wan_link_change#
usb slowblink 18
led=18, on=5, off=5, blinks,=4000, reset=1, time=1
To call switch_app_if_to wired wired
/sbin/linkchange.sh: line 333: vpn.sh: not found
muti-wan.sh config wired
ra1 rai1 rai3
mwan_config wired index=1
setup_proto_DHCP
/sbin/config-if-dns.sh:Error. Arg1 must not be empty!
new udhcpc from G800 and Trunk!
udhcpc -a -S -t 0 -A 10 -i eth3 -V HYC-HYC-G920 -s /sbin/udhcpc.sh -p /var/run/udhcpc_eth3.pid
udhcpc (v1.0.0) started
@WAN_IF is eth3
/sbin/nat_pmp.sh -> webinit=1
br0: port 1(eth2.2) entering learning state
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
Set LAN IP ! 192.168.200.254
br0: port 1(eth2.2) entering learning state
br0: port 1(eth2.2) entering learning state
internet off 23
led=23, on=1, off=4000, blinks,=1, reset=1, time=1
usb slowblink 18
led=18, on=5, off=5, blinks,=4000, reset=1, time=1
Sending discover...
killall: udhcpd: no process killed
new udhcpd from G800 and Trunk!
udhcpd -d -S /etc/udhcpd.conf
enable dhcpd random offer ip
/sbin/miniupnpd.sh -> webinit=1
Unknown option: -I
Unknown option: ra0
[miniupnd] ext_if_name=eth3
Unknown option: -I
Unknown option: rai0
[miniupnd] ext_if_name=eth3
Sending discover...
received OFFER from 192.168.1.1 IP:192.168.1.12
Sending request for 192.168.1.12...
/sbin/lan.sh: line 288: udpsvd: not found
Receive ACK. 192.168.1.12 obtained, lease time 7200
killall: firewall: no process killed
@WAN_IF is eth3
/sbin/udhcpc.sh: line 496: /bin: Permission denied
rmmod: hw_nat: No such file or directory
hw_nat: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
Ralink HW NAT Module Enabled build at Aug 14 2020 19:15:53
done
internet on 23
led=23, on=4000, off=1, blinks,=1, reset=1, time=1
deleting routers
route add default gw 192.168.1.1 dev eth3 metric 1
killall: udhcpd: no process killed
new udhcpd from G800 and Trunk!
udhcpd -d -S /etc/udhcpd.conf
enable dhcpd random offer ip
Warning: can't find "PortForwardRules" in flash
Warning: can't find "SinglePortForwardRules" in flash
isIpValid(): is not a valid IP address.
lan_ip:fec8a8c0 = 192.168.200.254
lan_netmask:00ffffff = 255.255.255.0
radius_ip:84c8a8c0 = 192.168.200.132
in Lan
sh: arptables.sh: not found
fb[0] invalid, init again
iptables v1.4.10: Couldn't load target `app_filter':File not found
Try `iptables -h' or 'iptables --help' for more information.
iptables: No chain/target/match by that name.
iptables v1.4.10: Couldn't load target `spi_input_filter':File not found
Try `iptables -h' or 'iptables --help' for more information.
iptables: No chain/target/match by that name.
iptables v1.4.10: invalid port/service `' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
/sbin/internet.sh: line 467: config_ipv6.sh: not found
wanlan_conflict_check.sh 192.168.1.12
wan_subnet=192.168.1.0 ,lan_subnet=192.168.200.0
/sbin/udhcpc.sh: line 496: vpn.sh: not found
tz=GMT-9
tzn=-9
ntpclient -s -c 3 -t 30 -h 180.182.38.254 -b kr.pool.ntp.org -i 86400
fb[0] invalid, init again
killall: firewall: no process killed
Warning: can't find "PortForwardRules" in flash
Warning: can't find "SinglePortForwardRules" in flash
isIpValid(): is not a valid IP address.
lan_ip:fec8a8c0 = 192.168.200.254
lan_netmask:00ffffff = 255.255.255.0
radius_ip:84c8a8c0 = 192.168.200.132
in Lan
sh: arptables.sh: not found
fb[0] invalid, init again
iptables: No chain/target/match by that name.
iptables: Chain already exists.
iptables: No chain/target/match by that name.
iptables: Chain already exists.
iptables v1.4.10: invalid port/service `' specified
Try `iptables -h' or 'iptables --help' for more information.
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
killall: ipconflict: no process killed
ipconflict -c 1 -i eth3 -s 192.168.1.12 -d 192.168.1.12 -e 18:53:E0:31:92:D9 -lag -x ipconflict_handle.sh &
usb on 18
led=18, on=4000, off=1, blinks,=1, reset=1, time=1
ra1 rai1 rai3
br0: port 1(eth2.2) entering forwarding state
index(1) is out of range
index(1) is out of range
fb[0] invalid, init again
insmod: rt2860v2_ap.ko: module not found
insmod: mt_wifi.ko: module not found
register rt2860
=== pAd = c1502000, size = 1526096 ===
<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
pAd->CSRBaseAddress =0xc1400000, csr_addr=0xc1400000!
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 FLASH mode
=== pAd = c1782000, size = 1526096 ===
<-- RTMPAllocTxRxRingMemory, Status=0
<-- RTMPAllocAdapterBlock, Status=0
pAd->CSRBaseAddress =0xc1680000, csr_addr=0xc1680000!
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 FLASH mode
build time =
20140408060640a
rom patch for E3 IC
platform =
ALPS
hw/sw version =
▒▒
patch version =
FW Version:0.0.00 Build:1
Build Time:201411280941____
fw for E3 IC
RX[0] DESC ae739000 size = 4096
RX[1] DESC ae73a000 size = 4096
RTMP_TimerListAdd: add timer obj c189522c!
RTMP_TimerListAdd: add timer obj c181aa4c!
RTMP_TimerListAdd: add timer obj c181aa20!
RTMP_TimerListAdd: add timer obj c181aa78!
RTMP_TimerListAdd: add timer obj c181a9f4!
RTMP_TimerListAdd: add timer obj c17960f4!
RTMP_TimerListAdd: add timer obj c1795cd8!
RTMP_TimerListAdd: add timer obj c17960c4!
RTMP_TimerListAdd: add timer obj c1796460!
RTMP_TimerListAdd: add timer obj c17961bc!
RTMP_TimerListAdd: add timer obj c17961ec!
RTMP_TimerListAdd: add timer obj c179639c!
RTMP_TimerListAdd: add timer obj c1799400!
RTMP_TimerListAdd: add timer obj c1798fe4!
RTMP_TimerListAdd: add timer obj c17993d0!
RTMP_TimerListAdd: add timer obj c179976c!
RTMP_TimerListAdd: add timer obj c17994c8!
RTMP_TimerListAdd: add timer obj c17994f8!
RTMP_TimerListAdd: add timer obj c17996a8!
RTMP_TimerListAdd: add timer obj c179c70c!
RTMP_TimerListAdd: add timer obj c179c2f0!
RTMP_TimerListAdd: add timer obj c179c6dc!
RTMP_TimerListAdd: add timer obj c179ca78!
RTMP_TimerListAdd: add timer obj c179c7d4!
RTMP_TimerListAdd: add timer obj c179c804!
RTMP_TimerListAdd: add timer obj c179c9b4!
RTMP_TimerListAdd: add timer obj c179fa18!
RTMP_TimerListAdd: add timer obj c179f5fc!
RTMP_TimerListAdd: add timer obj c179f9e8!
RTMP_TimerListAdd: add timer obj c179fd84!
RTMP_TimerListAdd: add timer obj c179fae0!
RTMP_TimerListAdd: add timer obj c179fb10!
RTMP_TimerListAdd: add timer obj c179fcc0!
RTMP_TimerListAdd: add timer obj c17a2d24!
RTMP_TimerListAdd: add timer obj c17a2908!
RTMP_TimerListAdd: add timer obj c17a2cf4!
RTMP_TimerListAdd: add timer obj c17a3090!
RTMP_TimerListAdd: add timer obj c17a2dec!
RTMP_TimerListAdd: add timer obj c17a2e1c!
RTMP_TimerListAdd: add timer obj c17a2fcc!
RTMP_TimerListAdd: add timer obj c17a6030!
RTMP_TimerListAdd: add timer obj c17a5c14!
RTMP_TimerListAdd: add timer obj c17a6000!
RTMP_TimerListAdd: add timer obj c17a639c!
RTMP_TimerListAdd: add timer obj c17a60f8!
RTMP_TimerListAdd: add timer obj c17a6128!
RTMP_TimerListAdd: add timer obj c17a62d8!
RTMP_TimerListAdd: add timer obj c17a933c!
RTMP_TimerListAdd: add timer obj c17a8f20!
RTMP_TimerListAdd: add timer obj c17a930c!
RTMP_TimerListAdd: add timer obj c17a96a8!
RTMP_TimerListAdd: add timer obj c17a9404!
RTMP_TimerListAdd: add timer obj c17a9434!
RTMP_TimerListAdd: add timer obj c17a95e4!
RTMP_TimerListAdd: add timer obj c17ac648!
RTMP_TimerListAdd: add timer obj c17ac22c!
RTMP_TimerListAdd: add timer obj c17ac618!
RTMP_TimerListAdd: add timer obj c17ac9b4!
RTMP_TimerListAdd: add timer obj c17ac710!
RTMP_TimerListAdd: add timer obj c17ac740!
RTMP_TimerListAdd: add timer obj c17ac8f0!
RTMP_TimerListAdd: add timer obj c181cec8!
RTMP_TimerListAdd: add timer obj c181caac!
RTMP_TimerListAdd: add timer obj c181ce98!
RTMP_TimerListAdd: add timer obj c181d234!
RTMP_TimerListAdd: add timer obj c181cf90!
RTMP_TimerListAdd: add timer obj c181cfc0!
RTMP_TimerListAdd: add timer obj c181cef8!
RTMP_TimerListAdd: add timer obj c181cf28!
RTMP_TimerListAdd: add timer obj c181cf58!
RTMP_TimerListAdd: add timer obj c1840f7c!
RTMP_TimerListAdd: add timer obj c1841098!
RTMP_TimerListAdd: add timer obj c1840fa8!
RTMP_TimerListAdd: add timer obj c181d5bc!
E2pAccessMode=2
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
Key1Str is Invalid key length(0) or Type(0)
Key1Str is Invalid key length(0) or Type(0)
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(1)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(1)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(1)
Key4Str is Invalid key length(0) or Type(0)
1. Phy Mode = 14
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)
get_chl_grp:illegal channel (173)
get_chl_grp:illegal channel (173)
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 = 14
RTMP_TimerListAdd: add timer obj c1793548!
RTMP_TimerListAdd: add timer obj c1796854!
RTMP_TimerListAdd: add timer obj c1799b60!
RTMP_TimerListAdd: add timer obj c179ce6c!
RTMP_TimerListAdd: add timer obj c17a0178!
RTMP_TimerListAdd: add timer obj c17a3484!
RTMP_TimerListAdd: add timer obj c17a6790!
RTMP_TimerListAdd: add timer obj c17a9a9c!
RTMP_TimerListAdd: add timer obj c181d2ac!
3. Phy Mode = 14
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 00
CustomerSelChannelAlg=cjhv used
Wireless: 2.4G Channel Scan:
Wireless: Ch BSSID SSID
Wireless: 1 BE702F29FD8B Nokia
Wireless: 1 C0FD84BAD8DF
Wireless: 1 488F5A9B9CCE MikroTik
Wireless: 1 C0FD84CB6DB7 Zamalkawy
Wireless: 1 3099358C1CA3 jojo
Wireless: 2 2811EC13B47C
Wireless: 2 149D0932B86C Safae
Wireless: 2 2811EC13B47F
Wireless: 3 38549B332D30 WE_332D30
Wireless: 3 E48326950958 fahd adam
Wireless: 3 E4832695095B
Wireless: 3 BC76C5590CEF
Wireless: 3 BC76C5590CEC
Wireless: 4 CC32E56B54B6
Wireless: 5 D82918FA21D0 WE
Wireless: 5 646D6CDCA340 abo tarek
Wireless: 5 B4F58EDFA6A8 WEDFA69F
Wireless: 5 D46BA6F9161C
Wireless: 6 5078B3B90D84 moonstar
Wireless: 6 5278B3B90D84 H168N_2G_SSID2
Wireless: 7 CC32E5219892 Ali
Wireless: 8 74DA882B137E WE_2B137E
Wireless: 9 38549B375AC0
Wireless: 9 2811EC304BBC MR.a
Wireless: 9 2811EC304BBE
Wireless: 9 2811EC304BBF
Wireless: 9 304240B4EA74 We Ahmed
Wireless: 9 340A339D863D 036111179
Wireless: 10 5078B3B06268 WE_B06268
Wireless: 10 58BAD42FD74C Vodafone
Wireless: 10 C0FD849DE34B
Wireless: 10 20E8829EB086 Hazem
Wireless: 11 F4E3FB207034
Wireless: 11 94A7B74E9956 Darken Empire
Wireless: 11 807D14A36FB8
Wireless: 11 DCF8B9AD9DA7 Home
Wireless: 11 9C69D18D7160 Jana&Esraa
Wireless: 11 C0FD84BAD94F
Wireless: 11 58D759AB33E4 TEdataAB33DB
Wireless: 11 B4F58E44337C Mostafa Ahmed
Wireless: 11 B4F58E5D0A0C
Wireless: 11 44FB5AD47059 Orange-4p7K
Wireless: Channel [1] chanNum[5] score[25]
Wireless: Channel [2] chanNum[3] score[39]
Wireless: Channel [3] chanNum[5] score[37]
Wireless: Channel [4] chanNum[1] score[44]
Wireless: Channel [5] chanNum[4] score[29]
Wireless: Channel [6] chanNum[2] score[32]
Wireless: Channel [7] chanNum[1] score[35]
Wireless: Channel [8] chanNum[1] score[48]
Wireless: Channel [9] chanNum[6] score[45]
Wireless: Channel [10] chanNum[4] score[55]
Wireless: Channel [11] chanNum[10] score[35]
Wireless: Channel [12] chanNum[0] score[44]
Wireless: Channel [13] chanNum[0] score[24]
CJHVAlg SelChannel=1, MinDirty=25
SelectBestChannel=1
RTMP_TimerListAdd: add timer obj c1826e0c!
mt76x2_bbp_adjust():rf_bw=0, ext_ch=0, PrimCh=11, HT-CentCh=11, VHT-CentCh=0
APStartUp(): AP Set CentralFreq at 11(Prim=11, HT-CentCh=11, VHT-CentCh=0, BBP_BW=0)
mt76x2_calibration(channel = 11)
Main bssid = 18:53:e0:31:92:d8
mt76x2_reinit_agc_gain:original agc_vga0 = 0x5e, agc_vga1 = 0x5e
mt76x2_reinit_agc_gain:updated agc_vga0 = 0x5e, agc_vga1 = 0x5e
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) = 5e
original vga value(chain1) = 5e
<==== rt28xx_init, Status=0
RTMPDrvOpen(1):Check if PDMA is idle!
RTMPDrvOpen(2):Check if PDMA is idle!
build time =
20140408060640a
rom patch for E3 IC
platform =
ALPS
hw/sw version =
▒▒
patch version =
FW Version:0.0.00 Build:1
Build Time:201411280941____
fw for E3 IC
RX[0] DESC aef2d000 size = 4096
RX[1] DESC aef2e000 size = 4096
RTMP_TimerListAdd: add timer obj c161522c!
RTMP_TimerListAdd: add timer obj c159aa4c!
RTMP_TimerListAdd: add timer obj c159aa20!
RTMP_TimerListAdd: add timer obj c159aa78!
RTMP_TimerListAdd: add timer obj c159a9f4!
RTMP_TimerListAdd: add timer obj c15160f4!
RTMP_TimerListAdd: add timer obj c1515cd8!
RTMP_TimerListAdd: add timer obj c15160c4!
RTMP_TimerListAdd: add timer obj c1516460!
RTMP_TimerListAdd: add timer obj c15161bc!
RTMP_TimerListAdd: add timer obj c15161ec!
RTMP_TimerListAdd: add timer obj c151639c!
RTMP_TimerListAdd: add timer obj c1519400!
RTMP_TimerListAdd: add timer obj c1518fe4!
RTMP_TimerListAdd: add timer obj c15193d0!
RTMP_TimerListAdd: add timer obj c151976c!
RTMP_TimerListAdd: add timer obj c15194c8!
RTMP_TimerListAdd: add timer obj c15194f8!
RTMP_TimerListAdd: add timer obj c15196a8!
RTMP_TimerListAdd: add timer obj c151c70c!
RTMP_TimerListAdd: add timer obj c151c2f0!
RTMP_TimerListAdd: add timer obj c151c6dc!
RTMP_TimerListAdd: add timer obj c151ca78!
RTMP_TimerListAdd: add timer obj c151c7d4!
RTMP_TimerListAdd: add timer obj c151c804!
RTMP_TimerListAdd: add timer obj c151c9b4!
RTMP_TimerListAdd: add timer obj c151fa18!
RTMP_TimerListAdd: add timer obj c151f5fc!
RTMP_TimerListAdd: add timer obj c151f9e8!
RTMP_TimerListAdd: add timer obj c151fd84!
RTMP_TimerListAdd: add timer obj c151fae0!
RTMP_TimerListAdd: add timer obj c151fb10!
RTMP_TimerListAdd: add timer obj c151fcc0!
RTMP_TimerListAdd: add timer obj c1522d24!
RTMP_TimerListAdd: add timer obj c1522908!
RTMP_TimerListAdd: add timer obj c1522cf4!
RTMP_TimerListAdd: add timer obj c1523090!
RTMP_TimerListAdd: add timer obj c1522dec!
RTMP_TimerListAdd: add timer obj c1522e1c!
RTMP_TimerListAdd: add timer obj c1522fcc!
RTMP_TimerListAdd: add timer obj c1526030!
RTMP_TimerListAdd: add timer obj c1525c14!
RTMP_TimerListAdd: add timer obj c1526000!
RTMP_TimerListAdd: add timer obj c152639c!
RTMP_TimerListAdd: add timer obj c15260f8!
RTMP_TimerListAdd: add timer obj c1526128!
RTMP_TimerListAdd: add timer obj c15262d8!
RTMP_TimerListAdd: add timer obj c152933c!
RTMP_TimerListAdd: add timer obj c1528f20!
RTMP_TimerListAdd: add timer obj c152930c!
RTMP_TimerListAdd: add timer obj c15296a8!
RTMP_TimerListAdd: add timer obj c1529404!
RTMP_TimerListAdd: add timer obj c1529434!
RTMP_TimerListAdd: add timer obj c15295e4!
RTMP_TimerListAdd: add timer obj c152c648!
RTMP_TimerListAdd: add timer obj c152c22c!
RTMP_TimerListAdd: add timer obj c152c618!
RTMP_TimerListAdd: add timer obj c152c9b4!
RTMP_TimerListAdd: add timer obj c152c710!
RTMP_TimerListAdd: add timer obj c152c740!
RTMP_TimerListAdd: add timer obj c152c8f0!
RTMP_TimerListAdd: add timer obj c159cec8!
RTMP_TimerListAdd: add timer obj c159caac!
RTMP_TimerListAdd: add timer obj c159ce98!
RTMP_TimerListAdd: add timer obj c159d234!
RTMP_TimerListAdd: add timer obj c159cf90!
RTMP_TimerListAdd: add timer obj c159cfc0!
RTMP_TimerListAdd: add timer obj c159cef8!
RTMP_TimerListAdd: add timer obj c159cf28!
RTMP_TimerListAdd: add timer obj c159cf58!
RTMP_TimerListAdd: add timer obj c15c0f7c!
RTMP_TimerListAdd: add timer obj c15c1098!
RTMP_TimerListAdd: add timer obj c15c0fa8!
RTMP_TimerListAdd: add timer obj c159d5bc!
E2pAccessMode=2
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
Key1Str is Invalid key length(0) or Type(0)
Key1Str is Invalid key length(0) or Type(0)
Key1Str is Invalid key length(0) or Type(0)
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(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)
get_chl_grp:illegal channel (173)
get_chl_grp:illegal channel (173)
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
RTMP_TimerListAdd: add timer obj c1513548!
RTMP_TimerListAdd: add timer obj c1516854!
RTMP_TimerListAdd: add timer obj c1519b60!
RTMP_TimerListAdd: add timer obj c151ce6c!
RTMP_TimerListAdd: add timer obj c1520178!
RTMP_TimerListAdd: add timer obj c1523484!
RTMP_TimerListAdd: add timer obj c1526790!
RTMP_TimerListAdd: add timer obj c1529a9c!
RTMP_TimerListAdd: add timer obj c159d2ac!
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 !
RTMPSetPhyMode: channel is out of range, use first channel=0
MCS Set = ff ff 00 00 01
CustomerSelChannelAlg=cjhv used
Wireless: 5G Channel Scan:
Wireless: Channel [36] chanNum[0]
Wireless: Channel [40] chanNum[3]
Wireless: Channel [44] chanNum[3]
Wireless: Channel [48] chanNum[0]
Wireless: Channel [52] chanNum[0]
Wireless: Channel [56] chanNum[0]
Wireless: Channel [60] chanNum[0]
Wireless: Channel [64] chanNum[0]
Wireless: Channel [100] chanNum[0]
Wireless: Channel [104] chanNum[0]
Wireless: Channel [108] chanNum[0]
Wireless: Channel [112] chanNum[0]
Wireless: Channel [116] chanNum[0]
Wireless: Channel [120] chanNum[0]
Wireless: Channel [124] chanNum[0]
Wireless: Channel [149] chanNum[0]
Wireless: Channel [153] chanNum[0]
Wireless: Channel [157] chanNum[0]
Wireless: Channel [161] chanNum[0]
CJHV5GAlg SelChannel=149, MinCount=6
SelectBestChannel=149
Wireless: 5G Channel select : 149
RTMP_TimerListAdd: add timer obj c15a6e0c!
offset=256,i=256, end=256
mt76x2_bbp_adjust():rf_bw=2, ext_ch=1, PrimCh=149, HT-CentCh=151, VHT-CentCh=155
APStartUp(): AP Set CentralFreq at 155(Prim=149, HT-CentCh=151, VHT-CentCh=155, BBP_BW=2)
mt76x2_calibration(channel = 155)
The 8-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 8
Main bssid = 18:53:e0:31:92:dc
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
RTMPDrvOpen(1):Check if PDMA is idle!
RTMPDrvOpen(2):Check if PDMA is idle!
The 8-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 8
The 8-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 8
wireless_if=apcli0
voicessid_ifname= ra2 ra3 rai2
device ra0 entered promiscuous mode
br0: port 2(ra0) entering learning state
br0: port 2(ra0) entering learning state
device ra2 entered promiscuous mode
br0: port 3(ra2) entering learning state
br0: port 3(ra2) entering learning state
device ra3 entered promiscuous mode
br0: port 4(ra3) entering learning state
br0: port 4(ra3) entering learning state
device rai0 entered promiscuous mode
br0: port 5(rai0) entering learning state
br0: port 5(rai0) entering learning state
device rai2 entered promiscuous mode
br0: port 6(rai2) entering learning state
br0: port 6(rai2) entering learning state
<<<<<2.4GSSID=
<<<<<2.4GSSID=EmpTy_92D9
<<<<<2.4GSSID=
<<<<<2.4GSSID=
<<<<<5GSSID=
<<<<<5GSSID=EmpTy_
<<<<<5GSSID=
<<<<<5GSSID=EmpTy_
killall: check_falsecca.sh: no process killed
wireless.sh
Ralink HW NAT Module Disabled
Ralink HW NAT Module Enabled build at Aug 14 2020 19:15:53
done
kill: you need to specify whom to kill
mt76x2_bbp_adjust():rf_bw=0, ext_ch=0, PrimCh=11, HT-CentCh=11, VHT-CentCh=0
switch reg write offset=10, value=7f7f7fe0
igmpproxy, Version 0.1 beta2, Build 200814
Copyright 2005 by Johnny Egeland <[email protected]>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt
token: = quickleave
token:=quickleave
token:=query_en
token:=interval=
token:=wan_port_num=0
token:=wan_vlan_index=0
token:=lan_vlan_index=1
token:=wan_vlan_id=1
token:=lan_vlan_id=2
token:=lastMemberQueryInterval=2
token:=phyint
token:=phyint
APStartUp(): AP Set CentralFreq at 11(Prim=11, HT-CentCh=11, VHT-CentCh=0, BBP_BW=0)
mt76x2_calibration(channel = 11)
switch reg write offset=1c, value=5005
config igmpsnoop.
REG_ESW_WT_MAC_ATA1 is 0xeffffffa
REG_ESW_WT_MAC_ATWD is 0x3ec
done.
switch reg write offset=20, value=8100815
sync table at_table_end
REG_ESW_WT_MAC_ATA1 is 0x1005e00
REG_ESW_WT_MAC_ATA2 is 0x18002
entry->port_map is 0x5f
mac table IO done.
WAN REG_ESW_WT_MAC_ATA2 is 0x18001
mac table IO done.
for wan port is done
insmod: cannot insert '/lib/modules/2.6.36/kernel/drivers/watchdog/ralink_wdt.ko': File exists
Ralink HW NAT Module Disabled
Ralink HW NAT Module Enabled build at Aug 14 2020 19:15:53
foe_mcast_entry_ins: vid=0 mac=7:0:0:0:0:60 mc_px_en=0 mc_px_qos_en=0
done
done
offset = 0x1040 value=0x0
switch port=0 egress rate limit off
REG_ESW_VLAN_VAWD1 value is 0x0
REG_ESW_VLAN_VAWD2 value is 0x0
REG_ESW_VLAN_VTCR value is 0x8000d01f
FV_TRACE switch_gsw.c->read_qos_rule()->line.4106 : 0
FV_TRACE switch_gsw.c->read_weight()->line.4307 :
It's error.Please enter 1~8 and 255.FV_TRACE switch_gsw.c->read_weight()->line.4307 :
It's error.Please enter 1~8 and 255.FV_TRACE switch_gsw.c->read_weight()->line.4307 :
It's error.Please enter 1~8 and 255.FV_TRACE switch_gsw.c->read_weight()->line.4307 :
It's error.Please enter 1~8 and 255.acl close
G920-CJHV
/etc_ro/rcS: line 51: provision.sh: not found
killall: snmpd: no process killed
start snmpd now
[ralink_init] mkdir -p /etc/snmpd
[ralink_init] write /etc/snmpd/snmpd.conf
[ralink_init] read /etc_ro/snmpd/snmpd_default
DEV_TRACE dev_manager.c->line.1021 : goahead PID=18868 dev_man_has_init=0
DEV_TRACE dev_manager.c->line.892 : even=config, callback=00000000
DEV_TRACE dev_manager.c->line.892 : even=config, callback=00450500
DEV_TRACE dev_manager.c->line.854 : goahead PID=18882
fb[0] invalid, init again
goahead: webs start...
lan_ip=192.168.200.254
DEV_TRACE dev_manager.c->line.1021 : snmpd PID=18883 dev_man_has_init=0
DEV_TRACE dev_manager.c->line.892 : even=config, callback=00000000
DEV_TRACE dev_manager.c->line.892 : even=config, callback=00402524
DEV_TRACE dev_manager.c->line.854 : snmpd PID=18889
fb[0] invalid, init again
CMD>mtd_op -r -t env -f mac > /tmp/ori_wan_mac
CMD>mtd_op -r -t env -f mac > /tmp/ori_wan_mac
goahead: webs: Listening for HTTP requests at address 192.168.200.254:8787
snmpd:need send normal trap because get ntp time
snmpd:need send normal trap because wan link status changed
snmpd:need send normal trap because wan ip changed
CMD>top -n 1 > /tmp/top.logxyz
old_rx_bytes=5299 - old_tx_bytes=2556
new_rx_bytes=5653 - new_tx_bytes=2892
foe_mcast_entry_ins: vid=0 mac=1:0:5e:ff:66:12 mc_px_en=2 mc_px_qos_en=0
br0: port 2(ra0) entering forwarding state
br0: port 3(ra2) entering forwarding state
br0: port 4(ra3) entering forwarding state
br0: port 5(rai0) entering forwarding state
br0: port 6(rai2) entering forwarding state
/etc_ro/rcS: line 53: tr069.sh: not found
/etc_ro/rcS: line 54: scheduled_tasks.sh: not found
/etc_ro/rcS: line 67: voip.sh: not found
fb[0] invalid, init again
NetConf_KCT()->L.622 : ip change from 0.0.0.0 to 192.168.1.12
looptask[19211]: start
starting pid 19221, tty '/dev/ttyS1': '/bin/sh'
===>here 2 set perm. CheckGateway():arp_set(192.168.1.1,dc:f8:b9:ad:9d:a7,eth3)
/etc_ro/rcS: line 101: aps.sh: not found
BusyBox v1.12.1 (2020-08-14 19:17:21 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
#
##link_state_check_delay_time=2
fb[0] invalid, init again
aps:preparing
key_reboot_fun is enabled
wps_reset_key_multiplex is enabled
key_reboot_fun is enabled
switch register base addr to 0xbe110000
aps:provision procedure starts
aps:to download PS info
=============================================================
fb[0] invalid, init again
wget -T 10 -O /tmp/psinfo.txt http://180.182.38.50:8080/tms/servlet/getApProvInfo?macAddr=1853e03192d9&downType=1&ver=F1.0&cfgac=7020&cfver=Hanyang_HYC-G920_1.0.7CJ_CFG&fwac=9080&fwver=Hanyang_HYC-G920_1.2.28CJ&model=HYC-G920&vendor=Hanyang&cferr=0&fwerr=0
Connecting to 180.182.38.50:8080 (180.182.38.50:8080)
psinfo.txt 100% |*******************************| 432 --:--:-- ETA
aps:downloading PS info OK
aps:to parse PS info
aps:parsing PS info OK
aps:provision procedure ends
snmpd:need send normal trap because aps done once
CMD>top -n 1 > /tmp/top.logxyz
aps:next PS is reserved at 14:28:14
running ifconfig on original firmware
ifconfig
apcli0 Link encap:Ethernet HWaddr 18:53:E0:31:92:DC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
apclii0 Link encap:Ethernet HWaddr 18:53:E0:31:92:E0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
br0 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
inet addr:192.168.200.254 Bcast:192.168.200.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7833 (7.6 KiB) TX bytes:532 (532.0 B)
eth2 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:269 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30564 (29.8 KiB) TX bytes:334 (334.0 B)
Interrupt:3
eth2.2 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:229 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23815 (23.2 KiB) TX bytes:334 (334.0 B)
eth3 Link encap:Ethernet HWaddr 18:53:E0:31:92:D9
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:18880 (18.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ra0 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:24
ra2 Link encap:Ethernet HWaddr 18:53:E0:31:92:DA
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ra3 Link encap:Ethernet HWaddr 18:53:E0:31:92:DB
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
rai0 Link encap:Ethernet HWaddr 18:53:E0:31:92:DC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:4
rai2 Link encap:Ethernet HWaddr 18:53:E0:31:92:DE
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
factory partition contain only 2 MAC addresses. @ 0x4 >>>> 18:53:E0:31:92:D8 @ 0x8004 >>>> 18:53:E0:31:92:DC
and these are the only MAC address stored in factory partition now it seems that MACs are getting generated according to these 2 MAC addresses.
Any idea ?
I managed to boot initramfs image via tftp device boot menu
That's nice, have you backed up the whole flash for the stock firmware?
also i changed spi-max-frequency to 40MHz and i did not have any issue
The spi freq should be tested after boot from the flash.
factory partition contain only 2 MAC addresses. @ 0x4 >>>> 18:53:E0:31:92:D8 @ 0x8004 >>>> 18:53:E0:31:92:DC
and these are the only MAC address stored in factory partition now it seems that MACs are getting generated according to these 2 MAC addresses.
You can use mac-address-increment
property if you can't find any directly matching addresses.
https://github.com/openwrt/openwrt/blob/f4849c0ab7c4cb29a85667f2c16aaa73bbfa4315/target/linux/ramips/dts/mt7621_iptime_ax2004m.dts#L120
But I'm also curious about the "Mac" partition. Does it also contain some MAC addresses?
That's nice, have you backed up the whole flash for the stock firmware?
I Downloaded the MTD0-MTD1-MTD2 from webgui
The spi freq should be tested after boot from the flash.
ok Got it,
You can use
mac-address-increment
property if you can't find any directly matching addresses.https://github.com/openwrt/openwrt/blob/f4849c0ab7c4cb29a85667f2c16aaa73bbfa4315/target/linux/ramips/dts/mt7621_iptime_ax2004m.dts#L120
thanks i will try with this
But I'm also curious about the "Mac" partition. Does it also contain some MAC addresses?
i will attach the ifconfig command from original firmware.
ifconfig
apcli0 Link encap:Ethernet HWaddr 18:53:E0:31:92:DC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
apclii0 Link encap:Ethernet HWaddr 18:53:E0:31:92:E0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
br0 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
inet addr:192.168.200.254 Bcast:192.168.200.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:87 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7833 (7.6 KiB) TX bytes:532 (532.0 B)
eth2 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:269 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30564 (29.8 KiB) TX bytes:334 (334.0 B)
Interrupt:3
eth2.2 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:229 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:23815 (23.2 KiB) TX bytes:334 (334.0 B)
eth3 Link encap:Ethernet HWaddr 18:53:E0:31:92:D9
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:18880 (18.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ra0 Link encap:Ethernet HWaddr 18:53:E0:31:92:D8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:24
ra2 Link encap:Ethernet HWaddr 18:53:E0:31:92:DA
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ra3 Link encap:Ethernet HWaddr 18:53:E0:31:92:DB
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
rai0 Link encap:Ethernet HWaddr 18:53:E0:31:92:DC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:4
rai2 Link encap:Ethernet HWaddr 18:53:E0:31:92:DE
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Note: The only MAC addresses found in MAC Partition are 18:53:E0:31:92:D8 18:53:E0:31:92:DC
that's why i am sure there are no other MACs because i looked up the partition and i did not find any other MAC address except these 2 MACs
Hi @mans0n you were right I looked up the factory partition well and found out mac addresses @ these address
0x4
0x2004
0x4004
0x6004
0x8004
0xa004
0xc004
0xe000
0xe006
gmac @ 0xe000
wan @ 0xe006
radio0.wifi5g @ 0x8004
radio1.wifi2g @ 0x4
Looking into my current mac addresses and ifconfig command on original firmware https://github.com/openwrt/openwrt/pull/10015#issuecomment-1296261673
and looking into my current device mac addresses i think i managed to distribute the mac addresses correctly
So for answering this
So I want you to check: The MAC addresses of the stock firmware (and whether those exist in the "factory" partition) What happens if you drop led-regulator node entirely If you can set spi-max-frequency to 40MHz without any issue
1- The MAC addresses of the stock firmware (and whether those exist in the "factory" partition)
wifi2 18:53:B3:22:E8:98 @ 0x4
wifi5 18:53:B3:22:E8:99 @ 0x8004
port1(lan1) 18:53:E0:2A:E8:8C @ 0xa004
gmac(label_mac) 18:53:E0:2D:19:11 @ 0xe000
wan_mac 18:53:E0:2D:19:10 @ 0xe006
2- What happens if you drop led-regulator node entirely Nothing happened working as supposed to work
3-If you can set spi-max-frequency to 40MHz without any issue Device is working without any issues.
So,
If the stock U-Boot can boot OpenWrt image just with an env variable change, that would be better...
I currently could not manage to get stock device. all running breedweb till now
So i am leaving this comment for later.
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "hanyang,hyc-g920", "mediatek,mt7621-soc";
model = "CJ-Hello HYC-G920";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
chosen {
bootargs = "console=ttyS0,115200";
bootargs-override = "console=ttyS0,115200";
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "red:power";
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
};
usb {
label = "green:usb";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
trigger-sources = <&ehci_port2>;
linux,default-trigger = "usbport";
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
debounce-interval = <60>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};
partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0xfb0000>;
};
};
};
};
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
led {
led-sources = <2>;
led-active-low;
};
};
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0000>;
led {
led-sources = <2>;
led-active-low;
};
};
};
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
};
port@1 {
status = "okay";
label = "lan1";
mtd-mac-address = <&factory 0xa004>;
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan3";
};
port@4 {
status = "okay";
label = "lan4";
};
};
};
&state_default {
gpio {
groups = "sdhci";
function = "gpio";
};
};
@momothefox Sorry for my late reply...
Thanks for checking the MAC addresses. I'm not sure if your new finding matches with your older device (e.g. dedicated address for lan1?), but I'm less concerned with it now...
One of my biggest concerns was the pseudonym in SoB, but it seems it's not a problem anymore. https://lists.infradead.org/pipermail/openwrt-adm/2023-February/002364.html
Currently I see only one blockage: the Breed. AFAIR requiring custom bootloader installation is no-go for this target. Earlier you said you've backed up mtd0 and mtd1, would it be possible for you to revert back to stock u-boot and u-boot-env and test installation method with the stock bootloader?
I have some minor comments for dts, but your PR is closed now due to the incorrect force push. Are you willing to continue this work? This has seen enough suffering, I will merge this as soon as this becomes ready.
@mans0n i am sorry i made another pull request because i started all over see this https://github.com/openwrt/openwrt/pull/12230
Oops, I missed it... :/ Anyway good to hear that it was finally merged. :D Thanks for letting me know!