0
点赞
收藏
分享

微信扫一扫

OpenWRT Build from scratch


1.下载官方源码

mkdir openwrt
cd openwrt
git clone https://github.com/openwrt/openwrt.git

OpenWRT Build from scratch_git

OpenWRT Build from scratch_重新编译_02

'

2.更新源码

cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a

OpenWRT Build from scratch_重新编译_03

OpenWRT Build from scratch_自动下载_04

3.测试编译环境

make defconfig

OpenWRT Build from scratch_自动下载_05

5.自定义配置

OpenWRT Build from scratch_重新编译_06

OpenWRT Build from scratch_git_07

OpenWRT Build from scratch_git_08

下面LuCI=》Modules=》Translations=》选择语言Chinese;

OpenWRT Build from scratch_自动下载_09

LuCI=》Applications=》选择需要的插件,选择完成后保存,开始编译,这里一定要有梯子,便已开始后会自动下载各种包,很多人失败的原因也就是这里。

不选择也可以,保存配置信息退出.

6.编译:

make -j8 V=99

OpenWRT Build from scratch_重新编译_10

执行

make -j1

可以看到构建系统的编译顺序:

OpenWRT Build from scratch_git_11

7:支持ffmpeg

menuconfig->Multimedia->ffmpeg

OpenWRT Build from scratch_重新编译_12

重新编译

OpenWRT Build from scratch_重新编译_13

得到ffmpeg ipk包文件:

OpenWRT Build from scratch_git_14

一组命令分析编译结果:

OpenWRT Build from scratch_git_15

8:支持Gstreamer

menuconfig->Multimedia->gstreamer

OpenWRT Build from scratch_git_16

\

重新编译

OpenWRT Build from scratch_自动下载_17

分析编译结果:

OpenWRT Build from scratch_自动下载_18

OpenWRT Build from scratch_重新编译_19

如果想重新再一个新的目录编译内核,执行make KERNEL_BUILD_DIR=./dir

OpenWRT Build from scratch_重新编译_20

或者 make target/linux/compile KERNEL_BUILD_DIR=./zilong

OpenWRT Build from scratch_重新编译_21

结束!

举报

相关推荐

0 条评论