RT 5350チップ移植OpenWrtファームウェア

6484 ワード

参考:
https://github.com/Squonk42/OpenWrt-RT5350?ref=commandbarr
http://www.right.com.cn/forum/thread-120311-1-1.html
最新のopenwrtはRT 5350をサポートしていますので、パッチは不要です。(http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=120311)
記事は後ろの【UBUTNTU下Hame MPR-A 1 openwrtファームウェア生成】を参照してください。
841 n v 3を例にして、OpenWrtを使ってUSBオフラインでダウンロードしたファームウェアを作ってみます。(このアドレスを引き出して、コンパイルしたことがない人に、他の人のコンパイルの過程を知るために、レンガを捨てて玉を引く役割を果たします。)【http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=83746を選択します
OpenWrt-RT 5350
Patch to comple OpenWrt Linux on Ralink RT 5350-based routers.
ノート These patch only apply to kersnel<3.8 x.For more recent kersnels、please visit our new repositoryathttps://github.com/kaechele/openwrt!
Introduction
RT 5350-based routers are not yet supported in OpenWrt,not even yet in the bleding edge trunk.
However、here are some experimental patch to the current OpenWrt trunk repository that shound work.
The se patch were originally developed for the Hame MPR-A 1 router、but they also appy to its numerus clones and more gener a lot of Ralink RT 5350-based routers.
This cons from the fact that the RT 5350 is a SoC(「System on Chip」)that requires only a few external components to provide a working wireless router.So ba ally,all these designs ar ar,proffection the
Build Instructions
In order to build OpenWrt on an RT 5350-based router,you need to:
  • download the latest OpenWrt trunk sources from svn
  • download the patch
  • appy the patch
  • chose your targt/subtarget/profile for the build
  • copile the firmware
  • This is achieved using the follwing code snippet:
     mkdir openwrt
     cd openwrt
     svn co svn://svn.openwrt.org/openwrt/trunk
     git clone https://github.com/Squonk42/OpenWrt-RT5350.git
     cd trunk
     patch -p0 <../OpenWrt-RT5350/openwrt_add_pm25lq032_flash_support.patch
     patch -p0 <../OpenWrt-RT5350/openwrt_add_rt5350_wlan_support.patch
     patch -p0 <../OpenWrt-RT5350/openwrt_hame_mpr-a1.patch
     make menuconfig
    
    In the configration menu,you need to select the follwing options:
  • Target Ssystem:Ralink RT 288 x/RT 3 xxx
  • Subtarget:RT 305 x based boards
  • Target Profile:HAME MPR-A 1
  • The n proceed to build:
     make -j x
    
    …where"x"is the number of CPU on your PC+1.
    The first time you comple can take houss、since the to olchains is built first.Subsequent builds only take a few minutes.
    The n copy the resulting image to your TFTP server root、so you can Flash it from the router's U-Boot boot boot boot loader:
     cp bin/ramips/openwrt-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin /tftpboot/
    
    Patch Cotensts
    openwrt_add_pm 25 lq 032_flashsupport.patch
    This patch contains the definition of 3 SPI Flash chip that are commonly used in RT 5350-based routers、but that are missing from the default OpenWrt MTD Flash device driver:
  • PMC 25LQ 032
  • This patch is plotform independent、as these definitions may also be useful to other non RT 5350-based machines.
    openwrt_add_T 5350_wlan├support.patch
    This patch contains the changes required to add support for the RT 5350 to the mac 80211 driver.
    This patch has been developped bi 123 serge 123 from the OpenWrt forum(https://forum.openwrt.org/viewtopic.php?pid=186493#p186493)adappted by Heffer from the same forum,then portd to the latest mac 80211 2011-01-07 by myself.
    https://github.com/Squonk42/OpenWrt-RT5350?ref=commandbarr
    openwrt_私にかまうmpr-a 1.patch
    This patch contains all the required changes required to define the HAME MPR-A 1 profile for OpenWrt.
    It is based on previous work by arpunk,areq,Heffer,p 1 vo and myself from OpenWrt forum(https://forum.openwrt.org/viewtopic.php?id=37002)
    =============================================================================================================
    UBUTNTU下Hame MPR-A 1 openwrtファームウェア生成【http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=120311を選択します
    まずMPR-A 1のハードウェア構成を貼り付けます。http://bbs.mydigit.cn/read.php?tid=421833を選択します
    ハードウェアの設定:  1)RT 5350、MIPSシステムのSOCチップ;W 9812 G 6は16 MBのDDR RAMである。25 Q 32は4 MBのシリアルFLASHである。2)他にもEMC 5755はバッテリー充電コントローラです。3)RJ 45基、網口変圧器、USB口、ボタン、スイッチ、WIFIアンテナなどは、特に小さいパッケージを使用しています。詳細のクローズアップ写真をご覧ください。
    注意:2013-07-29まで、openwrt trunkはMPR-A 1とMPR-A 2をサポートしました。公式のopenwrt-trunkコンパイルを直接ダウンロードしてください。パッチなどはもう歴史です。ここで修正します。人の子弟を間違えないように。開発環境を構築します。uuntu 12.04 LTS
    sudo appt-get install build-esential subversion git-coree libncurses 5-dev zlib 1 g-dev gawk flex quilt libssl-dev xsletproc libxml-parser-perl Openwrtコンパイル環境構築(English)
    ファイルを用意します
    1.truck 35407コードをダウンロードする
    $mkdir openwrt $cd openwrt $svn cosvn://svn.openwrt.org/openwrt/trunk@35407 trunk 35407 米ドル/scripts/feeds udate-a 米ドル/scripts/feeds install-a 2.Gigthub上のPatchをダウンロードする
    (GITツールを使用するか、またはzipをクリックしてダウンロードする)
    $git clonehttps://github.com/Squonk42/OpenWrt-RT5350.git 3.ソースコードにパッチを適用する
    cd trunck 35407  patch-p 0<パッチパス/openwrt_add_pm 25 lq 032_flashsupport.patch patch-p 0<パッチパス/openwrt_add_T 5350_wlan├support.patch patch-p 0<パッチパス/openwrt_私にかまうmpr-a 1.patch 4.コンパイル
    trunck 35407パスで実行します。
    make menuconfig Target Ssystem:Ralink RT 288 x/RT 3 xxx
        Subtarget:RT 305 x based boards
        Target Profile:HAME MPR-A 1
    保存後に終了し、実行します。
    make 詳細なコンパイル情報を見たいなら、実行します。
    make V=99 マルチコア加速(デュアルコアは3パラメータ、4コアは5)
    make-j 3 5.コンパイルされたbinファイルはtruck 35407/bin/ramips/ramips/openwrt-ramips-rt 305 x-mpr-a 1-squasfs-syssupgrade.binにあります。 
    uuntu下でファームウェアを焼く
    1.シェルを外す必要があります。MPR-A 1のシェルは非常に取り外しやすく、ドライバーを使用する必要があります。
    2.板の裏に4つの溶接点(V 2.2のMPR-A 1シリアルパッドの上に緑の油をかぶせているので、手でかき分ける必要があります)があります。シリアルポートのそれぞれのピンの定義:
    3.TTLツールを接続して、TTLツールの品質がちょっと要求されます。私の手元のpl 2303は接続してからMPR-A 1は起動できません。他のFTDIのは正常です。この場所は注意してください。
    4.ピューティをインストールする
    sudo ap-get install putty シリアルポートを設定すると57600,8,n,1.(dmesg grepキティはシリアルナンバーを確認するために使用できます)
    5.ケーブルを接続して本機の住所を設定するのは192.168.2.2です。
    6.tftpをインストールし、
    sudo ap-get install tft-hpa tft を選択します。copy binファイルは/var/lib/tftftpbootに行きます。
    sudo cpパス/openwrt-ramips-rt 305 x-mpr-a 1-squasfs-sys supgrade.bin/var/lib/tftftpboot   を選択します
    tftp 192.168.2.2 7.MPR-A 1を起動し、puttyの中で素早く2を押して、ファームウェアを記録し、 
    Yを入力して、車を返します
    設定デバイスipは192.168.2.1である。
    設定サーバipは192.168.2.2です。
    binファイルのファイル名を入力します。openwrt-ramips-rt 305 x-mpr-a 1-squasfs-syssupgrade.bin
    すべてがうまくいけば、今はHame mpr-a 1のopenwrt設備を持ちます。