aa503214のブログ

aa503214のブログ

ブログの説明を入力します。

Amebaでブログを始めよう!

WRC-733GHBKを OpenWrt 化した時のメモ。

 

●ビルド

https://geekok.github.io/openwrt/development/ubuntu-environment/ を参考に、

Debian 11 でビルドした。

 

apt-get で、いろいろインストールしたんだけど、メモってない。。。

たぶん、以下をやって、足りないのを足したんだと思う。。。

 

 sudo apt-get install subversion g++ zlib1g-dev build-essential git python rsync man-db 

 sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget zip time

 sudo apt-get install python3-distutils

 

ソースを引っ張ってくる。
 git clone -b musashino https://github.com/musashino-build/openwrt openwrt

  git clone -b musashino https://github.com/musashino-build/openwrt_old openwrt

feed を引っ張ってくる。
  cd openwrt
  ./scripts/feeds update -a
  ./scripts/feeds install -a

 

diffconfig を引っ張ってくる。

 https://github.com/musashino-build/openwrt_build-profiles/tree/master/ramips/mt7620/wrc-733ghbk から、

 diffconfig をダウンロード、

 

コンパイル

  cp diffconfig .config

  make defconfig

  make

 

で、ビルド完了。生成物 ~/openwrt/bin/targets/ramips/mt7620 配下の、

openwrt-ramips-mt7620-elecom_wrc-733ghbk-squashfs-sysupgrade.bin

 

これを TFTP で、ルータに投入する。

 

●投入

Windows10からやった。

PCとLANケーブルで接続。(注意:インターネットポートに挿すこと!! 重要!!)

PCの IP アドレスは、192.168.1.2/24 。(ルータは、192.168.1.6 でTFTPサーバが上がってくる。)

cmdtool で、TFTP 投入準備。

> tftp -i 192.168.1.6 put openwrt-ramips-mt7620-elecom_wrc-733ghbk-squashfs-sysupgrade.bin

 (まだ、リターンは叩かない。)

 

ルータをTFTP起動。(リセットボタンを押しながら、電源ON)

で、急いでPCで、リターンキーをたたく。しばしまつ。

うまくいったら、以下のメッセージが出る。

"転送を正常に完了しました: 14 秒間に 6816554 バイト、486896 バイト/秒"

 

投入完了。

 

ルータのLANケーブルを、インターネットポートからLANポートに差し替える。

ルータで、LUCI が 192.168.1.1 で上がってくる。

 

よくわかってないけど、念のため、LUCIから、SYSUPGRADE を実行。(上記のファイルをもう一度。)

 

--完了。