分类 wifidog openwrt 下的文章

Openwrt 添加wifidog

OpenWrt source repository downloads

You can either check out the OpenWrt source code via git or svn.
GIT
The recommended way of checking out the OpenWrt source code is cloning the Git repository using one of the following commands:
trunk (main development tree)

  • Main repository

    git clone git://git.openwrt.org/openwrt.git

14.07 branch (Barrier Breaker)

  • Main repository

    git clone git://git.openwrt.org/14.07/openwrt.git

12.09 branch (Attitude Adjustment)

  • Main repository

    git clone git://git.openwrt.org/12.09/openwrt.git

  • Packages feed

    git clone git://git.openwrt.org/12.09/packages.git

SVN
You can checkout the source from the OpenWrt Subversion repository using one of the following commands:

  • Development branch:

    svn co svn://svn.openwrt.org/openwrt/trunk/

  • Barrier Breaker 14.07 branch:

    svn co svn://svn.openwrt.org/openwrt/branches/barrier_breaker

  • Attitude Adjustment 12.09 branch:

    svn co svn://svn.openwrt.org/openwrt/branches/attitude_adjustment

  • Backfire 10.03 branch:

    svn co svn://svn.openwrt.org/openwrt/branches/backfire

  • Kamikaze 8.09 branch:

    svn co svn://svn.openwrt.org/openwrt/branches/8.09

  • Kamikaze 7.09 branch:

    svn co svn://svn.openwrt.org/openwrt/tags/kamikaze_7.09

本文章由 http://www.wifidog.pro/2015/01/08/openwrt%E6%B7%BB%E5%8A%A0wifidog-1.html 整理编辑,转载请注明出处

wifidog之openwrt固件

What is OpenWrt?

Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with optional package management. This frees you from the restrictions of the application selection and configuration provided by the vendor and allows you to use packages to customize an embedded device to suit any application. For developers, OpenWrt provides a framework to build an application without having to create a complete firmware image and distribution around it. For users, this means the freedom of full customization, allowing the use of an embedded device in ways the vendor never envisioned.

  • Free and open-source. The project is entirely free and open-source, licensed under the GPL. The project is intended to always be hosted at an easily accessible site, with full source code readily available and easy to build.
  • Easy and free access. The project will always be open to new contributors and have a low barrier for participation. Anyone shall be able to contribute. We, the current developers, actively grant write access to anyone interested in having it. We believe people are responsible when given responsibility. Just ask and you will be able to acquire the access rights you need.
  • Community driven. This is not about 'us' offering 'you' something, it is about everyone coming together to work and collaborate towards a common goal.

OpenWrt has long been established as the best firmware solution in its class. It far exceeds other embedded solutions in performance, stability, extensibility, robustness, and design. It is the clear-cut goal of the OpenWrt developers to continue to expand development and ensure that OpenWrt is the foremost framework for innovative and ingenuitive solutions.

本文章由 http://www.wifidog.pro/2015/01/07/wifidog-openwrt-1.html 整理编辑,转载请注明出处

wifidog添加到openwrt

Openwrt编译x86,for VMware虚拟机

记录一下自己编译x86的过程

从make menuconfig说起

目标系统(Target System)当然是选择x86了,至于Subtarget和Target Profile,使用默认的Generic就可以了

然后是目标镜像(Tartget Images),选择ext4和Build VMware image files (VMDK)
(在trunk版中是ext4,在backfire中是ext2,两个都可以的)

接下来,在内核模块(Kernel modules)的网络设备(Network Devices)中,选中VMware网卡
Openwrt官网写着必须选中e1000,但仅有这个是不够的,而且目标系统选择了x86,e1000就自动必选了
不知道VMware是什么网卡的,可以在自己的Ubuntu里lspci下(我是用Ubuntu编译Openwrt,看你自己了)

然后就是选择一些自己需要的模块了,完了就make V=99
(悲剧的是trunk中选了php5编译失败,backfire就可以)

等编译完成,新建一个虚拟机,然后删除该虚拟机的硬盘
将编译得到的镜像拷贝到该虚拟机目录
重新添加一个硬盘,指定使用编译的镜像

至于网卡嘛,第一块就是eth0,再添加一块就是eth1,依次类推
比如我用第一块做lan,第二块做wan,(VMnet9是一个普通的虚拟机网段,不是桥接,不是NAT,也不是host-only)

然后开机(Openwrt),编辑network,添加一个wan接口,同时给lan加了个nat参数

于是,就可以上网了
当然,如果第2块网卡使用桥接,就可以用Openwrt进行拨号
其他虚拟机只要把网卡设置为VMnet9,就能自动获取Openwrt DHCP分配的地址

本文章由 http://www.wifidog.pro/2015/01/06/openwrt%E6%B7%BB%E5%8A%A0wifidog.html 整理编辑,转载请注明出处

wifidog-openwrt x86虚拟机运行

openwrt x86在虚拟机中运行方法(vmware和 VirtualBox)
首先安装vmware或VirtualBox虚拟机软件(个人推荐VirtualBox),再去openwrt官网下载openwrt-x86-ext2.image镜像文件, 用VirtualBox的命令行方式: VBoxManage convertfromraw --format VMDK openwrt-x86-ext2.image openwrt-x86-2.6-ext2.vmdk 把下载到的镜像文件转换成vm的虚拟磁盘格式. 运行虚拟机软件,建立新虚拟机,128M内存就够了,硬盘就用上面转换出来的vmdk文件,不要忘了用桥接方式加2块以上网卡,1Lan,1Wan (vm最多可以加10块网卡,VirtualBox可以加8块,4块可以直接加,另外4块可以建完虚拟机后修改xml配置文件得到) 启动虚拟机,设本机IP为192.168.1.X,直接在浏览器中输入192.168.1.1,就能进入openwrt的web配置界面了.

本文章由 http://www.wifidog.pro/2015/01/06/wifidog-openwrt-x86%E8%99%9A%E6%8B%9F%E6%9C%BA.html 整理编辑,转载请注明出处