openwrt php gd库,openwrt 编译与烧写

我的硬件是RT3052的路由器。8M nor flash, 64M SDram

make menuconfig的时候只选择了芯片的型号,和编译后的文件系统类型。

Target System (Ralink RT288x/RT3xxx)  --->

Subtarget (RT3x5x/RT5350 based boards)  --->

Target Images  --->

[*] ramdisk  --->

其他的都没有做修改。

1. $ make V=99 经过漫长的编译过程后,终于在bin/ramips目录下生成了大把的bin文件

.....

openwrt-ramips-rt305x-dir-600-b1-squashfs-sysupgrade.bin     openwrt-ramips-rt305x-whr-g300n-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-600-b2-initramfs-uImage.bin        openwrt-ramips-rt305x-whr-g300n-squashfs-factory-EU.bin

openwrt-ramips-rt305x-dir-600-b2-squashfs-factory.bin        openwrt-ramips-rt305x-whr-g300n-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-dir-600-b2-squashfs-sysupgrade.bin     openwrt-ramips-rt305x-wl-330n3g-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-610-a1-initramfs-uImage.bin        openwrt-ramips-rt305x-wl-330n3g-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-dir-610-a1-squashfs-factory.bin        openwrt-ramips-rt305x-wl-330n-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-610-a1-squashfs-sysupgrade.bin     openwrt-ramips-rt305x-wl-330n-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-dir-615-d-initramfs-uImage.bin         openwrt-ramips-rt305x-wl341v3-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-615-d-squashfs-factory.bin         openwrt-ramips-rt305x-wl341v3-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-dir-615-d-squashfs-sysupgrade.bin      openwrt-ramips-rt305x-wl-351-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-615-h1-initramfs-uImage.bin        openwrt-ramips-rt305x-wl-351-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-dir-615-h1-squashfs-factory.bin        openwrt-ramips-rt305x-wnce2001-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-615-h1-squashfs-sysupgrade.bin     openwrt-ramips-rt305x-wnce2001-squashfs-factory-northamerica.bin

openwrt-ramips-rt305x-dir-620-a1-initramfs-uImage.bin        openwrt-ramips-rt305x-wnce2001-squashfs-factory-worldwide.bin

openwrt-ramips-rt305x-dir-620-a1-squashfs-sysupgrade.bin     openwrt-ramips-rt305x-wnce2001-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-dir-620-d1-initramfs-uImage.bin        openwrt-ramips-rt305x-wr512-3ng-4M-initramfs-uImage.bin

openwrt-ramips-rt305x-dir-620-d1-squashfs-sysupgrade.bin     openwrt-ramips-rt305x-wr512-3ng-4M-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-esr-9753-initramfs-uImage.bin          openwrt-ramips-rt305x-wr512-3ng-8M-initramfs-uImage.bin

openwrt-ramips-rt305x-esr-9753-squashfs-sysupgrade.bin       openwrt-ramips-rt305x-wr512-3ng-8M-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-f5d8235v2-initramfs-uImage.bin         openwrt-ramips-rt305x-wr6202-initramfs-uImage.bin

openwrt-ramips-rt305x-f5d8235v2-squashfs-sysupgrade.bin      openwrt-ramips-rt305x-wr6202-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-fonera20n-initramfs-uImage.bin         openwrt-ramips-rt305x-x5-initramfs-uImage.bin

openwrt-ramips-rt305x-fonera20n-squashfs-factory.bin         openwrt-ramips-rt305x-x5-squashfs-factory.bin

openwrt-ramips-rt305x-fonera20n-squashfs-sysupgrade.bin      openwrt-ramips-rt305x-x5-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-freestation5-initramfs-uImage.bin      openwrt-ramips-rt305x-x8-initramfs-uImage.bin

openwrt-ramips-rt305x-freestation5-squashfs-sysupgrade.bin   openwrt-ramips-rt305x-x8-squashfs-factory.bin

openwrt-ramips-rt305x-hlk-rm04-initramfs-uImage.bin          openwrt-ramips-rt305x-x8-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-hlk-rm04-squashfs-sysupgrade.bin       openwrt-ramips-rt305x-xdxrn502j-initramfs-uImage.bin

openwrt-ramips-rt305x-hw550-3g-initramfs-uImage.bin          openwrt-ramips-rt305x-xdxrn502j-squashfs-sysupgrade.bin

openwrt-ramips-rt305x-hw550-3g-squashfs-sysupgrade.bin       packages

openwrt-ramips-rt305x-ip2202-initramfs-uImage.bin

看起来蛮吓人的,真心不知道该选择哪个文件烧写。

后来研究发现每个文件都对应一个路由器单板,比如dir-620,dir-615,这些是Dlink的路由器型号。

每个型号都有squashfs和initramfs两个版本。暂时不知道这两者有什么区别,只知道是两种rootfs文件系统。

(有知道的欢迎留言)

最后选择了这个跟我手里的板子差不多的一个路由器型号:

openwrt-ramips-rt305x-hw550-3g-squashfs-sysupgrade.bin

用tftp工具烧写到flash的文件系统分区。

2. 启动之后发现无法在网页上配置,也就是没有web服务器,估计是配置内核的时候哪个选项没有选上吧

查看一下menuconfig的配置,看到一个luci的东东,网上查了一下,果然是用来实现用户配置界面的,哈哈。。

注意:make menuconfig的时候如果报错,请用root用户执行。

进去把它的一些配置选上:

Collections  --->

-*- luci

luci-ssl......................... Standard OpenWrt set with HTTPS support

然后重新编译一下。

$make V=99

又经过漫长的等待之后。烧写进falsh,使用默认的ip 192.168.1.1用户名root,密码为空,终于可以看到web配置界面了。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值