Closed yunzimo closed 11 months ago
maybe it has been solved, try latest commit
maybe it has been solved, try latest commit
When i tried latest commit, I encountered a new problem。
FAILED: /bin/bash -c "(/home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/host/linux-x86/bin/mkbootimg --kernel /home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/kernel --ramdisk /home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/ramdisk-recovery.img --cmdline \"bootopt=64S3,32N2,64N2 buildvariant=eng\" --base 0x40078000 --pagesize 2048 --os_version 16.1.0 --os_patch_level 2099-12-31 --ramdisk_offset 0x03f88000 --tags_offset 0x0df88000 --output /home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/recovery.img --id > /home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/recovery.id ) && (size=\$(for i in /home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/recovery.img; do stat --format \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \" /home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/recovery.img\" | tr \" \" +); img_blocksize=135168; twoblocks=\$((img_blocksize * 2)); onepct=\$(((((11725824 / 100) - 1) / img_blocksize + 1) * img_blocksize)); reserve=\$((twoblocks > onepct ? twoblocks : onepct)); maxsize=\$((11725824 - reserve)); echo \"\$printname maxsize=\$maxsize blocksize=\$img_blocksize total=\$total reserve=\$reserve\"; if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > [11725824 - \$reserve])\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
+/home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/recovery.img maxsize=11455488 blocksize=135168 total=17129472 reserve=270336
error: +/home/runner/work/Action-TWRP-builder/Action-TWRP-builder/workspace/out/target/product/len6737m_65_sh_n/recovery.img too large (17129472 > [11725824 - 270336])
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:158: ninja_wrapper] Error 1
Error: Process completed with exit code 2.
The last step o(╥﹏╥)o logs_7.zip
recovery.img too large (17129472 > [11725824 - 270336])
increase the size of the partition
recovery.img too large (17129472 > [11725824 - 270336])
increase the size of the partition
I tried tweaking the size of the recovery in the BoardConfig.mk file in my device tree, and finally managed to compile successfully. Thanks a lot for your help!
but it seems like I'am facing a new issue where the compiled recovery image is larger than the original one, causing flashing failures. Is there a way to reduce the size of the compiled image? It seems like a simpler solution compared to expanding the recovery partition.
当我在尝试使用Actions编译我的recovery的时候我出现了下面的错误:
我尝试使用python的不同版本来编译,都已失败告终。最后一次使用的是python3.8. 我不明白这是什么样的错误,请帮帮我。附件是完整的log logs_6.zip