zoukankan      html  css  js  c++  java
  • Ralink5350开发环境搭建

    一、安装虚拟机(Oracle VM VirtualBox  或 VMware Workstation)

    二、在虚拟机中安装linux操作系统(当前使用的是Ubuntu1204桌面版)

    三、配置linux相关服务

    • 安装、配置、启动ftp服务
      apt-get install vsftpd
      改动 vsftpd 的配置文件  /etc/vsftpd.conf,将以下几行前面的"#" 号去掉
      #local_enable=YES
      #write_enable=YES
      改动完成之后。重新启动ftp服务:
      /etc/init.d/vsftpd restart
    • 安装、配置、启动ssh服务
      apt-get install openssh-server
      配置文件为/etc/ssh/sshd_config 使用默认配置就可以
    • 安装工具、依赖文件
      apt-get install subversion git-core gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils ncurses-term zlib1g-dev libncurses5-dev gawk
    • 使用svn下载openwrt源代码
      mkdir openwrt
      cd openwrt/
      svn co svn://svn.openwrt.org/openwrt/trunk              (測试版)                                                                    svn co svn://svn.openwrt.org/openwrt/branches/backfire                 (稳定版)     
    • 更新和安装其它源上面的软件
      cd trunk
      ./scripts/feeds update -a
      ./scripts/feeds install -a
      
    • 使用 make menuconfig 进行配置。以下配置为最基本配置,仅仅用于在开发板上把openwrt系统跑起来,并測试开发环境搭建是否成功。
      1.选择CPU型号
      	Target System -> Ralink RT288x/RT3xxx
      2.选择CPU子型号
      	Subtarget -> RT3x5x/RT5350 based boards
      3.选择详细理由器型号
      	Target profile -> HAME_MPR-A2
      然后保存退出。
      使用make menuconfig 能够能会出现例如以下错误
      Checking 'working-make'... ok.
      Checking 'case-sensitive-fs'... ok.
      Checking 'getopt'... ok.
      Checking 'fileutils'... ok.
      Checking 'working-gcc'... ok.
      Checking 'working-g++'... ok.
      Checking 'ncurses'... ok.
      Checking 'zlib'... ok.
      Checking 'gawk'... ok.
      Checking 'unzip'... ok.
      Checking 'bzip2'... ok.
      Checking 'perl'... ok.
      Checking '/usr/bin/python2.7'... ok.
      Checking 'wget'... ok.
      Checking 'git'... ok.
      Checking 'gnutar'... ok.
      Checking 'svn'... ok.
      Checking 'libssl'... failed.
      Checking 'openssl'... ok.
      Checking 'gnu-find'... ok.
      Checking 'getopt-extended'... ok.
      Checking 'file'... ok.
      Checking 'non-root'... ok.
      
      Build dependency: Please install the openssl library (with development headers)
      
      Prerequisite check failed. Use FORCE=1 to override.
      make: *** [tmp/.prereq-build] Error 1
      
      解决方法 apt-get install libssl-dev
    • 開始编译
      make V=99
      编译出来的镜像位于 bin 文件夹以下
      $ ls bin/ramips/
      md5sums
      openwrt-ramips-rt305x-mpr-a2-initramfs-uImage.bin
      openwrt-ramips-rt305x-mpr-a2-squashfs-sysupgrade.bin
      openwrt-ramips-rt305x-root.squashfs
      openwrt-ramips-rt305x-uImage.bin
      openwrt-ramips-rt305x-uImage-initramfs.bin
      openwrt-ramips-rt305x-vmlinux.bin
      openwrt-ramips-rt305x-vmlinux.elf
      openwrt-ramips-rt305x-vmlinux-initramfs.bin
      openwrt-ramips-rt305x-vmlinux-initramfs.elf
      packages
      sha256sums
      当中 openwrt-ramips-rt305x-mpr-a2-squashfs-sysupgrade.bin 就是我们要的镜像.烧写到板子上面就可以启动.















  • 相关阅读:
    获得目标服务器中所有数据库名、表名、列名
    SQL Server 2008 安装SQLDMO.dll
    三层交换原理
    NAT地址转换原理全攻略
    C#中显/隐式实现接口及其访问方法
    As,is含义?using 语句
    c#泛型约束
    C#几个经常犯错误汇总
    C#--深入分析委托与事件
    markdown基础
  • 原文地址:https://www.cnblogs.com/yutingliuyl/p/7101418.html
Copyright © 2011-2022 走看看