大破雑記帳

個人用メモな雑記ブログ いろんなことをざっくりと。

WAB-S1167-PS

WAB-I1750-PS繋がりで調べた際、WAB-S600-PS同様に認知していたもの。

最近ELECOM公式でWAB-I1750-PSの在庫処分セールがあり、それが盛り上がっていた際に「WAB-S1167-PS現物か中古購入分の寄付があれば、1750と併せて作業する」と宣言した結果、寄付を頂いた為、確保した。

弄っていくのでメモ。

Ethernet

switchは搭載せず、QCA9557のeth0/eth1にAR803x phy 2つをそれぞれ直結。

zone LAN
port (WAB-S1167-PS) PD (IN) PSE (OUT)
port eth0 (AR8035) eth1 (AR8033)

MAC

  • Ethernet (PD, PSE): 00:90:FE:xx:xx:04 (Config, ethaddr (text))
  • 2.4G: 00:90:FE:xx:xx:04 (Config, ethaddr (text))
  • 5G: 00:90:FE:xx:xx:05

U-Boot

  • help

      ath> help
      ?       - alias for 'help'
      autoscr - run script from memory
      base    - print or set address offset
      bdinfo  - print Board Info structure
      boot    - boot default, i.e., run 'bootcmd'
      bootd   - boot default, i.e., run 'bootcmd'
      bootelf - Boot from an ELF image in memory
      bootm   - boot application image from memory
      bootp   - boot image via network using BootP/TFTP protocol
      bootvx  - Boot vxWorks from an ELF image
      cmp     - memory compare
      coninfo - print console devices and information
      cp      - memory copy
      crc32   - checksum calculation
      dhcp    - invoke DHCP client to obtain IP/boot params
      echo    - echo args to console
      elx_check      - check ELX image
      erase   - erase FLASH memory
      ethreg    - S26 PHY Reg rd/wr  utility
      exit    - exit script
      flinfo  - print FLASH memory information
      go      - start application at address 'addr'
      help    - print online help
      iminfo  - print header information for application image
      itest   - return true/false on integer compare
      loop    - infinite loop on address range
      md      - memory display
      mii     - MII utility commands
      mm      - memory modify (auto-incrementing)
      mtest   - simple RAM test
      mw      - memory write (fill)
      nfs     - boot image via network using NFS protocol
      nm      - memory modify (constant address)
      pci     - list and access PCI Configuration Space
      ping    - send ICMP ECHO_REQUEST to network host
      pll cpu-pll dither ddr-pll dither - Set to change CPU & DDR speed
      pll erase
      pll get
      printenv- print environment variables
      progmac - Set ethernet MAC addresses
      protect - enable or disable FLASH write protection
      rarpboot- boot image via network using RARP/TFTP protocol
      reset   - Perform RESET of the CPU
      run     - run commands in an environment variable
      saveenv - save environment variables to persistent storage
      setenv  - set environment variables
      sleep   - delay execution for some time
      test    - minimal test like /bin/sh
      tftpboot- boot image via network using TFTP protocol
      version - print monitor version
    
  • version

      ath> version
    
      U-Boot 1.1.4-g245070bc-dirty (Sep 15 2014 - 21:36:13)
    
  • printenv

      ath> printenv
      bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),8256k(mib0),64k(ART)
      bootcmd=bootm 0x9f070000
      bootdelay=2
      baudrate=115200
      ethaddr="00:90:FE:xx:xx:04"
      ipaddr=192.168.99.9
      serverip=192.168.99.8
      dir=
      lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
      lf=tftp 0x80060000 ${dir}7479PLC${bc}-jffs2&&erase 0x9f050000 +0x630000&&cp.b $fileaddr 0x9f050000 $filesize
      lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize&&cp.b $fileaddr 0x9f680000 $filesize
      ethact=eth1
      domain=1
      pincode=xxxxxxxx
      wlanaddr=00:aa:bb:cc:dd:10
      sn=42L248602147                    
      usboot=0
      op_mode=0
      bver=4.0.1.5
      dom2=1
      wanaddr=00:aa:bb:cc:dd:20
      hw_id=0107000c
      language_code=jp
      kver=1.0.16 
      bootfile=uImage_WAS_S1167
      stdin=serial
      stdout=serial
      stderr=serial
    
      Environment size: 903/65532 bytes
    
  • mii device

      ath> mii device
      MII devices: 'eth1' 
      Current device: 'eth1'
    
  • md.l 0x180500x8

    • 0x18050028

      ath> md.l 0x18050028 1
      18050028: 00000101    ....
      
    • 0x18050048

      ath> md.l 0x18050048 1
      18050048: 03000101    ....
      

Kernel

パスワードを要求される。

  • uname -a

      # uname -a
      Linux WAS_S1167 3.2.9 #3 Mon Sep 15 20:29:27 CST 2014 mips GNU/Linux
    
  • cat /proc/version

      # cat /proc/version
      Linux version 3.2.9 (root@edward-OptiPlex-9010) (gcc version 4.3.6 (Buildroot 2013.05) ) #3 Mon Sep 15 20:29:27 CST 2014
    
  • cat /proc/cpuinfo

      # cat /proc/cpuinfo
      system type             : QCA955x
      machine                 : Elecom WAP-S1167
      processor               : 0
      cpu model               : MIPS 74Kc V5.0
      BogoMIPS                : 359.42
      wait instruction        : yes
      microsecond timers      : yes
      tlb_entries             : 32
      extra interrupt vector  : yes
      hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
      ASEs implemented        : mips16
      shadow register sets    : 1
      kscratch registers      : 0
      core                    : 0
      VCED exceptions         : not available
      VCEI exceptions         : not available
    
  • cat /proc/meminfo

      # cat /proc/meminfo
      MemTotal:         126252 kB
      MemFree:           82472 kB
      Buffers:            2640 kB
      Cached:            16196 kB
      SwapCached:            0 kB
      Active:             6076 kB
      Inactive:          16568 kB
      Active(anon):       3844 kB
      Inactive(anon):      344 kB
      Active(file):       2232 kB
      Inactive(file):    16224 kB
      Unevictable:           0 kB
      Mlocked:               0 kB
      SwapTotal:             0 kB
      SwapFree:              0 kB
      Dirty:                 0 kB
      Writeback:             0 kB
      AnonPages:          3824 kB
      Mapped:             4068 kB
      Shmem:               380 kB
      Slab:              14132 kB
      SReclaimable:        660 kB
      SUnreclaim:        13472 kB
      KernelStack:         432 kB
      PageTables:          308 kB
      NFS_Unstable:          0 kB
      Bounce:                0 kB
      WritebackTmp:          0 kB
      CommitLimit:       63124 kB
      Committed_AS:      96696 kB
      VmallocTotal:    1048372 kB
      VmallocUsed:         496 kB
      VmallocChunk:    1044264 kB
    
  • cat /proc/mtd

      # cat /proc/mtd
      dev:    size   erasesize  name
      mtd0: 01000000 00010000 "ALL"
      mtd1: 00040000 00010000 "Bootloader"
      mtd2: 00010000 00010000 "Config"
      mtd3: 00010000 00010000 "ART"
      mtd4: 00010000 00010000 "ART2"
      mtd5: 00e00000 00010000 "Kernel"
      mtd6: 00e00000 00010000 "user"
      mtd7: 00100000 00010000 "manufacture"
      mtd8: 00010000 00010000 "backup"
      mtd9: 00080000 00010000 "storage"
    
  • mount

      # mount
      rootfs on / type rootfs (rw)
      none on /sys type sysfs (rw,relatime)
      /proc on /proc type proc (rw,relatime)
      devpts on /dev/pts type devpts (rw,relatime,mode=600)
      /dev/shm/tmp/ on /mnt/tmpfs type tmpfs (rw,relatime,size=16384k,nr_inodes=10240,mode=700)
      /dev/mtdblock9 on /storage type jffs2 (rw,relatime)
      /dev/loop0 on /apps type squashfs (ro,relatime)
    
  • ls -al /sys/class/leds/

       ls -al /sys/class/leds/
      lrwxrwxrwx    1         0 Jan  1 00:06 buzr -> ../../devices/platform/leds-gpio/leds/buzr
      lrwxrwxrwx    1         0 Jan  1 00:00 2g_led -> ../../devices/platform/leds-gpio/leds/2g_led
      lrwxrwxrwx    1         0 Jan  1 00:00 usb1_en -> ../../devices/platform/leds-gpio/leds/usb1_en
      lrwxrwxrwx    1         0 Jan  1 00:00 usb1_led -> ../../devices/platform/leds-gpio/leds/usb1_led
      lrwxrwxrwx    1         0 Jan  1 00:06 DIAG -> ../../devices/platform/leds-gpio/leds/DIAG
      drwxr-xr-x   19         0 Jan  1 00:00 ..
      drwxr-xr-x    2         0 Jan  1 00:00 .
    
  • header -x WAB-S1167-PS-FW-V1-5-6.bin

      # header -x WAB-S1167-PS-FW-V1-5-6.bin 
      ### Decoding  image ####
      Decode source file [WAB-S1167-PS-FW-V1-5-6.bin]
      ------- Header Info -------
      Vendor  id:  0x0107
      Product id:  0x000c
      Hardware id:  0x0107000c
      Version id:  3047
      Code Version:  1.5.6
      Type: 0x3 [kernel]
      comp_file_len:  6151907
      comp_file_sum:  0x0
      Header sum:  0x371
      Magic key:  0x30471688
      MD5 chksum:  c2d0298c54def608de5fb315c6ecabe
      ------------------------------
      Decode finished, got file [WAB-S1167-PS-FW-V1-5-6.bin.bin] with size 6151907 bytes
      header: Return OK
    
  • bootlog (op_mode=0)

      U-Boot 1.1.4-g245070bc-dirty (Sep 15 2014 - 21:36:13)
      ELX version: 1.0.1
    
      7479PLC - Scorpion 1.0DRAM:  
      sri
      Scorpion 1.0
      ath_ddr_initial_config(178): (32bit) ddr2 init
      tap = 0x00000003
      Tap (low, high) = (0x5, 0x1d)
      Tap values = (0x11, 0x11, 0x11, 0x11)
      128 MB
      Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
      Flash [MX25L12845E] sectors: 256
      Flash: 16 MB
      In:    serial
      Out:   serial
      Err:   serial
      Net:   ath_gmac_enet_initialize...
      athrs_sgmii_res_cal: cal value = 0xe
      Fetching MAC Address from 0x87feb67c
      Fetching MAC Address from 0x87feb67c
      ath_gmac_enet_initialize: reset mask:c02200 
      Scorpion ---->8033 PHY*
      AR8033 PHY init 
      athrs_ar8033_reg_init: Done ffff 
      Max resets limit reached exiting...
      athr_gmac_sgmii_setup SGMII done
      : cfg1 0x800c0000 cfg2 0x7214
      eth1: 00:aa:bb:cc:dd:01
      eth1 up
      eth1
      Setting 0x18116290 to 0x458ba14f
    
      Please choose the operation: 
         1: Load system code to SDRAM via TFTP. 
         3: Boot system code via Flash (default).
         4: Entr boot command line interface.                                                                                                        0 
    
      3: System Boot system code via Flash.
      ## Booting image at 9f070000 ...
         Image Name:   Linux Kernel Image
         Created:      2014-09-15  12:29:37 UTC
         Image Type:   MIPS Linux Kernel Image (lzma compressed)
         Data Size:    5467367 Bytes =  5.2 MB
         Load Address: 80002000
         Entry Point:  802c0b70
         Verifying Checksum at 0x9f070040 ...OK
         Uncompressing Kernel Image ... OK
    
      Starting kernel ...
    
      Linux version 3.2.9 (root@edward-OptiPlex-9010) (gcc version 4.3.6 (Buildroot 2013.05) ) #3 Mon Sep 15 20:29:27 CST 2014
      bootconsole [early0] enabled
      CPU revision is: 00019750 (MIPS 74Kc)
      SoC: QCA955x
      Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
      Determined physical RAM map:
       memory: 08000000 @ 00000000 (usable)
      Initrd not found or empty - disabling initrd
      Zone PFN ranges:
        Normal   0x00000000 -> 0x00008000
      Movable zone start PFN for each node
      early_node_map[1] active PFN ranges
          0: 0x00000000 -> 0x00008000
      Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
      Kernel command line:  console=ttyS0,115200 root=/dev/ram0 rootfstype=squashfs,jffs2
      PID hash table entries: 512 (order: -1, 2048 bytes)
      Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
      Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
      Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
      Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
      Writing ErrCtl register=00000000
      Readback ErrCtl register=00000000
      Memory: 119500k/131072k available (2847k kernel code, 11572k reserved, 687k data, 6752k init, 0k highmem)
      SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
      NR_IRQS:51
      Calibrating delay loop... 359.42 BogoMIPS (lpj=718848)
      pid_max: default: 32768 minimum: 301
      Mount-cache hash table entries: 512
      NET: Registered protocol family 16
      MIPS: machine is Elecom WAP-S1167
      registering PCI controller with io_map_base unset
      ar724x-pci ar724x-pci.1: PCIe link is down
      registering PCI controller with io_map_base unset
      bio: create slab <bio-0> at 0
      vgaarb: loaded
      SCSI subsystem initialized
      usbcore: registered new interface driver usbfs
      usbcore: registered new interface driver hub
      usbcore: registered new device driver usb
      pci 0000:00:00.0: fixup device configuration
      pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
      pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x101fffff 64bit] (PCI address [0x10000000-0x101fffff])
      pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
      pci 0000:00:00.0: using irq 40 for pin 1
      Switching to clocksource MIPS
      NET: Registered protocol family 2
      IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
      TCP established hash table entries: 4096 (order: 3, 32768 bytes)
      TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
      TCP: Hash tables configured (established 4096 bind 4096)
      TCP reno registered
      UDP hash table entries: 256 (order: 0, 4096 bytes)
      UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
      NET: Registered protocol family 1
      squashfs: version 4.0 (2009/01/31) Phillip Lougher
      JFFS2 version 2.2 (NAND) (SUMMARY) (ZLIB) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
      msgmni has been set to 233
      io scheduler noop registered
      io scheduler deadline registered
      io scheduler cfq registered (default)
      Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
      serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
      console [ttyS0] enabled, bootconsole disabled
      console [ttyS0] enabled, bootconsole disabled
      loop: module loaded
      Flash0 Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
      Flash0 MX25L12845E(c2 2018c200) (16384 Kbytes)
      mtd .name = ath-nor0, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
      Creating 10 MTD partitions on "ath-nor0":
      0x000000000000-0x000001000000 : "ALL"
      0x000000000000-0x000000040000 : "Bootloader"
      0x000000040000-0x000000050000 : "Config"
      0x000000050000-0x000000060000 : "ART"
      0x000000060000-0x000000070000 : "ART2"
      0x000000070000-0x000000e70000 : "Kernel"
      0x000000070000-0x000000e70000 : "user"
      0x000000e70000-0x000000f70000 : "manufacture"
      0x000000f70000-0x000000f80000 : "backup"
      0x000000f80000-0x000001000000 : "storage"
      IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
              Hooking IMQ after NAT on PREROUTING.
              Hooking IMQ before NAT on POSTROUTING.
      usbcore: registered new interface driver asix
      usbcore: registered new interface driver cdc_ether
      usbcore: registered new interface driver net1080
      usbcore: registered new interface driver cdc_subset
      usbcore: registered new interface driver zaurus
      usbcore: registered new interface driver MOSCHIP usb-ethernet driver
      cdc_ncm: 04-Aug-2011
      usbcore: registered new interface driver cdc_ncm
      ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      Port Status 1c000004 
      ath-ehci ath-ehci.0: ATH EHCI
      ath-ehci ath-ehci.0: new USB bus registered, assigned bus number 1
      ath-ehci ath-ehci.0: irq 48, io mem 0x1b000000
      ath-ehci ath-ehci.0: USB 2.0 started, EHCI 1.00
      usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
      usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      usb usb1: Product: ATH EHCI
      usb usb1: Manufacturer: Linux 3.2.9 ehci_hcd
      usb usb1: SerialNumber: platform
      hub 1-0:1.0: USB hub found
      hub 1-0:1.0: 1 port detected
      Port Status 1c000004 
      ath-ehci1 ath-ehci1.1: ATH EHCI
      ath-ehci1 ath-ehci1.1: new USB bus registered, assigned bus number 2
      ath-ehci1 ath-ehci1.1: irq 49, io mem 0x1b400000
      ath-ehci1 ath-ehci1.1: USB 2.0 started, EHCI 1.00
      usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
      usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      usb usb2: Product: ATH EHCI
      usb usb2: Manufacturer: Linux 3.2.9 ehci_hcd
      usb usb2: SerialNumber: platform
      hub 2-0:1.0: USB hub found
      hub 2-0:1.0: 1 port detected
      ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      uhci_hcd: USB Universal Host Controller Interface driver
      Initializing USB Mass Storage driver...
      usbcore: registered new interface driver usb-storage
      USB Mass Storage support registered.
      ath_usb_init: ID: 1130
      Registered button device:usb1_over, gpio:20,code:257,index:1
      Registered button device:reset, gpio:18,code:408,index:10
      Registered button device:wps, gpio:16,code:529,index:11
      Registered button device:usb_eject, gpio:19,code:256,index:0
      Netfilter messages via NETLINK v0.30.
      nf_conntrack version 0.5.0 (256 buckets, 2048 max)
      xt_time: kernel timezone is -0000
      ip_tables: (C) 2000-2006 Netfilter Core Team
      TCP westwood registered
      NET: Registered protocol family 10
      NET: Registered protocol family 17
      NET: Registered protocol family 2
      8021q: 802.1Q VLAN Support v1.8
      Freeing unused kernel memory: 6752k freed
      System Init version: 1.1 date: 1
      Setting up file systems ...
      Setting up /mnt/tmpfs directory with tmpfs/16384KB
      Setting up FLASH storage partition ...
      JFFS2 notice: (347) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
      Setting up /apps directory ...apps is in RAM ...
      Setting up loopback device ...
      FINISHED
      qca955x_GMAC: Length per segment 1536
      955x_GMAC: qca955x_gmac_attach
      955x_GMAC: qca955x_set_gmac_caps
      Currently in polling mode unit0
      Registering AR8035 Phy....
      qca955x_GMAC: RX TASKLET - Pkts per Intr:160
      qca955x_GMAC: Max segments per packet :   1
      qca955x_GMAC: Max tx descriptor count :   128
      qca955x_GMAC: Max rx descriptor count :   224
      qca955x_GMAC: Mac capability flags    :   42200
      955x_GMAC: qca955x_gmac_attach
      955x_GMAC: qca955x_set_gmac_caps
      Currently in polling mode unit1
      Registering AR8033 Phy....
      qca955x_GMAC: RX TASKLET - Pkts per Intr:160
      qca955x_GMAC: Max segments per packet :   1
      qca955x_GMAC: Max tx descriptor count :   128
      qca955x_GMAC: Max rx descriptor count :   224
      qca955x_GMAC: Mac capability flags    :   42200
      955x_GMAC: Serdes PLL is locked value 0x1f018116
      Start Normal Operation Mode ...
      ************************************************************************
      *                                ---ELX---                             *
      ************************************************************************
    
      KernelApp version: 1.0.16 build date: 2014/09/15 build time: 20:26:31
      cmd> ln: /sbin/./start_all: File exists
      athr_gmac_ring_alloc Allocated 2048 at 0x86df0800
      sram_desc_cnt 1536,mac Unit 0,Tx r->ring_desc 0xbd000000
      athr_gmac_ring_alloc Allocated 3584 at 0x86d84000
      sram_desc_cnt 4224,mac Unit 0,Rx r->ring_desc 0xbd000600
      955x_GMAC: eth0 in RGMII MODE
      Scorpion -----> 8035 PHY
      athrs_ar8035_reg_init: Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      Setting PHY...
      AR8035 found!
      [0:4]Phy ID 4d:d072
      ADDRCONF(NETDEV_UP): eth0: link is not ready
      athr_gmac_ring_alloc Allocated 2048 at 0x86f31000
      sram_desc_cnt 5760,mac Unit 1,Tx r->ring_desc 0xbd001080
      athr_gmac_ring_alloc Allocated 3584 at 0x86d85000
      sram_desc_cnt 8448,mac Unit 1,Rx r->ring_desc 0xbd001680
      955x_GMAC: eth1 in SGMII MODE
      Scorpion -----> 8033 PHY
      athrs_ar8033_reg_init: Done
      955x_SGMIIMax resets limit reached exiting...
      955x_SGMII::athr_gmac_sgmii_setup  Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      Setting PHY...
      AR8033 found!
      Phy ID 4d:d074
      ADDRCONF(NETDEV_UP): eth1: link is not ready
      athr_gmac_ring_free Freeing at 0x86df0800
      athr_gmac_ring_free Freeing at 0x86d84000
      athr_gmac_ring_alloc Allocated 2048 at 0x86fb1800
      sram_desc_cnt 8448,mac Unit 0,Tx r->ring_desc 0xbd000000
      athr_gmac_ring_alloc Allocated 3584 at 0x86d84000
      sram_desc_cnt 8448,mac Unit 0,Rx r->ring_desc 0xbd000600
      955x_GMAC: eth0 in RGMII MODE
      Scorpion -----> 8035 PHY
      athrs_ar8035_reg_init: Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      Setting PHY...
      AR8035 found!
      [0:4]Phy ID 4d:d072
      ADDRCONF(NETDEV_UP): eth0: link is not ready
      athr_gmac_ring_free Freeing at 0x86f31000
      athr_gmac_ring_free Freeing at 0x86d85000
      athr_gmac_ring_alloc Allocated 2048 at 0x86ed1800
      sram_desc_cnt 8448,mac Unit 1,Tx r->ring_desc 0xbd001080
      athr_gmac_ring_alloc Allocated 3584 at 0x86d85000
      sram_desc_cnt 8448,mac Unit 1,Rx r->ring_desc 0xbd001680
      955x_GMAC: eth1 in SGMII MODE
      Scorpion -----> 8033 PHY
      athrs_ar8033_reg_init: Done
      955x_SGMIIMax resets limit reached exiting...
      955x_SGMII::athr_gmac_sgmii_setup  Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      Setting PHY...
      AR8033 found!
      Phy ID 4d:d074
      ADDRCONF(NETDEV_UP): eth1: link is not ready
      port_id:[4],mode:[1]
      sh: mii_mgr: not found
      port_id:[4],mode:[1]
      port_id:[1],mode:[1]
      sh: mii_mgr: not found
      port_id:[1],mode:[1]
      ADDRCONF(NETDEV_UP): br0: link is not ready
      device br_t.1 entered promiscuous mode
      device br_t entered promiscuous mode
      br0: port 1(br_t.1) entering forwarding state
      br0: port 1(br_t.1) entering forwarding state
      br0: port 1(br_t.1) entering forwarding state
      ADDRCONF(NETDEV_CHANGE): br_t.1: link becomes ready
      device eth0 entered promiscuous mode
      device eth1 entered promiscuous mode
      br0: port 1(br_t.1) entering forwarding state
      br0: port 1(br_t.1) entering forwarding state
      adf: module license 'Proprietary' taints kernel.
      Disabling lock debugging due to kernel taint
      ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, WRITE_EEPROM, 11D)
      ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
      ath_dfs: Version 2.0.0
      Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
      ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
      ath_ahb: 10.1.467 (Atheros/multi-bss)
      __ath_attach: Set global_scn[0]
      Enterprise mode: 0x40000000
      Restoring Cal data from Flash
      Green-AP : Green-AP : Attached
    
      ath_get_caps[5957] rx chainmask mismatch actual 3 sc_chainmak 0
      ath_get_caps[5932] tx chainmask mismatch actual 3 sc_chainmak 0
      ath_attach_dfs[11938] dfsdomain 1
      wifi0: Atheros ???: mem=0xb8100000, irq=47
      ath_pci: 10.1.467 (Atheros/multi-bss)
      ath_pci_probe
      PCI device id is 003c :003c
      ath_pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
      ath_pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x101fffff 64bit] (PCI address [0x10000000-0x101fffff])
      PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
      ath_pci 0000:00:00.0: ath DEBUG: sc=0x80e89a00
    
       ol_ath_pci_configure : num_desired MSI set to 0
    
       Using PCI Legacy Interrupt
      __ol_ath_attach: ath_attach TODO
      ol_ath_attach() BMI inited.
      ol_ath_attach() BMI Get Target Info.
      ol_ath_attach() TARGET TYPE: 7 Vers 0x4100016c
      NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
      ol_ath_attach() configure Target .
      qc98xx_verify_checksum: flash checksum passed: 0x9952
      ol_transfer_bin_file 1713: Download Flash data len 2116
      ol_transfer_bin_file 1657: Download Firmware data len 190500
      955x_GMAC: enet unit:0 is up...
      eth0  RGMII  1000Mbps  full duplex
      955x_GMAC: qca955x_soc_gmac_set_mac_duplex 
      ---->1000Mpbs
      955x_GMAC: qca955x_soc_gmac_set_link Done
      955x_GMAC: done cfg2 0x7215 ifctl 0x0 miictrl  
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      955x_GMAC: qca955x_soc_gmac_set_mac_duplex 
      ---->1000Mpbs
      955x_GMAC: qca955x_soc_gmac_set_link Done
      ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      br0: port 2(eth0) entering forwarding state
      br0: port 2(eth0) entering forwarding state
      ol_ath_attach() Download FW. 
      ol_ath_attach() HT Create .
      ol_ath_attach() HIF Claim.
      ol_ath_attach() BMI Done. 
      ol_ath_attach() WMI attached. wmi_handle 86410000 
      +HWT
      CE_recv_buf_enqueue 457 Populate last entry 512 for CE 5
      CE_recv_buf_enqueue 466 CE 5 wi 511 dest_ptr 0x65b9c20 nbytes 0 recv_ctxt 0x8659e840
      -HWT
      HTC Service:0x0300 ep:1 TX flow control disabled
      CE_pkt_dl_len_set CE 4 Pkt download length 42
      TXRX: Created pdev 86fe3400
      wmi_service_ready_event_rx:  WMI UNIFIED SERVICE READY event 
      num_rf_chain : 00000002
      ht_cap_info: : 0000085b
      vht_cap_info : 338001b2
      vht_supp_mcs : 0000fffa
      LARGE_AP enabled. num_peers 144, num_vdevs 16, num_tids 256
      idx 0 req 1  num_units 0 num_unit_info 2 unit size 404 actual units 145 
      chunk 0 len 58580 requested ,ptr  0x6210000 
      FIRMWARE:P 145 V 16 T 443
    
      wmi_ready_event_rx:  WMI UNIFIED READY event 
      ol_ath_connect_htc() WMI is ready
      ol_ath_set_host_app_area TODO
      target uses HTT version 2.1; host uses 2.1
      ol_ath_attach() connect HTC. 
      ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
      Skipping VHT80 channel 5825
      ol_ath_phyerr_attach: called
      OL Resmgr Init-ed
      Green-AP : Green-AP : Attached
    
      Green-AP : Attached
      ol_if_dfs_setup: called 
      ol_if_dfs_attach: called; ptr=86209974, radar_info=86ff5bf0
      ol_ath_rtt_meas_report_attach: called
      ol_ath_attach() UMAC attach . 
      ol_if_dfs_configure: called
      ol_if_dfs_configure: FCC domain
      ol_if_dfs_disable: called
      ol_ath_attach: Calling ol_if_dfs_configure
      __ol_ath_attach: init tx/rx TODO
      __ol_ath_attach: hard_header_len reservation 58
      __ol_ath_attach: dev name wifi1
      Initializing Pktlogs for 11ac
      ath_attach_dfs[11938] dfsdomain 1
      VAP device ath0 created 
      wds10     no private ioctls.
    
    
       DES SSID SET=sho-karuizawa 
      Setting Max Stations:25
      WARNING: Fragmentation with HT mode NOT ALLOWED!!
      Error for wireless request "Set Fragmentation Threshold" (8B24) :
          SET failed on device ath0 ; Invalid argument.
      Error for wireless request "Set Fragmentation Threshold" (8B24) :
          SET failed on device wds10 ; No such device.
      Error for wireless request "Set RTS Threshold" (8B22) :
          SET failed on device wds10 ; No such device.
      device ath0 entered promiscuous mode
      br0: port 4(ath0) entering forwarding state
      br0: port 4(ath0) entering forwarding state
       Scan in progress.. Cancelling it 
      br0: port 4(ath0) entering forwarding state
      FWLOG: [19948] WHAL_ERROR_RESET_CHANNF1 ( 0xaaaa1111, 0x0 )
      FWLOG: [19948] WHAL_ERROR_RESET_CHANNF1 ( 0xaaaa2222, 0x91 )
      FWLOG: [19948] WHAL_ERROR_RESET_CHANNF1 ( 0xaaaa3333, 0x122 )
      FWLOG: [19948] WHAL_ERROR_RESET_CHANNF1 ( 0xaaaa4444, 0x132 )
      FWLOG: [19948] WHAL_ERROR_RESET_CHANNF1 ( 0xaaaa5555, 0x142 )
      FWLOG: [19948] WHAL_ERROR_RESET_CHANNF1 ( 0x1bb, 0x14a )
      br0: port 4(ath0) entering forwarding state
      br0: port 4(ath0) entering forwarding state
       ieee80211_ioctl_siwmode: imr.ifm_active=393856, new mode=3, valid=1 
       Scan in progress.. Cancelling it 
      br0: port 4(ath0) entering forwarding state
       DEVICE IS DOWN ifname=ath0
       DEVICE IS DOWN ifname=ath0
      br0: port 4(ath0) entering forwarding state
      br0: port 4(ath0) entering forwarding state
      mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
      mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
      mlme_create_infra_bss : Overriding HT40 channel with HT20 channel
      isCountryCodeValid: EEPROM regdomain 0x0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
      Skipping VHT80 channel 5660
      Skipping VHT80 channel 5680
      Skipping VHT80 channel 5700
      ath_ioctl: SIOC80211IFCREATE CALLED
      wmi_unified_vdev_create_send: ID = 0 VAP Addr = 00:90:fe:xx:xx:05:
      TXRX: Created vdev 80dcd400 (00:90:fe:xx:xx:05)
      Setting vdev param = 26, value = 147
      Setting vdev param = 27, value = 295
      Setting vdev param = 28, value = 300
      VAP device ath5 created 
      TXRX: ol_txrx_peer_find_add_id: peer 86fb2000 ID 14
      TXRX: ol_txrx_peer_find_add_id: peer 86fb2000 ID 30
      wds14     no private ioctls.
    
      ol_ath_vap_set_param: VAP param unsupported param:38 value:0
      ol_ath_vap_set_param: VAP param unsupported param:43 value:0
    
       DES SSID SET=elecom5g01-xxxx05 
      wmi_unified_vdev_stop_send 
      STOPPED EVENT for vap 0 
      Setting Max Stations:25
      Setting vdev param = 3, value = 100
      Setting vdev param = 26, value = 27
      Setting vdev param = 27, value = 55
      Setting vdev param = 28, value = 60
      Setting vdev param = d, value = 1
      ol_ath_vap_set_param: VAP param unsupported param:7 value:1
      WARNING: Fragmentation with HT mode NOT ALLOWED!!
      Error for wireless request "Set Fragmentation Threshold" (8B24) :
          SET failed on device ath5 ; Invalid argument.
      Error for wireless request "Set Fragmentation Threshold" (8B24) :
          SET failed on device wds14 ; No such device.
      Errorol_ath_vap_set_param: VAP param unsupported param:41 value:1
       for wireless request "Set RTS Threshold" (8B22)ol_ath_vap_set_param: VAP param unsupported param:35 value:0
       :
          SET failed on device wds14 ; No such devSetting vdev param = 1a, value = 1
      ice.
      Interface doesn't accept private ioctl...
      AMPDU (8BE0): Operation not permitted
      Interface doesn't accept privaol_ath_vap_set_param: VAP param unsupported param:156 value:0
      te ioctl...
      AMPDUFrames (8BE0): Operation not permitted
      Interface doesn't accept private ioctl...
      AMPDULim (8Setting vdev param = 1e, value = 1
      BE0): Operation not permitted
      Invalid command : set_swapled
      route: SIOCADDRT: File exists
      Setting vdev param = 12, value = 1
      ol_ath_vap_set_param: VAP param unsupported param:30 value:1
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      port_id:[4],mode:[1]
      port_id:[1],mode:[1]
    
      Ebtables v2.0 registered
    
      Start wps_led driver
      br0: port 1(br_t.1) entering forwarding state
      br0: port 2(eth0) entering forwarding state
      br0: port 4(ath0) entering forwarding state
    

