ZyXEL NBG6503

IEEE 802.11ac-capable device from 2013. FCC ID: I88NBG6503

Detailed instructions

  • Prepare your TFTP server, 10.10.10.3 is the default, but one can choose any pair of 2 IPs in the same range.
  • Place the image with a shortened name, containing no spaces or dots in the TFTP server directory (https://downloads.openwrt.org/releases/19.07.3/targets/ramips/mt7620/openwrt-19.07.3-ramips-mt7620-rt-ac51u-initramfs-kernel.bin)
  • Void your warranty by opening the device (2 screws at the bottom).
  • Locate the TTL serial port - my device had a connector soldered in and the pinout is printed on the board; the connector is close to the reset button.
  • Pinout - ordered from the 4 port connector side towards the reset switch: RX - GND - TX - VCC 3.3V
  • Connect your TTL serial adaptor.
  • Connect ethernet cable: Any of the 4 LAN ports with the computer that has the TFTP server running.
  • Start your serial terminal (e.g., picocom -b 57600 /dev/ttyUSB0).
  • Hold “1”.
  • Power on NBG6503.
  • The following menu will appear and option 1 will be selected in time (menu stays active for a couple of seconds).

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. a: Auto load system code then write to Flash via TFTP.

  • Change IP settings, if necessary, then specify the image that you would like to boot from your TFTP server.
  • System should boot openWRT.
  • Change your computer (on LAN port) to DHCP and you should be able to log into LuCi at 192.168.1.1.
  • Go to the System > Backup / Flash Firmware section.
  • Make backups of your original firmware through “Save mtdblock contents”; this will generate 4 files.
  • If it all worked, reboot the device holding “2” to flash the image to the device; follow the instructions from the bootloader.
  • Once booted into OpenWRT again, open the LuCi interface and go to System > Backup / Flash Firmware section; choose to “Flash new firmware image”.
  • Select the respective sysupgrade image; if you have the USB TTL console running, you can follow the process there; the device should now boot again.
  • Overlayfs works now / WAN does not work (fails to obtain an IP).

Bootlog (original firmware)

user@PC:~$ picocom -b 57600 /dev/ttyUSB0 picocom v2.2

port is : /dev/ttyUSB0 flowcontrol : none baudrate is : 57600 parity is : none databits are : 8 stopbits are : 1 escape is : C-a local echo is : no noinit is : no noreset is : no nolock is : no send_cmd is : sz -vv receive_cmd is : rz -vv -E imap is : omap is : emap is : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready

U-Boot 1.1.3 (Mar 11 2013 - 11:11:53)

Board: Ralink APSoC DRAM: 64 MB relocate_code Pointer at: 83fb4000 enable ephy clock...done. rf reg 29 = 5 SSC disabled. Software System Reset Occurred spi_wait_nsec: 29 spi device id: ef 40 17 0 0 (40170000) find flash: W25Q64BV raspi_read: from:30000 len:1000 * Warning - bad CRC, using default environment ============================================ Ralink UBoot Version: 4.1.1.0_a2 -------------------------------------------- ASIC 7620_MP (Port5↔None) DRAM component: 512 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 64 MBytes Flash component: SPI Flash Date:Mar 11 2013 Time:11:11:53 ============================================ 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 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. a: Auto load system 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: 5380973 Bytes = 5.1 MB Load Address: 80000000 Entry Point: 8000c310 raspi_read: from:50040 len:521b6d 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 The CPU feqenuce set to 580 MHz MIPS CPU sleep mode enabled. PCIE: bypass PCIe DLL. PCIE: Elastic buffer control: Addr:0x68 → 0xB4 disable all power about PCIe 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 Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes MTK/Ralink System Tick Counter init... cd:80397ef8, m:214748, s:32 Mount-cache hash table entries: 512 RALINK_GPIOMODE = 1a311d RALINK_GPIOMODE = 18311d PPLL_CFG1=0xe6c000 MT7620 PPLL lock PPLL_DRV =0x80080504 PCIe reset again start PCIe register access RALINK_PCI_PCICFG_ADDR = 1000f0 * MT7620 PCIe RC mode * bio: create slab <bio-0> at 0 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 bus=0x1, slot = 0x0 res[0]→start = 20100000 res[0]→end = 201fffff 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 RT3xxx EHCI/OHCI init. Ralink gpio driver initialized deice id : ef 40 17 0 0 (40170000) W25Q64BV(ef 40170000) (8192 Kbytes) mtd .name = raspi, .size = 0x00800000 (0M) .erasesize = 0x00000008 (0K) .numeraseregions = 65536 mtd: partition “Kernel” extends beyond the end of device “raspi” -- size truncated to 0x7b0000 rdm_major = 253 SMACCR1 -- : 0x000090ef SMACCR0 -- : 0x682e40b1 Ralink APSoC Ethernet Driver Initilization. v3.0 256 rx/tx descriptors allocated, mtu = 1500! SMACCR1 -- : 0x000090ef SMACCR0 -- : 0x682e40b1 nf_conntrack version 0.5.0 (888 buckets, 3552 max 400 reserved) matchsize=264 init started: BusyBox v1.12.1 Algorithmics/MIPS FPU Emulator v1.5 (2014-11-25 11:16:51 CST) starting pid 34, tty '': '/etc_ro/rcS' mount: mounting none on /proc/bus/usb failed: No such file or directory ftpalg: Waiting for message from kernel starting pid 46, tty '/dev/ttyS1': '/bin/sh'

BusyBox v1.12.1 (2014-11-25 11:16:51 CST) built-in shell (ash) Enter 'help' for a list of built-in commands.

# boa: waiting for nvram_daemon @@@ BssidNum @@@

@led=38, on=1, off=4000, blinks,=1, reset=1, time=4000 @@ BssidNum @@@ @@@ check_nvram_loadf @@@ nvram flash is ok rai0 no private ioctls.

ifconfig: ioctl 0x8913 failed: No such device Password for 'admin' changed rmmod: ralink_wdt: No such file or directory rmmod: cls: No such file or directory rmmod: hw_nat: No such file or directory rmmod: raeth: No such file or directory insmod: bridge.ko: module not found insmod: mii.ko: module not found insmod: raeth.ko: module not found

##### disable 1st wireless interface ##### rai0 no private ioctls.

##### disable 2nd wireless interface ##### rmmod: rt2860v2_ap_net: No such file or directory rmmod: rt2860v2_ap: No such file or directory rmmod: rt2860v2_ap_util: No such file or directory rmmod: MT7610_ap: No such file or directory insmod: rt_timer.ko: module not found insmod: rt2860v2_ap_util.ko: module not found rt2860v2_ap: module license 'unspecified' taints kernel. Disabling lock debugging due to kernel taint

pAd = c05d0000, size = 808936

←- RTMPAllocTxRxRingMemory, Status=0 ←- RTMPAllocAdapterBlock, Status=0 AP Driver version-2.7.1.6_20130807 insmod: rt2860v2_ap_net.ko: module not found

pAd = c0b02000, size = 944472

←- RTMPAllocTxRxRingMemory, Status=0 ←- RTMPAllocAdapterBlock, Status=0 device_id =0x7650 =⇒MT76x0_WLAN_ChipOnOff(): OnOff:1, pAd→WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002 MACVersion = 0x76502000 RX DESC a23fe000 size = 2048 RTMP_TimerListAdd: add timer obj c0665e80! RTMP_TimerListAdd: add timer obj c0631000! RTMP_TimerListAdd: add timer obj c0630fd4! RTMP_TimerListAdd: add timer obj c0630fa8! RTMP_TimerListAdd: add timer obj c05d8070! RTMP_TimerListAdd: add timer obj c05d7c64! RTMP_TimerListAdd: add timer obj c05d8040! RTMP_TimerListAdd: add timer obj c05d83e8! RTMP_TimerListAdd: add timer obj c05d8138! RTMP_TimerListAdd: add timer obj c05d8168! RTMP_TimerListAdd: add timer obj c05d8328! RTMP_TimerListAdd: add timer obj c05d8358! RTMP_TimerListAdd: add timer obj c05db2a8! RTMP_TimerListAdd: add timer obj c05dae9c! RTMP_TimerListAdd: add timer obj c05db278! RTMP_TimerListAdd: add timer obj c05db620! RTMP_TimerListAdd: add timer obj c05db370! RTMP_TimerListAdd: add timer obj c05db3a0! RTMP_TimerListAdd: add timer obj c05db560! RTMP_TimerListAdd: add timer obj c05db590! RTMP_TimerListAdd: add timer obj c05de4e0! RTMP_TimerListAdd: add timer obj c05de0d4! RTMP_TimerListAdd: add timer obj c05de4b0! RTMP_TimerListAdd: add timer obj c05de858! RTMP_TimerListAdd: add timer obj c05de5a8! RTMP_TimerListAdd: add timer obj c05de5d8! RTMP_TimerListAdd: add timer obj c05de798! RTMP_TimerListAdd: add timer obj c05de7c8! RTMP_TimerListAdd: add timer obj c05e1718! RTMP_TimerListAdd: add timer obj c05e130c! RTMP_TimerListAdd: add timer obj c05e16e8! RTMP_TimerListAdd: add timer obj c05e1a90! RTMP_TimerListAdd: add timer obj c05e17e0! RTMP_TimerListAdd: add timer obj c05e1810! RTMP_TimerListAdd: add timer obj c05e19d0! RTMP_TimerListAdd: add timer obj c05e1a00! RTMP_TimerListAdd: add timer obj c05e4950! RTMP_TimerListAdd: add timer obj c05e4544! RTMP_TimerListAdd: add timer obj c05e4920! RTMP_TimerListAdd: add timer obj c05e4cc8! RTMP_TimerListAdd: add timer obj c05e4a18! RTMP_TimerListAdd: add timer obj c05e4a48! RTMP_TimerListAdd: add timer obj c05e4c08! RTMP_TimerListAdd: add timer obj c05e4c38! RTMP_TimerListAdd: add timer obj c05e7b88! RTMP_TimerListAdd: add timer obj c05e777c! RTMP_TimerListAdd: add timer obj c05e7b58! RTMP_TimerListAdd: add timer obj c05e7f00! RTMP_TimerListAdd: add timer obj c05e7c50! RTMP_TimerListAdd: add timer obj c05e7c80! RTMP_TimerListAdd: add timer obj c05e7e40! RTMP_TimerListAdd: add timer obj c05e7e70! RTMP_TimerListAdd: add timer obj c05eadc0! RTMP_TimerListAdd: add timer obj c05ea9b4! RTMP_TimerListAdd: add timer obj c05ead90! RTMP_TimerListAdd: add timer obj c05eb138! RTMP_TimerListAdd: add timer obj c05eae88! RTMP_TimerListAdd: add timer obj c05eaeb8! RTMP_TimerListAdd: add timer obj c05eb078! RTMP_TimerListAdd: add timer obj c05eb0a8! RTMP_TimerListAdd: add timer obj c05edff8! RTMP_TimerListAdd: add timer obj c05edbec! RTMP_TimerListAdd: add timer obj c05edfc8! RTMP_TimerListAdd: add timer obj c05ee370! RTMP_TimerListAdd: add timer obj c05ee0c0! RTMP_TimerListAdd: add timer obj c05ee0f0! RTMP_TimerListAdd: add timer obj c05ee2b0! RTMP_TimerListAdd: add timer obj c05ee2e0! RTMP_TimerListAdd: add timer obj c0633404! RTMP_TimerListAdd: add timer obj c0632ff8! RTMP_TimerListAdd: add timer obj c06333d4! RTMP_TimerListAdd: add timer obj c063377c! RTMP_TimerListAdd: add timer obj c06334cc! RTMP_TimerListAdd: add timer obj c06334fc! RTMP_TimerListAdd: add timer obj c0633434! RTMP_TimerListAdd: add timer obj c0633464! RTMP_TimerListAdd: add timer obj c0633494! RTMP_TimerListAdd: add timer obj c063c7ec! RTMP_TimerListAdd: add timer obj c063c908! RTMP_TimerListAdd: add timer obj c063c818! RTMP_TimerListAdd: add timer obj c0633b24! RTMP_TimerListAdd: add timer obj c05d5530! RTMP_TimerListAdd: add timer obj c05d8768! RTMP_TimerListAdd: add timer obj c05db9a0! RTMP_TimerListAdd: add timer obj c05debd8! RTMP_TimerListAdd: add timer obj c05e1e10! RTMP_TimerListAdd: add timer obj c05e5048! RTMP_TimerListAdd: add timer obj c05e8280! RTMP_TimerListAdd: add timer obj c05eb4b8! RTMP_TimerListAdd: add timer obj c0633838! 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 Key2Str 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) 1. Phy Mode = 9 2. Phy Mode = 9 E2PROM: D0 target power=0xff20 E2PROM: 40 MW Power Delta= 0 3. Phy Mode = 9 RTMP_TimerListAdd: add timer obj c05d5128! AntCfgInit: primary/secondary ant 0/1 Initialize RF Central Registers for E2 !!! Initialize RF Central Registers for E3 !!! Initialize RF Channel Registers for E2 !!! Initialize RF Channel Registers for E3 !!! Initialize RF DCCal Registers for E2 !!! Initialize RF DCCal Registers for E3 !!! D1 = -1, D2 = 5, CalCode = 14 !!! RT6352_Temperature_Init : BBPR49 = 0xffffffff RT6352_Temperature_Init : TemperatureRef25C = 0xfffffff5 Current Temperature from BBP_R49=0xfffffff2 TX BW Filter Calibration !!! RX BW Filter Calibration !!! LOFT Calibration Done! IQCalibration Start! IQCalibration Done! CH = 0, (gain= 1, phase=3c) IQCalibration Start! IQCalibration Done! CH = 1, (gain= f, phase=3e) TX IQ Calibration Done! RTMPSetPhyMode: channel is out of range, use first channel=0 MCS Set = ff ff 00 00 01 SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l SYNC - BBP R4 to 20MHz.l RTMP_TimerListAdd: add timer obj c06340c8! Main bssid = 90:ef:68:2e:40:b0 ⇐=== rt28xx_init, Status=0 0x1300 = 00064380 load fw spent 16ms RX DESC a2019000 size = 2048 RX1 DESC a201a000 size = 2048 cfg_mode=14 cfg_mode=14 wmode_band_equal(): Band Not Equal! 1. Phy Mode = 49 2. Phy Mode = 49 drivers/net/wireless/MT7610_ap/chips/mt76x0.c:2196 assert (pAd→TxPower[choffset].Channel == 36)failed ext_pa_current_setting = 1 TXALC> bInternalTxALC = 0 3. Phy Mode = 49 AntCfgInit: primary/secondary ant 0/1 ChipStructAssign(): RALINK6590 hook ! MCS Set = ff 00 00 00 01 MT76x0_ChipBBPAdjust():rf_bw=2, ext_ch=1, PrimCh=36, HT-CentCh=38, VHT-CentCh=42 APStartUp(): AP Set CentralFreq at 42(Prim=36, HT-CentCh=38, VHT-CentCh=42, BBP_BW=2) Main bssid = 90:ef:68:2e:40:b4 ⇐=== rt28xx_init, Status=0 MT76x0_Calibration - Channel = 42, bPowerOn = 1, bSaveCal = 1 FullCalibration - Channel = 42, param = 0x301, bSave = 1, CalibrationMode = 255 FullCalibration - Channel = 136, param = 0x401, bSave = 1, CalibrationMode = 255 FullCalibration - Channel = 155, param = 0x501, bSave = 1, CalibrationMode = 255 FullCalibration - Channel = 42, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 36, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 36, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 40, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 40, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 44, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 44, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 48, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 48, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 52, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 52, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 56, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 56, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 60, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 60, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 64, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 64, param = 0x701, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 100, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 100, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 104, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 104, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 108, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 108, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 112, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 112, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 116, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 116, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 120, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 120, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 124, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 124, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 128, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 128, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 132, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 132, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 136, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 136, param = 0x801, bSave = 0, CalibrationMode = 255 MT76x0_Calibration - Channel = 140, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 140, param = 0x901, bSave = 0, CalibrationMode = 255 MT76x0_ChipBBPAdjust():rf_bw=2, ext_ch=1, PrimCh=44, HT-CentCh=46, VHT-CentCh=42 APStartUp(): AP Set CentralFreq at 42(Prim=44, HT-CentCh=46, VHT-CentCh=42, BBP_BW=2) MT76x0_Calibration - Channel = 42, bPowerOn = 0, bSaveCal = 0 FullCalibration - Channel = 42, param = 0x701, bSave = 0, CalibrationMode = 255 0x1300 = 00064380 RTMPDrvOpen(1):Check if PDMA is idle! RTMPDrvOpen(2):Check if PDMA is idle! ifconfig: ioctl 0x8913 failed: No such device brctl: bridge br0: No such device or address Raeth v3.0 (Tasklet,SkbRecycle)

