タグ: WRC-300GHBK2-I

WRC-300GHBK2-I stock -> OpenWrt (ath79)

factoryファームをsquashfsとinitramfsの両方でそれぞれ作ってみた際のログをメモ。

squashfs

mtd-splitが上手く機能せず、rootfsが作られないためpanicする

starting pid 1063, tty '': '/etc/shutdown'
cannot run '/etc/shutdown': No such file or directory
The system is going down NOW!
Sending SIGTERM to all processes
Sending SIGKILL to all processes
Requesting system reboot


U-Boot 1.1.4 (Jun  8 2015 - 17:12:13)

ap152 - Dragonfly 1.0DRAM:  
sri
ath_ddr_initial_config(283): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0x11, 0x11, 0x11, 0x11)
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 206k for U-Boot at: 83fcc000
Reserving 192k for malloc() at: 83f9c000
Reserving 44 Bytes for Board Info at: 83f9bfd4
Reserving 36 Bytes for Global Data at: 83f9bfb0
Reserving 128k for boot params() at: 83f7bfb0
Stack Pointer at: 83f7bf98
Now running in RAM - U-Boot at: 83fcc000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
*** Warning *** : PCIe WLAN Module not found !!!
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
Fetching MAC Address from 0x83fee72c
ath_gmac_enet_initialize: reset mask:c02200 
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:00:00:00:00:00
eth0 up
eth0
Setting 0x181162c0 to 0x40802100
EDX wan_power_down!
Hit any key to stop autoboot:  0 
## Booting image at bf070000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.67
   Created:      2018-09-03  18:05:27 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1587567 Bytes =  1.5 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0xbf07008c ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.14.67 (musashino205@Taiha.Net) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0+7999-c87e672578)) #0 Mon Sep 3 18:05:27 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is ELECOM WRC-300GHBK2-I
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 58332K/65536K available (3704K kernel code, 151K rwdata, 896K rodata, 1192K init, 212K bss, 7204K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008222] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074769] pid_max: default: 32768 minimum: 301
[    0.079793] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086772] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097648] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108043] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.114536] pinctrl core: initialized pinctrl subsystem
[    0.120863] NET: Registered protocol family 16
[    0.145119] clocksource: Switched to clocksource MIPS
[    0.151356] NET: Registered protocol family 2
[    0.156593] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.163950] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.170695] TCP: Hash tables configured (established 1024 bind 1024)
[    0.177523] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.183688] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.190567] NET: Registered protocol family 1
[    0.198675] Crashlog allocated RAM at address 0x3f00000
[    0.205311] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.216152] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.222294] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.240103] io scheduler noop registered
[    0.244234] io scheduler deadline registered (default)
[    0.251259] pinctrl-single 1804002c.pinmux: 512 pins at pa b804002c size 64
[    0.259529] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.266858] console [ttyS0] disabled
[    0.270657] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 16550A
[    0.279789] console [ttyS0] enabled
[    0.279789] console [ttyS0] enabled
[    0.287342] bootconsole [early0] disabled
[    0.287342] bootconsole [early0] disabled
[    0.301194] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.306324] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.312884] Creating 6 MTD partitions on "spi0.0":
[    0.317852] 0x000000000000-0x000000040000 : "u-boot"
[    0.323665] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.329863] 0x000000050000-0x000000070000 : "nvram"
[    0.335610] 0x000000070000-0x0000007e0000 : "firmware"
[    0.362560] 0x0000007e0000-0x0000007f0000 : "hwconfig"
[    0.368549] 0x0000007f0000-0x000000800000 : "ART"
[    0.374902] libphy: Fixed MDIO Bus: probed
[    0.715479] libphy: ag71xx_mdio: probed
[    0.722442] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.716281] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    1.727871] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    1.736002] NET: Registered protocol family 10
[    1.744078] Segment Routing with IPv6
[    1.748001] NET: Registered protocol family 17
[    1.752631] 8021q: 802.1Q VLAN Support v1.8
[    1.759053] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    1.766824] Please append a correct "root=" boot option; here are the available partitions:
[    1.775464] 1f00             256 mtdblock0 
[    1.775468]  (driver?)
[    1.782213] 1f01              64 mtdblock1 
[    1.782216]  (driver?)
[    1.788969] 1f02             128 mtdblock2 
[    1.788971]  (driver?)
[    1.795726] 1f03            7616 mtdblock3 
[    1.795729]  (driver?)
[    1.802479] 1f04              64 mtdblock4 
[    1.802482]  (driver?)
[    1.809236] 1f05              64 mtdblock5 
[    1.809239]  (driver?)
[    1.815990] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.825043] Rebooting in 1 seconds..

