找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 990|回复: 10

求助: TL-WR941HP LEDE 22.03 编译得怀疑人生了

[复制链接]
发表于 2022-9-23 22:27 | 显示全部楼层 |阅读模式
事情是起因是我在小区以9块钱收了一台wr941n v8  CPU是 TP9343,  经我硬件升级到16+64后 首先刷入了官网下载的  
1TP-LinkTL-WR941HPv122.03.0Qualcomm Atheros TP9343ath79generichttps://downloads.openwrt.org/releases/22.03.0/targets/ath79/generic/openwrt-22.03.0-ath79-generic-tplink_tl-wr941hp-v1-squashfs-factory.bin
这个固件 发现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 但是无法启动机器
编得我都怀疑人生了。






我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-9-23 22:46 | 显示全部楼层
所以你要什么官方库里没有的软件?科学的是比较麻烦……
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-23 22:53 | 显示全部楼层
不是15925248大,而是实际大小已经超过15925248了!

点评

不去选什么软件 默认使用lede预设的就这样  详情 回复 发表于 2022-9-24 00:21
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-23 23:51 | 显示全部楼层
老东西让它退休吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-24 00:21 | 显示全部楼层
wulishui 发表于 2022-9-23 22:53
不是15925248大,而是实际大小已经超过15925248了!

不去选什么软件 默认使用lede预设的就这样  这个数值就是15552K

点评

在 lede/blob/main/include/target.mk 里预置了很多的插件,你可以注释掉暂不需要的后重新编译试试 DEFAULT_PACKAGES.router:=\ dnsmasq-full firewall iptables ppp ppp-mod-pppoe \ block-mount coremark km  详情 回复 发表于 2022-9-25 01:49
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-25 01:49 | 显示全部楼层
doc007 发表于 2022-9-24 00:21
不去选什么软件 默认使用lede预设的就这样  这个数值就是15552K

在 lede/blob/main/include/target.mk
里预置了很多的插件,你可以注释掉暂不需要的后重新编译试试
DEFAULT_PACKAGES.router:=\
        dnsmasq-full firewall iptables ppp ppp-mod-pppoe \
        block-mount coremark kmod-nf-nathelper kmod-nf-nathelper-extra kmod-ipt-raw kmod-tun \
        iptables-mod-tproxy iptables-mod-extra ipset ip-full default-settings luci luci-newapi \
        ddns-scripts_aliyun ddns-scripts_dnspod luci-app-ddns luci-app-upnp luci-app-autoreboot \
        luci-app-arpbind luci-app-filetransfer luci-app-vsftpd luci-app-“师夷长技以制夷”-plus luci-app-vlmcsd \
        luci-app-accesscontrol luci-app-nlbwmon luci-app-turboacc luci-app-wol curl ca-certificates

点评

多谢 其实我需要的就是 师夷长技以制夷 还有vlmcsd 昨天晚上我发现个问题我把 $(Device/tplink-safeloader) 这行换成了 $(Device/tplink-16mlzma) 终于能编出bin了 但是sysupgrade.bin(11.3MB)启动不了 fac  详情 回复 发表于 2022-9-25 09:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-25 09:42 | 显示全部楼层
自力更生的鱼 发表于 2022-9-25 01:49
在 lede/blob/main/include/target.mk
里预置了很多的插件,你可以注释掉暂不需要的后重新编译试试
DEF ...

多谢  其实我需要的就是 师夷长技以制夷 还有vlmcsd   昨天晚上我发现个问题我把 $(Device/tplink-safeloader)  这行换成了 $(Device/tplink-16mlzma)  终于能编出bin了  但是sysupgrade.bin(11.3MB)启动不了  factory倒是能启动 可是wan拿不到地址 同时wan lan合体了 我在op界面改了下wan的mac lan的mac也同时变了 说明dts不知出了什么问题,lzma是压缩算法 说明safeloader是不压缩的肯定超过15mb了

点评

注释掉了很多插件 然后把dts和 generic-tp-link.mk 恢复了 终于编出可以开要的sysupgrade了 然并卵 wan口拿不到ip 无法上网  详情 回复 发表于 2022-9-25 12:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-25 12:46 | 显示全部楼层
doc007 发表于 2022-9-25 09:42
多谢  其实我需要的就是 师夷长技以制夷 还有vlmcsd   昨天晚上我发现个问题我把 $(Device/tplink-safelo ...

注释掉了很多插件 然后把dts和 generic-tp-link.mk 恢复了  终于编出可以开要的sysupgrade了 然并卵 wan口拿不到ip 无法上网
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-25 23:02 | 显示全部楼层
doc007 发表于 2022-9-25 12:46
注释掉了很多插件 然后把dts和 generic-tp-link.mk 恢复了  终于编出可以开要的sysupgrade了 然并卵 wan ...


你可以在dts内尝试指定mac地址所在位置试试
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-9-25 23:05 | 显示全部楼层

你可以在dts内指定下存放mac地址的位置试试,目前看来是读取不到mac地址,你是用的breed还是u-boot,看下底层下是否存在mac地址参数呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-9-26 23:51 | 显示全部楼层
换了941nd-v6的dts和几行mk 搞定了  不过没有led 暂时只能这样了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 02:24

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表