phy_tx_ring = 0x0184d000, tx_ring = 0xa184d000

phy_rx_ring0 = 0x0184e000, rx_ring0 = 0xa184e000 SMACCR1 -- : 0x000090ef SMACCR0 -- : 0x682e40b1 CDMA_CSG_CFG = 81000000 GDMA1_FWD_CFG = 20710000 vconfig: ioctl error for rem: No such device vconfig: ioctl error for rem: No such device rmmod: 8021q: No such file or directory insmod: 8021q.ko: module not found ##### config Ralink ESW vlan partition (LLLLW) ##### switch reg write offset=2004, value=ff0003 switch reg write offset=2104, value=ff0003 switch reg write offset=2204, value=ff0003 switch reg write offset=2304, value=ff0003 switch reg write offset=2404, value=ff0003 switch reg write offset=2504, value=ff0003 switch reg write offset=2010, value=810000c0 switch reg write offset=2110, value=810000c0 switch reg write offset=2210, value=810000c0 switch reg write offset=2310, value=810000c0 switch reg write offset=2410, value=810000c0 switch reg write offset=2510, value=810000c0 switch reg write offset=2610, value=81000000 switch reg write offset=2710, value=81000000 switch reg write offset=2604, value=20ff0003 switch reg write offset=2704, value=20ff0003 Special Tag Disabled switch reg write offset=2610, value=81000000 switch reg write offset=2014, value=10001 switch reg write offset=2114, value=10001 switch reg write offset=2214, value=10001 switch reg write offset=2314, value=10001 switch reg write offset=2414, value=10002 switch reg write offset=2514, value=10001 REG_ESW_WT_MAC_ATC is 0x7ff0002 done. EMIL DEBUG : addRaix2Br0() -

