admin管理员组文章数量:1636897
說明 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/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
本文标签: 路由器服务器Mercurymercurymw305rMW305R
版权声明:本文标题:mercurymw305r虚拟服务器,Mercury MW305R v3.0 路由器改造 LEDE(OpenWRT) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729236184a1191973.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论