initramfs

OpenWrtで起動後、追加でsquashfs-sysupgradeファームを使用してのsysupgradeが必要

starting pid 1925, tty '': '/etc/shutdown'
cannot run '/etc/shutdown': No such file or directory
The system is going down NOW!
Sending SIGTERM to all processes
Sending SIGKILL to all processes
Requesting system reboot


U-Boot 1.1.4 (Jun  8 2015 - 17:12:13)

ap152 - Dragonfly 1.0DRAM:  
sri
ath_ddr_initial_config(283): (ddr2 init)
ath_sys_frequency: cpu 775 ddr 650 ahb 258
Tap values = (0x11, 0x11, 0x11, 0x11)
64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 206k for U-Boot at: 83fcc000
Reserving 192k for malloc() at: 83f9c000
Reserving 44 Bytes for Board Info at: 83f9bfd4
Reserving 36 Bytes for Global Data at: 83f9bfb0
Reserving 128k for boot params() at: 83f7bfb0
Stack Pointer at: 83f7bf98
Now running in RAM - U-Boot at: 83fcc000
Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x17
flash size 8MB, sector count = 128
Flash:  8 MB
*** Warning *** : PCIe WLAN Module not found !!!
In:    serial
Out:   serial
Err:   serial
Net:   ath_gmac_enet_initialize...
Fetching MAC Address from 0x83fee72c
ath_gmac_enet_initialize: reset mask:c02200 
athr_mgmt_init ::done
Dragonfly  ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:00:00:00:00:00
eth0 up
eth0
Setting 0x181162c0 to 0x40802100
EDX wan_power_down!
Hit any key to stop autoboot:  0 
## Booting image at bf070000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.67
   Created:      2018-09-04  12:54:11 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    5176522 Bytes =  4.9 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum at 0xbf07008c ...OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

