(完整word版)Openwrt学习笔记_x86固件编译部署_2015.8.19修订_第1页
(完整word版)Openwrt学习笔记_x86固件编译部署_2015.8.19修订_第2页
(完整word版)Openwrt学习笔记_x86固件编译部署_2015.8.19修订_第3页
(完整word版)Openwrt学习笔记_x86固件编译部署_2015.8.19修订_第4页
(完整word版)Openwrt学习笔记_x86固件编译部署_2015.8.19修订_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、openwrt x86 编译部署0.配置编译环境(略)1. 获取源代码(略)2. 一些问题config文件位置:ope nwrt config 文件: /.configKernel config 文件:build_dir/target-xxxxxxx/linux-x86_generic/linux-x.xx.xx/.config内核版本更改:支持内核版本列表:include/kernel- version.mk更改内核版本位冒:target/linux/XXX/Ma kef ile.3. make menuconfig这里给出一个基本配置,正常使用默认配置即可,不需要 Customize bu

2、sybox options ,这些另外的配置基本是x86必须的。为了在以后的initramfs中加入一些overlayfs的功能,添加了一些配置。Target Sysreni扌巨陌平台选择Target Iraagts IT exr4件Bae ayjtem tlocJc-mount busy box 卡用 TSiJiitramfaS r 可 所有1 二 b 編译 Slbus ybo x* Customize busybox aptionaSuayhax Settings General Configuration * Support -一install -s to install applet

3、links at runtinie* Don1t uas /usrLinux Module Utilities * mcdinfo; Sxplifsd modutiLa* Accept wdule options on nuodprobe ccixLaiid line* SJcip leading of already loaded modulej(/lito/niDdules Default directory contarrLng modulesLinux Syscem Utilities *J mdev* Support /eLc/mdev.aonf* Support subdirfl/

4、syniLins*Support regular exprejsicnssubstitutions when renazr.ing*1 Support command execution atdevice additien/reir.ovalSupport leading jf frmxarE3丁 findf,3 *J blkid *J Prinu filesystem type *1 losetup *1 lapci* Lsusb:* meunt: Support specif ymj device? tylabel or UUIE及其Dont use /usr该项不选!,否则无法生成/us

5、r/sbi n/n tpd-hotplug他文件,导致busybox-*ipk生成失败!Filesysrem/Volune idenrification 1 Ext tilesyscDL) fat fllesys&DLNetworking Utilities fupdZnable upload corzrarkdBEnable workaround for RFC-1*1* L* vioiatina clientsr* i* *Support atandaLons celnetd (nottcpsvdudp3Vdl添加文本编辑工具:Utilities - Editors- nanoUtilit

6、ies - Editors- vim-fullkerneL modules Black Devices kDd*ata-core lanod-ata-ahci icnod-lacp-*- kxcd-5csi-zareinetd only)Filesyacexa xci-fs-exT4 iocod*fs-ni;fs icnoa-fs-vfaEInput modules :李锻盃tancd-hid kind-hid-geiieTic-*- kmz d- .i npt - cor e-*- kniDd-inpiiL-evdevNative Language Support kmod-ikl9-cp4

7、37棗要谨个 xcd-nls-i3oS59-l kjQDd-nls-utfSNerwcrk Devices *在卡驱动 kmod-macvlanUSB Support -Jarcd-usb-core x-d-usbhid *u比裁第 Icniod-usb-DJici kutiT-d-usb-storage jcuLod-usb2 OKd-usb3Hireless Drivers 卡*忑动KetwerJc hes匸耳pd *Tii 孔p糧三. hostapdcoxmon hcstapd-utilj wpa-3iippl2_can.tUtilitiea ”吕送 f其中 Wifi ap 模式用 wp

8、ad 代替 hostapd 和 wpa-supplicant !建立网站支持:Lan guages - PHP - PHP5php5_cgi php5-fastcgi php5_mod_ctype php5-mod-curl php5-mod-exif php5-mod-ftp php5-mod-gd php5-mod-ic onv php5-mod-js on php5-mod-mbstri ng php5-mod-mcrypt php5-mod-mysql php5-mod-pdo php5-mod-pdo-mysql php5-mod-sessi on php5-mod-sockets