WAB-S600-PS

WAB-I1750-PS繋がりで調べた際、同じくQCA955xを搭載すると思われた為認知していたもの。

最近ELECOM公式でWAB-I1750-PSの在庫処分セールがあり、それが盛り上がっていた際に「WAB-S1167-PS現物か中古購入分の寄付があれば、1750と併せて作業する」と宣言した結果、寄付を頂いた為、どうせならWAB-S600-PSも巻き込もうと思い至って確保した。

弄っていくのでメモ。

Ethernet

switchは搭載せず、QCA9557のeth0/eth1にAR803x phy2つをそれぞれ直結。

zone LAN
port (WAB-S600-PS) PD (IN) PSE (OUT)
port eth0 (AR8035) eth1 (AR8033)

MAC

  • Ethernet (PD, PSE): BC:5C:4C:xx:xx:7C (Config, ethaddr (text))
  • 2.4G: BC:5C:4C:xx:xx:7C (Config, ethaddr (text))
  • 5G: BC:5C:4C:xx:xx:7D

U-Boot

  • help

      ath> help
      ?       - alias for 'help'
      autoscr - run script from memory
      base    - print or set address offset
      bdinfo  - print Board Info structure
      boot    - boot default, i.e., run 'bootcmd'
      bootd   - boot default, i.e., run 'bootcmd'
      bootelf - Boot from an ELF image in memory
      bootm   - boot application image from memory
      bootp   - boot image via network using BootP/TFTP protocol
      bootvx  - Boot vxWorks from an ELF image
      cmp     - memory compare
      coninfo - print console devices and information
      cp      - memory copy
      crc32   - checksum calculation
      dhcp    - invoke DHCP client to obtain IP/boot params
      echo    - echo args to console
      elx_check      - check ELX image
      erase   - erase FLASH memory
      ethreg    - S26 PHY Reg rd/wr  utility
      exit    - exit script
      flinfo  - print FLASH memory information
      go      - start application at address 'addr'
      help    - print online help
      iminfo  - print header information for application image
      itest   - return true/false on integer compare
      loop    - infinite loop on address range
      md      - memory display
      mii     - MII utility commands
      mm      - memory modify (auto-incrementing)
      mtest   - simple RAM test
      mw      - memory write (fill)
      nfs     - boot image via network using NFS protocol
      nm      - memory modify (constant address)
      pci     - list and access PCI Configuration Space
      ping    - send ICMP ECHO_REQUEST to network host
      pll cpu-pll dither ddr-pll dither - Set to change CPU & DDR speed
      pll erase
      pll get
      printenv- print environment variables
      progmac - Set ethernet MAC addresses
      protect - enable or disable FLASH write protection
      rarpboot- boot image via network using RARP/TFTP protocol
      reset   - Perform RESET of the CPU
      run     - run commands in an environment variable
      saveenv - save environment variables to persistent storage
      setenv  - set environment variables
      sleep   - delay execution for some time
      test    - minimal test like /bin/sh
      tftpboot- boot image via network using TFTP protocol
      version - print monitor version
    
  • version

      ath> version
    
      U-Boot 1.1.4-g81ae6755-dirty (Oct 13 2014 - 18:11:22)
    
  • printenv

      ath> printenv
      bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),8256k(mib0),64k(ART)
      bootcmd=bootm 0x9f070000
      bootdelay=2
      baudrate=115200
      ethaddr="BC:5C:4C:xx:xx:7C"
      ipaddr=192.168.99.9
      serverip=192.168.99.8
      dir=
      lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
      lf=tftp 0x80060000 ${dir}7479PLC${bc}-jffs2&&erase 0x9f050000 +0x630000&&cp.b $fileaddr 0x9f050000 $filesize
      lk=tftp 0x80060000 ${dir}vmlinux${bc}.lzma.uImage&&erase 0x9f680000 +$filesize&&cp.b $fileaddr 0x9f680000 $filesize
      ethact=eth1
      domain=1
      pincode=xxxxxxxx
      wlanaddr=00:aa:bb:cc:dd:10
      sn=61L892300621                    
      usboot=0
      op_mode=0
      bver=1.0.1  
      dom2=1
      wanaddr=00:aa:bb:cc:dd:20
      hw_id=01070028
      language_code=jp
      kver=1.0.1  
      bootfile=uImage_WAS_S1167
      stdin=serial
      stdout=serial
      stderr=serial
    
      Environment size: 903/65532 bytes
    
  • mii device

      ath> mii device
      MII devices: 'eth1' 
      Current device: 'eth1'
    
  • md.l 0x180500x8

    • 0x18050028

      ath> md.l 0x18050028 1
      18050028: 00000101    ....
      
    • 0x18050048

      ath> md.l 0x18050048 1
      18050048: 03000101    ....
      

Kernel

