OpenWRT 树莓派编译 & 烧写
来源:互联网 发布:淘宝几十元澳洲羊毛被 编辑:程序博客网 时间:2024/05/16 06:40
编译准备
安装编译依赖包
sudo apt-get install gcc
sudo apt-get install binutils
sudo apt-get install bzip2
sudo apt-get install flex
sudo apt-get install python
sudo apt-get install perl
sudo apt-get install make
sudo apt-get install find
sudo apt-get install grep
sudo apt-get install diff
sudo apt-get install unzip
sudo apt-get install gawk
sudo apt-get install getopt
sudo apt-get install subversion
sudo apt-get install libz-dev
sudo apt-get install libc-dev
sudo apt-get install g++
sudo apt-get install libncurses5-dev
sudo apt-get install openssl
sudo apt-get install libssl-dev
下载代码包
cd ~
git clone https:的//github.com/openwrt-mirror/openwrt.git
设置编译选项
make menuconfig
Target System 选择 Broadcom BCM2708/BCM2835
编译
sudo make
烧写镜像到sd卡
进入编译生成镜像路径
cd ~/openwrt/bin/brm2708
使用dd命令烧写镜像到sd卡
sudo dd if=openwrt-brcm2708-sdcard-vfat-ext4.img of=/dev/mmcblk0
连接树莓派
将sd卡插入树莓派
1.
用网线连接电脑
配置eth0 与树莓派在同一网段
ifconfig eth0 192.168.1.100 netmask 255.255.255.0
telnet 连接 树莓派
telnet 192.168.1.100
2.
将树莓派接入局域网方法
修改树莓派/etc/config/network 如下
config interface ‘lan’
option ifname ‘eth0’
option proto ‘dhcp’
关闭dns/dhcp服务
/etc/init.d/odhcpd disable
/etc/init.d/odhcpd stop
重启网络服务
/etc/init.d/network reload
- OpenWRT 树莓派编译 & 烧写
- openwrt 编译与烧写
- openwrt 编译与烧写
- openwrt 编译与烧写
- openwrt 编译烧写流程
- OpenWrt学习笔记_OpenWrt编译与烧写
- 烧写Openwrt固件
- WR703N烧写openwrt全过程
- openwrt 网关烧写程序
- Openwrt常用烧写命令
- [OpenWrt] 如何编译OpenWrt
- [OpenWrt] 编译OpenWrt-Dreambox
- 编译自写程序smustar到openwrt固件中去
- OpenWrt编译并添加自己写的应用-基于MT7620a
- openwrt 编译
- openwrt编译
- 编译OpenWrt
- openwrt 编译
- 自定义ListView实现上拉分页加载更多数据
- Matlab/C++混合编程中见过的函数
- windows下文件的监控--ReadDirectoryChangesW函数的使用
- poj 3176 Cow Bowling 【数塔】
- 三分之hihocoder1142
- OpenWRT 树莓派编译 & 烧写
- activity 的声明周期
- 方法论-项目开发,少点包袱,多点潇洒
- hdoj 2203 亲和串
- 命题逻辑基本概念
- 查找输入整数二进制中1的个数
- MyEclipse 2014 安装并激活
- core bluetooth
- explain和profiling分析查询SQL时间