标签:ranch rip 启动 info ror inux bis sshd zip
一、安装虚拟机(Oracle VM VirtualBox 或 VMware Workstation)
二、在虚拟机中安装linux操作系统(当前使用的是Ubuntu1204桌面版)
三、配置linux相关服务
apt-get install vsftpd 改动 vsftpd 的配置文件 /etc/vsftpd.conf,将以下几行前面的"#" 号去掉 #local_enable=YES #write_enable=YES 改动完成之后。重新启动ftp服务: /etc/init.d/vsftpd restart
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
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
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 就是我们要的镜像.烧写到板子上面就可以启动.
标签:ranch rip 启动 info ror inux bis sshd zip
原文地址:http://www.cnblogs.com/yutingliuyl/p/7101418.html