パスワードを要求される。

  • uname -a

      # uname -a
      Linux WAB_S600 3.2.9 #3 Fri Oct 30 17:08:23 CST 2015 mips GNU/Linux
    
  • cat /proc/version

      # cat /proc/version
      Linux version 3.2.9 (root@xxxxxx-OptiPlex-9020) (gcc version 4.3.6 (Buildroot 2013.05) ) #3 Fri Oct 30 17:08:23 CST 2015
    
  • cat /proc/cpuinfo

      # cat /proc/cpuinfo
      system type             : QCA955x
      machine                 : QCA AP
      processor               : 0
      cpu model               : MIPS 74Kc V5.0
      BogoMIPS                : 359.42
      wait instruction        : yes
      microsecond timers      : yes
      tlb_entries             : 32
      extra interrupt vector  : yes
      hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
      ASEs implemented        : mips16
      shadow register sets    : 1
      kscratch registers      : 0
      core                    : 0
      VCED exceptions         : not available
      VCEI exceptions         : not available
    
  • cat /proc/meminfo

      # cat /proc/meminfo
      MemTotal:         126248 kB
      MemFree:           79428 kB
      Buffers:            2720 kB
      Cached:            16768 kB
      SwapCached:            0 kB
      Active:             7140 kB
      Inactive:          16296 kB
      Active(anon):       4052 kB
      Inactive(anon):      292 kB
      Active(file):       3088 kB
      Inactive(file):    16004 kB
      Unevictable:           0 kB
      Mlocked:               0 kB
      SwapTotal:             0 kB
      SwapFree:              0 kB
      Dirty:                 0 kB
      Writeback:             0 kB
      AnonPages:          3964 kB
      Mapped:             3736 kB
      Shmem:               396 kB
      Slab:              15268 kB
      SReclaimable:        720 kB
      SUnreclaim:        14548 kB
      KernelStack:         432 kB
      PageTables:          332 kB
      NFS_Unstable:          0 kB
      Bounce:                0 kB
      WritebackTmp:          0 kB
      CommitLimit:       63124 kB
      Committed_AS:      96748 kB
      VmallocTotal:    1048372 kB
      VmallocUsed:         496 kB
      VmallocChunk:    1043312 kB
    
  • cat /proc/mtd

      # cat /proc/mtd
      dev:    size   erasesize  name
      mtd0: 01000000 00010000 "ALL"
      mtd1: 00040000 00010000 "Bootloader"
      mtd2: 00010000 00010000 "Config"
      mtd3: 00010000 00010000 "ART"
      mtd4: 00010000 00010000 "ART2"
      mtd5: 00e00000 00010000 "Kernel"
      mtd6: 00e00000 00010000 "user"
      mtd7: 00100000 00010000 "manufacture"
      mtd8: 00010000 00010000 "backup"
      mtd9: 00080000 00010000 "storage"
    
  • mount

      # mount
      rootfs on / type rootfs (rw)
      none on /sys type sysfs (rw,relatime)
      /proc on /proc type proc (rw,relatime)
      devpts on /dev/pts type devpts (rw,relatime,mode=600)
      /dev/shm/tmp/ on /mnt/tmpfs type tmpfs (rw,relatime,size=16384k,nr_inodes=10240,mode=700)
      /dev/mtdblock9 on /storage type jffs2 (rw,relatime)
      /dev/loop0 on /apps type squashfs (ro,relatime)
    
  • ls -al /sys/class/leds/

      # ls -al /sys/class/leds/
      lrwxrwxrwx    1         0 Jun  1 00:07 buzr -> ../../devices/platform/leds-gpio/leds/buzr
      lrwxrwxrwx    1         0 Jun  1 00:00 2g_led -> ../../devices/platform/leds-gpio/leds/2g_led
      lrwxrwxrwx    1         0 Jun  1 00:00 usb1_en -> ../../devices/platform/leds-gpio/leds/usb1_en
      lrwxrwxrwx    1         0 Jun  1 00:00 usb1_led -> ../../devices/platform/leds-gpio/leds/usb1_led
      lrwxrwxrwx    1         0 Jun  1 00:07 DIAG -> ../../devices/platform/leds-gpio/leds/DIAG
      drwxr-xr-x   19         0 Jun  1 00:00 ..
      drwxr-xr-x    2         0 Jun  1 00:00 .
    
  • header -x WAB-S600-PS-FW-V1-0-10.bin

      # header -x WAB-S600-PS-AC-FW-V1-0-10.bin 
      ### Decoding  image ####
      Decode source file [WAB-S600-PS-AC-FW-V1-0-10.bin]
      ------- Header Info -------
      Vendor  id:  0x0107
      Product id:  0x0028
      Hardware id:  0x01070028
      Version id:  3047
      Code Version:  1.0.10
      Type: 0x3 [kernel]
      comp_file_len:  5834361
      comp_file_sum:  0x0
      Header sum:  0x4d3
      Magic key:  0x30471688
      MD5 chksum:  5cb9cd42e26248b8d6f617b9667851ed
      ------------------------------
      Decode finished, got file [WAB-S600-PS-AC-FW-V1-0-10.bin.bin] with size 5834361 bytes
      header: Return OK
    
  • bootlog (op_mode=0)

      U-Boot 1.1.4-g81ae6755-dirty (Oct 13 2014 - 18:11:22)
      ELX version: 1.0.2
    
      7479PLC - Scorpion 1.0DRAM:  
      sri
      Scorpion 1.0
      ath_ddr_initial_config(178): (32bit) ddr2 init
      tap = 0x00000003
      Tap (low, high) = (0x4, 0x1b)
      Tap values = (0xf, 0xf, 0xf, 0xf)
      128 MB
      Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
      Flash [MX25L12845E] sectors: 256
      Flash: 16 MB
      In:    serial
      Out:   serial
      Err:   serial
      Net:   ath_gmac_enet_initialize...
      athrs_sgmii_res_cal: cal value = 0xe
      Fetching MAC Address from 0x87feccfc
      Fetching MAC Address from 0x87feccfc
      ath_gmac_enet_initialize: reset mask:c02200 
      Scorpion ---->8033 PHY*
      AR8033 PHY init 
      athrs_ar8033_reg_init: Done ffff 
      Max resets limit reached exiting...
      athr_gmac_sgmii_setup SGMII done
      : cfg1 0x800c0000 cfg2 0x7214
      eth1: 00:aa:bb:cc:dd:01
      eth1 up
      eth1
      Setting 0x18116290 to 0x458ba14f
    
      Please choose the operation: 
         1: Load system code to SDRAM via TFTP. 
         3: Boot system code via Flash (default).
         4: Entr boot command line interface.                                                                                                        0 
    
      3: System Boot system code via Flash.
      ## Booting image at 9f070000 ...
         Image Name:   Linux Kernel Image
         Created:      2015-10-30   9:08:30 UTC
         Image Type:   MIPS Linux Kernel Image (lzma compressed)
         Data Size:    5768048 Bytes =  5.5 MB
         Load Address: 80002000
         Entry Point:  802c2900
         Verifying Checksum at 0x9f070040 ...OK
         Uncompressing Kernel Image ... OK
    
      Starting kernel ...
    
      Linux version 3.2.9 (root@edward-OptiPlex-9020) (gcc version 4.3.6 (Buildroot 2013.05) ) #3 Fri Oct 30 17:08:23 CST 2015
      bootconsole [early0] enabled
      CPU revision is: 00019750 (MIPS 74Kc)
      SoC: QCA955x
      Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
      Determined physical RAM map:
       memory: 08000000 @ 00000000 (usable)
      Initrd not found or empty - disabling initrd
      Zone PFN ranges:
        Normal   0x00000000 -> 0x00008000
      Movable zone start PFN for each node
      early_node_map[1] active PFN ranges
          0: 0x00000000 -> 0x00008000
      Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
      Kernel command line:  console=ttyS0,115200 root=/dev/ram0 rootfstype=squashfs,jffs2
      PID hash table entries: 512 (order: -1, 2048 bytes)
      Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
      Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
      Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
      Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
      Writing ErrCtl register=00000000
      Readback ErrCtl register=00000000
      Memory: 119208k/131072k available (2854k kernel code, 11864k reserved, 688k data, 7040k init, 0k highmem)
      SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
      NR_IRQS:51
      Calibrating delay loop... 359.42 BogoMIPS (lpj=718848)
      pid_max: default: 32768 minimum: 301
      Mount-cache hash table entries: 512
      NET: Registered protocol family 16
      MIPS: machine is QCA AP
      registering PCI controller with io_map_base unset
      ar724x-pci ar724x-pci.1: PCIe link is down
      registering PCI controller with io_map_base unset
      bio: create slab <bio-0> at 0
      vgaarb: loaded
      SCSI subsystem initialized
      usbcore: registered new interface driver usbfs
      usbcore: registered new interface driver hub
      usbcore: registered new device driver usb
      pci 0000:00:00.0: fixup device configuration
      pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
      pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x101fffff 64bit] (PCI address [0x10000000-0x101fffff])
      pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
      pci 0000:00:00.0: using irq 40 for pin 1
      Switching to clocksource MIPS
      NET: Registered protocol family 2
      IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
      TCP established hash table entries: 4096 (order: 3, 32768 bytes)
      TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
      TCP: Hash tables configured (established 4096 bind 4096)
      TCP reno registered
      UDP hash table entries: 256 (order: 0, 4096 bytes)
      UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
      NET: Registered protocol family 1
      squashfs: version 4.0 (2009/01/31) Phillip Lougher
      JFFS2 version 2.2 (NAND) (SUMMARY) (ZLIB) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
      msgmni has been set to 232
      io scheduler noop registered
      io scheduler deadline registered
      io scheduler cfq registered (default)
      Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
      serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
      console [ttyS0] enabled, bootconsole disabled
      console [ttyS0] enabled, bootconsole disabled
      loop: module loaded
      Flash0 Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x18
      Flash0 MX25L12845E(c2 2018c200) (16384 Kbytes)
      mtd .name = ath-nor0, .size = 0x01000000 (16M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
      Creating 10 MTD partitions on "ath-nor0":
      0x000000000000-0x000001000000 : "ALL"
      0x000000000000-0x000000040000 : "Bootloader"
      0x000000040000-0x000000050000 : "Config"
      0x000000050000-0x000000060000 : "ART"
      0x000000060000-0x000000070000 : "ART2"
      0x000000070000-0x000000e70000 : "Kernel"
      0x000000070000-0x000000e70000 : "user"
      0x000000e70000-0x000000f70000 : "manufacture"
      0x000000f70000-0x000000f80000 : "backup"
      0x000000f80000-0x000001000000 : "storage"
      IMQ driver loaded successfully. (numdevs = 2, numqueues = 1)
              Hooking IMQ after NAT on PREROUTING.
              Hooking IMQ before NAT on POSTROUTING.
      usbcore: registered new interface driver asix
      usbcore: registered new interface driver cdc_ether
      usbcore: registered new interface driver net1080
      usbcore: registered new interface driver cdc_subset
      usbcore: registered new interface driver zaurus
      usbcore: registered new interface driver MOSCHIP usb-ethernet driver
      cdc_ncm: 04-Aug-2011
      usbcore: registered new interface driver cdc_ncm
      ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      Port Status 1c000004 
      ath-ehci ath-ehci.0: ATH EHCI
      ath-ehci ath-ehci.0: new USB bus registered, assigned bus number 1
      ath-ehci ath-ehci.0: irq 48, io mem 0x1b000000
      ath-ehci ath-ehci.0: USB 2.0 started, EHCI 1.00
      usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
      usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      usb usb1: Product: ATH EHCI
      usb usb1: Manufacturer: Linux 3.2.9 ehci_hcd
      usb usb1: SerialNumber: platform
      hub 1-0:1.0: USB hub found
      hub 1-0:1.0: 1 port detected
      Port Status 1c000004 
      ath-ehci1 ath-ehci1.1: ATH EHCI
      ath-ehci1 ath-ehci1.1: new USB bus registered, assigned bus number 2
      ath-ehci1 ath-ehci1.1: irq 49, io mem 0x1b400000
      ath-ehci1 ath-ehci1.1: USB 2.0 started, EHCI 1.00
      usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
      usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      usb usb2: Product: ATH EHCI
      usb usb2: Manufacturer: Linux 3.2.9 ehci_hcd
      usb usb2: SerialNumber: platform
      hub 2-0:1.0: USB hub found
      hub 2-0:1.0: 1 port detected
      ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      uhci_hcd: USB Universal Host Controller Interface driver
      Initializing USB Mass Storage driver...
      usbcore: registered new interface driver usb-storage
      USB Mass Storage support registered.
      ath_usb_init: ID: 1130
      Registered button device:usb1_over, gpio:20,code:257,index:1
      Registered button device:reset, gpio:18,code:408,index:10
      Registered button device:wps, gpio:16,code:529,index:11
      Registered button device:usb_eject, gpio:19,code:256,index:0
      Netfilter messages via NETLINK v0.30.
      nf_conntrack version 0.5.0 (256 buckets, 2048 max)
      xt_time: kernel timezone is -0000
      ip_tables: (C) 2000-2006 Netfilter Core Team
      TCP westwood registered
      NET: Registered protocol family 10
      NET: Registered protocol family 17
      NET: Registered protocol family 2
      8021q: 802.1Q VLAN Support v1.8
      Freeing unused kernel memory: 7040k freed
      System Init version: 1.1 date: 1
      Setting up file systems ...
      Setting up /mnt/tmpfs directory with tmpfs/16384KB
      Setting up FLASH storage partition ...
      JFFS2 notice: (347) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
      Setting up /apps directory ...apps is in RAM ...
      Setting up loopback device ...
      FINISHED
      qca955x_GMAC: Length per segment 1536
      955x_GMAC: qca955x_gmac_attach
      955x_GMAC: qca955x_set_gmac_caps
      Currently in polling mode unit0
      Registering AR8035 Phy....
      qca955x_GMAC: RX TASKLET - Pkts per Intr:160
      qca955x_GMAC: Max segments per packet :   1
      qca955x_GMAC: Max tx descriptor count :   128
      qca955x_GMAC: Max rx descriptor count :   224
      qca955x_GMAC: Mac capability flags    :   42200
      955x_GMAC: qca955x_gmac_attach
      955x_GMAC: qca955x_set_gmac_caps
      Currently in polling mode unit1
      Registering AR8033 Phy....
      qca955x_GMAC: RX TASKLET - Pkts per Intr:160
      qca955x_GMAC: Max segments per packet :   1
      qca955x_GMAC: Max tx descriptor count :   128
      qca955x_GMAC: Max rx descriptor count :   224
      qca955x_GMAC: Mac capability flags    :   42200
      955x_GMAC: Serdes PLL is locked value 0x1f018116
      Start Normal Operation Mode ...
      ************************************************************************
      *                                ---ELX---                             *
      ************************************************************************
    
      KernelApp version: 1.0.1 build date: 2015/10/30 build time: 17:05:49
      cmd> ln: /sbin/./start_all: File exists
      Share memory created:  keyid 6888 shm_id 0 size 169(KB)
      Warning: dbox_destroy_share_memory p_dbox_cfg is NULL!
      CMD[mkdir -p /var/sd]
      __create_share_mem keyid 6888 shm_id 0
    
      System Monitoring
      __create_share_mem keyid 6888 shm_id 0
      athr_gmac_ring_alloc Allocated 2048 at 0x86e38800
      sram_desc_cnt 1536,mac Unit 0,Tx r->ring_desc 0xbd000000
      athr_gmac_ring_alloc Allocated 3584 at 0x86dd6000
      sram_desc_cnt 4224,mac Unit 0,Rx r->ring_desc 0xbd000600
      955x_GMAC: eth0 in RGMII MODE
      Scorpion -----> 8035 PHY
      athrs_ar8035_reg_init: Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      qca955x_gmac_hw_setup: Enable Jumbo Frame 4096 size
      Setting PHY...
      AR8035 found!
      [0:4]Phy ID 4d:d072
      ADDRCONF(NETDEV_UP): eth0: link is not ready
      athr_gmac_ring_alloc Allocated 2048 at 0x86f85000
      sram_desc_cnt 5760,mac Unit 1,Tx r->ring_desc 0xbd001080
      athr_gmac_ring_alloc Allocated 3584 at 0x86dd4000
      sram_desc_cnt 8448,mac Unit 1,Rx r->ring_desc 0xbd001680
      955x_GMAC: eth1 in SGMII MODE
      Scorpion -----> 8033 PHY
      athrs_ar8033_reg_init: Done
      955x_SGMIIMax resets limit reached exiting...
      955x_SGMII::athr_gmac_sgmii_setup  Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      qca955x_gmac_hw_setup: Enable Jumbo Frame 4096 size
      Setting PHY...
      AR8033 found!
      Phy ID 4d:d074
      ADDRCONF(NETDEV_UP): eth1: link is not ready
      athr_gmac_ring_free Freeing at 0x86e38800
      athr_gmac_ring_free Freeing at 0x86dd6000
      athr_gmac_ring_alloc Allocated 2048 at 0x86f84800
      sram_desc_cnt 8448,mac Unit 0,Tx r->ring_desc 0xbd000000
      athr_gmac_ring_alloc Allocated 3584 at 0x86dd6000
      sram_desc_cnt 8448,mac Unit 0,Rx r->ring_desc 0xbd000600
      955x_GMAC: eth0 in RGMII MODE
      Scorpion -----> 8035 PHY
      athrs_ar8035_reg_init: Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      qca955x_gmac_hw_setup: Enable Jumbo Frame 4096 size
      Setting PHY...
      AR8035 found!
      [0:4]Phy ID 4d:d072
      ADDRCONF(NETDEV_UP): eth0: link is not ready
      athr_gmac_ring_free Freeing at 0x86f85000
      athr_gmac_ring_free Freeing at 0x86dd4000
      athr_gmac_ring_alloc Allocated 2048 at 0x86f85000
      sram_desc_cnt 8448,mac Unit 1,Tx r->ring_desc 0xbd001080
      athr_gmac_ring_alloc Allocated 3584 at 0x86dd4000
      sram_desc_cnt 8448,mac Unit 1,Rx r->ring_desc 0xbd001680
      955x_GMAC: eth1 in SGMII MODE
      Scorpion -----> 8033 PHY
      athrs_ar8033_reg_init: Done
      955x_SGMIIMax resets limit reached exiting...
      955x_SGMII::athr_gmac_sgmii_setup  Done
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      qca955x_gmac_hw_setup: Enable Jumbo Frame 4096 size
      Setting PHY...
      AR8033 found!
      Phy ID 4d:d074
      ADDRCONF(NETDEV_UP): eth1: link is not ready
      port_id:[4],mode:[1]
      sh: mii_mgr: not found
      port_id:[4],mode:[1]
      port_id:[1],mode:[1]
      sh: mii_mgr: not found
      port_id:[1],mode:[1]
      ADDRCONF(NETDEV_UP): br0: link is not ready
      device br_t.1 entered promiscuous mode
      device br_t entered promiscuous mode
      br0: port 1(br_t.1) entering forwarding state
      br0: port 1(br_t.1) entering forwarding state
      br0: port 1(br_t.1) entering forwarding state
      device eth0 entered promiscuous mode
      ADDRCONF(NETDEV_CHANGE): br_t.1: link becomes ready
      device eth1 entered promiscuous mode
      br0: port 1(br_t.1) entering forwarding state
      br0: port 1(br_t.1) entering forwarding state
    
    
      ********************
      Initialize Radio_(24G) setting ... 
      rd[0]==1
      OK
    
    
      Configuring QCA WiFi device[0] ...Wlan is in
       AP Mode
      FCMD[insmod /lib/adf.ko]
      FCMD[insmod /lib/asf.ko]
      FCMD[insmod /lib/ath_hal.ko]
      FCMD[insmod /lib/ath_rate_atheros.ko]
      FCMD[insmod /lib/ath_dfs.ko]
      FCMD[insmod /lib/ath_dev.ko]
      FCMD[insmod /lib/umac.ko]
      FCMD[insmod /lib/ath_pktlog.ko]
      FCMD[ln -s /apps/sbin/hostapd /sbin/hostapd1]
      FCMD[ln -s /apps/sbin/hostapd /sbin/hostapd2]
      wifiname=wifi0 , macaddr=BC:5C:4C:xx:xx:7C
      FCMD[ifconfig wifi0 hw ether BC:5C:4C:xx:xx:7C]
      FCMD[iwpriv wifi0 setCountryID 4015]
      FCMD[wlanconfig ath0 create wlandev wifi0 wlanmode ap ]
      FCMD[iwpriv wifi0 rxchainmask 7]
      FCMD[iwpriv wifi0 txchainmask 7]
      QCA Radio[1],Wireless Mode:[11NGHT40MINUS]
      FCMD[iwpriv ath0 mode 11NGHT40MINUS]
      FCMD[iwpriv ath0 pureg 0]
      FCMD[iwpriv ath0 puren 0]
      FCMD[iwpriv ath0 disablecoext 0]
      FCMD[iwconfig ath0 essid elecom2g01-37d07c]
      FCMD[iwconfig ath0 channel 11]
      FCMD[iwpriv ath0 maxsta 25]
      FCMD[iwpriv ath0 bintval 100]
      FCMD[iwpriv ath0 inact 60]
      FCMD[iwpriv ath0 dtim_period 1]
      FCMD[iwpriv ath0 shpreamble 1]
      FCMD[iwconfig ath0 rts 2347]
      FCMD[iwpriv ath0 protmode 2]
      FCMD[iwpriv ath0 extprotmode 2]
      FCMD[iwpriv ath0 countryie 1]
      FCMD[iwpriv ath0 hide_ssid 0]
      FCMD[iwpriv ath0 cwmenable 1]
      FCMD[iwpriv ath0 mcastenhance 2]
      FCMD[iwpriv wds10 mcastenhance 2]
      FCMD[iwpriv ath0 shortgi 1]
      FCMD[iwpriv wifi0 AMPDU 1]
      FCMD[iwpriv wifi0 AMPDUFrames 32]
      FCMD[iwpriv wifi0 AMPDULim 50000]
      FCMD[iwpriv ath0 macradius 0]
      FCMD[iwpriv wifi0 set_swapled 1]
    
      Radio0 off
      FCMD[route add -net 239.0.0.0 netmask 255.0.0.0 br0]
      No WPA/WPA2 AUTH
      No need to call hostapd
      FCMD[iwpriv ath0 ap_bridge 1]
      FCMD[ifconfig wifi0 txqueuelen 10000]
      FCMD[ifconfig ath0 txqueuelen 10000]
      FCMD[ifconfig eth0 txqueuelen 10000]
      FCMD[ifconfig eth1 txqueuelen 10000]
      FCMD[sleep 1]
      FCMD[iwpriv ath0 mcast_rate 54000]
      FCMD[iwpriv wds10 mcast_rate 54000]
      FCMD[iwpriv ath0 wmm 1]
      FCMD[iwpriv ath0 uapsd 1]
      FCMD[iwpriv ath0 aifs 0 0 3]
      FCMD[iwpriv ath0 aifs 1 0 7]
      FCMD[iwpriv ath0 aifs 2 0 1]
      FCMD[iwpriv ath0 aifs 3 0 1]
      FCMD[iwpriv ath0 cwmin 0 0 4]
      FCMD[iwpriv ath0 cwmin 1 0 4]
      FCMD[iwpriv ath0 cwmin 2 0 3]
      FCMD[iwpriv ath0 cwmin 3 0 2]
      FCMD[iwpriv ath0 cwmax 0 0 6]
      FCMD[iwpriv ath0 cwmax 1 0 10]
      FCMD[iwpriv ath0 cwmax 2 0 4]
      FCMD[iwpriv ath0 cwmax 3 0 3]
      FCMD[iwpriv ath0 txoplimit 0 0 0]
      FCMD[iwpriv ath0 txoplimit 1 0 0]
      FCMD[iwpriv ath0 txoplimit 2 0 3008]
      FCMD[iwpriv ath0 txoplimit 3 0 1504]
      FCMD[iwpriv ath0 noackpolicy 0 0 0]
      FCMD[iwpriv ath0 noackpolicy 1 0 0]
      FCMD[iwpriv ath0 noackpolicy 2 0 0]
      FCMD[iwpriv ath0 noackpolicy 3 0 0]
      FCMD[iwpriv ath0 aifs 0 1 3]
      FCMD[iwpriv ath0 aifs 1 1 7]
      FCMD[iwpriv ath0 aifs 2 1 2]
      FCMD[iwpriv ath0 aifs 3 1 2]
      FCMD[iwpriv ath0 cwmin 0 1 4]
      FCMD[iwpriv ath0 cwmin 1 1 4]
      FCMD[iwpriv ath0 cwmin 2 1 3]
      FCMD[iwpriv ath0 cwmin 3 1 2]
      FCMD[iwpriv ath0 cwmax 0 1 10]
      FCMD[iwpriv ath0 cwmax 1 1 10]
      FCMD[iwpriv ath0 cwmax 2 1 4]
      FCMD[iwpriv ath0 cwmax 3 1 3]
      FCMD[iwpriv ath0 txoplimit 0 1 0]
      FCMD[iwpriv ath0 txoplimit 1 1 0]
      FCMD[iwpriv ath0 txoplimit 2 1 3008]
      FCMD[iwpriv ath0 txoplimit 3 1 1504]
      FCMD[iwpriv ath0 acm 0 1 0]
      FCMD[iwpriv ath0 acm 1 1 0]
      FCMD[iwpriv ath0 acm 2 1 0]
      FCMD[iwpriv ath0 acm 3 1 0]
      CMD[sh /var/sd/qca_wlan0.sh]
      adf: module license 'Proprietary' taints kernel.
      Disabling lock debugging due to kernel taint
      ****Address of trace_timer :80cfe614 
      ath_hal: 0.9.17.1 (AR5416, AR9380, REGOPS_FUNC, WRITE_EEPROM, TX_DATA_SWAP, RX_DATA_SWAP, 11D)
      ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
      ath_dfs: Version 2.0.0
      Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
      ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
      ath_ahb: 10.2.r2-00014-4 (Atheros/multi-bss)
      __ath_attach: Set global_scn[0]
      *** All the minfree values should be <= ATH_TXBUF-32, otherwise default value will be used instead ***
      ACBKMinfree = 48
      ACBEMinfree = 32
      ACVIMinfree = 16
      ACVOMinfree = 0
      CABMinfree = 48
      UAPSDMinfree = 0
      ATH_TXBUF=512
      Enterprise mode: 0x40000000
      Restoring Cal data from Flash
      Green-AP : Green-AP : Attached
    
      ath_get_caps[6149] rx chainmask mismatch actual 3 sc_chainmak 0
      ath_get_caps[6124] tx chainmask mismatch actual 3 sc_chainmak 0
      ath_attach_dfs[12568] dfsdomain 1
      ath_tx_paprd_init sc 86ae8000 PAPRD disabled in HAL
      wifi0: Atheros ???: mem=0xb8100000, irq=47
      ath_pci: 10.2.r2-00014-4 (Atheros/multi-bss)
      ath_pci_probe
      PCI device id is 003c :003c
      ath_pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
      ath_pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x101fffff 64bit] (PCI address [0x10000000-0x101fffff])
      PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
      ath_pci 0000:00:00.0: ath DEBUG: sc=0x868fe400
    
       ol_ath_pci_configure : num_desired MSI set to 0
    
       Using PCI Legacy Interrupt
      955x_GMAC: enet unit:0 is up...
      eth0  RGMII  1000Mbps  full duplex
      955x_GMAC: qca955x_soc_gmac_set_mac_duplex 
      ---->1000Mpbs
      955x_GMAC: qca955x_soc_gmac_set_link Done
      955x_GMAC: done cfg2 0x7235 ifctl 0x0 miictrl  
      Disable TX Flow control.. 
      Setting Drop CRC Errors, Pause Frames and Length Error frames 
      qca955x_gmac_hw_setup: Enable Jumbo Frame 4096 size
      955x_GMAC: qca955x_soc_gmac_set_mac_duplex 
      ---->1000Mpbs
      955x_GMAC: qca955x_soc_gmac_set_link Done
      ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      br0: port 2(eth0) entering forwarding state
      br0: port 2(eth0) entering forwarding state
      CE_per_engine_handler_adjust, base=868fe400 offset=57400 
      CE_per_engine_handler_adjust, base=868fe400 offset=57800 
      __ol_ath_attach: ath_attach TODO
      __ol_ath_attach: dev name wifi1
      ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
       OL_ACBKMinfree : 0
       OL_ACBEMinfree : 0
       OL_ACVIMinfree : 0
       OL_ACVOMinfree : 0
      ol_ath_attach() BMI inited.
      ol_ath_attach() BMI Get Target Info.
      ol_ath_attach() TARGET TYPE: 7 Vers 0x4100016c
      NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
      ol_ath_attach() configure Target .
      qc98xx_verify_checksum: flash checksum passed: 0xdd80
      ol_transfer_bin_file 1915: Download Flash data len 2116
      ol_transfer_bin_file 1856: Download Firmware data len 227772
      ol_ath_attach() Download FW. 
      ol_ath_attach() HT Create .
      ol_ath_attach() HIF Claim.
      ol_ath_attach() BMI Done. 
      ol_ath_attach() WMI attached. wmi_handle 86640000 
      +HWT
      SOC_RESET_CONTROL_ADDRESS : 800
      CPU_INTR_ADDRESS = [0]
      SOC_GLOBAL_RESET_ADDRESS = [0]
      Rx_Filter : [0]
      CE_per_engine_handler_adjust, base=868fe400 offset=57400 
      CE_per_engine_handler_adjust, base=868fe400 offset=57800 
      CE_per_engine_handler_adjust, base=868fe400 offset=57c00 
      CE_per_engine_handler_adjust, base=868fe400 offset=58000 
      CE_per_engine_handler_adjust, base=868fe400 offset=58400 
      CE_per_engine_handler_adjust, base=868fe400 offset=58800 
      CE_recv_buf_enqueue 653 Populate last entry 512 for CE 5
      CE_recv_buf_enqueue 662 CE 5 wi 511 dest_ptr 0x6014820 nbytes 0 recv_ctxt 0x8600c240
      -HWT
      HTC Service:0x0300 ep:1 TX flow control disabled
      CE_pkt_dl_len_set CE 4 Pkt download length 64
      ol_txrx_pdev_attach: 1424 tx desc's allocated ; range starts from 85c50000
      HTC Service:0x0100 ep:2 TX flow control disabled
      wmi_service_ready_event_rx:  WMI UNIFIED SERVICE READY event 
      num_rf_chain : 00000002
      ht_cap_info: : 0000085b
      vht_cap_info : 338001b2
      vht_supp_mcs : 0000fffa
      LARGE_AP enabled. num_peers 144, num_vdevs 16, num_tids 256
      idx 0 req 1  num_units 0 num_unit_info 2 unit size 444 actual units 145 
      chunk 0 len 64380 requested ,ptr  0x5c60000 
      FIRMWARE:P 145 V 16 T 443
    
      FIRMWARE:_wlan_rtt_enable 
      wmi_ready_event_rx:  WMI UNIFIED READY event 
      ol_ath_connect_htc() WMI is ready
      ol_ath_set_host_app_area TODO
      target uses HTT version 2.1; host uses 2.1
      ol_ath_attach() connect HTC. 
      bypasswmi : 0
      ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
      Add VHT80 channel: 5210
      Add VHT80 channel: 5290
      Add VHT80 channel: 5530
      Add VHT80 channel: 5610
      Add VHT80 channel: 5690
      Add VHT80 channel: 5775
      Skipping VHT80 channel 5825
      ol_ath_phyerr_attach: called
      OL Resmgr Init-ed
      Green-AP : Green-AP : Attached
    
      Green-AP : Attached
      ol_if_dfs_setup: called 
      ol_if_dfs_attach: called; ptr=85c45974, radar_info=868fdbe0
      ol_ath_rtt_meas_report_attach: called
      ol_ath_attach() UMAC attach . 
      ol_if_dfs_configure: called
      ol_if_dfs_configure: FCC domain
      ol_if_dfs_disable: called
      ol_ath_attach: Calling ol_if_dfs_configure
      __ol_ath_attach: init tx/rx TODO
      __ol_ath_attach: hard_header_len reservation 58
      Initializing Pktlogs for 11ac
      ath_attach_dfs[12568] dfsdomain 1
      wlan_vap_create : enter. devhandle=0x868b0360, opmode=IEEE80211_M_HOSTAP, flags=0x1
      wlan_vap_create : exit. devhandle=0x868b0360, opmode=IEEE80211_M_HOSTAP, flags=0x1.
      VAP device ath0 created osifp: (86f7cb60) os_if: (85d30000)
    
       DES SSID SET=elecom2g01-37d07c 
      Setting Max Stations:25
      wds10     no private ioctls.
    
      [wifi1] FWLOG: [21515] WAL_DBGID_TX_AC_BUFFER_SET ( 0x3, 0x1e, 0x460, 0x460, 0x0 )
      [wifi1] FWLOG: [21515] WAL_DBGID_TX_AC_BUFFER_SET ( 0x12, 0x1e, 0x460, 0x460, 0x0 )
      [wifi1] FWLOG: [21515] WAL_DBGID_TX_AC_BUFFER_SET ( 0x45, 0x1e, 0x460, 0x460, 0x0 )
      [wifi1] FWLOG: [21515] WAL_DBGID_TX_AC_BUFFER_SET ( 0x67, 0x1e, 0x460, 0x460, 0x0 )
      [wifi1] FWLOG: [21520] WHAL_ERROR_RECV_STOPPCU ( 0x110298a, 0x3 )
      [wifi1] FWLOG: [21520] WHAL_ERROR_RESET_PM (  )
      wds10     no private ioctls.
    
      CMD[led_ctl 2g off]
    
    
      ********************
      Initialize Radio_(5G) setting ... 
      rd[1]==1
      OK
      Configuring 5G radio setting ... 
    
    
      Configuring QCA WiFi device[1] ...Wlan is in
       AP Mode
      wifiname=wifi1 , macaddr=BC:5C:4C:xx:xx:7D
      FCMD[ifconfig wifi1 hw ether BC:5C:4C:xx:xx:7D]
      FCMD[iwpriv wifi1 setCountryID 4015]
      FCMD[wlanconfig ath5 create wlandev wifi1 wlanmode ap ]
      FCMD[iwpriv wifi1 rxchainmask 7]
      FCMD[iwpriv wifi1 txchainmask 7]
      QCA Radio[2],Wireless Mode:[11NAHT40PLUS]
      FCMD[iwpriv ath5 mode 11NAHT40PLUS]
      FCMD[iwpriv ath5 pureg 0]
      FCMD[iwpriv ath5 puren 0]
      FCMD[iwpriv ath5 disablecoext 1]
      FCMD[iwpriv wifi1 enable_ol_stats 1]
      FCMD[iwpriv ath5 dbgLVL 1073741824]
      FCMD[iwconfig ath5 essid elecom5g01-37d07d]
      FCMD[iwconfig ath5 channel 36]
      FCMD[iwpriv ath5 maxsta 25]
      FCMD[iwpriv ath5 bintval 100]
      FCMD[iwpriv ath5 inact 60]
      FCMD[iwpriv ath5 dtim_period 1]
      FCMD[iwpriv ath5 shpreamble 1]
      FCMD[iwconfig ath5 rts 2347]
      FCMD[iwpriv ath5 extprotmode 2]
      FCMD[iwpriv ath5 countryie 1]
      FCMD[iwpriv ath5 hide_ssid 0]
      FCMD[iwpriv ath5 mcastenhance 2]
      FCMD[iwpriv wds14 mcastenhance 2]
      FCMD[iwpriv ath5 shortgi 1]
      FCMD[iwpriv wifi1 AMPDU 1]
      FCMD[iwpriv wifi1 AMPDUFrames 32]
      FCMD[iwpriv wifi1 AMPDULim 50000]
      FCMD[iwpriv ath5 macradius 0]
    
      Radio1 off
      FCMD[route add -net 239.0.0.0 netmask 255.0.0.0 br0]
      No WPA/WPA2 AUTH
      No need to call hostapd
      FCMD[iwpriv ath5 ap_bridge 1]
      FCMD[ifconfig wifi1 txqueuelen 10000]
      FCMD[ifconfig ath5 txqueuelen 10000]
      FCMD[ifconfig eth0 txqueuelen 10000]
      FCMD[ifconfig eth1 txqueuelen 10000]
      FCMD[sleep 1]
      FCMD[iwpriv ath5 mcast_rate 117000]
      FCMD[iwpriv wds14 mcast_rate 117000]
      FCMD[iwpriv ath5 wmm 1]
      FCMD[iwpriv ath5 uapsd 1]
      FCMD[iwpriv ath5 aifs 0 0 3]
      FCMD[iwpriv ath5 aifs 1 0 7]
      FCMD[iwpriv ath5 aifs 2 0 1]
      FCMD[iwpriv ath5 aifs 3 0 1]
      FCMD[iwpriv ath5 cwmin 0 0 4]
      FCMD[iwpriv ath5 cwmin 1 0 4]
      FCMD[iwpriv ath5 cwmin 2 0 3]
      FCMD[iwpriv ath5 cwmin 3 0 2]
      FCMD[iwpriv ath5 cwmax 0 0 6]
      FCMD[iwpriv ath5 cwmax 1 0 10]
      FCMD[iwpriv ath5 cwmax 2 0 4]
      FCMD[iwpriv ath5 cwmax 3 0 3]
      FCMD[iwpriv ath5 txoplimit 0 0 0]
      FCMD[iwpriv ath5 txoplimit 1 0 0]
      FCMD[iwpriv ath5 txoplimit 2 0 3008]
      FCMD[iwpriv ath5 txoplimit 3 0 1504]
      FCMD[iwpriv ath5 noackpolicy 0 0 0]
      FCMD[iwpriv ath5 noackpolicy 1 0 0]
      FCMD[iwpriv ath5 noackpolicy 2 0 0]
      FCMD[iwpriv ath5 noackpolicy 3 0 0]
      FCMD[iwpriv ath5 aifs 0 1 3]
      FCMD[iwpriv ath5 aifs 1 1 7]
      FCMD[iwpriv ath5 aifs 2 1 2]
      FCMD[iwpriv ath5 aifs 3 1 2]
      FCMD[iwpriv ath5 cwmin 0 1 4]
      FCMD[iwpriv ath5 cwmin 1 1 4]
      FCMD[iwpriv ath5 cwmin 2 1 3]
      FCMD[iwpriv ath5 cwmin 3 1 2]
      FCMD[iwpriv ath5 cwmax 0 1 10]
      FCMD[iwpriv ath5 cwmax 1 1 10]
      FCMD[iwpriv ath5 cwmax 2 1 4]
      FCMD[iwpriv ath5 cwmax 3 1 3]
      FCMD[iwpriv ath5 txoplimit 0 1 0]
      FCMD[iwpriv ath5 txoplimit 1 1 0]
      FCMD[iwpriv ath5 txoplimit 2 1 3008]
      FCMD[iwpriv ath5 txoplimit 3 1 1504]
      FCMD[iwpriv ath5 acm 0 1 0]
      FCMD[iwpriv ath5 acm 1 1 0]
      FCMD[iwpriv ath5 acm 2 1 0]
      FCMD[iwpriv ath5 acm 3 1 0]
      CMD[sh /var/sd/qca_wlan1.sh]
      isCountryCodeValid: EEPROM regdomain 0x0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
      Add VHT80 channel: 5210
      Add VHT80 channel: 5290
      Add VHT80 channel: 5530
      Add VHT80 channel: 5610
      Skipping VHT80 channel 5660
      Skipping VHT80 channel 5680
      Skipping VHT80 channel 5700
      ath_ioctl: SIOC80211IFCREATE CALLED
      wmi_unified_vdev_create_send: ID = 0 VAP Addr = bc:5c:4c:xx:xx:7d:
      Setting dscp for vap id: 0
      VAP device ath5 created osifp: (86f7a360) os_if: (86ac0000)
      vap-0(ath5):set SIOC80211NWID, 17 characters
    
       DES SSID SET=elecom5g01-37d07d 
      DCS: ol_ath_disable_dcsim dcs state 0 
      Setting Max Stations:25
      ol_ath_desc_alloc_and_mark_for_mcast_clone: VAP Mcast to Unicast buffer allocated: 400
      ol_ath_vap_set_param: VAP param is now supported param:66 value:2
      wds14     no private ioctls.
    
      Interface doesn't accept private ioctl...
      AMPDU (8BE0): Operation not permitted
      Interface doesn't accept private ioctl...
      AMPDUFrames (8BE0): Operation not permitted
      Interface doesn't accept private ioctl...
      AMPDULim (8BE0): Operation not permitted
      route: SIOCADDRT: File exists
      ol_ath_vap_set_param: VAP param is now supported param:11 value:150
      wds14     no private ioctls.
    
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 0 bss 0 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 1 bss 0 val 7
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 2 bss 0 val 1
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 3 bss 0 val 1
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 0 bss 0 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 1 bss 0 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 2 bss 0 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 3 bss 0 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 0 bss 0 val 6
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 1 bss 0 val 10
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 2 bss 0 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 3 bss 0 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 0 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 1 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 2 bss 0 val 3008
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 3 bss 0 val 1504
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 0 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 1 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 2 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 3 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 0 bss 1 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 1 bss 1 val 7
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 2 bss 1 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 3 bss 1 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 0 bss 1 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 1 bss 1 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 2 bss 1 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 3 bss 1 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 0 bss 1 val 10
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 1 bss 1 val 10
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 2 bss 1 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 3 bss 1 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 0 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 1 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 2 bss 1 val 3008
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 3 bss 1 val 1504
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 0 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 1 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 2 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 3 bss 1 val 0
      CMD[iwpriv wifi1 set_led 0]
    
    
    
    
    
    
      port_id:[4],mode:[1]
      port_id:[1],mode:[1]
    
      Ebtables v2.0 registered
      __create_share_mem keyid 6888 shm_id 0
      Err: read_to_buf failed to open file /proc/1371/status!
      Err: read_to_buf failed to open file /proc/1372/status!
      __create_share_mem keyid 6888 shm_id 0
      __create_share_mem keyid 6888 shm_id 0
    
      Start wps_led driver
    
    
    
    
    
    
    
    
      __create_share_mem keyid 6888 shm_id 0
      Warning: dbox_destroy_share_memory p_dbox_cfg is NULL!
      Err: read_to_buf failed to open file /proc/1512/status!
      Stopping 24G radio ....              
      CMD[brctl delif br0 ath0]
      __create_share_mem keyid 6888 shm_id 0
      device ath0 is not a slave of br0
      __create_share_mem keyid 6888 shm_id 0
      Err: read_to_buf failed to open file /proc/1533/status!
      Err: read_to_buf failed to open file /proc/1534/status!
      Err: read_to_buf failed to open file /proc/1540/status!
      Err: read_to_buf failed to open file /proc/1541/status!
      CMD[ifconfig ath0 down]
      CMD[wlanconfig ath0 destroy]
      osif_ioctl_delete_vap: deleting vap: (85d30000), osif: (86f7cb60)
      _ieee80211_scan_unregister_event_handler: Failed to unregister evhandler=8648ec44 arg=86f7cb60
      _ieee80211_scan_unregister_event_handler: Failed to unregister evhandler=8648ec44 arg=86f7cb60
      _ieee80211_scan_unregister_event_handler: Failed to unregister evhandler=8648eaf4 arg=86f7cb60
      wlan_vap_delete : enter. vaphandle=0x85d30000
      wlan_vap_delete : exit. vaphandle=0x85d30000
      OK
    
    
      ********************
      Initialize Radio_(24G) setting ... 
      OK
    
    
      Configuring QCA WiFi device[0] ...Wlan is in
       AP Mode
      wifiname=wifi0 , macaddr=BC:5C:4C:xx:xx:7C
      FCMD[ifconfig wifi0 hw ether BC:5C:4C:xx:xx:7C]
      FCMD[iwpriv wifi0 setCountryID 4015]
      FCMD[wlanconfig ath0 create wlandev wifi0 wlanmode ap ]
      FCMD[iwpriv wifi0 rxchainmask 7]
      FCMD[iwpriv wifi0 txchainmask 7]
      QCA Radio[1],Wireless Mode:[11NGHT40MINUS]
      FCMD[iwpriv ath0 mode 11NGHT40MINUS]
      FCMD[iwpriv ath0 pureg 0]
      FCMD[iwpriv ath0 puren 0]
      FCMD[iwpriv ath0 disablecoext 0]
      FCMD[iwconfig ath0 essid elecom2g01-37d07c]
      FCMD[iwconfig ath0 channel 11]
      FCMD[iwpriv ath0 maxsta 25]
      FCMD[iwpriv ath0 bintval 100]
      FCMD[iwpriv ath0 inact 60]
      FCMD[iwpriv ath0 dtim_period 1]
      FCMD[iwpriv ath0 shpreamble 1]
      FCMD[iwconfig ath0 rts 2347]
      FCMD[iwpriv ath0 protmode 2]
      FCMD[iwpriv ath0 extprotmode 2]
      FCMD[iwpriv ath0 countryie 1]
      FCMD[iwpriv ath0 hide_ssid 0]
      FCMD[iwpriv ath0 cwmenable 1]
      FCMD[iwpriv ath0 mcastenhance 2]
      FCMD[iwpriv wds10 mcastenhance 2]
      FCMD[iwpriv ath0 shortgi 1]
      FCMD[iwpriv wifi0 AMPDU 1]
      FCMD[iwpriv wifi0 AMPDUFrames 32]
      FCMD[iwpriv wifi0 AMPDULim 50000]
      FCMD[iwpriv ath0 macradius 0]
      FCMD[iwpriv wifi0 set_swapled 1]
    
      Radio0 off
      FCMD[route add -net 239.0.0.0 netmask 255.0.0.0 br0]
      No WPA/WPA2 AUTH
      No need to call hostapd
      FCMD[iwpriv ath0 ap_bridge 1]
      FCMD[ifconfig wifi0 txqueuelen 10000]
      FCMD[ifconfig ath0 txqueuelen 10000]
      FCMD[ifconfig eth0 txqueuelen 10000]
      FCMD[ifconfig eth1 txqueuelen 10000]
      FCMD[sleep 1]
      FCMD[iwpriv ath0 mcast_rate 54000]
      FCMD[iwpriv wds10 mcast_rate 54000]
      FCMD[iwpriv ath0 wmm 1]
      FCMD[iwpriv ath0 uapsd 1]
      FCMD[iwpriv ath0 aifs 0 0 3]
      FCMD[iwpriv ath0 aifs 1 0 7]
      FCMD[iwpriv ath0 aifs 2 0 1]
      FCMD[iwpriv ath0 aifs 3 0 1]
      FCMD[iwpriv ath0 cwmin 0 0 4]
      FCMD[iwpriv ath0 cwmin 1 0 4]
      FCMD[iwpriv ath0 cwmin 2 0 3]
      FCMD[iwpriv ath0 cwmin 3 0 2]
      FCMD[iwpriv ath0 cwmax 0 0 6]
      FCMD[iwpriv ath0 cwmax 1 0 10]
      FCMD[iwpriv ath0 cwmax 2 0 4]
      FCMD[iwpriv ath0 cwmax 3 0 3]
      FCMD[iwpriv ath0 txoplimit 0 0 0]
      FCMD[iwpriv ath0 txoplimit 1 0 0]
      FCMD[iwpriv ath0 txoplimit 2 0 3008]
      FCMD[iwpriv ath0 txoplimit 3 0 1504]
      FCMD[iwpriv ath0 noackpolicy 0 0 0]
      FCMD[iwpriv ath0 noackpolicy 1 0 0]
      FCMD[iwpriv ath0 noackpolicy 2 0 0]
      FCMD[iwpriv ath0 noackpolicy 3 0 0]
      FCMD[iwpriv ath0 aifs 0 1 3]
      FCMD[iwpriv ath0 aifs 1 1 7]
      FCMD[iwpriv ath0 aifs 2 1 2]
      FCMD[iwpriv ath0 aifs 3 1 2]
      FCMD[iwpriv ath0 cwmin 0 1 4]
      FCMD[iwpriv ath0 cwmin 1 1 4]
      FCMD[iwpriv ath0 cwmin 2 1 3]
      FCMD[iwpriv ath0 cwmin 3 1 2]
      FCMD[iwpriv ath0 cwmax 0 1 10]
      FCMD[iwpriv ath0 cwmax 1 1 10]
      FCMD[iwpriv ath0 cwmax 2 1 4]
      FCMD[iwpriv ath0 cwmax 3 1 3]
      FCMD[iwpriv ath0 txoplimit 0 1 0]
      FCMD[iwpriv ath0 txoplimit 1 1 0]
      FCMD[iwpriv ath0 txoplimit 2 1 3008]
      FCMD[iwpriv ath0 txoplimit 3 1 1504]
      FCMD[iwpriv ath0 acm 0 1 0]
      FCMD[iwpriv ath0 acm 1 1 0]
      FCMD[iwpriv ath0 acm 2 1 0]
      FCMD[iwpriv ath0 acm 3 1 0]
      CMD[sh /var/sd/qca_wlan0.sh]
      wlan_vap_create : enter. devhandle=0x868b0360, opmode=IEEE80211_M_HOSTAP, flags=0x1
      wlan_vap_create : exit. devhandle=0x868b0360, opmode=IEEE80211_M_HOSTAP, flags=0x1.
      VAP device ath0 created osifp: (86f73360) os_if: (85d78000)
    
       DES SSID SET=elecom2g01-37d07c 
      Setting Max Stations:25
      wds10     no private ioctls.
    
      wds10     no private ioctls.
    
      CMD[led_ctl 2g off]
      Stopping 5G radio ....              
      CMD[brctl delif br0 ath5]
      device ath5 is not a slave of br0
      CMD[iwpriv wifi1 enable_ol_stats 0]
      CMD[ifconfig ath5 down]
      CMD[wlanconfig ath5 destroy]
      osif_ioctl_delete_vap: deleting vap: (86ac0000), osif: (86f7a360)
      ol_scan_unregister_event_handler: Failed to unregister evhandler=8648ec44 arg=86f7a360
      vap-0(ath5):osif_vap_stop : stopping AP vap 
      vap-0(ath5):osif_vap_down : sending MLME Event 
      wmi_unified_vdev_stop_send for vap 0 (86640000)
      STOPPED EVENT for vap 0 (86640000)
      vap-0(ath5):osif_vap_down : Keys Deleted 
      ol_scan_unregister_event_handler: Failed to unregister evhandler=8648ec44 arg=86f7a360
      ol_scan_unregister_event_handler: Failed to unregister evhandler=8648eaf4 arg=86f7a360
      wlan_vap_delete : enter. vaphandle=0x86ac0000
      wmi_unified_vdev_stop_send for vap 0 (86640000)
      STOPPED EVENT for vap 0 (86640000)
      ol_ath_vap_delete: wmi_unified_vdev_delete_send done ID = 0 VAP Addr = bc:5c:4c:xx:xx:7d:
      wlan_vap_delete : exit. vaphandle=0x86ac0000
      OK
    
    
      ********************
      Initialize Radio_(5G) setting ... 
      OK
      Configuring 5G radio setting ... 
    
    
      Configuring QCA WiFi device[1] ...Wlan is in
       AP Mode
      wifiname=wifi1 , macaddr=BC:5C:4C:xx:xx:7D
      FCMD[ifconfig wifi1 hw ether BC:5C:4C:xx:xx:7D]
      FCMD[iwpriv wifi1 setCountryID 4015]
      FCMD[wlanconfig ath5 create wlandev wifi1 wlanmode ap ]
      FCMD[iwpriv wifi1 rxchainmask 7]
      FCMD[iwpriv wifi1 txchainmask 7]
      QCA Radio[2],Wireless Mode:[11NAHT40PLUS]
      FCMD[iwpriv ath5 mode 11NAHT40PLUS]
      FCMD[iwpriv ath5 pureg 0]
      FCMD[iwpriv ath5 puren 0]
      FCMD[iwpriv ath5 disablecoext 1]
      FCMD[iwpriv wifi1 enable_ol_stats 1]
      FCMD[iwpriv ath5 dbgLVL 1073741824]
      FCMD[iwconfig ath5 essid elecom5g01-37d07d]
      FCMD[iwconfig ath5 channel 36]
      FCMD[iwpriv ath5 maxsta 25]
      FCMD[iwpriv ath5 bintval 100]
      FCMD[iwpriv ath5 inact 60]
      FCMD[iwpriv ath5 dtim_period 1]
      FCMD[iwpriv ath5 shpreamble 1]
      FCMD[iwconfig ath5 rts 2347]
      FCMD[iwpriv ath5 extprotmode 2]
      FCMD[iwpriv ath5 countryie 1]
      FCMD[iwpriv ath5 hide_ssid 0]
      FCMD[iwpriv ath5 mcastenhance 2]
      FCMD[iwpriv wds14 mcastenhance 2]
      FCMD[iwpriv ath5 shortgi 1]
      FCMD[iwpriv wifi1 AMPDU 1]
      FCMD[iwpriv wifi1 AMPDUFrames 32]
      FCMD[iwpriv wifi1 AMPDULim 50000]
      FCMD[iwpriv ath5 macradius 0]
    
      Radio1 off
      FCMD[route add -net 239.0.0.0 netmask 255.0.0.0 br0]
      No WPA/WPA2 AUTH
      No need to call hostapd
      FCMD[iwpriv ath5 ap_bridge 1]
      FCMD[ifconfig wifi1 txqueuelen 10000]
      FCMD[ifconfig ath5 txqueuelen 10000]
      FCMD[ifconfig eth0 txqueuelen 10000]
      FCMD[ifconfig eth1 txqueuelen 10000]
      FCMD[sleep 1]
      FCMD[iwpriv ath5 mcast_rate 117000]
      FCMD[iwpriv wds14 mcast_rate 117000]
      FCMD[iwpriv ath5 wmm 1]
      FCMD[iwpriv ath5 uapsd 1]
      FCMD[iwpriv ath5 aifs 0 0 3]
      FCMD[iwpriv ath5 aifs 1 0 7]
      FCMD[iwpriv ath5 aifs 2 0 1]
      FCMD[iwpriv ath5 aifs 3 0 1]
      FCMD[iwpriv ath5 cwmin 0 0 4]
      FCMD[iwpriv ath5 cwmin 1 0 4]
      FCMD[iwpriv ath5 cwmin 2 0 3]
      FCMD[iwpriv ath5 cwmin 3 0 2]
      FCMD[iwpriv ath5 cwmax 0 0 6]
      FCMD[iwpriv ath5 cwmax 1 0 10]
      FCMD[iwpriv ath5 cwmax 2 0 4]
      FCMD[iwpriv ath5 cwmax 3 0 3]
      FCMD[iwpriv ath5 txoplimit 0 0 0]
      FCMD[iwpriv ath5 txoplimit 1 0 0]
      FCMD[iwpriv ath5 txoplimit 2 0 3008]
      FCMD[iwpriv ath5 txoplimit 3 0 1504]
      FCMD[iwpriv ath5 noackpolicy 0 0 0]
      FCMD[iwpriv ath5 noackpolicy 1 0 0]
      FCMD[iwpriv ath5 noackpolicy 2 0 0]
      FCMD[iwpriv ath5 noackpolicy 3 0 0]
      FCMD[iwpriv ath5 aifs 0 1 3]
      FCMD[iwpriv ath5 aifs 1 1 7]
      FCMD[iwpriv ath5 aifs 2 1 2]
      FCMD[iwpriv ath5 aifs 3 1 2]
      FCMD[iwpriv ath5 cwmin 0 1 4]
      FCMD[iwpriv ath5 cwmin 1 1 4]
      FCMD[iwpriv ath5 cwmin 2 1 3]
      FCMD[iwpriv ath5 cwmin 3 1 2]
      FCMD[iwpriv ath5 cwmax 0 1 10]
      FCMD[iwpriv ath5 cwmax 1 1 10]
      FCMD[iwpriv ath5 cwmax 2 1 4]
      FCMD[iwpriv ath5 cwmax 3 1 3]
      FCMD[iwpriv ath5 txoplimit 0 1 0]
      FCMD[iwpriv ath5 txoplimit 1 1 0]
      FCMD[iwpriv ath5 txoplimit 2 1 3008]
      FCMD[iwpriv ath5 txoplimit 3 1 1504]
      FCMD[iwpriv ath5 acm 0 1 0]
      FCMD[iwpriv ath5 acm 1 1 0]
      FCMD[iwpriv ath5 acm 2 1 0]
      FCMD[iwpriv ath5 acm 3 1 0]
      CMD[sh /var/sd/qca_wlan1.sh]
      isCountryCodeValid: EEPROM regdomain 0x0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
      ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
      Add VHT80 channel: 5210
      Add VHT80 channel: 5290
      Add VHT80 channel: 5530
      Add VHT80 channel: 5610
      Skipping VHT80 channel 5660
      Skipping VHT80 channel 5680
      Skipping VHT80 channel 5700
      ath_ioctl: SIOC80211IFCREATE CALLED
      wlan_vap_create : enter. devhandle=0x86bc0360, opmode=IEEE80211_M_HOSTAP, flags=0x1
      wmi_unified_vdev_create_send: ID = 0 VAP Addr = bc:5c:4c:xx:xx:7d:
      Setting dscp for vap id: 0
      wlan_vap_create : exit. devhandle=0x86bc0360, opmode=IEEE80211_M_HOSTAP, flags=0x1.
      VAP device ath5 created osifp: (86f70b60) os_if: (85e14000)
      vap-0(ath5):set SIOC80211NWID, 17 characters
    
       DES SSID SET=elecom5g01-37d07d 
      DCS: ol_ath_disable_dcsim dcs state 0 
      Setting Max Stations:25
      ol_ath_vap_set_param: VAP param is now supported param:66 value:2
      wds14     no private ioctls.
    
      Interface doesn't accept private ioctl...
      AMPDU (8BE0): Operation not permitted
      Interface doesn't accept private ioctl...
      AMPDUFrames (8BE0): Operation not permitted
      Interface doesn't accept private ioctl...
      AMPDULim (8BE0): Operation not permitted
      route: SIOCADDRT: File exists
      br0: port 1(br_t.1) entering forwarding state
      ol_ath_vap_set_param: VAP param is now supported param:11 value:150
      wds14     no private ioctls.
    
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 0 bss 0 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 1 bss 0 val 7
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 2 bss 0 val 1
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 3 bss 0 val 1
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 0 bss 0 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 1 bss 0 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 2 bss 0 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 3 bss 0 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 0 bss 0 val 6
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 1 bss 0 val 10
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 2 bss 0 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 3 bss 0 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 0 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 1 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 2 bss 0 val 3008
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 3 bss 0 val 1504
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 0 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 1 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 2 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 6 ac 3 bss 0 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 0 bss 1 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 1 bss 1 val 7
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 2 bss 1 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 3 ac 3 bss 1 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 0 bss 1 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 1 bss 1 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 2 bss 1 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 1 ac 3 bss 1 val 2
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 0 bss 1 val 10
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 1 bss 1 val 10
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 2 bss 1 val 4
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 2 ac 3 bss 1 val 3
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 0 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 1 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 2 bss 1 val 3008
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 4 ac 3 bss 1 val 1504
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 0 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 1 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 2 bss 1 val 0
      vap-0(ath5):ieee80211_ioctl_setwmmparams: param 5 ac 3 bss 1 val 0
      CMD[iwpriv wifi1 set_led 0]
      br0: port 2(eth0) entering forwarding state
    

