https:
//dev.openwrt.org/wiki/GetSource
git clone -b chaos_calmer git://github.com/openwrt/openwrt.git
git clone git://github.com/openwrt/openwrt.git
# 下载较慢
附编译环境的搭建
sudo apt-get update
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install subversion
sudo apt-get install binutils
sudo apt-get install patch
sudo apt-get install bzip2
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install make
sudo apt-get install autoconf
sudo apt-get install gettext
sudo apt-get install texinfo
sudo apt-get install unzip
sudo apt-get install sharutils
sudo apt-get install libncurses5-dev
sudo apt-get install ncurses-term
sudo apt-get install zlib1g-dev
sudo apt-get install gawk
sudo apt-get install asciidoc
sudo apt-get install libz-dev
sudo apt-get install libssl-dev
sudo apt-get upgrade
sudo apt-get install gcc g++ subversion binutils patch bzip2 flex bison
sudo apt-get install gcc make autoconf gettext texinfo unzip
sudo apt-get install sharutils libncurses5-dev ncurses-term
sudo apt-get install zlib1g-dev gawk asciidoc libz-dev libssl-dev
2. 更新源码
进入源码目录
./scripts/feeds clean -a
./scripts/feeds update -a
./scripts/feeds install -a
./scripts/feeds install xx
//make defconfig
Target System (x86)
Target Images
[*] ext4
[*] Build VMware image files (VMDK)
Base system
<*> block-mount
<*> busybox
Busybox Settings
General Configuration
[*] Support
[*] Don't use /usr
Linux Module Utilities
[*] modinfo
[*] Simplified modutils
[*] Accept module options on modprobe command line
[*] Skip loading of already loaded modules
(/lib/modules) Default directory containing modules
Linux System Utilities
[*] mdev
[*] Support /etc/mdev.conf
[*] Support subdirs/symlinks
[*] Support regular expressions substitutions when renaming
[*] Support command execution at device addition/removal
[*] Support loading of firmwares
[*] mount
[*] Support specifying devices by label or UUID
[*] blkid
[*] Print filesystem type
[*] findfs
[*] losetup
[*] lspci
[*] lsusb
Filesystem/Volume identification
[*] Ext filesystem
[*] fat filesystem
Networking Utilities
[*] wget
[*] ftpd
[*] Enable upload commands
[*] Enable workaround for RFC-violating clients
[*] inetd
[*] tcpsvd
[*] telnetd
[*] Support standalone telnetd (not inetd only)
[*] udpsvd
kernel modules
Block Devices
<*> kmod-ata-core
<*> kmod-ata-ahci
<*> kmod-loop
-*- kmod-scsi-core
<*> kmod-scsi-generic
Filesystems
<*> kmod-fs-ext4
<*> kmod-fs-ntfs
<*> kmod-fs-vfat
Input modules
-*- kmod-hid
<*> kmod-hid-generic
-*- kmod-input-core
-*- kmod-input-evdev
Native Language Support
<*> kmod-nls-cp437
<*> kmod-nls-iso8859-1
Netfilter Extensions
<*> kmod-nf-nathelper-extra
Network Devices
<*> kmod-macvlan
Network Support
-*- kmod-gre
<*> kmod-gre6
-*- kmod-ppp
<*> kmod-mppe
-*- kmod-pppoe
<*> kmod-pppol2tp
-*- kmod-pppox
<*> kmod-pptp
USB Support
-*- kmod-usb-core
<*> kmod-usb-hid
<*> kmod-usb-ohci
<*> kmod-usb-storage
<*> kmod-usb2
<*> kmod-usb3
Wireless Drivers
Network
Captive Portals
Instant Messaging
<*> umurmur-openssl
VPN
Web Servers/Proxies
<*> hostapd
<*> hostapd-common
<*> hostapd-utils
<*> ppp
<*> ppp-mod-pppoe
<*> ppp-mod-pppol2tp
<*> ppp-mod-pptp
<*> ppp-mod-radius
<*> wpa-supplicant
Utilities
Editors
<*> nano
<*> vim-full
database
disc
<*> fdisk
zoneinfo
<*> zoneinfo-asia
<*> zoneinfo-core
<*> shadow-utils
Languages
<*> PHP5
<*> php5-cgi
<*> php5-fastcgi
<*> php5-mod-ctype
<*> php5-mod-curl
<*> php5-mod-exif
<*> php5-mod-ftp
<*> php5-mod-gd
<*> php5-mod-iconv
<*> php5-mod-json
<*> php5-mod-mbstring
<*> php5-mod-mcrypt
<*> php5-mod-mysql
<*> php5-mod-pdo
<*> php5-mod-pdo-mysql
<*> php5-mod-session
<*> php5-mod-sockets
<*> php5-mod-sqlite3
<*> php5-mod-tokenizer
<*> php5-mod-xml
<*> php5-mod-zip
LuCI
Collections
<*> luci
Modules
<*> luci-base
Translations
<*> Chinese (zh-cn)
Protocols
-*- luci-proto-ppp
Processor type and features
[*] Symmetric multi-processing support
Processor family (Core 2/newer Xeon)
[*] Supported processor vendors
[*] Support Intel processors
(2) Maximum number of CPUs
[*] SMT (Hyperthreading) scheduler support
[*] Multi-core scheduler support
High Memory Support (4GB)
Device Drivers
<*>ATA/ATAPI/MFM/RLL support(DEPRECATED)
SCSI device support
<*>SCSI generic support
<*>Serial ATA and Parallel ATA drivers
<*>AHCI SATA support
<*>Intel ESB,ICH,PIIX3,PIIX4 PATA/SATA support (默认选中)
<*>VIA SATA support
<*>VIA PATA support
[*] Multiple devices driver support (RAID and LVM)
[*] Network device support
[*] Ethernet driver support
[*] Intel devices
<*> Intel(R) PRO/100+ support
52545em
5. 编译
make -j 100 download #下载包,openwrt是基于源码+patch形式,下载过程比较慢,最好在墙外
make clean
make -j 5 V=99
ls bin/x86
# 会看到有以下一些文件,与官方编译的固件名称完全相同,这里大概解释下:
openwrt-x86-generic-combined-ext4.img.gz
# 包含vmlinuz、rootfs(ext4)、引导信息以及相关分区信息的img,一般是两个分区,可以把它看成是硬盘镜像,直接dd到某个磁盘
openwrt-x86-generic-rootfs-ext4.img.gz
# rootfs分区镜像,可以直接dd到某个分区,或者mount -o到某个目录
openwrt-x86-generic-rootfs-squashfs.img
openwrt-x86-generic-vmlinuz
# kernel
openwrt-x86-generic-Generic-rootfs.tar.gz
# rootfs用gz打包后的文件
# 可以看出,要让系统启动,需要引导器(x86是使用grub,好比是路由中的uboot,当然uboot管的内容更多)、kernel、rootfs三者。
7. 安装:
步骤①:准备好img文件以及physdiskwrite这个工具。如果你是CF卡或者硬盘,可以在PE下写入,也可以挂载到其他电脑或多硬盘的环境下。
physdiskwrite工具下载:http://blog.ich8.com/file/53
准备好所需文件
步骤②:通过 Windows徽标键 + R 调出 运行 窗口,输入cmd,回车打开命令行窗口。使用x:命令进入相关盘符 cd为进入相关文件夹。x为驱动器盘符。
运行 窗口
步骤③:使用命令:physdiskwrite.exe -u openwrt-ext4.img,回车
使用physdiskwrite来恢复镜像文件
步骤④:回车后会显示以下内容,让你选择对应的要恢复img文件的驱动器。 非常重要!请确认你选择的磁盘,选错将覆盖掉所有分区,导致所有数据丢失。
选择要恢复的驱动器
步骤⑤:选择y,同意将img文件恢复到该驱动器上。回车后就会进行写入操作了。写入完成后你可以将你的磁盘设备放到需要启动的设备上去。
8. 设置
option netmask '255.255.255.0'
option gateway '192.168.11.1'
option dns ‘114.114.114.114 8.8.8.8’
#ifup wan
设置pppoe
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'pppoe'
option 'username' '你的ADSL账号'
option 'password' '密码'
设置DHCP
config interface 'wan'
option ifname 'eth1'
option proto 'dhcp'
设置VPN
config 'interface' 'vpn'
option 'ifname' 'pptp-vpn'
option 'proto' 'pptp'
option 'username' 'vpnusername'
option 'password' 'vpnpassword'
option 'server' 'vpn.example.org or ipaddress'
option 'buffering' '1'
option 'pppd_options' 'mppe required'
修改VPN配置文件
vi /etc/ppp/options.pptp
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
9.修改分区大小
用GParted 修改分区大小
10.问题解决
make:
*
[world] Error 2
目录 一 下载 Openwrt 镜像文件 二 将镜像文件写入目标磁盘 2.1 写盘工具 2.2 Physdiskwrite 写盘 2.3 win32diskimager 写盘 三 管理界面...
来自:
weixin_34186128的博客
注意!!!不要烧写到你的硬盘上面去,会格式化你整个硬盘的。数据宝贵啊,建议烧写到u盘,然后从u盘启动1编译出一个x86的固件。记得编译的时候要选择生成vmdk文件openwrt-x86-generic...
来自:
aa120515692的博客
x86openwrt固件编译2017年十月四日我在珠海,中秋之际写下这篇文章,祝各位看官花好月圆,有情人终成眷属。最近一直在玩Openwrt,以前上学的时候接触一丁丁,但是只限于烧写别人编译好的固件,...
来自:
a13698709128的博客
x86看到这里相信你们已经把镜像编译完成了,如下图所示,两个镜像对应两个不同的文件系统,想办法把他拷贝到windows物理机上面去,你可以用U盘拷贝,还可以用ftp方式拷贝!具体方法就百度去啦!新建虚...
来自:
a13698709128的博客
1、openwrt中文网 http://www.openwrt.org.cn/2、恩山无线论坛openwrt专版 http://www.right.com.cn/forum/forum-72-1...
来自:
sydjm的专栏
【注】本文是基于Ubuntu12.04+Openwrt15.05.1开发的教程。3.1安装相关工具和库1)安装SVN工具安装SVN工具,用于下载openwrt源码。sudoapt-getinstall...
来自:
不问归期的博客
一、OpenWRT中的驱动Openwrt源码中,所有扩展的软件包到在package目录下,自己添加的应用放在该目录下。所有扩展的内核驱动package/kernel目录下,自己添加的驱动放在该目录下。...
来自:
young_yongda的博客
缘由:闲鱼上入手了一块信步科技SV3-26026主板,想用它来做软路由发现对应的只有KoolshareledeV2.9版能使用,后面在恩山论坛发现Lean大神帖子,看到他的源码已经放上Github,包...
来自:
ZF
第1种安装方法web安装:系统--软件包先点更新软件包清单输入软件名,点击安装;用第1个方法,用第1种方法,必须有联网才能安装;我从来没有安装完成过,像这样就是错误了,什么内核版本不对,或是不匹配之类...
来自:
jacklin_01的博客
有些同学可能想学习openwrt系统,但手头又没有嵌入式板子,是编译和运行系统,然后再增加自己的功能。下面介绍如何编译openwrt系统后再虚拟机下运行。下载openwrt最新代码在github上搜索...
来自:
Derry的专栏
各位小伙伴,看到这里,说明你的文件镜像已经编译成功了,并且已经成功的安装在vmware上了。我写这边文章是因为我需要安装中文支持包,但是虚拟机上不了网(默认只有一个lan,需要添加wan)!解决方法如...
来自:
a13698709128的博客
1.虚拟机文件制作下载对应版本的img文件,本文选择15.05:https://downloads.openwrt.org/chaos_calmer/15.05/x86/generic/openwrt...
来自:
xingyuzhe的博客
参考:https://www.cnblogs.com/topbin/p/8794152.html下载https://github.com/garywangcn/bpi-r2_lede/tree/bpi...
来自:
weixin_34416754的博客
最近在折腾OpenWRT,第一次接触,用的是HLK7688的板子(就是下面这个东西,淘宝找的图)先说个坑,烧了固件之后,WAN口改变,并不是左边独立出来的第一个,我的变成了最右边的那个。所以,如果通过...
来自:
王三三
http://zhidx.com/p/186.html从零开始学习OpenWrt完美教程Cisco/Linksys在2003年发布了WRT54G这款无线路由器,同年有人发现它的IOS是基于Linux的...
来自:
weixin_42155195的博客
一、简介:penWrt作为一个嵌入式的Linux发行版已经得到广泛的运用,本文主要介绍了openWRT开发背景、OpenWrt功能、openWRT特点以及openwrt详细刷机教程。penWrt可以被...
来自:
羞羞滴小朋友
openwrtlede开源编译getopenrwrtsourcecode[mark@localhostopenwrt]$gitclonehttps://github.com/openwrt/openw...
来自:
weixin_43830087的博客
用ubuntulivecd启动后 把编译生成的openwrt-x86-generic-combined-ext4.img.gz解压然后ddif=openwrt-x86-generic-combined...
来自:
Jerry Liu 的专栏
下载openwrt源码,参考:http://blog.csdn.net/u011641885/article/details/46348267makemenuconfig基本配置TargetSyste...
来自:
aa120515692的博客
背景前段时间看到C1037u多网口版本,很是喜欢,替换的4530r,发现玩openwrtx86的人比较少,写一篇日记,以备后用,有错误之处请指出。0.配置编译环境Linux1.获取源代码svncosv...
来自:
gaopeiliang的专栏
一、SSH服务为了实现Windows和开发板进行文件传输,我们需要为Openwrt添加ssh服务,ssh是一种安全协议。我们在虚拟机和window之间进行文件传输时也是使用SSH。二、OpenWRT添...
来自:
young_yongda的博客
一、openwrt/bin/ramips/目录下的固件介绍openwrt-ramips-rt305x-mpr-a2-squashfs-sysupgrade.binopenwrt生成的内核和文件系统在一...
来自:
young_yongda的博客
openwrt有线无线叠加教程 介绍网络叠加技术,openwrt有线无线叠加教程 介绍网络叠加技术,openwrt有线无线叠加教程 介绍网络叠加技术,openwrt有线无线叠加教程 介绍网络叠加技术
http://blog.chinaunix.net/uid-10429687-id-3374873.htmlOpenWrt是一个比较完善的嵌入式Linux开发平台,在无线路由器应用上已有100多个软件...
来自:
teddy99999的专栏
这里默认我们的本地机器是用的Linux操作系统,这篇文章主要是提供刷固件的主要概念,所以在看完后可以自行根据提到的概念搜索不同操作系统下的做法:)[TOC]OpenWRT简介首先这个名字是不是很有趣,...
来自:
fengxueem
使用openwrt是因为目前的工作要用到MT7688,本来是直接用MT7688的SDK开发的,后来发现大家好像都是在openwrt下开发,也感觉可能用openwrt会更好点,就学习一下,做个笔记,仅供...
来自:
RoCo
openwrt x86的镜像分为ext4和 squashfs,squashfs格式的好处是支持恢复出厂设置、web页面升级固件在现有的一台linux虚拟电脑上,新建1个vhd硬盘启动linux查看新v...
来自:
xuxiaorong的博客
一、OpenWrt概述OpenWrt是一种嵌入式开源Linux操作系统,我们选用的内核版本是Kamikaze8.09.2,当然也可以选用其它的内核,如:WhiteRussian、Backfire等等。...
来自:
刘毅枫的博客
仅限于x86_64架构固件!!!makemenuconfig20181123添加:可以添加LXC编译依赖,docker和lxc的依赖环境基本相同,这样可以省去很多时间。保存并重新编译。烧写固件,开机,...
来自:
wang805447391的博客
OpenWrt系列教程汇总http://www.openwrt.org.cn/bbs/thread-60-1-1.html从零开始学习OpenWrt完美教程+学习笔记https://blog.csdn...
来自:
囡囡的博客
openwrt系统上的关键进程procd源码,openwrt上面进程的监控依赖模块 相关下载链接://download.csdn.net/download/a1558451960/10215703?u
Openwrt实战简介本篇不会废话,直接教如何把Openwrt跑在qemu上,教学到的内容如下UbuntuOpenWrtQemuLuciX-wrt(webif)Ubuntu需要先配置好安装环境,先安装...
来自:
拯救骆驼的沙洲
当一个普通路由器刷了定制的OpenWrt后,其功能即可大大的拓展,而且还可以自己配置好看的界面,瞬间升级成强大的智能路由器,使用各种开源软件,让普通路由器拥有几千元网络设备才具备的各种功能。可是普通的...
来自:
lvshaorong的博客
openWRT网页配置界面分析,openWRT网页配置界面分析,openWRT网页配置界面分析 相关下载链接://download.csdn.net/download/woshixiongge/104
这一期我们来真正的接触OpenWrt,这个接触是从源码方面的,不是刷机后通过web登录配置的那种。Wrt(WirelessRouTer)的历史和文化大家可以自行搜索一下,很有趣的。 当Links...
来自:
aggresss的专栏
这一期来进行OpenWrt的编译,我们的最终目的是生成可以被U-Boot引导的OpenWrt固件,整个编译过程比较耗时,根据网络情况而定,我用了3个小时,编译磁盘要预留10G的存储空间。 编译步...
来自:
aggresss的专栏
转发自http://www.openwrt.org.cn/bbs/forum.php?mod=viewthread&amp;tid=4217在网络上算是很清楚的一篇文章 此文在www.open...
来自:
llanlianggui的博客
最近闲来无事,想研究下openwrt,所以尝试着自己搭建一个来玩玩,当然这里不是以源码编译的形式,那样太耗时。 首先官网下载已有的系统image, 路径如下: https://archiv...
来自:
ballack_linux的专栏
jquery/js实现一个网页同时调用多个倒计时(最新的)nn最近需要网页添加多个倒计时. 查阅网络,基本上都是千遍一律的不好用. 自己按需写了个.希望对大家有用. 有用请赞一个哦!nnnn//jsn...
来自:
Websites
最近比较有空,大四出来实习几个月了,作为实习狗的我,被叫去研究Docker了,汗汗!nnDocker的三大核心概念:镜像、容器、仓库n镜像:类似虚拟机的镜像、用俗话说就是安装文件。n容器:类似一个轻量...
来自:
我走小路的博客
本篇文章是根据我的上篇博客,给出的改进版,由于时间有限,仅做了一个简单的优化。相关文章:将excel导入数据库2018年4月1日,新增下载地址链接:点击打开源码下载地址十分抱歉,这个链接地址没有在这篇...
来自:
Lynn_Blog