LoginSignup
0
0

More than 1 year has passed since last update.

cisco Meraki MR42のOpenWrt化の手順

Last updated at Posted at 2022-08-18

「Standard installation via UART」に記載されていない内容を中心に補足する。

  • 必要なパッケージ
    sudo apt install python3-pip
    sudo pip pyserial

  • Serial制御ソフトの設定
    sudo minicom -s
    /dev/ttyUSB0
    ハードウェア制御 なし

  • u-bootをメモリにuploadする。
    sudo python3 ubootwrite.py --write=mr42_u-boot.bin
    待機状態になるので、mr42の電源をONすると自動的にuploadする。
    20分ぐらい時間がかかるので、気長に待つ。

  • Ethernetの10Mb half設定
    Full-duplex -> half duplex に変更する。

コマンド
(YOWIE)# mii dump 0x02                                                          0.     (3100)                 -- PHY control register --                        
  (8000:0000) 0.15    =     0    reset                                          
  (4000:0000) 0.14    =     0    loopback                                       
  (2040:2000) 0. 6,13 =   b01    speed selection = 100 Mbps                     
  (1000:1000) 0.12    =     1    A/N enable                                     
  (0800:0000) 0.11    =     0    power-down                                     
  (0400:0000) 0.10    =     0    isolate                                        
  (0200:0000) 0. 9    =     0    restart A/N                                    
  (0100:0100) 0. 8    =     1    duplex = full                                  
  (0080:0000) 0. 7    =     0    collision test enable                          
  (003f:0000) 0. 5- 0 =     0    (reserved)                                     
(YOWIE)# mii read 0x02 0                                                        
3100                                                                      
(YOWIE)# mii write 0x02 0 3000                                                  
(YOWIE)# mii info                                                               
PHY 0x02: OUI = 0x1374, Model = 0x07, Rev = 0x04,  10baseT, HDX                 
  • 疎通確認
    (YOWIE)# ping 192.168.1.250
    Using eth0 device
    host 192.168.1.250 is alive
    (YOWIE)#
  • 起動
    run bootcmd

initramfsで起動
openwrt-ipq806x-generic-meraki_mr42-initramfs-fit-uImage.itb

  • u-bootをflashに書き込む
insmod mtd-rw i_want_a_brick=1
mtd erase /dev/mtd8
nandwrite -pam /dev/mtd8 /root/mr42_u-boot.mbn
  • http://192.168.1.1 upgradeファームに変更

  • /etc/config/network を以下の様にdhcp取得に変更

config interface 'lan'
	option device 'br-lan'
	option proto 'dhcp'
  • webインターフェースの有効化
    opkg update
    opkg install luci
0
0
0

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