|
楼主 |
发表于 2022-5-15 16:21
|
显示全部楼层
本帖最后由 23Xor 于 2022-5-15 16:24 编辑
用了一个小trick过了这个错误,把上一楼提到的代码的bs参数去掉
百度了一下发现bs只影响dd写入速度,应该不会影响写入结果
- define Image/pad-to
- #dd if=$(1) of=$(1).new bs=$(2) conv=sync
- dd if=$(1) of=$(1).new conv=sync && echo $(2)
- mv $(1).new $(1)
- endef
复制代码
于是过了:
- #dd if=/opt/tsxor/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-zte_e8820s-squashfs-factory.bin of=/opt/tsxor/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-zte_e8820s-squashfs-factory.bin.new bs= conv=sync
- dd if=/opt/tsxor/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-zte_e8820s-squashfs-factory.bin of=/opt/tsxor/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/tmp/openwrt-ramips-mt7621-zte_e8820s-squashfs-factory.bin.new conv=sync && echo
- 4477+1 records in
- 4478+0 records out
- 4585472 bytes (4.6 MB, 4.4 MiB) copied, 0.0268627 s, 171 MB/s
- tar: Option --mtime: Treating date '@1650113974' as 2022-04-16 12:59:34
- sysupgrade-zte_e8820s/
- sysupgrade-zte_e8820s/CONTROL
- sysupgrade-zte_e8820s/kernel
- sysupgrade-zte_e8820s/root
- 4744+1 records in
- 4745+0 records out
- 2429440 bytes (2.4 MB, 2.3 MiB) copied, 0.0200686 s, 121 MB/s
复制代码 |
|