2018年8月28日火曜日

ubuntu namebench結果

ウブンツでnamebenchでDNSを計測

install

sudo apt-get install namebench

計測には、10分ほど


2018年8月21日火曜日

WHR-1166DHPとWHR-1166DHP2の違い



WHR-1166DHP 

CPU MT7620A
MEMORY 128Mbyte
Flash 16Mbyte
WIFI MEDIATEK Corp. MT7662E 802.11ac


WHR-1166DHP2

CPU MT7620A
MEMORY 64Mbyte
Flash 16Mbyte
WIFI MEDIATEK Corp. MT7662E 802.11ac


メモリ以外には、違いは、ないのかな

2018年8月16日木曜日

whr-1166にopenwrtを入れてスピートテスト

無線で
iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.109 port 34536 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  29.4 MBytes   246 Mbits/sec    0    730 KBytes     
[  4]   1.00-2.00   sec  30.8 MBytes   259 Mbits/sec    0    819 KBytes     
[  4]   2.00-3.00   sec  33.8 MBytes   283 Mbits/sec    0   1.03 MBytes     
[  4]   3.00-4.00   sec  32.8 MBytes   275 Mbits/sec    0   1.03 MBytes     
[  4]   4.00-5.00   sec  30.3 MBytes   254 Mbits/sec    0   1.03 MBytes     
[  4]   5.00-6.00   sec  31.5 MBytes   265 Mbits/sec    0   1.03 MBytes     
[  4]   6.00-7.00   sec  33.8 MBytes   284 Mbits/sec    0   1.03 MBytes     
[  4]   7.00-8.00   sec  32.6 MBytes   274 Mbits/sec    0   1.03 MBytes     
[  4]   8.00-9.00   sec  31.8 MBytes   267 Mbits/sec    0   1.03 MBytes     
[  4]   9.00-10.00  sec  33.9 MBytes   284 Mbits/sec    0   1.03 MBytes     
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   321 MBytes   269 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   320 MBytes   269 Mbits/sec                  receiver

iperf Done.

wsr-1166にopenwrtをいれて、スピードテスト



無線で

iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.109 port 60900 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  33.8 MBytes   283 Mbits/sec    0    901 KBytes     
[  4]   1.00-2.00   sec  34.6 MBytes   290 Mbits/sec    0   1.04 MBytes     
[  4]   2.00-3.00   sec  33.7 MBytes   283 Mbits/sec    0   1.04 MBytes     
[  4]   3.00-4.00   sec  34.4 MBytes   288 Mbits/sec    0   1.04 MBytes     
[  4]   4.00-5.00   sec  35.4 MBytes   297 Mbits/sec    0   1.04 MBytes     
[  4]   5.00-6.00   sec  34.5 MBytes   290 Mbits/sec    0   1.04 MBytes     
[  4]   6.00-7.00   sec  32.8 MBytes   275 Mbits/sec    0   1.04 MBytes     
[  4]   7.00-8.00   sec  34.7 MBytes   291 Mbits/sec    0   1.04 MBytes     
[  4]   8.00-9.00   sec  34.0 MBytes   285 Mbits/sec    0   1.04 MBytes     
[  4]   9.00-10.00  sec  33.1 MBytes   278 Mbits/sec    0   1.04 MBytes     
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   341 MBytes   286 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   341 MBytes   286 Mbits/sec                  receiver


