ページ : 1 2
チップ内蔵温度表示
アクセスポイントとしての基本設定が完了したので、ここからは細かな機能追加やチューニングに入ります。
まずは以前、OpenWrtデバイスに導入した温度表示パッケージの導入から。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
root@NX30Pro:~#wget --no-check-certificate -O /tmp/luci-app-temp-status_0.4-2_all.ipk https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-temp-status_0.4-2_all.ipk Downloading 'https://github.com/gSpotx2f/packages-openwrt/raw/master/current/luci-app-temp-status_0.4-2_all.ipk' Writing to '/tmp/luci-app-temp-status_0.4-2_all.ipk' /tmp/luci-app-temp-s 100% |*******************************| 3699 0:00:00 ETA root@NX30Pro:~# opkg install /tmp/luci-app-temp-status_0.4-2_all.ipk Installing luci-app-temp-status (0.4-2) to root... Installing liblua5.1.5 (5.1.5-10) to root... Downloading https://downloads.openwrt.org/releases/23.05.2/packages/aarch64_cortex-a53/base/liblua5.1.5_5.1.5-10_aarch64_cortex-a53.ipk Installing lua (5.1.5-10) to root... Downloading https://downloads.openwrt.org/releases/23.05.2/packages/aarch64_cortex-a53/base/lua_5.1.5-10_aarch64_cortex-a53.ipk Installing luci-lib-nixio (git-24.034.54875-21210dc) to root... Downloading https://downloads.openwrt.org/releases/23.05.2/packages/aarch64_cortex-a53/luci/luci-lib-nixio_git-24.034.54875-21210dc_aarch64_cortex-a53.ipk Installing luci-lib-jsonc (git-23.298.74571-62eb535) to root... Downloading https://downloads.openwrt.org/releases/23.05.2/packages/aarch64_cortex-a53/luci/luci-lib-jsonc_git-23.298.74571-62eb535_aarch64_cortex-a53.ipk Configuring liblua5.1.5. Configuring lua. Configuring luci-lib-nixio. Configuring luci-lib-jsonc. Configuring luci-app-temp-status. root@NX30Pro:~# rm /tmp/*.ipk root@NX30Pro:~# /etc/init.d/rpcd reload |
システム概要ページを開いてみると、このデバイスではSoCの他にWiFiモジュールの温度も現れました。
ターミナルでデータソースを辿ってみます。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
root@NX30Pro:~# cat /sys/class/hwmon/hwmon0/name cpu_thermal root@NX30Pro:~# cat /sys/class/hwmon/hwmon0/temp1_input 59488 root@NX30Pro:~# cat /sys/class/hwmon/hwmon1/name mt7915_phy0 root@NX30Pro:~# cat /sys/class/hwmon/hwmon1/temp1_input 41000 root@NX30Pro:~# cat /sys/class/hwmon/hwmon2/name mt7915_phy1 root@NX30Pro:~# cat /sys/class/hwmon/hwmon2/temp1_input 41000 |
irqbalanceによるマルチコア負荷分散
NanoPi R2Sに導入したことのあるIRQ Balanceを、デュアルコアながらこのデバイスへも導入してみます。
|
1 2 3 4 5 6 7 8 |
root@NX30Pro:~# opkg install irqbalance Installing irqbalance (1.9.3-2) to root... Downloading https://downloads.openwrt.org/releases/23.05.2/packages/aarch64_cortex-a53/packages/irqbalance_1.9.3-2_aarch64_cortex-a53.ipk Configuring irqbalance. root@NX30Pro:~# uci set irqbalance.irqbalance.enabled=1 root@NX30Pro:~# /etc/init.d/irqbalance status active with no instances |
しばらく時間をおいてから、負荷分散の様子を確認。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
root@NX30ProA9:~# cat /proc/interrupts CPU0 CPU1 11: 18336432 18366651 GICv3 30 Level arch_timer 17: 0 0 GICv3 142 Level wdt_bark 18: 12 0 GICv3 155 Level ttyS0 19: 0 0 GICv3 148 Level 10320000.crypto 20: 0 0 GICv3 149 Level 10320000.crypto 21: 0 0 GICv3 150 Level 10320000.crypto 22: 0 0 GICv3 151 Level 10320000.crypto 24: 0 0 mt-eint 0 Edge gpio-keys 25: 0 0 mt-eint 1 Edge gpio-keys 62: 0 0 mt-eint 38 Level mt7530 83: 48 3770511 GICv3 229 Level 15100000.ethernet 84: 11744934 0 GICv3 230 Level 15100000.ethernet 86: 154909 0 GICv3 172 Level 1100a000.spi 87: 256948299 0 GICv3 245 Level mt7915e 91: 0 0 mt7530 0 Edge mt7530-0:00 92: 0 0 mt7530 1 Edge mt7530-0:01 93: 0 0 mt7530 2 Edge mt7530-0:02 IPI0: 361826 101904 Rescheduling interrupts IPI1: 116250597 235768656 Function call interrupts IPI2: 0 0 CPU stop interrupts IPI3: 0 0 CPU stop (for crash dump) interrupts IPI4: 0 0 Timer broadcast interrupts IPI5: 0 0 IRQ work interrupts IPI6: 0 0 CPU wake-up interrupts Err: 0 |
起動直後の時刻同期が遅い
以前セットアップしたGL-iNet GL-AR750S Slateと同じく、このデバイスでも起動直後なかなか時刻同期されないので、スタートアップスクリプト /etc/rc.local に時刻同期のスクリプトを記述しました。
|
1 2 3 4 |
# Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. ntpd -q -p hk.pool.ntp.org exit 0 |
これで様子を見て、稼働日数につれてまた時刻がずれるようであれば、このスクリプトをスケジュールタスクへも登録して、周期的に実行させるつもりです。
scpの不明瞭なエラーメッセージ
OpenWrtの設定をNASへssh越しに定期バックアップするに当たり、公開鍵をscpで転送しようとしたときのこと。
|
1 2 3 4 |
root@NX30Pro:~# scp .ssh/id_rsa.pub root@192.168.51.226:~/.ssh/id_rsa.pub.NX30Pro root@192.168.51.226's password: ash: /usr/libexec/sftp-server: not found scp: Connection closed |
このエラーメッセージを真に受けて関連する設定を確認するも解決の糸口は見つからず。調べてみると実は、接続先のモダンなOpenSSH 9系と、自デバイスのレガシーなdropbearが相容れないことに起因する障害なのだそう。
下記のように、 scp -O オプションで回避することができました。
|
1 2 3 |
root@NX30Pro:~# scp -O .ssh/id_rsa.pub root@192.168.51.226:~/.ssh/id_rsa.pub.NX30ProA9 (root@192.168.51.226) Password: id_rsa.pub 100% 740 575.5KB/s 00:00 |
パッケージとサービスの状態
以上で設定作業が終わり、最終的にこのデバイスへインストールされているパッケージは、以下の通り。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
root@NX30ProA9:~# opkg list-installed base-files - 1550-r23630-842932a63d busybox - 1.36.1-1 ca-bundle - 20230311-1 cgi-io - 2022-08-10-901b0f04-21 dnsmasq - 2.89-4 dropbear - 2022.82-5 eip197-mini-firmware - 20230804-1 firewall4 - 2023-09-01-598d9fbb-1 fstools - 2023-02-28-bfe882d5-1 fwtool - 2019-11-12-8f7fe925-1 getrandom - 2022-08-13-4c7b720b-2 hostapd-common - 2023-09-08-e5ccbfc6-6 irqbalance - 1.9.3-2 iw - 5.19-1 iwinfo - 2023-07-01-ca79f641-1 jansson4 - 2.14-3 jshn - 2023-05-23-75a3b870-1 jsonfilter - 2024-01-23-594cfa86-1 kernel - 5.15.137-1-29c7378c7e1adfd339581af2c1ddc93a kmod-cfg80211 - 5.15.137+6.1.24-3 kmod-crypto-acompress - 5.15.137-1 kmod-crypto-aead - 5.15.137-1 kmod-crypto-authenc - 5.15.137-1 kmod-crypto-ccm - 5.15.137-1 kmod-crypto-cmac - 5.15.137-1 kmod-crypto-crc32c - 5.15.137-1 kmod-crypto-ctr - 5.15.137-1 kmod-crypto-des - 5.15.137-1 kmod-crypto-gcm - 5.15.137-1 kmod-crypto-gf128 - 5.15.137-1 kmod-crypto-ghash - 5.15.137-1 kmod-crypto-hash - 5.15.137-1 kmod-crypto-hmac - 5.15.137-1 kmod-crypto-hw-safexcel - 5.15.137-1 kmod-crypto-manager - 5.15.137-1 kmod-crypto-md5 - 5.15.137-1 kmod-crypto-null - 5.15.137-1 kmod-crypto-rng - 5.15.137-1 kmod-crypto-seqiv - 5.15.137-1 kmod-crypto-sha1 - 5.15.137-1 kmod-crypto-sha256 - 5.15.137-1 kmod-crypto-sha512 - 5.15.137-1 kmod-gpio-button-hotplug - 5.15.137-3 kmod-hwmon-core - 5.15.137-1 kmod-leds-gpio - 5.15.137-1 kmod-lib-crc-ccitt - 5.15.137-1 kmod-lib-crc32c - 5.15.137-1 kmod-lib-lzo - 5.15.137-1 kmod-mac80211 - 5.15.137+6.1.24-3 kmod-mt76-connac - 5.15.137+2023-08-14-b14c2351-1 kmod-mt76-core - 5.15.137+2023-08-14-b14c2351-1 kmod-mt7915e - 5.15.137+2023-08-14-b14c2351-1 kmod-mt7981-firmware - 5.15.137+2023-08-14-b14c2351-1 kmod-nf-conntrack - 5.15.137-1 kmod-nf-conntrack6 - 5.15.137-1 kmod-nf-flow - 5.15.137-1 kmod-nf-log - 5.15.137-1 kmod-nf-log6 - 5.15.137-1 kmod-nf-nat - 5.15.137-1 kmod-nf-reject - 5.15.137-1 kmod-nf-reject6 - 5.15.137-1 kmod-nfnetlink - 5.15.137-1 kmod-nft-core - 5.15.137-1 kmod-nft-fib - 5.15.137-1 kmod-nft-nat - 5.15.137-1 kmod-nft-offload - 5.15.137-1 kmod-ppp - 5.15.137-1 kmod-pppoe - 5.15.137-1 kmod-pppox - 5.15.137-1 kmod-slhc - 5.15.137-1 kmod-thermal - 5.15.137-1 libblobmsg-json20230523 - 2023-05-23-75a3b870-1 libc - 1.2.4-4 libgcc1 - 12.3.0-4 libiwinfo-data - 2023-07-01-ca79f641-1 libiwinfo20230701 - 2023-07-01-ca79f641-1 libjson-c5 - 0.16-3 libjson-script20230523 - 2023-05-23-75a3b870-1 liblua5.1.5 - 5.1.5-10 liblucihttp-ucode - 2023-03-15-9b5b683f-1 liblucihttp0 - 2023-03-15-9b5b683f-1 libmbedtls12 - 2.28.7-2 libmnl0 - 1.0.5-1 libncurses6 - 6.4-2 libnftnl11 - 1.2.6-1 libnl-tiny1 - 2023-07-27-bc92a280-1 libopenssl3 - 3.0.13-1 libpthread - 1.2.4-4 libreadline8 - 8.2-1 libubox20230523 - 2023-05-23-75a3b870-1 libubus20230605 - 2023-06-05-f787c97b-1 libuci20130104 - 2023-08-10-5781664d-1 libuclient20201210 - 2023-04-13-007d9454-1 libucode20230711 - 2023-11-07-a6e75e02-1 libustream-mbedtls20201210 - 2023-02-25-498f6e26-1 logd - 2022-08-13-4c7b720b-2 lua - 5.1.5-10 luci - git-23.051.66410-a505bb1 luci-app-firewall - git-24.008.46353-971459d luci-app-opkg - git-24.043.63812-c89a68b luci-app-temp-status - 0.4-2 luci-base - git-24.040.70644-45b9e79 luci-lib-jsonc - git-23.298.74571-62eb535 luci-lib-nixio - git-24.034.54875-21210dc luci-light - git-23.024.33244-34dee82 luci-mod-admin-full - git-19.253.48496-3f93650 luci-mod-network - git-24.046.07140-9939534 luci-mod-status - git-24.045.79879-8b8db0b luci-mod-system - git-23.306.39416-7d3abf8 luci-proto-ipv6 - git-23.355.78874-80140aa luci-proto-ppp - git-21.158.38888-88b9d84 luci-ssl - git-23.035.26083-7550ad6 luci-theme-bootstrap - git-23.338.81541-94798fc mt7981-wo-firmware - 20230804-1 mtd - 26 netifd - 2024-01-04-c18cc79d-1 nftables-json - 1.0.8-1 odhcp6c - 2023-05-12-bcd28363-20 odhcpd-ipv6only - 2023-10-24-d8118f6e-1 openssh-client - 9.6p1-1 openssh-keygen - 9.6p1-1 openwrt-keyring - 2022-03-25-62471e69-2 opkg - 2022-02-24-d038e5b6-2 ppp - 2.4.9.git-2021-01-04-4 ppp-mod-pppoe - 2.4.9.git-2021-01-04-4 procd - 2023-06-25-2db83655-2 procd-seccomp - 2023-06-25-2db83655-2 procd-ujail - 2023-06-25-2db83655-2 px5g-mbedtls - 10 rpcd - 2023-07-01-c07ab2f9-1 rpcd-mod-file - 2023-07-01-c07ab2f9-1 rpcd-mod-iwinfo - 2023-07-01-c07ab2f9-1 rpcd-mod-luci - 20230123-1 rpcd-mod-rrdns - 20170710 rpcd-mod-ucode - 2023-07-01-c07ab2f9-1 terminfo - 6.4-2 ubi-utils - 2.1.5-1 uboot-envtools - 2023.04-1 ubox - 2022-08-13-4c7b720b-2 ubus - 2023-06-05-f787c97b-1 ubusd - 2023-06-05-f787c97b-1 uci - 2023-08-10-5781664d-1 uclient-fetch - 2023-04-13-007d9454-1 ucode - 2023-11-07-a6e75e02-1 ucode-mod-fs - 2023-11-07-a6e75e02-1 ucode-mod-html - 1 ucode-mod-math - 2023-11-07-a6e75e02-1 ucode-mod-nl80211 - 2023-11-07-a6e75e02-1 ucode-mod-rtnl - 2023-11-07-a6e75e02-1 ucode-mod-ubus - 2023-11-07-a6e75e02-1 ucode-mod-uci - 2023-11-07-a6e75e02-1 ucode-mod-uloop - 2023-11-07-a6e75e02-1 uhttpd - 2023-06-25-34a8a74d-2 uhttpd-mod-ubus - 2023-06-25-34a8a74d-2 urandom-seed - 3 urngd - 2023-11-01-44365eb1-1 usign - 2020-05-23-f1f65026-1 wireless-regdb - 2024.01.23-1 wpad-basic-mbedtls - 2023-09-08-e5ccbfc6-6 zlib - 1.2.13-1 |
そして、稼働中と無効化したサービスの一覧は次の通りです。
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
root@NX30ProA9:~# for F in /etc/init.d/* ; do $F enabled && echo $F on || echo $F **disabled**; done /etc/init.d/boot on /etc/init.d/cron on /etc/init.d/dnsmasq **disabled** /etc/init.d/done on /etc/init.d/dropbear on /etc/init.d/firewall **disabled** /etc/init.d/gpio_switch on /etc/init.d/irqbalance on /etc/init.d/led on /etc/init.d/log on /etc/init.d/network on /etc/init.d/odhcpd **disabled** /etc/init.d/packet_steering on /etc/init.d/rpcd on /etc/init.d/sysctl on /etc/init.d/sysfixtime on /etc/init.d/sysntpd on /etc/init.d/system on /etc/init.d/ucitrack on /etc/init.d/uhttpd on /etc/init.d/umount on /etc/init.d/urandom_seed on /etc/init.d/urngd on /etc/init.d/wpad on |
AX3000級の高出力ハイスピードWiFiが安価に手に入る時代になり、H3C NX30 Proを買い増して自宅内APを全リプレースしようか、妄想は尽きません。
ページ : 1 2




