安装依赖及下载源码:
apt install unzip libtool-bin curl cmake gperf gawk flex bison nano xxd fakeroot kmod cpio git python3-docutils gettext automake autopoint texinfo build-essential help2man pkg-config zlib1g-dev libgmp3-dev libmpc-dev libmpfr-dev libncurses5-dev libltdl-dev wget libc-dev-bin bc
git clone https://github.com/padavanonly/padavan-4.4.git --depth=1
cd padavan-4.4/toolchain-mipsel
./dl_toolchain.sh
编辑trunk/build_firmware_modify注释掉特殊服务,并移除相应asp管理页面,不然编译后有相关菜单。
更新:首次编译前注释相关软件包就行。
rm trunk/user/www/n56u_ribbon_fixed/Shadows*.asp
rm trunk/user/www/n56u_ribbon_fixed/Advanced_aliddns.asp
rm trunk/user/www/n56u_ribbon_fixed/Advanced_SQM.asp
rm trunk/user/www/n56u_ribbon_fixed/Advanced_adbyby.asp
编译固件:
cd trunk/
fakeroot ./build_firmware_modify K2P
标签:none