有線で
iperf3 -c 192.168.1.1
Connecting to host 192.168.1.1, port 5201
[  4] local 192.168.1.142 port 44000 connected to 192.168.1.1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   107 MBytes   895 Mbits/sec    0    543 KBytes     
[  4]   1.00-2.00   sec   110 MBytes   922 Mbits/sec    0    601 KBytes     
[  4]   2.00-3.00   sec   109 MBytes   912 Mbits/sec    0    601 KBytes     
[  4]   3.00-4.00   sec  92.5 MBytes   776 Mbits/sec    0    970 KBytes     
[  4]   4.00-5.00   sec  92.5 MBytes   776 Mbits/sec    0   1024 KBytes     
[  4]   5.00-6.00   sec  65.0 MBytes   545 Mbits/sec    0   1024 KBytes     
[  4]   6.00-7.00   sec  77.5 MBytes   650 Mbits/sec    0   1024 KBytes     
[  4]   7.00-8.00   sec   109 MBytes   912 Mbits/sec    0   1024 KBytes     
[  4]   8.00-9.00   sec  91.2 MBytes   765 Mbits/sec    0   1.06 MBytes     
[  4]   9.00-10.00  sec   110 MBytes   923 Mbits/sec    0   1.06 MBytes     
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   963 MBytes   808 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   960 MBytes   805 Mbits/sec                  receiver



openwrtは、-O2、sysctl.confをいじりました


2018年8月14日火曜日

wsr-1166dhp openwrtから original recovery

https://drive.google.com/file/d/1tqnE25SaWENys0Ri57ngyBL64Ffzhe3v/view?usp=sharing 



target/linux/ramips/dts/WSR-1166.dtsを編集して、mdt1を書き込み可能と,Fw_toolをいれた、ファイル openwrt-ramips-mt7621-wsr-1166-initramfs-kernel.bin をtftpサーバー 192.168.11.2 linux.trx-recoveryに置き、AOSS+電源で起動 


mtd -n  write  mtd1_u-boot-env.backup.wsr-1166dhp.101 u-boot-env 
mtd -r  write  mtd3_firmware.backup.wsr-1166dhp.101 firmware

再度、AOSS+電源で起動し
mtd -n  write  mtd1_u-boot-env.backup.wsr-1166dhp.101 u-boot-env 

mtd -r  write  mtd3_firmware.backup.wsr-1166dhp.101 firmware

起動できないときは、再度、AOSS+電源で起動し root@OpenWrt:~# fw_printenv

bootcmd=tftp
bootdelay=5 
baudrate=57600 ethaddr="00:AA:BB:CC:DD:10" ipaddr=192.168.11.1 serverip=192.168.11.2 
bootfile="linux.trx-recovery" bootpartition=1 
bootversion=0.08 

root@OpenWrt:~# fw_setenv bootpartition 0
にします。

2018年8月11日土曜日

WHR-1166DHP2 を openwrt-18.06インストール&リカバーリー


ubuntuでTFTPサーバーをたて、サーバーアドレス192.168.11.168にして、

https://drive.google.com/file/d/14X8PeWyi2qc95OIyy4DQ09_6yB3Anox2/view?usp=sharing

をfirmware_WHR-1166DHP2.ramにして、TFTPサーバーに置きます

WHR-1166DHP2 をAOSSボタンを押しながら電源ON

自動的にWHR-1166DHP2 が再起動したら、SSHで

ssh 192.168.1.1 -l root
OPENWRTにLOGINします。

cd /tmp
wget https://downloads.openwrt.org/releases/18.06.0/targets/ramips/mt7620/openwrt-18.06.0-ramips-mt7620-whr-1166d-squashfs-sysupgrade.bin

mtd erase firmware

sysupgrade openwrt-18.06.0-ramips-mt7620-whr-1166d-squashfs-sysupgrade.bin

戻す場合は、
バッファローからのファームウェアをダウンロードします
16進エディタで開きます
最初の52バイトを削除します(ヘッダーです)。その後、ファイルがこのバイトシーケンス「27 05 19 56」で始まることがわかります

その加工ファイルをsquashfs-sysupgrade.binとして

上記と同様に実行します
mtd erase firmware

sysupgrade squashfs-sysupgrade.bin

再度

sysupgrade squashfs-sysupgrade.bin





Ubuntu 日本語キーボード設定

openwrt usb.Tethering setup

opkg update opkg install kmod-usb-net kmod-usb-net-rndis kmod-usb-net-cdc-ether kmod-usb-net-ipheth usbmuxd libimobiledevice usbutils luci-...

Asteriskを導入 参考リンク