|
事情是起因是我在小区以9块钱收了一台wr941n v8 CPU是 TP9343, 经我硬件升级到16+64后 首先刷入了官网下载的 这个固件 发现led 网口完全正确,但没有我要的一众软件,因此只好自己编译了 用的是L大的代码 https://github.com/coolsnowwolf/lede
lede\target\linux\ath79\dts\tp9343_tplink_tl-wr941hp-v1.dts 首先修改了这个文件 SPI那段改成了如下样子
partition@20000 {
compatible = "tplink,firmware";
label = "firmware";
reg = <0x020000 0xf30000>; 原先是0x730000
};
config: partition@f50000 {
label = "config";
reg = <0xf50000 0x0a0000>; 原先是0x750000
read-only;
};
art: partition@ff0000 {
label = "art";
reg = <0xff0000 0x010000>; 原先是0x7f0000
read-only;
看上去一切正常 接着改了generic-tp-link.mk文件
define Device/tplink_tl-wr941hp-v1
$(Device/tplink-safeloader) #这里是什么 XXXX
SOC := tp9343
DEVICE_MODEL := TL-WR941HP
DEVICE_VARIANT := v1
TPLINK_BOARD_ID := TL-WR941HP-V1
IMAGE_SIZE := 15552k # 原来的数字7360K 我发现这个数值不是乱填的
endef
TARGET_DEVICES += tplink_tl-wr941hp-v1
这个数字的算是 reg = <0x020000 0xf30000>; 原先是0x730000 0xf30000/1024 =15552 (K)
选了两个常用插件也就是在lede代码默认配置上加了个udpxy 而已,然后就开始编译了 结束后没看到报错 但是特么也没找到固件
有报错的几行
h79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin || rm -f /home/guang/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin
file-system partition too big (more than 5151986 bytes): Success
file-system partition too big (more than 5111808 bytes): Success
。。。。。。。。
file-system partition too big (more than 5151986 bytes): Success
file-system partition too big (more than 5111808 bytes): Success
cp /home/guang/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin /home/guang/lede/bin/targets/ath79/generic/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin
cp: cannot stat '/home/guang/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin': No such file or directory
make[5]: [Makefile:110: /home/guang/lede/bin/targets/ath79/generic/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin] Error 1 (ignored)
stat: cannot stat '/home/guang/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-sysupgrade.bin': No such file or directory
bash: line 0: [: 15925248: unary operator expected
WARNING: Image file /home/guang/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-sysupgrade.bin is too big: > 15925248
echo '{ "metadata_version": "1.1", "compat_version": "1.0", "supported_devices":["tplink,tl-wr941hp-v1"], "version": { "dist": "OpenWrt", "version": "SNAPSHOT", "revision": "r0-40de02bf", "target": "ath79/generic", "board": "tplink_tl-wr941hp-v1" } }' | fwtool -I - /home/guang/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-ath79-generic-tplink_tl-wr941hp-v1-squashfs-sysupgrade.bin
Failed to open firmware file
这都是些啥 大于 15925248 就是F30000 这不科学啊 tplink-safeloader 还有这个是啥 改成 tplink-16mlzma 去掉IMAGE_SIZE 倒是可以编出bin 但是无法启动机器
编得我都怀疑人生了。
|
|