VR500開国. (2016/09/17) ■VR500 Hardware シリアルはピンが立っている 3.3V, 57600, data 8bit, stop 1bit Please choose the operation: 1: Load system code to SDRAM via TFTP. 2: Load system code then write to Flash via TFTP. 3: Boot system code via Flash (default). 4: Entr boot command line interface. 7: Load Boot Loader code then write to Flash via Serial. 9: Load Boot Loader code then write to Flash via TFTP. a: Auto load system code then write to Flash via TFTP. Flashに焼くときは2、RAMで動かす時は1 tftpで送り込むだけの簡単u-bootです。 ■OpenWrt build system ? Installation ※OpenWrtは基本、一般ユーザで行います。rootユーザだとエラーが出ます。 1. Install git, to conveniently download the OpenWrt source code, and build tools to do the cross-compilation process: $ sudo apt-get update $ sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip subversion 2. Download the OpenWrt with git $ git clone git://git.openwrt.org/15.05/openwrt.git ※trunkを使用する場合は以下(今回は非推奨、15.05を推奨) $ git clone https://github.com/openwrt/openwrt (※git clone git://git.openwrt.org/openwrt.gitだと古い状態が降ってきてしまう。) 3. Patch for VR500 15.05版の場合は以下 http://www.srchack.org/pub/openwrt/vr500/VR500_r49404.patch trunk版の場合は以下 http://www.srchack.org/pub/openwrt/vr500/r49928/VR500_trunk_r49928.patch http://www.srchack.org/pub/openwrt/vr500/r49928/ramips-reset-m25p80-when-shutdown.patch 4. (optional) Download and install all available "feeds" 追加パッケージ系使わないならやらなくて良い (Luciとかはここにいる $ cd openwrt $ ./scripts/feeds update -a $ ./scripts/feeds install -a (こいつは全部入れるからお勧めしない $ ./scripts/feeds install luci (個別にいれるなら、こんな感じ 5. Make OpenWrt build system check for missing packages on your build-system using one of the following commands: $ make menuconfig VR500は、以下でOK Target System: Ralink RT288x/RT3xxx Subtarget: MT7621 based boards Profile: Planex VR500 6. Proceed with build (i.e. cross-compile the downloaded sources to binaries) $ make (環境により数時間かかります。 (※Xeon X3430, Intel 910の環境で20分ぐらい) 一度ここまでビルドを通してあれば、toolchain等が出来上がった状態になります。 ------------------------------------------------------------------------------- 7. bin/のしたのが焼く対象 initramfs-uImage.binは、純正管理画面から受け付けてくれます。 純正ファームのバックアップを取りたいとかは各自頑張って方法を探してください。 ヒント:dd if=/dev/mtdblock_ of=/tmp/mtd_.img