AT-AR3050S

かねてよりCavium Octeon搭載機として気になっていた機種であり、ヤフオクの出品ページでにらめっこして悩んだ挙句に閉じるということをくりかえしていたもの。
いい加減未練タラタラなので、丁度安くなっていたこともあって思い切って確保した。

弄っていくのでメモ。

Switch

確認中

zone WAN LAN (88E6176)
port
(FG-52E)
WAN2 WAN1 5 4 3 2 1
port (88E1512, addr:0x0) (88E1512, addr:0x1) port0 port1 port2 port3 port4

MAC

確認中

U-Boot

Allied Telesisのブート用プログラムが呼ばれてしまう為U-Boot本体では中断できず

  • (ブートメニュー)

      Boot Menu:
    
        WARNING: The bootloader is not currently password protected. 
        ------------------------------------------------------
        S. Security Level
        ------------------------------------------------------
        0. Restart
        1. Perform one-off boot from alternate source
        2. Change the default boot source (for advanced users)
        3. Update Bootloader
        4. Adjust the console baud rate
        5. Special boot options
        6. System information
        7. Restore Bootloader factory settings
        ------------------------------------------------------
        9. Quit and continue booting
    
  • 6. System information

      System information:
    
        System (Detected values)
        ------------------------------------------------------
        CPU:
          Type ...............: MIPS64
        Memory:
          Total installed ....: 1024 MB
        Flash:
          Total installed ....: 3776 MB
        ------------------------------------------------------
    
        Product information
        ------------------------------------------------------
        Compatible software ..: 16 (r16)
        Serial ...............: 000194G*********
        Manufacture date .....: 05/2017
        Product ..............: 422
        Product name .........: ar3050s
        Revision .............: B
        First MAC address ....: 00:00:cd:xx:xx:48
        ------------------------------------------------------
    
        Boot software information
        ------------------------------------------------------
        Version ..............: 5.1.6
        Build time ...........: Feb 17 2017 - 11:42:44 +1300
        Built by .............: maker
        Build host ...........: 
        Build key ............: arc
        Compatible products:
          422 ................: ar3050s
          425 ................: ar4050s
          453 ................: ar2050v
          454 ................: ar2010v
        ------------------------------------------------------
    
  • 4. Adjust the console baud rate

    デフォルトは9600

      Select baud rate:
    
        0. Return to previous menu
        ------------------------------------------------------
        1. 9600
        2. 19200
        3. 38400
        4. 57600
        5. 115200
    
  • 1. Perform one-off boot from alternate source --> 3. TFTP (tftp://)

    ゲートウェイ以外は要入力)

      Select device:
    
        0. Return to previous menu
        ------------------------------------------------------
        1. Flash   (flash:)
        2. SD Card (card:)
        3. TFTP    (tftp://)
        4. YMODEM  (ymodem:)
        6. USB     (usb:)
    
      Enter selection ==> 3
    
        Enter physical download port (1-8)... []: 1
        Enter IP version [4|6]................ [4]: 
        Enter IP address for this device ..... [0.0.0.0]: 192.168.0.1
        Enter subnet mask .................... [0.0.0.0]: 255.255.255.0
        Enter gateway IP ..................... [0.0.0.0]:     
        Enter TFTP server IP ................. [0.0.0.0]: 192.168.0.10
        Enter filename ....................... []: test.bin
      Loading tftp://192.168.0.10/test.bin...
      Downloading from port 1
    

Kernel

  • #show system

      awplus#show system
      System Status                                           Sat Oct 12 01:06:49 2019
    
      Board      ID   Bay     Board Name                        Rev   Serial number
      --------------------------------------------------------------------------------
      Base       422          AR3050S                           B-3   000194G*********
      --------------------------------------------------------------------------------
      RAM: Total: 953088 kB Free: 778936 kB
      Flash: 3.6GB Used: 47.0MB Available: 3.3GB
      --------------------------------------------------------------------------------
      Environment Status : Normal
      Uptime             : 0 days 00:11:21
      Bootloader version : 5.1.6
    
      Current software   : AR3050S-5.4.7-1.1.rel
      Software version   : 5.4.7-1.1
      Build date         : Fri Jul 14 03:52:21 UTC 2017
    
      Current boot config: flash:/default.cfg (file not found)
    
      System Name
       awplus
      System Contact
    
      System Location
    
  • #show version

      awplus#show version
    
      AlliedWare Plus (TM) 5.4.7 07/14/17 03:52:17
    
      Build name : arc-5.4.7-1.1.rel
      Build date : Fri Jul 14 03:52:21 UTC 2017
      Build type : RELEASE
    
      (各種ソフトウェアライセンス情報)
    
  • #show boot

      awplus#show boot
      Boot configuration
      --------------------------------------------------------------------------------
      Current software   : AR3050S-5.4.7-1.1.rel 
      Current boot image : flash:/AR3050S-5.4.7-1.1.rel (file exists)
      Backup  boot image : Not set 
      Default boot config: flash:/default.cfg
      Current boot config: flash:/default.cfg (file not found)
      Backup  boot config: Not set 
      Autoboot status    : disabled
      Boot Security Level: none
    
  • #show cpu

      awplus#show cpu
    
      CPU averages:
       1 second: 3%, 20 seconds: 1%, 60 seconds: 2%
      System load averages:
       1 minute: 0.18, 5 minutes: 0.17, 15 minutes: 0.14
      Current CPU load:
       userspace: 2%, kernel: 4%, interrupts: 0% iowaits: 0%
    
      user processes
      ==============
        pid name            thrds  cpu%   pri state sleep% runtime
        (省略)
    
      kernel threads
      ==============
        pid name             cpu%   pri state sleep% runtime
        (省略)
    
  • #show platform table macaddr

      awplus#show platform table macaddr
    
      [Instance 0]
    
      MAC address table: (3 entries)                   
      --------------------------------------------------------------------------
      Index  MAC             VID  OutPort      Hit Tgid Unit Mod Port Perm L3
      --------------------------------------------------------------------------
      0      0000.cdxx.xx4a  4091 CPU          0   -    0    0   8    1    0
      1      0000.cdxx.xx4a  1    CPU          0   -    0    0   8    1    0
      2      0000.cdxx.xx4a  4092 CPU          0   -    0    0   8    1    0
    
  • #show platform table vlan

      awplus#show platform table vlan
    
      [Instance 0]
      VLAN table
      ----------
      VLAN configurations per port: unit 0
        Port  0    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  1    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  2    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  3    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  4    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  5    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  6    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  7    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
        Port  8    mac vlan enabled = 0    subnet vlan enabled = 0    pvid = 1
      Count 3
    
      Mac Based Vlan Information:
    
    
      Subnet Based Vlan Information:
      ------------------------------------------------------------------------------
      Port Based Vlan Information
      Vid                   1
      NumMemPorts           9
      Multicast flood mode  
      IPv4 Ucast/Mcast      Yes/Yes
      IPv6 Ucast/Mcast      Yes/Yes
      Local Member Ports: port1.0.1-port1.0.8, CPU
      Local Tagged Ports: CPU
    
      Vid                   4091
      NumMemPorts           1
      Multicast flood mode  
      IPv4 Ucast/Mcast      Yes/Yes
      IPv6 Ucast/Mcast      Yes/Yes
      Local Member Ports: CPU
      Local Tagged Ports: CPU
    
      Vid                   4092
      NumMemPorts           1
      Multicast flood mode  
      IPv4 Ucast/Mcast      Yes/Yes
      IPv6 Ucast/Mcast      Yes/Yes
      Local Member Ports: CPU
      Local Tagged Ports: CPU
    
  • show system environment

    恐らくLM81によるもの

      awplus#show system environment 
      Environment Monitoring Status
    
      Overall Status: Normal
    
      Resource ID: 1  Name: AR3050S
      ID  Sensor (Units)                      Reading  Low Limit High Limit Status
      1   Fan: Fan (Rpm)                         3590       2411        -       Ok
      2   Voltage: 2.5V (Volts)                 2.448      2.344      2.865     Ok
      3   Voltage: Battery (Volts)              2.953      2.700      3.586     Ok
      4   Voltage: 3.3V (Volts)                 3.248      2.973      3.627     Ok
      5   Voltage: 5.0V (Volts)                 4.922      4.505      5.495     Ok
      6   Voltage: 12.0V (Volts)               11.313      5.375     13.188     Ok
      7   Voltage: 0.85V (Volts)                0.830      0.802      0.900     Ok
      8   Temp: Internal (Degrees C)               27   58(Hyst)         63     Ok
    
  • bootlog

    Allied Telesis機としての独自の起動ログが表示されるのみ(dmesg無し)

    
      Bootloader 5.1.6 loaded
      Press <Ctrl+B> for the Boot Menu
    
      Reading filesystem...
      Loading flash:AR3050S-5.4.7-1.1.rel...
      Verifying release... OK
      Booting...
      Starting base/first...                                  [  OK  ]
      Mounting virtual filesystems...                         [  OK  ]
    
                 ______________   ____ 
              /\ \            / /______\
            /   \ \_      __/ /| ______ |
          /      \ |     |  /  | ______ |           
        /         \ \   / /     \ ____ /
      /______/\____\ \/ /____________/
    
      Allied Telesis Inc.
      AlliedWare Plus (TM) v5.4.7
      Current release filename: AR3050S-5.4.7-1.1.rel
      Built: Fri Jul 14 03:52:17 UTC 2017
      Mounting static filesystems...                          [  OK  ]
      Checking flash filesystem...                            [  OK  ]
      Mounting flash filesystem (journaled)...                [  OK  ]
      Checking for last gasp debug output...                  [  OK  ]
      Checking NVS filesystem...                              [  OK  ]
      Mounting NVS filesystem...                              [  OK  ]
      Initializing random number generator...                 [  OK  ]
      Starting base/hwrandom...                               [  OK  ]
      Starting base/dbus...                                   [  OK  ]
      Starting base/syslog...                                 [  OK  ]
      Starting base/loopback...                               [  OK  ]
      Starting base/sysctl...                                 [  OK  ]
      Received event syslog.done
      Starting base/modules...                                [  OK  ]
      Received event modules.done
      Starting base/reboot-stability...                       [  OK  ]
      Checking system reboot stability...                     [  OK  ]
      Starting base/apteryx...                                [  OK  ]
      Starting base/crond...                                  [  OK  ]
      Starting base/appmond...                                [  OK  ]
      Starting base/clockcheck...                             [  OK  ]
      Starting hardware/timeout...                            [  OK  ]
      Starting base/inet...                                   [  OK  ]
      Received event apteryx.done
      Starting network/streamd...                             [  OK  ]
      Starting network/ddnsd...                               [  OK  ]
      Starting base/alfred...                                 [  OK  ]
      Starting network/firewalld...                           [  OK  ]
      Starting network/tunneld...                             [  OK  ]
      Starting network/statmond...                            [  OK  ]
      Starting network/ike...                                 [  OK  ]
      Starting network/kermond...                             [  OK  ]
      Starting network/recorder...                            [  OK  ]
      Starting network/tcontrold...                           [  OK  ]
      Starting hardware/plugman...                            [  OK  ]
      Starting hardware/openhpi...                            [  OK  ]
      Starting network/prol2tp...                             [  OK  ]
      Starting base/logconf...                                [  OK  ]
      Starting network/pbrd...                                [  OK  ]
      Received event prol2tp.done
      Starting network/l2tpd...                               [  OK  ]
      Received event board.inserted
      Starting hardware/hardware-done...                      [  OK  ]
      Received event hardware.done
      Starting network/startup...                             [  OK  ]
      Starting base/external-media...                         [  OK  ]
      Received event hostcfg.done
      Starting network/licd...                                [  OK  ]
      Received event network.enabled
    
      Initializing HA processes:
      atmf_agentd, ddnsd, hostd, nsm, statmond, atmfd, auth
      cntrd, hsl, lacp, mstp, ospf6d, ripd, ripngd
      rmon, vrrpd, bgpd, imi, ospfd, pdmd, pim6d
      pimd
    
      Received event network.initialized
    
      Assigning Active Workload to HA processes:
      hsl, authd, bgpd, lacpd, mstpd, nsm, ospf6d
      ospfd, pdmd, pim6d, pimd, ripd, ripngd, rmond
      vrrpd, imi
    
      Received event network.activated
    
      Loading default configuration
      Warning: flash:/default.cfg does not exist, loading factory defaults.
      ..
    
      done!
      Received event network.configured
    
    
      awplus login: 
    
  • dmesg

    show platform full-debugKernel ring buffer から抜粋)

      Linux version 4.4.6-at1 (maker@maker13-build) (gcc version 4.7.4 (crosstool-NG crosstool-ng-1.22.0) ) #1 SMP Fri Jul 14 03:31:05 UTC 2017
      Skipping L2 locking due to reduced L2 cache size
      CVMSEG size: 2 cache lines (256 bytes)
      CPU0 revision is: 000d9602 (Cavium Octeon III)
      FPU revision is: 00739600
      Checking for the multiply/shift bug... no.
      Checking for the daddiu bug... no.
      Determined physical RAM map:
       memory: 0000000002370000 @ 0000000000100000 (usable after init)
       memory: 000000000006a000 @ 0000000004886000 (usable after init)
       memory: 000000000b000000 @ 0000000004e00000 (usable)
       memory: 000000002d800000 @ 0000000022800000 (usable)
       memory: 0000000000d2fec0 @ 0000000004000000 (usable)
      Wasting 458752 bytes for tracking 8192 unused pages
      Initial ramdisk at: 0x8000000000100000 (37175296 bytes)
      Using passed Device Tree.
      software IO TLB [mem 0x0551c000-0x0555c000] (0MB) mapped at [800000000551c000-800000000555bfff]
      Zone ranges:
        DMA32    [mem 0x0000000000100000-0x00000000efffffff]
        Normal   empty
      Movable zone start for each node
      Early memory node ranges
        node   0: [mem 0x0000000000100000-0x000000000246ffff]
        node   0: [mem 0x0000000004000000-0x0000000004d2dfff]
        node   0: [mem 0x0000000004e00000-0x000000000fdfffff]
        node   0: [mem 0x0000000022800000-0x000000004fffffff]
      Initmem setup node 0 [mem 0x0000000000100000-0x000000004fffffff]
      On node 0 totalpages: 121935
        DMA32 zone: 834 pages used for memmap
        DMA32 zone: 0 pages reserved
        DMA32 zone: 121935 pages, LIFO batch:15
      Primary instruction cache 78kB, virtually tagged, 39 way, 16 sets, linesize 128 bytes.
      Primary data cache 32kB, 32-way, 8 sets, linesize 128 bytes.
      PERCPU: Embedded 8 pages/cpu @8000000005574000 s22144 r8192 d35200 u65536
      pcpu-alloc: s22144 r8192 d35200 u65536 alloc=8*8192
      pcpu-alloc: [0] 0 [0] 1 
      Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 121101
      Kernel command line: console=ttyS0,9600 root=/dev/ram0 releasefile=AR3050S-5.4.7-1.1.rel bootversion=5.1.6 loglevel=1 maxcpus=2 mtdoops.mtddev=errlog securitylevel=1 reladdr=0x8000000020010000,2755fff 
      PID hash table entries: 4096 (order: 2, 32768 bytes)
      Dentry cache hash table entries: 131072 (order: 7, 1048576 bytes)
      Inode-cache hash table entries: 65536 (order: 6, 524288 bytes)
      Memory: 916376K/975480K available (6738K kernel code, 439K rwdata, 1524K rodata, 424K init, 4351K bss, 59104K reserved, 0K cma-reserved)
      Hierarchical RCU implementation.
              Build-time adjustment of leaf fanout to 64.
              RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=2.
      RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=2
      NR_IRQS:127
      CIB interrupt controller probed: 800107000000e000 23
      CIB interrupt controller probed: 800107000000e200 12
      CIB interrupt controller probed: 800107000000e400 6
      CIB interrupt controller probed: 800107000000ec00 15
      CIB interrupt controller probed: 800107000000e600 4
      CIB interrupt controller probed: 800107000000e800 11
      CIB interrupt controller probed: 800107000000e900 11
      clocksource: OCTEON_CVMCOUNT: mask: 0xffffffffffffffff max_cycles: 0xb881274fa3, max_idle_ns: 440795210636 ns
      Calibrating delay loop (skipped) preset value.. 1600.00 BogoMIPS (lpj=8000000)
      pid_max: default: 32768 minimum: 301
      Security Framework initialized
      Mount-cache hash table entries: 2048 (order: 1, 16384 bytes)
      Mountpoint-cache hash table entries: 2048 (order: 1, 16384 bytes)
      Checking for the daddi bug... no.
      SMP: Booting CPU01 (CoreId  1)...
      CPU1 revision is: 000d9602 (Cavium Octeon III)
      FPU revision is: 00739600
      Brought up 2 CPUs
      devtmpfs: initialized
      clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      NET: Registered protocol family 16
      Not in host mode, PCI Controller not initialized
      SCSI subsystem initialized
      usbcore: registered new interface driver usbfs
      usbcore: registered new interface driver hub
      usbcore: registered new device driver usb
      clocksource: Switched to clocksource OCTEON_CVMCOUNT
      NET: Registered protocol family 2
      TCP established hash table entries: 16384 (order: 4, 131072 bytes)
      TCP bind hash table entries: 16384 (order: 5, 262144 bytes)
      TCP: Hash tables configured (established 16384 bind 16384)
      UDP hash table entries: 512 (order: 1, 16384 bytes)
      UDP-Lite hash table entries: 512 (order: 1, 16384 bytes)
      NET: Registered protocol family 1
      PCI: CLS 0 bytes, default 128
      Trying to unpack rootfs image as initramfs...
      rootfs image is not initramfs (junk in compressed archive); looks like an initrd
      Freeing initrd memory: 36288K (8000000000100000 - 8000000002470000)
      futex hash table entries: 512 (order: 3, 65536 bytes)
      HugeTLB registered 8 MB page size, pre-allocated 0 pages
      squashfs: version 4.0 (2009/01/31) Phillip Lougher
      fuse init (API version 7.23)
      io scheduler noop registered
      io scheduler deadline registered
      io scheduler cfq registered (default)
      octeon_gpio 1070000000800.gpio-controller: OCTEON GPIO driver probed.
      Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
      console [ttyS0] disabled
      1180000000800.serial: ttyS0 at MMIO 0x1180000000800 (irq = 44, base_baud = 31250000) is a OCTEON
      console [ttyS0] enabled
      octeon_rng octeon_rng: Octeon Random Number Generator
      brd: module loaded
      loop: module loaded
      2 ofpart partitions found on MTD device 10000000.nvs
      Creating 2 MTD partitions on "10000000.nvs":
      0x000000000000-0x000000070000 : "nvs"
      0x000000070000-0x000000080000 : "errlog"
      mtdoops: ready 0, 1 (no erase)
      mtdoops: Attached to MTD device 1
      spi-octeon 1070000001000.spi: OCTEON SPI bus driver
      libphy: Fixed MDIO Bus: probed
      tun: Universal TUN/TAP device driver, 1.6
      tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
      PPP generic driver version 2.4.2
      NET: Registered protocol family 24
      usbcore: registered new interface driver asix
      usbcore: registered new interface driver ax88179_178a
      usbcore: registered new interface driver cdc_ether
      usbcore: registered new interface driver net1080
      usbcore: registered new interface driver cdc_subset
      usbcore: registered new interface driver zaurus
      usbcore: registered new interface driver cdc_ncm
      usbcore: registered new interface driver qmi_wwan
      usbcore: registered new interface driver cdc_wdm
      usbcore: registered new interface driver usb-storage
      usbcore: registered new interface driver usbserial
      usbcore: registered new interface driver usbserial_generic
      usbserial: USB Serial support registered for generic
      usbcore: registered new interface driver option
      usbserial: USB Serial support registered for GSM modem (1-port)
      usbcore: registered new interface driver pl2303
      usbserial: USB Serial support registered for pl2303
      i2c /dev entries driver
      rtc-ds1307 0-0068: rtc core: registered ds1340 as rtc0
      i2c-octeon 1180000001000.i2c: version 2.0
      i2c-octeon 1180000001200.i2c: version 2.0
      i2c i2c-1: Added multiplexed i2c bus 2
      i2c i2c-1: Added multiplexed i2c bus 3
      i2c i2c-1: Added multiplexed i2c bus 4
      i2c i2c-1: Added multiplexed i2c bus 5
      pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9546
      octeon_wdt: Initial granularity 5 Sec
      usbcore: registered new interface driver usbhid
      usbhid: USB HID core driver
      GPIO 500 is txdis-gpio line for eth2
      atl_cage 2-0050: atl_cage sfpeth2 successfully probed
      GPIO 501 is txdis-gpio line for eth1
      atl_cage 3-0050: atl_cage sfpeth1 successfully probed
      oprofile: using timer interrupt.
      u32 classifier
          Performance counters on
      Netfilter messages via NETLINK v0.30.
      nfnl_acct: registering with nfnetlink.
      nf_conntrack version 0.5.0 (7442 buckets, 29768 max)
      ctnetlink v0.93: registering with nfnetlink.
      ESP connection tracking enabled
      ip_set: protocol 6
      ipip: IPv4 over IPv4 tunneling driver
      gre: GRE over IPv4 demultiplexor driver
      ip_gre: GRE over IPv4 tunneling driver
      IPv4 over IPsec tunneling driver
      ip_tables: (C) 2000-2006 Netfilter Core Team
      arp_tables: (C) 2002 David S. Miller
      Initializing XFRM netlink socket
      NET: Registered protocol family 10
      ip6_tables: (C) 2000-2006 Netfilter Core Team
      sit: IPv6 over IPv4 tunneling driver
      ip6_gre: GRE over IPv6 tunneling driver
      NET: Registered protocol family 17
      NET: Registered protocol family 15
      bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
      Bridge firewalling registered
      Ebtables v2.0 registered
      l2tp_core: L2TP core driver, V2.0+
      l2tp_ppp: PPPoL2TP kernel driver, V2.0+
      l2tp_ip: L2TP IP encapsulation support (L2TPv3), 1.0+
      l2tp_netlink: L2TP netlink interface, 1.0+
      l2tp_eth: L2TP ethernet pseudowire support (L2TPv3), 1.0+
      l2tp_debugfs: L2TP debugfs support, 1.0+
      l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3), 1.0+
      L2TP PPPoE Access Concentrator driver, V1.2.1
      8021q: 802.1Q VLAN Support v1.8
      tipc: Activated (version 2.0.0)
      NET: Registered protocol family 30
      tipc: Started in single node mode
      reset_gpio 2
      mdio-octeon 1180000001800.mdio: Reseting MDIO
      libphy: mdio-octeon: probed
      mdio-octeon 1180000001800.mdio: Version 1.1
      platform 1180068000000.uctl: clocks initialized.
      xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
      xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
      xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f06d hci version 0x100 quirks 0x00010010
      xhci-hcd xhci-hcd.0.auto: irq 45, io mem 0x1680000000000
      usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
      usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      usb usb1: Product: xHCI Host Controller
      usb usb1: Manufacturer: Linux 4.4.6-at1 xhci-hcd
      usb usb1: SerialNumber: xhci-hcd.0.auto
      hub 1-0:1.0: USB hub found
      hub 1-0:1.0: 1 port detected
      xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
      xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
      usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
      usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
      usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
      usb usb2: Product: xHCI Host Controller
      usb usb2: Manufacturer: Linux 4.4.6-at1 xhci-hcd
      usb usb2: SerialNumber: xhci-hcd.0.auto
      hub 2-0:1.0: USB hub found
      hub 2-0:1.0: 1 port detected
      Interface 0 has 1 ports (SGMII)
      Interface 1 has 1 ports (SGMII)
      Setting rgmii-tx-set to 0x18
      Setting rgmii-rx-set to 0x18
      Setting rgmii-tx-set to 0x18
      Setting rgmii-rx-set to 0x18
      Interface 4 has 1 ports (AGL)
      rtc-ds1307 0-0068: setting system clock to 2019-10-12 00:55:31 UTC (1570841731)
      switch_reset_gpio 481
      boardinfo_device_register:220 board_class:80000000002d1800 dev 80000000003f2600 
      (0)
      Registered boardinfo device 00
      lm81a 0-002c: cold start: config was 0x08 mode 1
      arcbrd_add:266 - LM81 client 80000000003f2200
      RAMDISK: squashfs filesystem found at block 0
      RAMDISK: Loading 36282KiB [1 disk] into ram disk... /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      /
      done.
      VFS: Mounted root (squashfs filesystem) readonly on device 1:0.
      devtmpfs: mounted
      Freeing unused kernel memory: 424K (8000000004886000 - 80000000048f0000)
      random: init urandom read with 27 bits of entropy available
      >udevd[133]: starting version 174
      mmc0: MAN_BKOPS_EN bit is not set
      mmc0: new DDR MMC card at address 0001
      mmcblk0: mmc0:0001 004G60 3.69 GiB 
      mmcblk0boot0: mmc0:0001 004G60 partition 1 2.00 MiB
      mmcblk0boot1: mmc0:0001 004G60 partition 2 2.00 MiB
      mmcblk0rpmb: mmc0:0001 004G60 partition 3 512 KiB
       mmcblk0: p1
      EXT4-fs (mmcblk0p1): mounting ext3 file system using the ext4 subsystem
      EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
      random: nonblocking pool is initialized
      sh (376): drop_caches: 3
      ipifwd: module license 'Proprietary' taints kernel.
      Disabling lock debugging due to kernel taint
      NET: Registered protocol family 41
      NET: Registered protocol family 43
      NET: Registered protocol family 42
      NET: Registered protocol family 45
      NET: Registered protocol family 46
      NET: Registered protocol family 50
      NET: Registered protocol family 53
      NET: Registered protocol family 48
      NET: Registered protocol family 51
      NET: Registered protocol family 52
      NET: Registered protocol family 47
      NET: Registered protocol family 56
      NET: Registered protocol family 58
      NET: Registered protocol family 62
      NET: Registered protocol family 59
      NET: Registered protocol family 57
      NET: Registered protocol family 63
      NET: Registered protocol family 49
      Bringing L2 switch out of reset  (GPIO 481)
      linux-kernel-bde (419): found robo device with 0:0362:5e14:5e10:04
      sh (1185): drop_caches: 3
      IPv6: ADDRCONF(NETDEV_UP): vlan1: link is not ready
      IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
      IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
      eth1: Link down
      eth2: Link down
      sh (1833): drop_caches: 3
    

