WR8750Nメモ (4) ブート関係

ツイートに複数の方から「Watchdog Timerではないか」という指摘を頂き、DTSでwdtノードを無効化するもダメ。レジスタを確認し、試しに制限時間経過時のアクションを “No action” に設定したところ、すんなりと起動できた。
恐らく、Bootloaderが設定するWatchdog Timerの制限時間に、OpenWrtのLinux KernelがWDTドライバを初期化し応答できる状態になるタイミングが間に合っていない。対処法はぼんやりと考えているので後で試す。

サポート作業状況(2018/12/17時点)

動作OK

  • initramfsファーム
    • kernelとrootfs等の構成等については考え中のため、sysupgradeファームはまだ
  • Ethernet
  • WLAN 2/5 GHz
    • Kernelからの認識のみ確認
  • LED
    • 10個全てAR9382 (ath9k)が持つ
  • ボタン, スライドスイッチ

作業中

  • sysupgradeファーム
  • Factoryファーム
  • USBポート
    • NECの4ポートハブチップが接続されているものの、何故かFull-SpeedでSoCと接続されてしまう。原因不明。

メモ

  • NECのハブチップの電源(あるいは有効化?)にはath9kのGPIO10、USBの物理ポートの電源にはSoCのGPIO19か20辺りが絡んでいる模様。

Watchdog Timer レジスタ設定(Bootloader)

debug memory write 0xb8060008 0x0

Bootlog

ハイライトは入力個所

IPL:HARD-RESET
memory test ... ok
flinstall OK

boot version: 1.0.0

PKG "Orthos-HP"
CPU "Atheros/AR9344"
Revision 212.1 CLOCK 560.0 MHz
HEAP MEMORY 262144 bytes
Boot:InitFilesystem
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
post start
DRAM Test ..... PASS
Timer test .... PASS
FLASH CHKSUM .. PASS
LAN Test ..... 
LoopBack count 0 .. 
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
active ch:1
phy0.1: "Atheros/AR8327(SW)"
phy0.0: "Atheros/AR8327(phy)"
active ch:0
PASS
Package TYPE = 0x01
post success
now booting Firmware ...
loaded Firmware

welcome to boot console
Password:
boot> tftpd
tftpd start 192.168.0.1
boot> start tftp load kern.bin
end tftp load length = 5140888
start memory load ... 
memory load complete
  begin  : 0x80060000
  length : 5140862
  startup: 0x80060000
