参考:

https://github.com/Squonk42/OpenWrt-RT5350?ref=commandbarr

http://www.right.com.cn/forum/thread-120311-1-1.html

最新openwrt已经支持RT5350,不需要再打补丁了。(http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=120311)

文章见后面【UBUNTU下Hame MPR-A1 openwrt固件生成

以841n v3做例子,使用OpenWrt编个带USB脱机下载的固件(引出这个地址,为了让没有动手编译过的人,了解一下别人的编译过程【图文详解】,起到一个抛砖引玉的作用) 【http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=83746】

OpenWrt-RT5350

Patches to compile OpenWrt Linux on Ralink RT5350-based routers.

Note These patches only apply to kernel < 3.8.x. For more recent kernels, please visit our new repository athttps://github.com/kaechele/openwrt!

Introduction

RT5350-based routers are not yet supported in OpenWrt, not even yet in the bleeding edge trunk.

However, here are some experimental patches to the current OpenWrt trunk repository that should work.

These patches were originally developed for the Hame MPR-A1 router, but they also apply to its numerous clones and more generally to a lot of Ralink RT5350-based routers.

This comes from the fact that the RT5350 is a SoC ("System on Chip") that requires only a few external components to provide a working wireless router. So basically, all these designs are very similar, only differing in the SP Flash chip model or the way to control the USB overcurrent protection switch chip.

Build Instructions

In order to build OpenWrt on an RT5350-based router, you need to:

This is achieved using the following code snippet:

 mkdir openwrtcd openwrtsvn co svn://svn.openwrt.org/openwrt/trunkgit clone https://github.com/Squonk42/OpenWrt-RT5350.gitcd trunkpatch -p0 <../OpenWrt-RT5350/openwrt_add_pm25lq032_flash_support.patchpatch -p0 <../OpenWrt-RT5350/openwrt_add_rt5350_wlan_support.patchpatch -p0 <../OpenWrt-RT5350/openwrt_hame_mpr-a1.patchmake menuconfig

In the configuration menu, you need to select the following options:

Then proceed to build:

 make -j x

... where "x" is the number of CPU on your PC + 1.

The first time you compile can take hours, since the toolchains is built first. Subsequent builds only take a few minutes.

Then copy the the resulting image to your TFTP server root, so you can Flash it from the router's U-Boot bootloader:

 cp bin/ramips/openwrt-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin /tftpboot/

Patch Contents

openwrt_add_pm25lq032_flash_support.patch

This patch contains the definition of 3 SPI Flash chip that are commonly used in RT5350-based routers, but that are missing from the default OpenWrt MTD Flash device driver:

This patch is platform independent, as these definitions may also be useful to other non RT5350-based machines.

openwrt_add_rt5350_wlan_support.patch

This patch contains the changes required to add support for the RT5350 to the mac80211 driver.

This patch has been developped bi 123serge123 from the OpenWrt forum (https://forum.openwrt.org/viewtopic.php?pid=186493#p186493), adapted by Heffer from the same forum, then ported to the latest mac80211 2013-01-07 by myself.

openwrt_hame_mpr-a1.patch

This patch contains all the required changes required to define the HAME MPR-A1 profile for OpenWrt.

It is based on previous work by arpunk, arteq, Heffer, p1vo and myself from OpenWrt forum (https://forum.openwrt.org/viewtopic.php?id=37002).

==========================================================

UBUNTU下Hame MPR-A1 openwrt固件生成【http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=120311】

先粘贴一下MPR-A1 的硬件配置 【见http://bbs.mydigit.cn/read.php?tid=421833】

硬件配置: 
1)RT5350,MIPS体系的SOC芯片;W9812G6是16MB的DDR RAM;25Q32是4MB的串行FLASH。
2)另外还有EMC5755是电池充电控制器。
3)RJ45座、网口变压器、USB口、按钮、开关、WIFI天线等,都使用了特别小的封装,见细节特写照片。

