You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
第一个问题,日志如下:
dd if=/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/jdcloud_re-cp-02-kernel.bin >> /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin
5499+1 records in
5499+1 records out
2815536 bytes (2.8 MB, 2.7 MiB) copied, 0.026398 s, 107 MB/s
dd if=/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/root.squashfs >> /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin
52514+1 records in
52514+1 records out
26887510 bytes (27 MB, 26 MiB) copied, 0.252513 s, 106 MB/s
/media/johnson/SourceCode/Git/lede/staging_dir/host/bin/padjffs2 /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin 4 8 16 64 128 256
padding image to 01c54000
padding image to 01c60000
padding image to 01c80000
bash: line 1: 8: Bad file descriptor
echo '{ "metadata_version": "1.1", "compat_version": "1.1", "compat_message": "Config cannot be migrated from swconfig to DSA", "new_supported_devices": ["jdcloud,re-cp-02"], "supported_devices": ["jdcloud,re-cp-02 - Image version mismatch: image 1.1, device 1.0. Please wipe config during upgrade (force required) or reinstall. Reason: Config cannot be migrated from swconfig to DSA"], "version": { "dist": "OpenWrt", "version": "24.10.0-rc1", "revision": "r7091-41e0c30d8", "target": "ramips/mt7621", "board": "jdcloud_re-cp-02" } }' | fwtool -I - /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin
Failed to open firmware file
make[5]: [Makefile:218: /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin] Error 1 (ignored)
sha256sum "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin" | cut -d" " -f1 > "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.sha256sum"
sha256sum: /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin: No such file or directory
[ ! -s "/media/johnson/SourceCode/Git/lede/key-build" -o ! -s "/media/johnson/SourceCode/Git/lede/key-build.ucert" -o ! -s "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin" ] || { cp "/media/johnson/SourceCode/Git/lede/key-build.ucert" "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.ucert" ; usign -S -m "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin" -s "/media/johnson/SourceCode/Git/lede/key-build" -x "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.sig" ; ucert -A -c "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.ucert" -x "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.sig" ; fwtool -S "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.ucert" "/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin" ; }
cp /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin /media/johnson/SourceCode/Git/lede/bin/targets/ramips/mt7621/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin
cp: cannot stat '/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin': No such file or directory
make[5]: [Makefile:216: /media/johnson/SourceCode/Git/lede/bin/targets/ramips/mt7621/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin] Error 1 (ignored)
DEVICE_ID="jdcloud_re-cp-02" SOURCE_DATE_EPOCH=1733823036 FILE_NAME="openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin" FILE_DIR="/media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp" FILE_TYPE=sysupgrade FILE_FILESYSTEM="squashfs" DEVICE_IMG_PREFIX="openwrt-ramips-mt7621-jdcloud_re-cp-02" DEVICE_VENDOR="JD-Cloud" DEVICE_MODEL="RE-CP-02" DEVICE_VARIANT="" DEVICE_ALT0_VENDOR="" DEVICE_ALT0_MODEL="" DEVICE_ALT0_VARIANT="" DEVICE_ALT1_VENDOR="" DEVICE_ALT1_MODEL="" DEVICE_ALT1_VARIANT="" DEVICE_ALT2_VENDOR="" DEVICE_ALT2_MODEL="" DEVICE_ALT2_VARIANT="" DEVICE_ALT3_VENDOR="" DEVICE_ALT3_MODEL="" DEVICE_ALT3_VARIANT="" DEVICE_ALT4_VENDOR="" DEVICE_ALT4_MODEL="" DEVICE_ALT4_VARIANT="" DEVICE_TITLE="JD-Cloud RE-CP-02" DEVICE_PACKAGES="kmod-mt7915-firmware kmod-sdhci-mt7620" TARGET="ramips" SUBTARGET="mt7621" VERSION_NUMBER="24.10.0-rc1" VERSION_CODE="r28158-d276b4c91a" SUPPORTED_DEVICES="jdcloud,re-cp-02" /media/johnson/SourceCode/Git/lede/scripts/json_add_image_info.py /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/json_info_files/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin.json
Skip JSON creation for non existing file /media/johnson/SourceCode/Git/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-jdcloud_re-cp-02-squashfs-sysupgrade.bin
可以看到,dd都是成功的,在一次fwtool操作口,文件直接消失了。然后我手动进staging_dir/hostpkg/bin目录,把fwtool改成./fwtool后,发现操作都是成功的,包括后面的usign和ucert。所以,最终我还是手动生成了sysupgrade,但是不知道能不能用。
第二个问题:
就是文件大小了啦,能删的基本都删了,编译出来还是三十几M,这……到底错哪了?
Beta Was this translation helpful? Give feedback.
All reactions