debug memory write 0xb8060008 0x0
0xb8060008 <- 0x00000000
boot> boot
begin  : 0x80060000
length : 5140862
startup: 0x80060000
option: 0x0
[    0.000000] Linux version 4.14.88 (jenkins@tofu-z77hvub18_openwrt) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r0+8777-fcf066db8c)) #0 Sun Dec 16 13:15:06 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[    0.000000] MIPS: machine is NEC Aterm WR8750N
[    0.000000] SoC: Atheros AR9344 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 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-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    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: 32512
[    0.000000] Kernel command line: console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 116908K/131072K available (3746K kernel code, 149K rwdata, 904K rodata, 7544K init, 204K bss, 14164K 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: 560.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[    0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[    0.092713] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[    0.237626] pid_max: default: 32768 minimum: 301
[    0.293063] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.372221] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461040] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.578693] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.651640] pinctrl core: initialized pinctrl subsystem
[    0.715102] NET: Registered protocol family 16
[    0.775399] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
[    0.852531]  MEM 0x0000000010000000..0x0000000013ffffff
[    0.914987]   IO 0x0000000000000000..0x0000000000000000
[    0.995120] PCI host bridge to bus 0000:00
[    1.044097] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[    1.126318] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.192980] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.274203] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.369512] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[    1.456977] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[    1.543972] clocksource: Switched to clocksource MIPS
[    1.605534] NET: Registered protocol family 2
[    1.658465] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    1.741838] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    1.817827] TCP: Hash tables configured (established 1024 bind 1024)
[    1.894009] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.963749] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.038978] NET: Registered protocol family 1
[    2.231417] Crashlog allocated RAM at address 0x3f00000
[    2.295376] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.377478] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.447249] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.640236] io scheduler noop registered
[    2.687181] io scheduler deadline registered (default)
[    2.748915] ar7200-usb-phy usb-phy: phy reset is missing
[    2.814642] pinctrl-single 1804002c.pinmux: 544 pins at pa b804002c size 68
[    2.899075] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    2.975878] console [ttyS0] disabled
[    3.018669] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 2500000) is a 16550A
[    3.121682] console [ttyS0] enabled
[    3.121682] console [ttyS0] enabled
[    3.204962] bootconsole [early0] disabled
[    3.204962] bootconsole [early0] disabled
[    3.307128] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    3.365521] 5 fixed-partitions partitions found on MTD device spi0.0
[    3.441566] Creating 5 MTD partitions on "spi0.0":
[    3.498878] 0x000000000000-0x000000020000 : "Bootloader"
[    3.563234] 0x000000020000-0x000000022000 : "config"
[    3.623460] 0x000000022000-0x000000030000 : "reserved"
[    3.685726] 0x000000030000-0x000000040000 : "art"
[    3.742820] 0x000000040000-0x000000800000 : "os-image"
[    3.806244] libphy: Fixed MDIO Bus: probed
[    4.194360] libphy: ag71xx_mdio: probed
[    4.265159] switch0: Atheros AR8327 rev. 2 switch registered on mdio-bus.0
[    5.325149] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    5.453816] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    5.528520] NET: Registered protocol family 10
[    5.585361] Segment Routing with IPv6
[    5.629254] NET: Registered protocol family 17
[    5.682414] 8021q: 802.1Q VLAN Support v1.8
[    5.771226] Freeing unused kernel memory: 7544K
[    5.825362] This architecture does not have kernel memory protection.
[    5.916604] init: Console is alive
[    5.957496] init: - watchdog -
[    6.016978] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.110555] usbcore: registered new interface driver usbfs
[    6.176256] usbcore: registered new interface driver hub
[    6.239913] usbcore: registered new device driver usb
[    6.306519] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.386474] ehci-platform: EHCI generic platform driver
[    6.449252] ehci-platform 1b000000.usb: EHCI Host Controller
[    6.517011] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    6.610657] random: fast init done
[    6.651414] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000
[    6.744020] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    6.818850] hub 1-0:1.0: USB hub found
[    6.864254] hub 1-0:1.0: 1 port detected
[    6.912652] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.009575] init: - preinit -
[    7.269061] random: jshn: uninitialized urandom read (4 bytes read)
[    7.344169] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    7.519092] random: jshn: uninitialized urandom read (4 bytes read)
[    7.716451] usb 1-1: not running at top speed; connect to a high speed hub
[    7.886351] random: procd: uninitialized urandom read (4 bytes read)
[    7.962847] hub 1-1:1.0: USB hub found
[    8.037439] hub 1-1:1.0: 4 ports detected
[    8.314062] urandom_read: 3 callbacks suppressed
[    8.314071] random: jshn: uninitialized urandom read (4 bytes read)
[    8.541368] random: jshn: uninitialized urandom read (4 bytes read)
[    9.390880] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.460811] 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
[   10.565247] eth0: link up (1000Mbps/Full duplex)
[   10.622817] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   10.707532] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   12.797708] procd: - early -
[   12.832368] procd: - watchdog -
[   13.420437] procd: - watchdog -
[   13.458384] procd: - ubus -
[   13.499626] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.576873] random: ubusd: uninitialized urandom read (4 bytes read)
[   13.654550] procd: - init -
Please press Enter to activate this console.
[   13.764051] eth0: link down
[   13.914267] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.995140] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.071073] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   14.160697] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   14.240859] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.313504] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   14.443692] xt_time: kernel timezone is -0000
[   14.557264] PPP generic driver version 2.4.2
[   14.611108] NET: Registered protocol family 24
[   14.726334] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=11
[   14.809414] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
[   14.930188] ath9k 0000:00:00.0: Falling back to user helper
[   15.427859] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=13
[   15.614406] kmodloader: done loading kernel modules from /etc/modules.d/*
[   26.242267] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.313388] eth0: link up (1000Mbps/Full duplex)
[   26.504059] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   26.615326] br-lan: port 1(eth0.1) entered blocking state
[   26.679898] br-lan: port 1(eth0.1) entered disabled state
[   26.744772] device eth0.1 entered promiscuous mode
[   26.802086] device eth0 entered promiscuous mode
[   27.175541] br-lan: port 1(eth0.1) entered blocking state
[   27.240149] br-lan: port 1(eth0.1) entered forwarding state
[   27.307008] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   27.379681] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  120.093741] random: crng init done



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

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

WR8750Nメモ (4) ブート関係” への1件のフィードバック

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト /  変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト /  変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト /  変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト /  変更 )

%s と連携中