编译RT5350

波特率:57600


参考:
http://blog.sina.com.cn/s/blog_b09739ab0101ejx1.html
https://www.olimex.com/wiki/RT5350F-OLinuXino
http://blog.csdn.net/lqx4_3/article/details/18616831


1.编译器安装
$sudo git clone https://github.com/kinger1172/ralink_rt5350
cd ralink_rt5350/SDK_4_0_0_0/RT288x_SDK/toolchain

//安装gcc342 
#cp buildroot-gcc342.tar.bz2   /opt  
#tar jxvf buildroot-gcc342.tar.bz2 
编译器在/opt/buildroot-gcc342/bin/  


//安装 LZMA Utility 
#tar xvf  lzma-4.32.7.tar.gz 
#cd RT288x_SDk/toolchian/lzma-4.32.7 
#./configure 
#make 
#make install
自动会安装到 /usr/local.bin
  


//安装 mksquashfs utility 失败(但不影响)
Rt5350使用内核Linux-2.6.21.x,配置如下
#cd RT288x_SDK/toolchain/mksquash_lzma-3.2 
#make 
#mak install (auto copy lzma_alone  mksquashfs_lzma-3.2 to /opt/buildroot-gdb/bin ) 




2.编译uboot
$sudo git clone https://github.com/OLIMEX/u-boot_RT5350F-OLinuXino
$cd u-boot_RT5350F-OLinuXino


  //编译器 必须使用 指定的 gcc3.4 Ralink SDK里有
$sudo make menuconfig
  //指定编译器路径  /opt/buildroot-gcc342/bin
$sudo make


3.编译内核
$sudo git clone https://github.com/OLIMEX/openwrt -b rt5350f
cd openwrt
$sudo make menuconfig
$sudo make v=99


会在下面路径 发现烧写文件
 build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/\
 openwrt-ramips-rt305x-olinuxino-rt5350f-squashfs-sysupgrade.bin


视频
https://www.youtube.com/watch?v=-MsywWtN79c


4.编译程序
$sudo gedit hello.c


#include <stdio.h>   
int main()  
{  
    printf("hello,world!\r\n");  
    return 0;  



/opt/buildroot-gcc342/bin/mipsel-linux-gcc hello.c -o hello 
会生成hello  文件


不显示WIFI
开发板
vi /etc/config/wireless
option disabled 1  
1改成0 
保存  
reboot


连接到开发板的wifi 
能登入
http://192.168.1.1/cgi-bin/luci
登录 密码:123456


# mount -t nfs -o nolock 192.168.1.1:/home /mnt  



期待:

http://blog.csdn.net/xushx_bigbear/article/details/47997977


http://www.programgo.com/article/1233531659/
https://my.oschina.net/zuobz/blog/208034
https://www.olimex.com/Products/OLinuXino/RT5350F/RT5350F-OLinuXino/resources/rt5350f-olinuxino-pinout.jpg


http://www.voidcn.com/blog/zdf511391565/article/p-1758435.html














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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值