https://github.com/tsl0922/padavan
找了这个库,有点东西,但是不多,比我是多的,readme净自吹自擂,写的是非常随意。文件目录和其他大佬的不一样(要我有这水平我也这么干)。
环境少了ccache (手动加在那一大串环境安装里),然后里面很多插件的makefile是有问题的,我直接取消编译有问题的插件,然后xray我改成1.8.7版本(makefile里的hash也要改),结果下载解压里面go.mod的版本号不符合规范。最后好不容易编译完成了。。。最后一步又出错,心力交瘁,谁给说说又是哪出问题了。 最近感觉恩山那边大佬可能都去过年了,想说MJJ都超有才华的,讲话又好听,说不定也懂。。。别问我为毛不开大号,问就是大号们都踩缝纫机去了。。。。
下面这个是action自动编译已经到最后生成好了固件,又出错在最后一步了,真的整不会了。。。
[ol] image
[ -d /opt/rt-n56u/trunk/images ] || mkdir /opt/rt-n56u/trunk/images
make ARCH=mips CROSS_COMPILE=mipsel-linux-musl- -C vendors image
make[3]: Entering directory '/opt/rt-n56u/trunk/vendors'
make -C /opt/rt-n56u/trunk/vendors/Ralink/. dir_v=/opt/rt-n56u/trunk/vendors/Ralink/. -f /opt/rt-n56u/trunk/vendors/vendors-common.mak image
make[4]: Entering directory '/opt/rt-n56u/trunk/vendors/Ralink'
##############CREATE IMAGE#################
mipsel-linux-musl-objcopy -O binary -R .note -R .comment -S /opt/rt-n56u/trunk/linux-4.4.x/vmlinux /opt/rt-n56u/trunk/images/zImage
cd /opt/rt-n56u/trunk/images; rm -f /opt/rt-n56u/trunk/images/zImage.*; /opt/rt-n56u/trunk/tools/lzma/lzma e -a1 -d25 /opt/rt-n56u/trunk/images/zImage /opt/rt-n56u/trunk/images/zImage.lzma
LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
# Padded Kernel Image + Compressed Rootfs Size
10268703 /opt/rt-n56u/trunk/images/zImage.lzma
#===========================================
# Pack final image and write headers
# For No padded, need write kernel size in image header
# to correct mount partition in mtd drivers address
img file: /opt/rt-n56u/trunk/images/XY-C1_4.4.198.9-100.trx
Product ID: XY-C1
Created: Sun Feb 4 07:39:33 2024
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 10268703 Bytes = 10028.03 kB = 9.79 MB
Load Address: 0x81001000
Entry Point: 0x8100A8E0
Kernel Size: 0x0020FDC0
Kernel Ver.: 4.4
FS Ver.: 198.9
make[4]: Leaving directory '/opt/rt-n56u/trunk/vendors/Ralink'
make[3]: Leaving directory '/opt/rt-n56u/trunk/vendors'
make[2]: Leaving directory '/opt/rt-n56u/trunk'
make[1]: Leaving directory '/opt/rt-n56u'
make: *** No rule to make target '0'. Stop.
Error: Process completed with exit code 2.[/ol]复制代码