mercurymw305r虚拟服务器,Mercury MW305R v3.0 路由器改造 LEDE(OpenWRT)

說明 1. 改造 Mercury MW305R v3.0(芯片 9533)

2. OpenWRT 版本:LEDE 17

3. 環境:Ubuntu 16.04 x64

第一步:修改硬件 1. 換 RAN 為 64M

2. 換 flash 為 16M

注:本教程主要說明制作鏡像部分,具體修改硬件步驟請參考:鏈接

第二步:獲取源碼 使用以下命令克隆我當時使用的版本源碼:

git clone -b lede-17.01 https://github.com/lede-project/source.git lede

第三步:target profile 添加新路由器 修改文件:/target/linux/ar71xx/image/tp-link.mk

添加以下內容:

define Device/mc-mw305r-v3

$(Device/tplink-16mlzma)

DEVICE_TITLE := MERCURY MC-MW305R v3

BOARDNAME := MC-MW305R-v3

TPLINK_HWID := 0x30500003

endef

TARGET_DEVICES += mc-mw305r-v3

刪除 /tmp 目錄,使用以下命令配置:

make menuconfig

在 Target System 里選擇 Atheros AR7xxx/AR9xxx,然后在 Target Profile 里找到 MERCURY MC-MW305R v3 並選中。相關配置此時,編譯一下,看看有沒有錯誤。

make

make 成功后,/bin/targets/ar71xx/generic/ 目錄下面會生成 MW305R 的 factory.bin,但是這時候下載到 flash 還不能啟動,因為內核並沒有支持 MW305R,繼續下面的步驟。

第四步:kernel arch machine 新增路由器 新建文件:/build_dir/target-mips_24kc_musl/linux-ar71xx_generic/linux-4.4.74/arch/mips/ath79/mach-mc-mw305r-v3.c

文件內容:

/*

*  Mercury MW305R v3

*

*  Copyright (C) 2014 Matthias Schiffer

*

*  This program is free software; you can redistribute it and/or modify it

*  under the terms of the GNU General Public License version 2 as published

*  by the Free Software Foundation.

*/

#include

#include

#include

#include

#include "common.h"

#include "dev-eth.h"

#include "dev-gpio-buttons.h"

#include "dev-leds-gpi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值