[    0.000000] Linux version 4.14.67 (musashino205@Taiha.Net) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r0+8001-850e97cf88)) #0 Tue Sep 4 12:54:11 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is ELECOM WRC-300GHBK2-I
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 47580K/65536K available (3704K kernel code, 151K rwdata, 896K rodata, 11944K init, 212K bss, 17956K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008215] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074760] pid_max: default: 32768 minimum: 301
[    0.079785] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.086765] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097644] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.108044] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.114538] pinctrl core: initialized pinctrl subsystem
[    0.120868] NET: Registered protocol family 16
[    0.145025] clocksource: Switched to clocksource MIPS
[    0.151267] NET: Registered protocol family 2
[    0.156507] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.163859] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.170603] TCP: Hash tables configured (established 1024 bind 1024)
[    0.177432] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.183598] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.190476] NET: Registered protocol family 1
[    0.402463] Crashlog allocated RAM at address 0x3f00000
[    0.409141] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.419933] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.426117] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.501449] io scheduler noop registered
[    0.505624] io scheduler deadline registered (default)
[    0.512604] pinctrl-single 1804002c.pinmux: 512 pins at pa b804002c size 64
[    0.520892] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.528225] console [ttyS0] disabled
[    0.532022] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 16550A
[    0.541153] console [ttyS0] enabled
[    0.541153] console [ttyS0] enabled
[    0.548707] bootconsole [early0] disabled
[    0.548707] bootconsole [early0] disabled
[    0.562708] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.567841] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.574401] Creating 6 MTD partitions on "spi0.0":
[    0.579372] 0x000000000000-0x000000040000 : "u-boot"
[    0.585255] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.591393] 0x000000050000-0x000000070000 : "nvram"
[    0.597115] 0x000000070000-0x0000007e0000 : "firmware"
[    0.624328] 0x0000007e0000-0x0000007f0000 : "hwconfig"
[    0.630334] 0x0000007f0000-0x000000800000 : "ART"
[    0.636731] libphy: Fixed MDIO Bus: probed
[    0.975387] libphy: ag71xx_mdio: probed
[    1.001365] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus.0
[    1.996188] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.007773] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    2.015928] NET: Registered protocol family 10
[    2.024062] Segment Routing with IPv6
[    2.027982] NET: Registered protocol family 17
[    2.032614] 8021q: 802.1Q VLAN Support v1.8
[    2.102790] Freeing unused kernel memory: 11944K
[    2.107587] This architecture does not have kernel memory protection.
[    2.125611] init: Console is alive
[    2.129298] init: - watchdog -
[    2.152027] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.162103] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.179988] init: - preinit -
[    2.348667] random: jshn: uninitialized urandom read (4 bytes read)
[    2.419946] random: jshn: uninitialized urandom read (4 bytes read)
[    2.613320] random: jshn: uninitialized urandom read (4 bytes read)
[    3.459856] urandom_read: 2 callbacks suppressed
[    3.459863] random: procd: uninitialized urandom read (4 bytes read)
[    3.476395] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.482475] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    4.496347] eth0: link up (1000Mbps/Full duplex)
[    4.501201] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    4.508048] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    5.375022] random: fast init done
[    6.620496] procd: - early -
[    6.623550] procd: - watchdog -
[    7.167825] procd: - watchdog -
[    7.171298] procd: - ubus -
[    7.180592] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.224629] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.231629] random: ubusd: uninitialized urandom read (4 bytes read)
[    7.239036] procd: - init -
Please press Enter to activate this console.
[    7.417997] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.437914] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    7.461698] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    7.470010] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    7.509680] ip_tables: (C) 2000-2006 Netfilter Core Team
[    7.537770] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    7.607064] xt_time: kernel timezone is -0000
[    7.615168] eth0: link down
[    7.663878] PPP generic driver version 2.4.2
[    7.670472] NET: Registered protocol family 24
[    7.729532] ieee80211 phy0: Atheros AR9561 Rev:0 mem=0xb8100000, irq=2
[    7.765405] kmodloader: done loading kernel modules from /etc/modules.d/*
[   18.298916] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   18.306397] eth0: link up (1000Mbps/Full duplex)
[   18.311190] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.346565] br-lan: port 1(eth0.1) entered blocking state
[   18.352146] br-lan: port 1(eth0.1) entered disabled state
[   18.358031] device eth0.1 entered promiscuous mode
[   18.363014] device eth0 entered promiscuous mode
[   18.426140] br-lan: port 1(eth0.1) entered blocking state
[   18.431731] br-lan: port 1(eth0.1) entered forwarding state
[   18.437675] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   19.375261] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  126.705063] random: crng init done
[  126.708587] random: 1 urandom warning(s) missed due to ratelimiting



BusyBox v1.29.2 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r0+8001-850e97cf88
 -----------------------------------------------------
=== 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:/#
広告

WRC-300GHBK2-I ethaddr

WRC-300GHBK2-Iでサポート作業をするにあたり、ビルドしたinitramfsファームでブートさせようとしたときに問題があったのでメモ。

WRC-300GHBK2-I

某フリマサイトで流し見ていたところ、11nまでながらGbEのこの機種を発見。調べたところQCA956xらしく、興味が出たので購入。弄っていくにあたってのメモ。

Switch

zone WAN LAN
port
(WRC-300GHBK2-I)
インターネット LAN4 LAN3 LAN2 LAN1
port
(QCA8337N)
port1 port2 port3 port4 port5

MAC

ART内0x1002 (2.4G)

  • LAN: xx:xx:xx:xx:xx:53
  • WAN: xx:xx:xx:xx:xx:52
  • 2.4G: xx:xx:xx:xx:xx:54

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
    erase   - erase FLASH memory
    ethreg  - Switch/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
    mct   - simple RAM test
    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
    progmac2 - 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 (Jun  8 2015 - 17:12:13)
    

  • printenv
    bootlogを見るとbad CRCによりdefault environmentが使用されているため、以下は実際の値ではない可能性がある
    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),64k(mib0),64k(ART)
    bootdelay=2
    baudrate=115200
    ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
    ipaddr=192.168.1.1
    serverip=192.168.1.10
    dir=
    lu=tftp 0x80060000 ${dir}u-boot.bin&&erase 0x9f000000 +$filesize&&cp.b $fileaddr 0x9f000000 $filesize
    lf=tftp 0x80060000 ${dir}ap152${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
    stdin=serial
    stdout=serial
    stderr=serial
    ethact=eth0
    bootcmd=bootm 0xbf070000
    
    Environment size: 683/65532 bytes
    

  • mii device
    QCA9563はSGMIIのみ
    ath> mii device
    MII devices: 'eth0' 
    Current device: 'eth0'
    

Kernel

パスワード要求されるため、コンソールにログインできない。

  • bootlog
    U-Boot 1.1.4 (Jun  8 2015 - 17:12:13)
    
    ap152 - Dragonfly 1.0DRAM:  
    sri
    ath_ddr_initial_config(283): (ddr2 init)
    ath_sys_frequency: cpu 775 ddr 650 ahb 258
    Tap values = (0x11, 0x11, 0x11, 0x11)
    64 MB
    Top of RAM usable for U-Boot at: 84000000
    Reserving 206k for U-Boot at: 83fcc000
    Reserving 192k for malloc() at: 83f9c000
    Reserving 44 Bytes for Board Info at: 83f9bfd4
    Reserving 36 Bytes for Global Data at: 83f9bfb0
    Reserving 128k for boot params() at: 83f7bfb0
    Stack Pointer at: 83f7bf98
    Now running in RAM - U-Boot at: 83fcc000
    Flash Manuf Id 0xc2, DeviceId0 0x20, DeviceId1 0x17
    flash size 8MB, sector count = 128
    Flash:  8 MB
    *** Warning - bad CRC, using default environment
    
    *** Warning *** : PCIe WLAN Module not found !!!
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ath_gmac_enet_initialize...
    Fetching MAC Address from 0x83fee72c
    ath_gmac_enet_initialize: reset mask:c02200 
    athr_mgmt_init ::done
    Dragonfly  ----> S17 PHY *
    athrs17_reg_init: complete
    SGMII in forced mode
    athr_gmac_sgmii_setup SGMII done
    : cfg1 0x80000000 cfg2 0x7114
    eth0: 00:00:00:00:00:00
    eth0 up
    eth0
    Setting 0x181162c0 to 0x40802100
    EDX wan_power_down!
    Hit any key to stop autoboot:  0 
    ## Booting image at bf070000 ...
       Image Name:   Linux Kernel Image
       Created:      2015-06-08   9:12:59 UTC
       Image Type:   MIPS Linux Kernel Image (lzma compressed)
       Data Size:    7298932 Bytes =  7 MB
       Load Address: 80002000
       Entry Point:  80248110
       Verifying Checksum at 0xbf07008c ...OK
       Uncompressing Kernel Image ... OK
    No initrd
    ## Transferring control to Linux (at address 80248110) ...
    ## Giving linux memsize in bytes, 67108864
    
    Starting kernel ...
    
    Booting QCA956x
    Linux version 2.6.31--LSDK-10.2.r2-00013-4 (root@localhost.localdomain) (gcc version 4.3.3 (GCC) ) #12 Wed May 27 19:26:20 CST 2015
    flash_size passed from bootloader = 8
    arg 1: console=ttyS0,115200
    arg 2: root=31:02
    arg 3: rootfstype=jffs2
    arg 4: init=/sbin/init
    arg 5: mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),6336k(rootfs),1408k(uImage),64k(mib0),64k(ART)
    arg 6: mem=64M
    cmdLine: console=ttyS0,115200 root=31:04 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),128k(nvram),1088k(Kernel),6528k(RootFS),64k(hwconfig),64k(ART),7616k(Uimage) mem=64M 
    CPU revision is: 00019750 (MIPS 74Kc)
    ath_sys_frequency: cpu 775 ddr 650 ahb 258
    Determined physical RAM map:
     memory: 02000000 @ 00000000 (usable)
    User-defined physical RAM map:
     memory: 04000000 @ 00000000 (usable)
    Zone PFN ranges:
      Normal   0x00000000 -> 0x00004000
    Movable zone start PFN for each node
    early_node_map[1] active PFN ranges
        0: 0x00000000 -> 0x00004000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    Kernel command line: console=ttyS0,115200 root=31:04 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:256k(u-boot),64k(u-boot-env),128k(nvram),1088k(Kernel),6528k(RootFS),64k(hwconfig),64k(ART),7616k(Uimage) mem=64M 
    PID hash table entries: 256 (order: 8, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
    Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
    Primary instruction cache 64kB, VIPT, 4-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: 47340k/65536k available (2346k kernel code, 18124k reserved, 582k data, 160k init, 0k highmem)
    NR_IRQS:128
    plat_time_init: plat time init done
    r4k_clockevent_init: Ignoring int_usable failure
    Console: colour dummy device 80x25
    Calibrating delay loop... 387.07 BogoMIPS (lpj=774144)
    Mount-cache hash table entries: 512
    
    ****************ALLOC***********************
     Packet mem: 80318ac0 (0xe00000 bytes)
    ********************************************
    
    NET: Registered protocol family 16
    ath_pcibios_init: bus 0
    ***** Warning PCIe 0 H/W not found !!!
    registering PCI controller with io_map_base unset
    bio: create slab  at 0
    SCSI subsystem initialized
    NET: Registered protocol family 2
    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    TCP established hash table entries: 2048 (order: 2, 16384 bytes)
    TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    TCP reno registered
    NET: Registered protocol family 1
    ATH GPIOC major 0
    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    fuse init (API version 7.12)
    msgmni has been set to 92
    io scheduler noop registered
    io scheduler deadline registered (default)
    Initializing edx switch control...
    Done
    Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
    console [ttyS0] enabled
    brd: module loaded
    PPP generic driver version 2.4.2
    PPP BSD Compression module registered
    NET: Registered protocol family 24
    8 cmdlinepart partitions found on MTD device ath-nor0
    Creating 8 MTD partitions on "ath-nor0":
    0x000000000000-0x000000040000 : "u-boot"
    0x000000040000-0x000000050000 : "u-boot-env"
    0x000000050000-0x000000070000 : "nvram"
    0x000000070000-0x000000180000 : "Kernel"
    0x000000180000-0x0000007e0000 : "RootFS"
    0x0000007e0000-0x0000007f0000 : "hwconfig"
    0x0000007f0000-0x000000800000 : "ART"
    0x000000070000-0x0000007e0000 : "Uimage"
    u32 classifier
        Performance counters on
    Netfilter messages via NETLINK v0.30.
    nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
    CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
    nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
    sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
    ctnetlink v0.93: registering with nfnetlink.
    xt_time: kernel timezone is -0000
    ip_tables: (C) 2000-2006 Netfilter Core Team
    ClusterIP Version 0.8 loaded successfully
    arp_tables: (C) 2002 David S. Miller
    TCP cubic registered
    NET: Registered protocol family 10
    IPv6 over IPv4 tunneling driver
    NET: Registered protocol family 17
    dnshijack
    802.1Q VLAN Support v1.8 Ben Greear 
    All bugs added by David S. Miller 
    arch/mips/atheros/gpio.c (ath_simple_config_init) ATH_S17INT_GPIO: 10
    athwdt_init: Registering WDT success
    VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
    Freeing unused kernel memory: 160k freed
    init started: BusyBox v1.12.1--LSDK-10.2.r2-00013-4 (2015-01-27 17:03:31 CST)
    starting pid 15, tty '': '/etc/init.d/rcS sysinit'
    rc ver. 1.0.1
    Initializing...Success!
    Mounting file systems...Success!
    Creating devices...Success!
    Creating loopback device...Success!
    starting pid 24, tty '': '/etc/init.d/rcS start'
    rc ver. 1.0.1
    Initializing...Success!
    Loading dynamic libraries...Success!
    edx_gpio: module license 'unspecified' taints kernel.
    Disabling lock debugging due to kernel taint
    Initializing EDX GPIO...Done
    Acelink events notification ver. 1.6
    argv[0]=/sbin/ev_broker class=2 paction=NETDEV_REGISTER hold=NODE_NUM=255967 retval=0
    argv[0]=/sbin/ev_broker class=2 paction=NETDEV_UP hold=NODE_NUM=267765 retval=0
    argv[0]=/sbin/ev_broker class=2 paction=NETDEV_REGISTER hold=NODE_NUM=142878 retval=0
    NVRAM access daemon Ver. 1.0 Build 20150521134822
    daemonize process
    Starting L0000Config.so...Done ! (ret=0)
    Starting L0100WLANInterface.so...Done ! (ret=0)
    Starting L0130EthInterface.so...Done ! (ret=0)
    Interface doesn't accept private ioctl...
    HALDbg (8BE0): Operation not permitted
    Interface doesn't accept private ioctl...
    ForBiasAuto (8BE0): Operation not permitted
    Invalid command : setVowExt
    Invalid command : setKeySrchAlways
    Invalid command : set_vsp_enable
    Invalid command : setPhyRestartWar
    Invalid command : setVowExtStats
    Invalid command : bgscan
    Invalid command : extoffset
    Invalid command : bgscan
    Invalid command : extoffset
    Starting L0200LANConfig.so...Done ! (ret=0)
    1970-01-01 00:00:16: (server.c.915) can't have more connections than fds/2:  1024 824 
    udhcpd: max_leases=235 is too big, setting to 101
    start lld2d...
    start child_net...
    start Router mode accesscontrol...
    starting firewall...
    start house_keeper...
    Starting L0230LANServices.so...Done ! (ret=0)
    Starting L0300WANConfig.so...Done ! (ret=0)
    
    Please press Enter to activate this console. starting wan_event...
    wan_event done !
    Notice: caching turned off
    starting wan_event...
    starting wan_ready...
    starting firewall...
    killall: upnpd: no process killed
    firewall done !
    start sntp...
    start dns_relay...
    Notice: caching turned off
    start igmpproxy...
    start ddns...
    start forwarding mode...
    iptables: No chain/target/match by that name.
    stopping edx_redir...
    Notice: caching turned off
    iptables: No chain/target/match by that name.
    wan_ready done !
    wan_event done !
    
    starting pid 550, tty '': '-/bin/login'
    (none) login: