自学内容网 自学内容网

debian 编译openwrt

镜像使用

debian-12.8.0-amd64-DVD-1.iso

切换到root
nano /etc/sudoers
在这里插入图片描述
加上这一行

改源
nano /etc/apt/sources.list

deb http://mirrors.163.com/debian/ bookworm main contrib non-free non-free-firmware
deb http://mirrors.163.com/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.163.com/debian/ bookworm-backports main contrib non-free non-free-firmware
deb http://mirrors.163.com/debian-security/ bookworm-security main contrib non-free non-free-firmware

参考编译
https://github.com/coolsnowwolf/lede

sudo apt update -y
sudo apt full-upgrade -y
sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
bzip2 ccache clang cmake cpio curl device-tree-compiler flex gawk gettext gcc-multilib g++-multilib \
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
libltdl-dev libmpc-dev libmpfr-dev libncurses-dev libncurses-dev libpython3-dev libreadline-dev \
libssl-dev libtool llvm lrzsz genisoimage msmtp ninja-build p7zip p7zip-full patch pkgconf python3 \
python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev




su 回普通系统账号
su qq547176052

克隆仓库

git clone https://github.com/coolsnowwolf/lede
cd lede
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig

配置

编译

make download -j8
make V=s -j1

二次编译:

cd lede
git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make download -j8
make V=s -j$(nproc)

如果需要重新配置:

rm -rf .config
make menuconfig
make V=s -j$(nproc)

编译完成后输出路径:bin/targets


原文地址:https://blog.csdn.net/QiongJiShengBian/article/details/144654255

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!