注意: 截止到2013-07-29, openwrt trunk已经支持了MPR-A1和MPR-A2了, 请大家直接下载官方的openwrt-trunk编译即可,打补丁神马的已经是历史了.
特此更正,以免误人子弟)
搭建开发环境
ubuntu 12.04LTS

  1. sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl

复制代码

Openwrt编译环境搭建(English)

准备文件
1.下载truck35407代码

  1. $ mkdir openwrt
  2. $ cd openwrt
  3. $ svn co svn://svn.openwrt.org/openwrt/trunk@35407 trunk35407
  4. $ ./scripts/feeds update -a
  5. $ ./scripts/feeds install -a

复制代码

2.下载 Github上的Patch (使用GIT工具或者点击zip下载)

  1. $ git clone https://github.com/Squonk42/OpenWrt-RT5350.git

复制代码

3.为源代码打补丁

  1. cd trunck35407
  2. patch -p0 <补丁路径//openwrt_add_pm25lq032_flash_support.patch
  3. patch -p0 <补丁路径//openwrt_add_rt5350_wlan_support.patch
  4. patch -p0 <补丁路径//openwrt_hame_mpr-a1.patch

复制代码

4.编译
trunck35407路径下执行

  1. make menuconfig

复制代码

Target Ssytem: Ralink RT288x/RT3xxx
    Subtarget: RT305x based boards
    Target Profile: HAME MPR-A1
保存后退出,执行

  1. make

复制代码

如果想查看详细编译信息,执行

  1. make V=99

复制代码

多核加速(双核是使用3参数,4核则使用5)

  1. make -j 3

复制代码

5.编译后的bin文件位于truck35407/bin/ramips/ramips/openwrt-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin

ubuntu下烧录固件
1.需要拆壳,MPR-A1的壳子非常好拆,需要使用螺丝刀。
2.板子背面有四个焊点(V2.2的MPR-A1串口焊盘上面都盖了绿油需要手工刮开),串口各个引脚的定义:

3.连接TTL工具,TTL工具的质量有点要求,我手上的pl2303连上去之后MPR-A1不能启动,而另外一个FTDI的就正常,这个地方要注意一下。
4.安装putty

  1. sudo apt-get install putty

复制代码

设置串口波特率为57600,8,n,1.(dmesg | grep tty 可以用来查看串口号)
5.连接网线设置本机的地址为192.168.2.2(其他也可)
6.安装tftp,

  1. sudo apt-get install tftpd-hpa tftp

复制代码

, copy bin文件到/var/lib/tftpboot

  1. sudo cp 路径/openwrt-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin /var/lib/tftpboot

复制代码

, 执行

  1. tftp 192.168.2.2

复制代码

7.启动MPR-A1, 在putty中快速按下2,烧录固件, 
输入Y,回车。
设置设备ip为192.168.2.1
设置服务器ip为192.168.2.2
输入bin文件的文件名openwrt-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin

一切顺利的话,现在你就拥用一台Hame mpr-a1的openwrt设备了。

原文地址:http://blog.csdn.net/onetwothreef/article/details/9143081