##### enable 2nd wireless interface ##### Enlarge min_free_kbytes....

Start Kill TimeTool Daemon!!!!!

CloneMAC mode is 0... Enter timetool udhcpc (v1.12.1) started ifconfig: ioctl 0x8914 failed: Cannot assign requested address ifconfig: ioctl 0x8914 failed: Cannot assign requested address Re-write DHCP file cat: can't open '/etc/resolv.conf': No such file or directory dhcp_DnsMode is 9... killall: udhcpd: no process killed Set: phy[0].reg[0] = 3900 Set: phy[1].reg[0] = 3900 Set: phy[2].reg[0] = 3900 Set: phy[3].reg[0] = 3900 Set: phy[0].reg[0] = 3300 Set: phy[1].reg[0] = 3300 Set: phy[2].reg[0] = 3300 Set: phy[3].reg[0] = 3300 EMIL DEBUG : 1, 192.168.1.1 killall: nmbd: no process killed

* g_wl_interface = ra0 **

iwpriv ra0 set IgmpSnEnable=1 iwpriv rai0 set IgmpSnEnable=1 Start initInternet!!!!! system[internet.sh] = 0

 sRL debug: AQ_LAN_IP=c0a80101

ysRL debug: AQ_SHIFT_COUNT=8 teRL debug: AQ_HTTP_PORT=50 m[AccessLAN.sh] = 0

 system[killall rt2860apd 1>/dev/null 2>&1] = 256
 system[killall rtinicapd 1>/dev/null 2>&1] = 256
 system[mkdir -p /var/spool/cron/crontabs] = 0
 system[rm -f /var/spool/cron/crontabs/scheduler] = 0
 system[rm -f /var/spool/cron/crontabs/scheduler5G] = 0
 system[cat /var/spool/cron/crontabs/temp.dat > /var/spool/cron/crontabs/admin] = 0
 system[rm -f /var/spool/cron/crontabs/temp.dat] = 0