FortiGate 52E OpenWrt bootlog

大体組み終わったのでメモ的に

  • initramfsイメージでブートした状態でsysupgradeイメージを書き込み再起動した際のもの
    • Flash内の2番目のOSイメージからブートする設定になっていたので、ブートローダで1番目に切り替えている
  • SPI-NOR Flash内のパーティション認識ログ中にmSATA SSDの認識ログも重なるので、その辺でだいぶとっ散らかる

FortiGate-52E (15:19-04.06.2016)
Ver:05000004
Serial number: FGT52E3Uxxxxxxxx
CPU(00): 1600MHz
Total RAM: 2GB
Initializing boot device...
Initializing MAC... egiga1
Please wait for OS to boot, or press any key to display configuration menu.

[C]: Configure TFTP parameters.
[R]: Review TFTP parameters.
[T]: Initiate TFTP firmware transfer.
[F]: Format boot device.
[I]: System information.
[B]: Boot with backup firmware and set as default.
[Q]: Quit menu and continue to boot.
[H]: Display this list of options.

Enter C,R,T,F,I,B,Q,or H:

Loading backup firmware from boot device...


Booting OS...
.
Reading boot image... 3555328 bytes.
Initializing firewall...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.141 (musashino205@TAIHA.NET) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.3.0 r24368-36b1dd75fd) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Tue Dec 5 10:41:09 2023
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Fortinet FortiGate 52E
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000]   HighMem  [mem 0x0000000030000000-0x000000007fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000007fffffff]
[    0.000000] percpu: Embedded 11 pages/cpu s14028 r8192 d22836 u45056
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522560
[    0.000000] Kernel command line: 
[    0.000000] Bootloader command line not present
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 2064580K/2097152K available (8192K kernel code, 631K rwdata, 1884K rodata, 1024K init, 231K bss, 32572K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000001] sched_clock: 64 bits at 800MHz, resolution 1ns, wraps every 4398046511103ns
[    0.000016] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xb881274fa3, max_idle_ns: 440795210636 ns
[    0.000031] Switching to timer-based delay loop, resolution 1ns
[    0.000149] Ignoring duplicate/late registration of read_current_timer delay
[    0.000154] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000313] Calibrating delay loop (skipped), value calculated using timer frequency.. 1600.00 BogoMIPS (lpj=8000000)
[    0.000322] CPU: Testing write buffer coherency: ok
[    0.000339] CPU0: Spectre v2: using BPIALL workaround
[    0.000344] pid_max: default: 32768 minimum: 301
[    0.000691] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000700] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001400] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001704] Setting up static identity map for 0x100000 - 0x100060
[    0.001777] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.001850] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001919] rcu: Hierarchical SRCU implementation.
[    0.002064] smp: Bringing up secondary CPUs ...
[    0.002243] Booting CPU 1
[    0.002364] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.002370] CPU1: Spectre v2: using BPIALL workaround
[    0.002420] smp: Brought up 1 node, 2 CPUs
[    0.002426] SMP: Total of 2 processors activated (3200.00 BogoMIPS).
[    0.002431] CPU: All CPU(s) started in SVC mode.
[    0.004715] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.004776] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004786] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.004899] pinctrl core: initialized pinctrl subsystem
[    0.005474] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.005954] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.006394] thermal_sys: Registered thermal governor 'step_wise'
[    0.006518] cpuidle: using governor ladder
[    0.006623] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.006630] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.014241] cryptd: max_cpu_qlen set to 1000
[    0.015330] SCSI subsystem initialized
[    0.015488] usbcore: registered new interface driver usbfs
[    0.015509] usbcore: registered new interface driver hub
[    0.015525] usbcore: registered new device driver usb
[    0.016080] clocksource: Switched to clocksource arm_global_timer
[    0.016585] NET: Registered PF_INET protocol family
[    0.016681] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.017145] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.017162] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.017170] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.017208] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.017272] TCP: Hash tables configured (established 8192 bind 8192)
[    0.017323] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.017351] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.017475] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.017493] PCI: CLS 0 bytes, default 64
[    0.018930] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.021398] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.021406] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.022167] bounce: pool size: 64 pages
[    0.023280] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.023751] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    0.024041] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    0.024444] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.086461] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.086598] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.146458] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.146655] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.146983] printk: console [ttyS0] disabled
[    0.167070] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 30, base_baud = 15625000) is a 16550A
[    7.772647] printk: console [ttyS0] enabled
[    7.825090] loop: module loaded
[    7.863352] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    7.954180] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    8.043921] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    8.136840] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    8.245317] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    8.350180] scsi host0: ahci-mvebu
[    8.391241] scsi host1: ahci-mvebu
[    8.432087] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 51
[    8.527015] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 51
[    8.623607] spi-nor spi1.0: mx66l1g45g (131072 Kbytes)
[    8.685345] 12 fixed-partitions partitions found on MTD device spi1.0
[    8.762574] Creating 12 MTD partitions on "spi1.0":
[    8.821035] 0x000000000000-0x0000001c0000 : "u-boot"
[    8.880750] 0x0000001c0000-0x0000001d0000 : "firmware-info"
[    8.947716] 0x0000001d0000-0x0000001e0000 : "dtb"
[    9.004295] 0x0000001e0000-0x0000001f0000 : "u-boot-env"
[    9.068158] 0x0000001f0000-0x000000200000 : "board-info"
[    9.132021] OF: Bad cell count for /soc/spi@10680/flash@0/partitions
[    9.176095] ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    9.208291] 0x000000200000-0x000000800000 : "kernel"
[    9.282340] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    9.342076] 0x000000800000-0x000002000000 : "rootfs"
[    9.475423] ata1.00: ATA-9: ADATA XM21E, 5.2H, max UDMA/133
[    9.486141] mtd: setting mtd6 (rootfs) as root device
[    9.542224] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[    9.602867] 1 squashfs-split partitions found on MTD device rootfs
[    9.754063] 0x000000c30000-0x000002000000 : "rootfs_data"
[    9.818775] ata2.00: ATA-9: ADATA XM21E, 5.2H, max UDMA/133
[    9.818935] 0x000002000000-0x000002600000 : "kn2"
[    9.885574] ata2.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 32)
[   10.019171] ata1.00: Features: Dev-Sleep
[   10.019336] 0x000002600000-0x000003e00000 : "rfs2"
[   10.066183] ata2.00: Features: Dev-Sleep
[   10.123940] 0x000003e00000-0x000005000000 : "part1"
[   10.229163] ata1.00: configured for UDMA/133
[   10.229272] 0x000005000000-0x000006200000 : "part2"
[   10.280553] scsi 0:0:0:0: Direct-Access     ATA      ADATA XM21E      5.2H PQ: 0 ANSI: 5
[   10.339047] ata2.00: configured for UDMA/133
[   10.436488] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[   10.487272] 0x000006200000-0x000008000000 : "config"
[   10.577963] sd 0:0:0:0: [sda] Write Protect is off
[   10.646291] scsi 1:0:0:0: Direct-Access     ATA      ADATA XM21E      5.2H PQ: 0 ANSI: 5
[   10.694764] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   10.792223] sd 1:0:0:0: [sdb] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[   10.990980]  sda: sda1
[   10.991178] sd 1:0:0:0: [sdb] Write Protect is off
[   11.019699] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   11.142513] hwmon hwmon0: temp1_input not attached to any thermal zone
[   11.221040] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.343045]  sdb: sdb1 sdb2 sdb3
[   11.382103] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   11.466174] hwmon hwmon1: temp1_input not attached to any thermal zone
[   11.556383] mv88e6085 f1072004.mdio-mii:02: switch 0x1760 detected: Marvell 88E6176, revision 1
[   11.716945] hwmon hwmon2: temp1_input not attached to any thermal zone
[   11.810165] hwmon hwmon3: temp1_input not attached to any thermal zone
[   11.904341] hwmon hwmon4: temp1_input not attached to any thermal zone
[   11.990611] hwmon hwmon5: temp1_input not attached to any thermal zone
[   12.076878] hwmon hwmon6: temp1_input not attached to any thermal zone
[   12.274673] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[   12.365027] mvneta f1070000.ethernet eth0: Using device tree mac address 90:6c:ac:b6:f0:98
[   12.465376] mvneta f1030000.ethernet eth1: Using device tree mac address 90:6c:ac:b6:f0:99
[   12.565646] mvneta f1034000.ethernet eth2: Using device tree mac address 90:6c:ac:b6:f0:9a
[   12.664834] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.743103] ehci-platform: EHCI generic platform driver
[   12.805804] ehci-orion: EHCI orion driver
[   12.854116] xhci-hcd f10f0000.usb3: xHCI Host Controller
[   12.917793] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[   13.007585] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[   13.118190] xhci-hcd f10f0000.usb3: irq 52, io mem 0xf10f0000
[   13.187144] xhci-hcd f10f0000.usb3: xHCI Host Controller
[   13.250812] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[   13.340564] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[   13.416977] hub 1-0:1.0: USB hub found
[   13.461903] hub 1-0:1.0: 1 port detected
[   13.509042] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[   13.606245] hub 2-0:1.0: USB hub found
[   13.651170] hub 2-0:1.0: 1 port detected
[   13.698439] usbcore: registered new interface driver usb-storage
[   13.770890] armada38x-rtc f10a3800.rtc: registered as rtc0
[   13.836714] armada38x-rtc f10a3800.rtc: setting system clock to 2023-12-05T11:16:47 UTC (1701775007)
[   13.946371] i2c_dev: i2c /dev entries driver
[   13.997874] pca953x 0-0024: supply vcc not found, using dummy regulator
[   14.077232] pca953x 0-0024: using no AI
[   14.126390] orion_wdt: Initial timeout 171 sec
[   14.179880] sdhci: Secure Digital Host Controller Interface driver
[   14.253970] sdhci: Copyright(c) Pierre Ossman
[   14.306265] sdhci-pltfm: SDHCI platform and OF driver helper
[   14.384231] marvell-cesa f1090000.crypto: CESA device successfully registered
[   14.470311] NET: Registered PF_INET6 protocol family
[   14.530523] Segment Routing with IPv6
[   14.574448] In-situ OAM (IOAM) with IPv6
[   14.621475] NET: Registered PF_PACKET protocol family
[   14.682134] 8021q: 802.1Q VLAN Support v1.8
[   14.732278] Registering SWP/SWPB emulation handler
[   14.806339] mv88e6085 f1072004.mdio-mii:02: switch 0x1760 detected: Marvell 88E6176, revision 1
[   14.963239] hwmon hwmon3: temp1_input not attached to any thermal zone
[   15.051775] hwmon hwmon4: temp1_input not attached to any thermal zone
[   15.143225] hwmon hwmon5: temp1_input not attached to any thermal zone
[   15.229495] hwmon hwmon6: temp1_input not attached to any thermal zone
[   15.315768] hwmon hwmon7: temp1_input not attached to any thermal zone
[   16.229201] mv88e6085 f1072004.mdio-mii:02: configuring for fixed/rgmii-id link mode
[   16.324215] mv88e6085 f1072004.mdio-mii:02: Link is Up - 1Gbps/Full - flow control off
[   16.440625] mv88e6085 f1072004.mdio-mii:02 lan5 (uninitialized): PHY [mv88e6xxx-1:00] driver [Marvell 88E1540] (irq=67)
[   16.678386] mv88e6085 f1072004.mdio-mii:02 lan4 (uninitialized): PHY [mv88e6xxx-1:01] driver [Marvell 88E1540] (irq=68)
[   16.919747] mv88e6085 f1072004.mdio-mii:02 lan3 (uninitialized): PHY [mv88e6xxx-1:02] driver [Marvell 88E1540] (irq=69)
[   17.160614] mv88e6085 f1072004.mdio-mii:02 lan2 (uninitialized): PHY [mv88e6xxx-1:03] driver [Marvell 88E1540] (irq=70)
[   17.409751] mv88e6085 f1072004.mdio-mii:02 lan1 (uninitialized): PHY [mv88e6xxx-1:04] driver [Marvell 88E1540] (irq=71)
[   17.549708] DSA: tree 0 setup
[   17.606394] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[   17.691478] Freeing unused kernel image (initmem) memory: 1024K
[   17.796218] Run /sbin/init as init process
[   19.119578] init: Console is alive
[   19.160469] init: - watchdog -
[   20.249171] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   20.563375] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   20.658984] init: - preinit -
[   22.056700] random: jshn: uninitialized urandom read (4 bytes read)
[   22.149645] random: jshn: uninitialized urandom read (4 bytes read)
[   22.235145] random: jshn: uninitialized urandom read (4 bytes read)
[   23.162421] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   23.254620] device eth0 entered promiscuous mode
[   23.309988] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   23.404297] mv88e6085 f1072004.mdio-mii:02 lan1: configuring for phy/gmii link mode
[   23.500052] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and[   23.730844] random: procd: uninitialized urandom read (4 bytes read)
 hit [enter] to select the debug level
