0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WHR-HP-GNを復活させる

Last updated at Posted at 2020-06-13

個人的な備忘録。

ハード的なもの

取り付けたパーツ

キャパシタが壊れたので、取り外して、取り換え。
25v 100uF。

その後、立ち上がるタイミングを見るためのピンヘッダを取り付け
2.54mm 4pin。(40pinのものを買って、ニッパーでちぎる)

分解

image.png

足は、3か所に、ねじがある

ピンヘッダのアサイン

image.png

リセットピンを上に見て、左から、GRD,TX,RX。

ソフトウェア的なもの

DD-WRTの調達

TFTPで流し込むには、buffalo-to-dd-wrt_webflash-MULTI.binが必要。
TFTP時に、純正ファームか確認するロジックがあり、whr-hp-gn-firmware-MULTI.binは、焼いてもらえない

TFTPの設定は、WHR-HP-GNのIP addressは、192.168.11.1。サーバとして立ち上がるので、ファームを外から流し込むことで書き換える

項目
mac addr 02:aa: bb :cc :dd :1d
IP addr 192.168.11.1

書き換え中のログ

BUFFALO U-BOOT Ver 1.00
AP93 (ar7240) U-boot

sri
================================================================================
  TAP CALC (read_cnt=512)
----+---------------------------------------------------------------------------
TAP |   0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  1
----+---------------------------------------------------------------------------
 512|                               0   0   0   0   0   0   0   0   0   0   0  2
----+---------------------------------------------------------------------------
SELECT tap0=10 / tap1=10

#### ddr registers
~~~ snip ~~~
eth0  02:AA:BB:CC:DD:1D    <--- 上記のMAC
, eth1  00:03:7F:09:0B:AD


tftp server(receive) go, waiting:4[sec] <--- このタイミグでtftpから流し込む
Load address: 0x80f00000
~~~ snip ~~~
DD-WRT v3.0-r43381 std (c) 2020 NewMedia-NET GmbH
Release: 06/10/20
Board: Buffalo WHR-HP-GN

DD-WRT login: root
Password:
==========================================================

     ___  ___     _      _____  ______       ____  ___
    / _ \/ _ \___| | /| / / _ \/_  __/ _  __|_  / / _ \
   / // / // /___/ |/ |/ / , _/ / /   | |/ //_ <_/ // /
  /____/____/    |__/|__/_/|_| /_/    |___/____(_)___/

                       DD-WRT v3.0
                   http://www.dd-wrt.com

==========================================================
login[856]: root login on 'console'


BusyBox v1.31.1 (2020-06-10 02:46:48 +04) built-in shell (ash)

root@DD-WRT:~#

初期パスワードは、root/admin。わかりにくいが、adminがパスワード。
このままでは、ip addrが、192.168.1.1になるので、必要に応じて変更する

root@DD-WRT:~# ifconfig
ath0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1200 (1.1 KiB)

br0       Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:840 (840.0 B)

eth0      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:4

eth1      Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:840 (840.0 B)
          Interrupt:5

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING MULTICAST  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@DD-WRT:~# ifconfig br0 192.168.1.11
root@DD-WRT:~# ifconfig br0
br0       Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.1.11  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:482 (482.0 B)  TX bytes:840 (840.0 B)

あとは、webからアクセスすればOK

image.png

パスワード強制書き換え画面に誘導される。

openwrt

オフィシャルには、17.01.2まで対応。
とのこと。せっかく、直したものの、ちょっと古いので、DD-WRTで行くことに、決定。
4/32問題というものがあるらしく、RAM 4G、ROM 32G以下のハードは、19.07以降、切り捨てる、という方針のようです。

[おしまい]

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?