2.4G and 5G no scheduling killall: crond: no process killed

 system[killall crond] = 256
 system[iwpriv ra0 set RadioOn=1] = 0
 system[echo 1 > /var/SchedulerRadioOn] = 0
 system[iwpriv rai0 set RadioOn=1] = 0
 system[echo 1 > /var/SchedulerRadioOn5G] = 0led=55, on=1, off=4000, blinks,=1, reset=1, time=4000
 system[gpio l 55 0 4000 0 1 4000] = 0

iptablesAllFilterClear

 system[iptables -F -t filter 1>/dev/null 2>&1] = 0
 system[iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1] = 512
 system[iptables -F macipport_filter 1>/dev/null 2>&1] = 256
 system[iptables -D FORWARD -j web_filter  1>/dev/null 2>&1] = 512
 system[iptables -F web_filter  1>/dev/null 2>&1] = 256
 system[iptables -X dos_block  1>/dev/null 2>&1] = 256
 system[iptables -X dos_log  1>/dev/null 2>&1] = 256
 system[iptables -X port_trigger  1>/dev/null 2>&1] = 256
 system[iptables -D FORWARD -j DMZ_FORWARD  1>/dev/null 2>&1] = 512
 system[iptables -F DMZ_FORWARD  1>/dev/null 2>&1] = 256
 system[iptables -P INPUT ACCEPT] = 0
 system[iptables -P FORWARD DROP] = 0
 system[iptables -P OUTPUT ACCEPT] = 0
 system[iptables -P INPUT ACCEPT] = 0
 system[iptables -P FORWARD ACCEPT] = 0