[   25.934726] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   26.028549] urandom-seed: Seed file not found (/etc/urandom.seed)
[   26.403229] device eth0 left promiscuous mode
[   26.464762] procd: - early -
[   26.499321] procd: - watchdog -
[   27.197692] procd: - watchdog -
[   27.463800] procd: - ubus -
[   27.751845] random: ubusd: uninitialized urandom read (4 bytes read)
[   27.845556] random: ubusd: uninitialized urandom read (4 bytes read)
[   27.921800] random: ubusd: uninitialized urandom read (4 bytes read)
[   28.009000] procd: - init -
Please press Enter to activate this console.
[   28.855582] random: ubusd: uninitialized urandom read (4 bytes read)
[   28.931864] random: ubus: uninitialized urandom read (4 bytes read)
[   29.078984] random: jshn: uninitialized urandom read (4 bytes read)
[   29.252727] kmodloader: loading kernel modules from /etc/modules.d/*
[   29.561300] nat46: module (version 4c5beee236841724219598fabb1edc93d4f08ce5) loaded.
[   29.655204] urngd: v1.0.2 started.
[   29.770422] xt_time: kernel timezone is -0000
[   29.924586] PPP generic driver version 2.4.2
[   29.980417] NET: Registered PF_PPPOX protocol family
[   30.049247] kmodloader: done loading kernel modules from /etc/modules.d/*
[   30.136685] random: crng init done
[   30.177446] random: 25 urandom warning(s) missed due to ratelimiting
[   52.694780] mvneta f1070000.ethernet eth0: Link is Down
[   52.765279] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   52.857880] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   52.942973] device eth0 entered promiscuous mode
[   53.008117] mv88e6085 f1072004.mdio-mii:02 lan1: configuring for phy/gmii link mode
[   53.107653] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   53.183105] br-lan: port 1(lan1) entered blocking state
[   53.245785] br-lan: port 1(lan1) entered disabled state
[   53.339327] device lan1 entered promiscuous mode
[   53.669277] mv88e6085 f1072004.mdio-mii:02 lan2: configuring for phy/gmii link mode
[   53.826182] br-lan: port 2(lan2) entered blocking state
[   53.888837] br-lan: port 2(lan2) entered disabled state
[   53.999510] device lan2 entered promiscuous mode
[   54.147400] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   54.182257] mv88e6085 f1072004.mdio-mii:02 lan3: configuring for phy/gmii link mode
[   54.230143] jffs2_build_filesystem(): unlocking the mtd device... 
[   54.321889] done.
[   54.372378] br-lan: port 3(lan3) entered blocking state
[   54.395998] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   54.419008] br-lan: port 3(lan3) entered disabled state
[   54.684624] device lan3 entered promiscuous mode
[   54.891086] mv88e6085 f1072004.mdio-mii:02 lan4: configuring for phy/gmii link mode
[   55.046839] br-lan: port 4(lan4) entered blocking state
[   55.109497] br-lan: port 4(lan4) entered disabled state
[   55.232655] device lan4 entered promiscuous mode
[   55.400153] mv88e6085 f1072004.mdio-mii:02 lan5: configuring for phy/gmii link mode
[   55.543795] br-lan: port 5(lan5) entered blocking state
[   55.606431] br-lan: port 5(lan5) entered disabled state
[   55.714246] device lan5 entered promiscuous mode
[   55.907435] mvneta f1030000.ethernet eth1: PHY [f1072004.mdio-mii:00] driver [Marvell 88E1510] (irq=56)
[   56.021886] mvneta f1030000.ethernet eth1: configuring for phy/sgmii link mode
[   56.110330] br-wan: port 1(eth1) entered blocking state
[   56.172985] br-wan: port 1(eth1) entered disabled state
[   56.235819] device eth1 entered promiscuous mode
[   56.387443] mvneta f1034000.ethernet eth2: PHY [f1072004.mdio-mii:01] driver [Marvell 88E1510] (irq=57)
[   56.503080] mvneta f1034000.ethernet eth2: configuring for phy/sgmii link mode
[   56.591574] br-wan: port 2(eth2) entered blocking state
[   56.654223] br-wan: port 2(eth2) entered disabled state
[   56.716959] device eth2 entered promiscuous mode
[   58.875883] mvneta f1034000.ethernet eth2: Link is Up - 1Gbps/Full - flow control off
[   58.969873] br-wan: port 2(eth2) entered blocking state
[   59.032512] br-wan: port 2(eth2) entered forwarding state
[   59.099157] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[   59.274990] mvneta f1030000.ethernet eth1: Link is Up - 10Mbps/Full - flow control off
[   59.370007] br-wan: port 1(eth1) entered blocking state
[   59.432638] br-wan: port 1(eth1) entered forwarding state
[  137.851370] done.
[  137.874407] jffs2: notice: (2289) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[  138.148881] overlayfs: upper fs does not support tmpfile.



BusyBox v1.36.1 (2023-12-05 10:41:09 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r24570+13-57d7382cb1
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#

FortiGate 52E

ヤフオクで適当にFortiGate 50Eなどを流し見ていた際、関連として偶然表示され、サポート済の50Eと近いモデル名ながら差異があるように思われ、興味を惹かれて確保したもの。

弄っていくのでメモ。

Switch

zone WAN LAN (88E6176)
port
(FG-52E)
WAN2 WAN1 5 4 3 2 1
port (88E1512, addr:0x0) (88E1512, addr:0x1) port0 port1 port2 port3 port4

MAC

  • (eth0): 90:6C:AC:xx:xx:98 (board-info (OpenWrt), 0xd880 (hex))
  • WAN1: 90:6C:AC:xx:xx:99
  • WAN2: 90:6C:AC:xx:xx:9A
  • LAN1: 90:6C:AC:xx:xx:9B
  • LAN2: 90:6C:AC:xx:xx:9C
  • LAN3: 90:6C:AC:xx:xx:9D
  • LAN4: 90:6C:AC:xx:xx:9E
  • LAN5: 90:6C:AC:xx:xx:9F

U-Boot

Fortinetのブート用プログラム?が呼ばれてしまう為U-Boot本体では中断できず

  • (ブートメニュー)

      [C]: Configure TFTP parameters.
      [R]: Review TFTP parameters.
      [T]: Initiate TFTP firmware transfer.
      [F]: Format boot device.
      [I]: System information.
      [B]: Boot with backup firmware and set as default.
      [Q]: Quit menu and continue to boot.
      [H]: Display this list of options.
    
  • [I]: System information. -> [I]: Display system information.

      Vendor ID       : Fortinet
      CPU family      : Cortex
      CPU model       : Cortex-A9
      CPU MHz         : 1600 MHz
      Cache size      : 64 KB
      Memory          : DDR SDRAM 2GB
    
  • [I]: System information. -> [S]: Set serial port baudrate.

      Enter S,R,T,I,E,Q,or H:
       0:     9600
       1:     19200
       2:     38400
       3:     57600
       4:     115200
      Enter baudrate option [9600]:
    
  • [R]: Review TFTP parameters.

      Image download port:    WAN1
      DHCP status:            Disabled
      Local VLAN ID:          <NULL>
      Local IP address:       192.168.1.188
      Local subnet mask:      255.255.255.0
      Local gateway:          192.168.1.254
      TFTP server IP address: 192.168.1.168
      Firmware file name:     image.out
    
  • [T]: Initiate TFTP firmware transfer.

    試しにFortiGate 50EのOpenWrtイメージを投入してみたところ、チェックで弾かれた

    gzip圧縮前のファイル名を FGT52E としたところ、問題無くチェックを通せた

      Please connect TFTP server to Ethernet port 'WAN1'.
    
      MAC: 90:6c:ac:xx:xx:98
    
      Connect to tftp server 192.168.1.168 ...
    
      ###################
      Image Received.
      Checking image... Wrong image type.
       Please power cycle. System halted.
    

Kernel

  • fnsysctl uname -a

      FortiGate-52E # fnsysctl uname -a
      can not find command uname
    
  • cat /proc/version

      FortiGate-52E # fnsysctl cat /proc/version
      Linux version 3.2.16 (root@build) (gcc version 7.3.1 20180425 (Linaro GCC 7.3-2018.05) ) #2 SMP Mon Jun 5 18:12:04 UTC 2023
    
  • cat /proc/cpuinfo

      FortiGate-52E # fnsysctl cat /proc/cpuinfo
      Processor       : ARMv7 Processor rev 1 (v7l)
      processor       : 0
      BogoMIPS        : 3188.32
    
      processor       : 1
      BogoMIPS        : 3188.32
    
      Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls 
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant     : 0x4
      CPU part        : 0xc09
      CPU revision    : 1
    
      Hardware        : Marvell Armada 380/385/388 (Device Tree)
      Revision        : 0000
      Serial          : 0000000000000000
    
  • cat /proc/meminfo

      FortiGate-52E # fnsysctl cat /proc/meminfo
      MemTotal:        2072268 kB
      MemFree:         1600928 kB
      Buffers:             788 kB
      Cached:           143008 kB
      SwapCached:            0 kB
      Active:           142076 kB
      Inactive:         112304 kB
      Active(anon):     140504 kB
      Inactive(anon):    97180 kB
      Active(file):       1572 kB
      Inactive(file):    15124 kB
      Unevictable:           0 kB
      Mlocked:               0 kB
      SwapTotal:             0 kB
      SwapFree:              0 kB
      Dirty:                36 kB
      Writeback:             0 kB
      AnonPages:        110632 kB
      Mapped:            43924 kB
      Shmem:            127100 kB
      Slab:             145260 kB
      SReclaimable:       2136 kB
      SUnreclaim:       143124 kB
      KernelStack:         928 kB
      PageTables:        10748 kB
      NFS_Unstable:          0 kB
      Bounce:                0 kB
      WritebackTmp:          0 kB
      CommitLimit:     1036132 kB
      Committed_AS:    4652680 kB
      VmallocTotal:     499712 kB
      VmallocUsed:       56140 kB
      VmallocChunk:     441816 kB
    
  • cat /proc/mtd

      FortiGate-52E # fnsysctl cat /proc/mtd
      dev:    size   erasesize  name
      mtd0: 00200000 00010000 "uboot"
      mtd1: 00600000 00010000 "kn1"
      mtd2: 01800000 00010000 "rfs1"
      mtd3: 00600000 00010000 "kn2"
      mtd4: 01800000 00010000 "rfs2"
      mtd5: 01200000 00010000 "part1"
      mtd6: 01200000 00010000 "part2"
      mtd7: 01e00000 00010000 "data2"
    
  • cat /proc/cmdline

      FortiGate-52E # fnsysctl cat /proc/cmdline
      panic=5 console=ttyS0,9600 root=/dev/ram0 rw    initrd=0x2a000000,128M
    
  • ls -al /sys/class/net/

      FortiGate-52E # fnsysctl ls -al /sys/class/net/
      drwxr-xr-x    2 0        0       Mon Dec  4 02:01:29 2023                0 .
      drwxr-xr-x   32 0        0       Mon Dec  4 01:54:01 2023                0 ..
      -rw-r--r--    1 0        0       Mon Dec  4 02:01:29 2023             4096 bonding_masters
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 dummy0 -> ../../devices/virtual/net/dummy0
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 eth0 -> ../../devices/soc.0/internal-regs.2/f1070000.ethernet/net/eth0
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 fortilink -> ../../devices/virtual/net/fortilink
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lan -> ../../devices/virtual/net/lan
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lan1 -> ../../devices/virtual/net/lan1
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lan2 -> ../../devices/virtual/net/lan2
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lan3 -> ../../devices/virtual/net/lan3
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lan4 -> ../../devices/virtual/net/lan4
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lan5 -> ../../devices/virtual/net/lan5
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 lo -> ../../devices/virtual/net/lo
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 modem -> ../../devices/virtual/net/modem
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 port_ha -> ../../devices/virtual/net/port_ha
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 root -> ../../devices/virtual/net/root
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 ssl.root -> ../../devices/virtual/net/ssl.root
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 vsys_fgfm -> ../../devices/virtual/net/vsys_fgfm
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 vsys_ha -> ../../devices/virtual/net/vsys_ha
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 wan1 -> ../../devices/soc.0/internal-regs.2/f1030000.ethernet/net/wan1
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:01:29 2023                0 wan2 -> ../../devices/soc.0/internal-regs.2/f1034000.ethernet/net/wan2
    
  • fnsysctl ls -al /sys/class/leds/

      FortiGate-52E # fnsysctl ls -al /sys/class/leds/
      drwxr-xr-x    2 0        0       Mon Dec  4 01:54:01 2023                0 .
      drwxr-xr-x   32 0        0       Mon Dec  4 01:54:01 2023                0 ..
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:02:00 2023                0 alarm_led_amber -> ../../devices/soc.0/internal-regs.2/leds.3/leds/alarm_led_amber
      lrwxrwxrwx    1 0        0       Mon Dec  4 02:02:00 2023                0 alarm_led_red -> ../../devices/soc.0/internal-regs.2/leds.3/leds/alarm_led_red
      lrwxrwxrwx    1 0        0       Mon Dec  4 01:54:01 2023                0 ha_led_green -> ../../devices/soc.0/internal-regs.2/leds.3/leds/ha_led_green
      lrwxrwxrwx    1 0        0       Mon Dec  4 01:54:01 2023                0 ha_led_red -> ../../devices/soc.0/internal-regs.2/leds.3/leds/ha_led_red
      lrwxrwxrwx    1 0        0       Mon Dec  4 01:54:37 2023                0 status_led_green -> ../../devices/soc.0/internal-regs.2/leds.3/leds/status_led_green
      lrwxrwxrwx    1 0        0       Mon Dec  4 01:54:37 2023                0 status_led_red -> ../../devices/soc.0/internal-regs.2/leds.3/leds/status_led_red
    
  • fnsysctl df -h

      FortiGate-52E # fnsysctl df -h
      Filesystem                 Size       Used  Available Use% Mounted on
      rootfs                  1011.7M      72.5M     939.2M   7% /
      tmpfs                   1011.7M      72.5M     939.2M   7% /
      none                       1.6G      23.6M       1.5G   1% /tmp
      none                       1.6G     496.0K       1.6G   0% /dev/shm
      none                       1.6G      18.4M       1.5G   1% /dev/cmdb
      /dev/mtd6                 18.0M      16.2M       1.7M  90% /data
      /dev/mtd7                 30.0M      18.9M      11.0M  63% /data2
      /dev/sda1                 29.3G     174.2M      27.6G   1% /var/log
      /dev/sdb1                  8.3G      83.1M       7.8G   1% /var/storage/HDD2-WANOPTXXB26B1F41
    
  • fnsysctl cat /proc/self/mounts

      FortiGate-52E # fnsysctl cat /proc/self/mounts
      rootfs / rootfs rw 0 0
      tmpfs / tmpfs rw,relatime,size=1036036k,nr_inodes=259009 0 0
      none /proc proc rw,relatime 0 0
      none /sys sysfs rw,relatime 0 0
      none /tmp tmpfs rw,relatime,size=1687600k 0 0
      none /dev/pts devpts rw,relatime,mode=600 0 0
      none /dev/shm tmpfs rw,relatime,size=1687600k 0 0
      none /dev/cmdb tmpfs rw,relatime,size=1687600k 0 0
      none /proc/bus/usb usbfs rw,relatime 0 0
      /dev/mtd6 /data jffs2 rw,relatime 0 0
      /dev/mtd7 /data2 jffs2 rw,relatime 0 0
      /dev/sda1 /var/log ext3 rw,noatime,errors=continue,barrier=0,data=ordered 0 0
      /dev/sdb1 /var/storage/HDD2-WANOPTXXB26B1F41 ext3 rw,noatime,errors=continue,barrier=0,data=ordered 0 0
    
  • bootlog

    FortiGateとしてのコンソールが表示されるのみ(dmesg無し)

    
    
      FortiGate-52E (15:19-04.06.2016)
      Ver:05000004
      Serial number: FGT52E3Uxxxxxxxx
      CPU(00): 1600MHz
      Total RAM: 2GB
      Initializing boot device...
      Initializing MAC... egiga1
      Please wait for OS to boot, or press any key to display configuration menu..........
    
      Booting OS...
    
      Reading boot image... 3224064 bytes.
      Initializing firewall...
    
    
    
    
    
    
    
      System is starting...
    
    
      FortiGate-52E login:
    

FortiGate 30E

ヤフオクでFortiGate 50Eを探し見付けた時に前後して、同じくハードウェア情報内のネットワークアダプタからMarvell機であることを特定し、散々悩んだ末に確保したもの。
既に確保してから時間が経っている上、基本的には一部を除いて50Eとハードウェアはほぼ共通であるものの、念の為メモ。

Switch

zone WAN LAN
port
(FG-30E)
WAN 4 3 2 1
port port0 port1 port2 port3 port4

MAC

確認中

U-Boot

Fortinetのブート用プログラム?が呼ばれてしまう為U-Boot本体では中断できず

  • (ブートメニュー)

      [C]: Configure TFTP parameters.
      [R]: Review TFTP parameters.
      [T]: Initiate TFTP firmware transfer.
      [F]: Format boot device.
      [I]: System information.
      [B]: Boot with backup firmware and set as default.
      [Q]: Quit menu and continue to boot.
      [H]: Display this list of options.
    
  • [I]: System information. -> [I]: Display system information.

      Vendor ID       : Fortinet
      CPU family      : Cortex
      CPU model       : Cortex-A9
      CPU MHz         : 1332 MHz
      Cache size      : 64 KB
      Memory          : DDR SDRAM 1GB 
      Platform ID   : FGT30E
      Serial number : FGT30E3Uxxxxxxxx
      BIOS       Ver:05000014
      Restricted mode : Disable
      Menu timeout    : 60
    
  • [I]: System information. -> [S]: Set serial port baudrate.

      Enter S,R,T,I,E,Q,or H:
       0:     9600
       1:     19200
       2:     38400
       3:     57600
       4:     115200
      Enter baudrate option [9600]:
    
  • [R]: Review TFTP parameters.

      Image download port:    WAN
      DHCP status:            Disabled
      Local VLAN ID:          <NULL>
      Local IP address:       192.168.1.188
      Local subnet mask:      255.255.255.0
      Local gateway:          192.168.1.254
      TFTP server IP address: 192.168.1.168
      Firmware file name:     image.out
    
  • [T]: Initiate TFTP firmware transfer.

      Please connect TFTP server to Ethernet port 'WAN'.
    
      MAC: 70:4c:a5:1c:af:ce
    
      Connect to tftp server 192.168.1.168 ...
    
    
      ##############
      Image Received.
      Checking image... OK
      Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?
    

Kernel

FortiGateとしてのコンソールが表示されるのみ(dmesg無し)

  • fnsysctl uname -a

      FGT30Exxxxxxxxxx # fnsysctl uname -a
      can not find command uname
    
  • cat /proc/version

      FGT30E3Uxxxxxxxx # fnsysctl cat /proc/version
      Linux version 3.2.16 (root@build) (gcc version 4.7.4 (Linaro GCC 4.7-2014.06) ) #2 SMP Thu Feb 9 18:40:43 UTC 2017
    
  • cat /proc/cpuinfo

      FGT30E3Uxxxxxxxx # fnsysctl cat /proc/cpuinfo
      Processor       : ARMv7 Processor rev 1 (v7l)
      processor       : 0
      BogoMIPS        : 2655.84
    
      processor       : 1
      BogoMIPS        : 2662.40
    
      Features        : swp half thumb fastmult vfp edsp neon vfpv3 tls 
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant     : 0x4
      CPU part        : 0xc09
      CPU revision    : 1
    
      Hardware        : Marvell Armada 380/385/388 (Device Tree)
      Revision        : 0000
      Serial          : 0000000000000000
    
  • cat /proc/meminfo

      FGT30E3Uxxxxxxxx # fnsysctl cat /proc/meminfo
      MemTotal:        1033620 kB
      MemFree:          583404 kB
      Buffers:            3436 kB
      Cached:           106904 kB
      SwapCached:            0 kB
      Active:           160876 kB
      Inactive:          79376 kB
      Active(anon):     140052 kB
      Inactive(anon):    25780 kB
      Active(file):      20824 kB
      Inactive(file):    53596 kB
      Unevictable:           0 kB
      Mlocked:               0 kB
      SwapTotal:             0 kB
      SwapFree:              0 kB
      Dirty:                 0 kB
      Writeback:             0 kB
      AnonPages:        129912 kB
      Mapped:            28356 kB
      Shmem:             35920 kB
      Slab:              57268 kB
      SReclaimable:       7448 kB
      SUnreclaim:        49820 kB
      KernelStack:        1504 kB
      PageTables:         5812 kB
      NFS_Unstable:          0 kB
      Bounce:                0 kB
      WritebackTmp:          0 kB
      CommitLimit:      516808 kB
      Committed_AS:   14821884 kB
      VmallocTotal:    1024000 kB
      VmallocUsed:       10252 kB
      VmallocChunk:    1012388 kB
    
  • cat /proc/mtd

      FGT30E3Uxxxxxxxx # fnsysctl cat /proc/mtd
      dev:    size   erasesize  name
      mtd0: 00200000 00010000 "uboot"
      mtd1: 00600000 00010000 "kn1"
      mtd2: 01800000 00010000 "rfs1"
      mtd3: 00600000 00010000 "kn2"
      mtd4: 01800000 00010000 "rfs2"
      mtd5: 01200000 00010000 "part1"
      mtd6: 01200000 00010000 "part2"
      mtd7: 01e00000 00010000 "data2"
    
  • cat /proc/cmdline

      FGT30E3Uxxxxxxxx # fnsysctl cat /proc/cmdline
      panic=5 console=ttyS0,9600 root=/dev/ram0 rw initrd=0x2a000000,128M
    
  • ls -al /sys/class/net/

      FGT30E3Uxxxxxxxx # fnsysctl ls -al /sys/class/net/
      drwxr-xr-x    2 0        0       Wed Oct  4 01:47:59 2023                0 .
      drwxr-xr-x   28 0        0       Wed Oct  4 01:27:27 2023                0 ..
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 dummy0 -> ../../devices/virtual/net/dummy0
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 eth0 -> ../../devices/soc.0/internal-regs.2/f1070000.ethernet/net/eth0
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 lan -> ../../devices/virtual/net/lan
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 lan1 -> ../../devices/virtual/net/lan1
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 lan2 -> ../../devices/virtual/net/lan2
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 lan3 -> ../../devices/virtual/net/lan3
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 lan4 -> ../../devices/virtual/net/lan4
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 lo -> ../../devices/virtual/net/lo
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 modem -> ../../devices/virtual/net/modem
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 mux4 -> ../../devices/virtual/net/mux4
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 mux5 -> ../../devices/virtual/net/mux5
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 mux6 -> ../../devices/virtual/net/mux6
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 port_ha -> ../../devices/virtual/net/port_ha
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 root -> ../../devices/virtual/net/root
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 ssl.root -> ../../devices/virtual/net/ssl.root
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 vsys_fgfm -> ../../devices/virtual/net/vsys_fgfm
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 vsys_ha -> ../../devices/virtual/net/vsys_ha
      lrwxrwxrwx    1 0        0       Wed Oct  4 01:51:25 2023                0 wan -> ../../devices/soc.0/internal-regs.2/f1030000.ethernet/net/wan
    
  • fnsysctl ls -al /sys/class/leds/

      FGT30Exxxxxxxxxx # fnsysctl ls -al /sys/class/leds/
      drwxr-xr-x    2 0        0       Mon Mar 20 22:02:48 2023                0 .
      drwxr-xr-x   28 0        0       Mon Mar 20 22:02:45 2023                0 ..
      lrwxrwxrwx    1 0        0       Mon Mar 20 22:33:04 2023                0 alarm_led_amber -> ../../devices/soc.0/internal-regs.2/leds.3/leds/alarm_led_amber
      lrwxrwxrwx    1 0        0       Mon Mar 20 22:33:04 2023                0 alarm_led_red -> ../../devices/soc.0/internal-regs.2/leds.3/leds/alarm_led_red
      lrwxrwxrwx    1 0        0       Mon Mar 20 22:33:04 2023                0 ha_led_green -> ../../devices/soc.0/internal-regs.2/leds.3/leds/ha_led_green
      lrwxrwxrwx    1 0        0       Mon Mar 20 22:33:04 2023                0 ha_led_red -> ../../devices/soc.0/internal-regs.2/leds.3/leds/ha_led_red
      lrwxrwxrwx    1 0        0       Mon Mar 20 22:02:48 2023                0 status_led_green -> ../../devices/soc.0/internal-regs.2/leds.3/leds/status_led_green
      lrwxrwxrwx    1 0        0       Mon Mar 20 22:02:48 2023                0 status_led_red -> ../../devices/soc.0/internal-regs.2/leds.3/leds/status_led_red
    
  • fnsysctl df -h

      FGT30Exxxxxxxxxx # fnsysctl df -h
      Filesystem                 Size       Used  Available Use% Mounted on
      rootfs                   123.9M      58.5M      65.3M  47% /
      /dev/root                123.9M      58.5M      65.3M  47% /
      none                     541.5M      14.1M     527.3M   3% /tmp
      none                     541.5M      24.0K     541.5M   0% /dev/shm
      none                     541.5M      19.5M     521.9M   4% /dev/cmdb
      /dev/mtd5                 18.0M       9.4M       8.5M  52% /data
      /dev/mtd7                 30.0M      16.8M      13.1M  56% /data2
    
  • bootlog

      FortiGate-30E (12:44-07.08.2016)
      Ver:05000014
      Serial number: FGT30E3Uxxxxxxxx
      CPU(00): 1332MHz
      Total RAM: 1GB
      Initializing boot device...
      Initializing MAC... egiga0
      Please wait for OS to boot, or press any key to display configuration menu..........
    
      Booting OS...
    
      Reading boot image... 2807808 bytes.
      Initializing firewall...
    
    
    
    
    
      System is starting...
    
    
      FGT30E3Uxxxxxxxx login: 
    

TS3400D メモ

マイコンとのやり取りがバイナリデータなのが面倒。ASCIIベースなら楽だったのだが

コンソール

フロントのシリアルコンソールは内蔵しているマイコンによって入力が無効化されている
有効化するには既定で "serialmode_ups" に設定されているモードを "serialmode_console" に変更する必要がある 参考:

# ttyS3のbaudrateを38400bpsに、パリティを有効にセット
root@OpenWrt:~# stty -F /dev/ttyS3 38400 parenb
# シリアルポートのモードを "serialmode_console" にセット
root@OpenWrt:~# echo -e "\x00\x0f\xf1" > /dev/ttyS3

で可。