ubuntu-20.04.1下编译openwrt

安装ubuntu

ubuntu-20.04.1-live-server-amd64.iso

可用空间不低于50G

升级&安装必要组件

 
sudo apt-get update
sudo apt-get upgrade
sudo apt install gcc g++ unzip make libncurses-dev mkisofs
 

 

安装配置samba

目的是在windows上能方便的编辑源文件

vi /etc/samba/smb.conf

 

passdb backend = tdbsam

 

[homes]

   comment = Home Directories

   browseable = no

   writable = yes

 

pdbedit -a yoursmbuname

 

/etc/init.d/smbd restart

下载获取openwrt最新源码

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

 

cd openwrt

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

不执行以上命令,不会出现multimedia,LuCI等分类

编译openwrt

参考:https://openwrt.org/docs/guide-developer/quickstart-build-images

 

make menuconfig

 

Target System ---> x86

Subtarget ---> x86_64

Target Images --->ext4

                            --->Build LiveCD image

Global build settings --->Compile with support for patented functionality

 

编译中,因GFW的原因,如涉及到go lang,无法下载相关的源码,因此需要设置

export GOPROXY=https://goproxy.cn

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页