START Filter Chain

 system[iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N dos_block 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A INPUT -j dos_block 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N dos_log 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A INPUT -j dos_log 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N web_filter 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N macipport_filter 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N port_forward 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A FORWARD -j port_forward 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N port_trigger 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A FORWARD -j port_trigger 1>/dev/null 2>&1] = 0
 system[iptables -t filter -N DMZ_FORWARD 1>/dev/null 2>&1] = 0
 system[iptables -t filter -A FORWARD -j DMZ_FORWARD 1>/dev/null 2>&1] = 0

iptablesAllFilterRun

websTrustedIPAddress is null

START NAT Chain

iptablesAllNATClear

 system[iptables -t nat -D PREROUTING -j port_trigger  1>/dev/null 2>&1] = 512
 system[iptables -t nat -F port_trigger  1>/dev/null 2>&1; iptables -t nat -X port_trigger  1>/dev/null 2>&1] = 256
 system[iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1] = 512
 system[iptables -t nat -F port_forward  1>/dev/null 2>&1; iptables -t nat -X port_forward  1>/dev/null 2>&1] = 256
 system[iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1] = 512
 system[iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ  1>/dev/null 2>&1] = 256
 system[iptables -t nat -D POSTROUTING -j DMZ_POST  1>/dev/null 2>&1] = 512
 system[iptables -t nat -F DMZ_POST  1>/dev/null 2>&1; iptables -t nat -X DMZ_POST  1>/dev/null 2>&1] = 256
 system[iptables -F -t nat 1>/dev/null 2>&1] = 0
 system[iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j DMZ 1>/dev/null 2>&1] = 0
 system[iptables -t nat -N port_trigger 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_trigger 1>/dev/null 2>&1] = 0
 system[iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1] = 0
 system[iptables -t nat -N port_forward_post 1>/dev/null 2>&1; iptables -t nat -A POSTROUTING -j port_forward_post 1>/dev/null 2>&1] = 0
 system[iptables -t nat -N DMZ_POST 1>/dev/null 2>&1; iptables -t nat -A POSTROUTING -j DMZ_POST 1>/dev/null 2>&1] = 0