hame RT5350移植OpenWrt相关推荐

  1. 移植OpenWrt到RT5350

    目录[-] 移植OpenWrt到CuHead Pro WiFi 安装编译OpenWrt系统所需要的软件包 下载OpenWrt 更新软件包 配置编译系统 原文见:http://my.oschina.ne ...

  2. NanoPi M1 移植 OpenWRT

    NanoPi M1 是全志(Allwinner)H3的开发板. 但官方文档只有ubantu等系统的移植方法,而当前(2019年1月9日)最新OpenWRT里是不支持这个NanoPi M1的,仅仅支持N ...

  3. openwrt linux rootfs 分区表,arm盒子快速移植OpenWrt rootfs

    为了让不在OpenWrt项目支持列表中的ARM机器快速使用OpenWrt,可以用替换rootfs的简易方法进行移植. 首先,确保你的ARM盒子有能正常使用的Linux系统,并且最好有良好的社区支持,可 ...

  4. i.mx6ul 移植Openwrt

    一直在使用Openwrt很多年,从路由到IOT终端,网关等,相对于其他开发环境或者厂家SDK来说,openwrt确实很便捷,其内部的Lua,ubox,ubus,rpc等一些机制,能在开发中带来很大的便 ...

  5. imx6ull移植openwrt

    目录 前言 硬件开发板 软件 编译构建 linux Module rootfs openwrt 制作烧录rootfs 烧录启动 前言 硬件开发板 韦东山imx6ull 软件 韦东山SDK Buildr ...

  6. i.mx6ul开发板移植openwrt系统

    首先准备: 1.搭建环境 ubuntu 14.04(必须是这个版本,其他的很可能会有错误) 2.i.mx6ul的内核源码我是放在ubuntu下的./home/ll/MYiR-iMX-Linux 目录下 ...

  7. RT5350原厂SDK及AP移植步骤详解

    最近想搞一下rt5350,所以找了个原厂的SDK包进行了编译,很快路由器就可以用了,把我的编译操作步骤写了下分享给更多的爱好者,供大家参靠,下一步准备移植摄像头玩玩.有兴趣的可以一起交流. RT535 ...

  8. openwrt RK3568_EVB移植

    openwrt RK3568_EVB移植 openwrt SDK下载 openwrt 编译 编译 操作: 整体编译操作: RK3568_EVB1_DDR4_V10 板子移植 kernel 部分的修改: ...

  9. openwrt移植到pb44---第一章(使用chaos_calmer)

    很久以前就打算移植openwrt到pb44上,现在手上有pb44的板子而且有空,所以果断开始移植.首先下载代码,make menuconfig选择pb44,编译下载. 下载命令这里记录下 load - ...

最新文章

  1. 如何启用SQL Server 2008的FILESTREAM特性
  2. JS 对象封装的常用方式
  3. delphi ---break,exit,continue等跳出操作的区别
  4. Python 知识点全解析系列之列表推导式(list comprehension)
  5. 卡尔曼_卡尔曼估计两步法
  6. Oracle ERP流程概览
  7. Delphi Android下包含第三方DEX
  8. Javaweb 网上订餐系统
  9. 使用excel绘制统计分布表(T分布表)
  10. Windows server 2012 R2 服务器强制删除文件夹
  11. sql sever中计算百分比
  12. Sublime Text自定制代码片段之 快速生成html结构
  13. 电容式压力传感器分类与原理
  14. 一道九宫格算法面试题
  15. 银河麒麟服务器操作系统 V10 SP1 安装教程
  16. 小米电视刷鸿蒙系统,小米电视怎么刷鸿蒙OS系统?一招立省上千块
  17. 武汉新时标文化传媒有限公司抖音电商的算法逻辑
  18. 基克的聚合 机器人_LOL:基克的聚合是否只适合硬辅们,软辅们能否借它发挥?...
  19. 郭德纲新宠香奈儿 大牌造型盘点
  20. IOST节点竞选计划公布,欢迎广大开发者参与成为节点!

热门文章

  1. python精通 epub_《跟老齐学Python:从入门到精通》齐伟(编著)epub+mobi+azw3
  2. 基于SSM的汽车修理管理系统
  3. 十年经历:软件开发的“三重门”
  4. 最早搞盲盒的统一干脆面,还能靠童年滤镜“翻身”吗?
  5. Response.Redirec方法传递汉字出现乱码
  6. buu [2019红帽杯]xx1 wp
  7. endnote中英混排时“等“与“et al”的处理
  8. 一款体积小使用的截屏取色小工具推荐——Faststone Capture
  9. 视频教程-Ruby on Rails打造企业级RESTful API项目实战我的云音乐-Ruby/Rails
  10. Docker学习小总结