9、php5-mod-sqlite3 php5-mod-toke ni zer php5-mod-xml php5-mod-zip可通过web正常访问Utilities - database - mysql server#如安装了 nginx则需修改uhttpd 的端口,以便luciNetwork - Web Servers/Proxies - nginxNetwork - Web Servers/Proxies - spaw n-fcgiUtilities - zoneinfo - zonein fo-coreUtilities - zoneinfo - zonein fo-asiaUtilit

10、ies - shadow-utils (可选 shadow-groupadd 禾口 shadow-useradd)Network - Captive Portals - Server - wifidog4. make kernei _menuconfig目的是为了加入x86的多核心以及大内存支持Processor type and fearur已m * Siinnetric xulti-procssjng supportProcessor family (Core 2/newer Xeon) 处理器平台:厂:巳:vana:rj 支;亍运挥二哼器U Maxiniuin number of CPU

11、s #目行菊辑* S2iT (Hyp亡th二“ding) scheduler support持* ulti-core scheduler supportHih Menary Support (4GB)Device DriversA TAATAPI/MFM/RLL support(DEPRECA TED)-SCSI device support-SCSI gen eric support (ker nel module - Block Devices - kmod-scsi-core) Serial ATA and Parallel ATA drivers-AHCI SATA support (

12、kernel module - Block Devices - kmod-ata-ahci)I ntel ESB,ICH,PIIX3,PIIX4 PA TA/SATA support(默认选中)VIA SATA supportVIA PATA support(根据你的硬件情况选择)Multiple devices driver support (RAID and LVM)-*Network device support -(网卡驱动支持,根据你的硬件情况选择)* Ether net driver support -* Marvell devices Marvell MDIO in terfac

13、e support Marvell Yukon Gigabit Ethernet support Marvell Yukon 2 support* Realtek devices Realtek RTL-8139 C+ PCI Fast Ethernet Ad apter support() Realtek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support() Realtek 8169 gigabit ethernet support设置了 Power management and ACPI options - * ACPI (Advan

14、eed Configuration and Power Interface)Support 后,需要在 CPUFrequency scaling - x86 CPUfrequencyscali ng drivers -中选择一个驱动,否则会全速运行!Suspend to RAM and st日ndbyH bernatton (akd 1 suspend to diskurrtiEE PM me furKtionalityACPI (Advanced Configuration and Power InterfaceFI (Simple Firmware Interface) SupportPU

15、 Frequency scaling ”PU Idle apuidLe Driver for Intel Processors Memory power savings 如果没有设置,在编译时Inter Enhanced SpeedStep (deprecated) 一项需要手动确认,其他都默认为“ n”。* xB CPU frequency scaling drivers*Intel Pcontrol (X86_INTEL_PSTATE) N/y/? nProcessor Clocking Controt interface driver (X86PCCCPUFREQ) N/m/y/? nA

16、CPI Processor P-States driver (KBfi_ACPICPUFREQy Njn/y/? nIntel Enhanced SpeedStep (deprecated) (X86_SPEEDSTEP_CENTRIT* ramduk3Use external cpiotPiQ -initranif 5如果用gurb加载它,则整个系统会在ramfs上运行,所有配置在重 启后都将不被保留! 一般需要在这个上面启动到另一个 kernel ( kexec) 或者switch_root 到另一个rootfs(真实的磁盘)环境,ramdisk(initramfs)。因此一般是不勾选编译选项中的ramdisk选项,自己着手来做initramfs,加入一些hook (比如加入overlayfs 支持、switch_root 到其他 rootfs 、干脆直接 kexec 到其他 kernel ),用 gurb 的initrd加载,就可以完成系统启动。在编译固件的时候,如果机器上有硬盘,引导设备编号需要修改为sdb2、sdc2(根据硬盘数量定,只有一块硬盘时,优盘设置为sdb2,以此类推)。X86的编译要点考虑到x86平台使用的特点,以及OpenWrt 本身,可参考以下要点1.

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论