iptablesAllNATRun

Enter iptablesPortForwardRun Enter iptablesPortTriggerRun WAN IP error

iptablesNATBasic

 system[iptables -t nat -A POSTROUTING -o eth2.2 -j MASQUERADE] = 0

==⇒>>Start iptablesWANServiceRun !!!

 system[iptables -t filter -F INPUT] = 0
 system[iptables -t filter -I INPUT -i eth2.2 -d 192.168.1.1 -p icmp --icmp-type echo-request -j DROP] = 0

Disable WAN Ping WAN IP error → do something

 system[echo 0 > /proc/sys/net/ipv4/ip_forward] = 0
 system[echo 1 > /proc/sys/net/ipv4/ip_forward] = 0
 system[iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT] = 0

Using intrapositioned negation (`--option ! this`) is deprecated in favor of extrapositioned (`! --option this`).

 system[iptables -A INPUT -i ! eth2.2 -j ACCEPT] = 0
 system[iptables -F dos_block  1>/dev/null 2>&1] = 0
 system[iptables -F dos_log  1>/dev/null 2>&1] = 0
 system[iptables -t filter -A INPUT -j dos_block 1>/dev/null 2>&1] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ALL FIN,URG,PSH -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ALL ALL -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ALL NONE -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags SYN,RST SYN,RST -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags SYN,FIN SYN,FIN -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ALL FIN -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags FIN,RST FIN,RST -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ACK,FIN FIN -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ACK,URG URG -j DROP] = 0
 system[iptables -A dos_block -p tcp --tcp-flags ACK,PSH PSH -j DROP] = 0
 system[iptables -A dos_block -m state --state INVALID -j DROP] = 0
 system[iptables -A dos_block -p tcp ! --syn -m state --state NEW -j DROP] = 0
 system[iptables -A FORWARD -p udp -i eth2.2 -o br0 -j ACCEPT] = 0
 system[iptables -A FORWARD -p tcp -i eth2.2 -o br0 -j ACCEPT] = 0
 system[iptables -A FORWARD -p icmp -i eth2.2 -o br0 -j ACCEPT] = 0
 system[iptables -A FORWARD -i br0 -j ACCEPT] = 0
 system[iptables -A FORWARD -i eth2.2 -m state --state RELATED,ESTABLISHED -j ACCEPT ] = 0
 system[ip6tables -F INPUT] = 0
 system[ip6tables -P INPUT ACCEPT] = 0
 system[ip6tables -F FORWARD] = 0
 system[ip6tables -P FORWARD ACCEPT] = 0
 system[ip6tables -F OUTPUT] = 0
 system[ip6tables -P OUTPUT ACCEPT] = 0

