ubuntu openwrt

作者在 2015-10-29 16:15:19 发布以下内容

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

 $ mkdir openwrt

 $ cd openwrt

 $ svn co svn://svn.openwrt.org/openwrt/trunk@35407 trunk35407

$ ./scripts/feeds update -a

 $ ./scripts/feeds install -a

 

$ git clone https://github.com/Squonk42/OpenWrt-RT5350.git
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

1. make menuconfig
Target Ssytem: Ralink RT288x/RT3xxx
Subtarget: RT305x based boards
Target Profile: HAME MPR-A1


1. make
编译后的bin文件位于truck35407/bin/ramips/ramips/openwrt-ramips-rt305x-mpr-a1-squashfs-sysupgrade.bin
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

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





 

默认分类 | 阅读 2699 次
文章评论,共0条
游客请输入验证码
浏览109800次
文章分类