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 就是我们要的镜像.烧写到板子上面就可以启动.















  • 相关阅读:
    第六周作业:《人月神话》对我做项目实践的启示(一)
    第五周作业:网站的初步设计
    关于做团队项目时需求分析工作中所学的一部分知识
    软件工程学生的编程能力与编程语言是中文或英文有关系吗?
    面向过程(或者叫结构化)分析方法与面向对象分析方法到底区别在哪里?请根据自己的理解简明扼要的回答。
    当下大部分互联网创业公司为什么都愿意采用增量模型来做开发
    1+X Web前端开发(中级)理论考试样题(附答案)
    1+X Web前端开发(初级)理论考试样题(附答案)
    vi 和vim 的区别
    Linux查看日志三种命令
  • 原文地址:https://www.cnblogs.com/yutingliuyl/p/7101418.html
Copyright © 2011-2022 走看看