EMIL DEBUG : 1 killall: ntp.sh: no process killed

 system[killall ntp.sh] = 256
 system[ntp.sh &] = 0

DDNS not Enable.

 system[ddns.sh] = 0
 system[udps &] = 0

Enter udps

 system[cplange.sh &] = 0

sh: cplange.sh: not found

 system[iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1] = 0
 system[route delete 239.255.255.250 1>/dev/null 2>&1] = 256

Ntpserver is 192.5.41.41 connect: Network is unreachable sleep 4.....

 system[miniupnpd.sh init] = 0
 system[iwpriv rai0 set WscConfMode=0 1>/dev/null 2>&1] = 0
 system[route delete 239.255.255.250 1>/dev/null 2>&1] = 256
 system[miniupnpd.sh init] = 0
 system[echo '1' >  /tmp/syslodg_exist] = 0
 system[syslogd -C8 1>/dev/null 2>&1] = 0
 system[klogd 1>/dev/null 2>&1] = 0
 system[killall -q zebra] = 256
 system[killall -q ripd] = 256

RL :

start running QoS

Gateway Mode rl_qos: OP_MODE=0 rl_qos: WAN_IF=eth2.2 rl_qos: LAN_IF=br0 rl_qos: WLAN_IF=(null) rl_qos: BR_IF=br0 rl_qos: qosEnable=0 rl_qos: qosAutoEnable=0 rl_qos: UPLINK_SPEED=51200 rl_qos: DOWNLINK_SPEED=51200

 system[/sbin/rl_qos] = 0

RL modified timeout parameter in xxM.

Cannot find device “sixtun”

 system[ip link set sixtun down] = 65280

killall: dhcp6s: no process killed

 system[killall dhcp6s] = 256

killall: dhcp6c: no process killed

 system[killall dhcp6c] = 256

killall: radvd: no process killed

 system[killall radvd] = 256
 system[echo 0 > /proc/sys/net/ipv6/conf/all/forwarding] = 0

Mode=4, Enter Link Local

BoA: reload parameter into BoA webserver! led=39, on=4000, off=1, blinks,=1, reset=1, time=4000 The rmPort is 80 Ntpserver is 192.5.41.209 connect: Network is unreachable sleep 4..... Ntpserver is 203.117.180.36


This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2020/09/27 20:23
  • by jhench