openwrt编译/升级过程

来源:互联网 发布:猴年百事可乐知乎 编辑:程序博客网 时间:2024/05/06 06:43

下载命令:git clone -b chaos_calmer git://github.com/openwrt/openwrt.git    #15.05版本



编译过程(根目录下进行)

0.在编译前先跟新一下feed

./scripts/feeds update -a 

./scripts/feeds install -a

1.make menuconfig

这个过程会检测是否缺少编译过程中所需的软件并列出,手动安装一下就行了

编译过程中会创建dl文件夹,里面存放了许多开源软件,如果编译中断提示有开源软件包下载不了的,可手动下载这些软件然后丢到dl目录下再编译


2.选择 Target System (Triductor VSPM3XX)  --->选择 Atheros AR7xxx/AR9xxx


3.选择Target Profile (Default Profile (all drivers))  --->选择 EasyLink EL-MINI 


4.选择LuCI  ---> 选择 1. Collections  ---> 选择  luci (NEW)  


5.退出运行make命令



升级过程:

1.reboot重启板子


2.在打印到:
athrs26_phy_setup ATHR_PHY_CONTROL 3 :1000
Interface eth1 is up
Hit any key to stop autobooting: 3


时,"ctrl+c"进入boot下面


3.在boot下输入printenv
查看serverIP 如:serverip=192.168.1.100
和ipaddr如:ipaddr=192.168.1.1


4.修改本地电脑IP为192.168.1.100


5.执行httpd打印如下:
Ethernet mode (duplex/speed): 1/10 Mbps
HTTP server is starting at IP: 192.168.1.1
uip init...
http init...
HTTP server is ready!


6.页面访问192.168.1.1,加载编译好的bin文件,直接下载

0 0
原创粉丝点击