[Android Software Development] lilinbo:
Hello, can someone help me?

I tried to compile twrp, which prompted me to get this error

4 warnings were generated.

[12% 1964/15879] Target boot image: /media/pc/twrp/omni8_minimal/out/target/product/davinci/boot.img

Failure: /media/pc/twrp/omni8_minimal/out/target/product/davinci/boot.img

/bin/bash -c "/media/pc/twrp/omni8_minimal/out/host/linux-x86/bin/mkbootimg --kernel /media/pc/twrp/omni8_minimal/out/target/product/davinci/kernel - base 0x00000000 --pagesize 4096 --cmdline \"console=ttyMSM0,115200n8 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=0x40bmrtb,70ms,14 .filter=0x237 service_locator.enable =1 swiotlb=1 androidboot.usbcontroller=a600000.dwc3 earlycon=msm_geni_serial,0x880000 loop.max_part=7 printk.devkmsg=on androidboot.selinux=permissive configsengfvariable androidboot.usb -os_version 11 --os_patch_level 2021-12-31 --ramdisk 0x01000000 --tags_offset 0x00000100 --header_version 1 --output /media/pc/twrp/omni8_minimal/out/target/product/davinci/boot.

Usage: mkbootimg [-h] --kernel kernel [--ramdisk RAMDISK] [--second SECOND]

[--cmdline CMDLINE] [--base basis]

[--kernel_offset KERNEL_OFFSET]

[--ramdisk_offset RAMDISK_OFFSET]

[--second_offset SECOND_OFFSET] [--os_version OS_VERSION]

[--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET]

[--Board]

[--pagesize {2048,4096,8192,16384,32768,65536,131072}] [--id]

[--dt DT] -o output

mkbootimg: error: unrecognized parameter: --header_version 1

[12% 1969/15879] Target C++: libhealthd_minui <= system/core/healthd/minui/resources.cpp

Ninja: Build stopped: subcommand failed.

00:13:01 Ninja failure: exit status 1

#### Unable to build some goals (03:03 (mm:ss)) ####

你好，有人可以帮我吗？

我试图编译 twrp，这提示我出现此错误

生成了 4 个警告。

[ 12% 1964/15879] 目标启动镜像：/media/pc/twrp/omni8_minimal/out/target/product/davinci/boot.img

失败：/media/pc/twrp/omni8_minimal/out/target/product/davinci/boot.img

/bin/bash -c "/media/pc/twrp/omni8_minimal/out/host/linux-x86/bin/mkbootimg --kernel /media/pc/twrp/omni8_minimal/out/target/product/davinci/kernel -- base 0x00000000 --pagesize 4096 --cmdline \"console=ttyMSM0,115200n8 androidboot.hardware=qcom androidboot.console=ttyMSM0 androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=0x40bmrtb,70ms,14 .filter=0x237 service_locator.enable=1 swiotlb=1 androidboot.usbcontroller=a600000.dwc3 earlycon=msm_geni_serial,0x880000 loop.max_part=7 printk.devkmsg=on androidboot.selinux=permissive configsengfvariable androidboot.usb -os_version 11 --os_patch_level 2021-12-31 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --header_version 1 --output /media/pc/twrp/omni8_minimal/out/target/product/davinci/boot.

用法：mkbootimg [-h] --kernel 内核 [--ramdisk RAMDISK] [--second SECOND]

[--cmdline CMDLINE] [--base 基础]

[--kernel_offset KERNEL_OFFSET]

[--ramdisk_offset RAMDISK_OFFSET]

[--second_offset SECOND_OFFSET] [--os_version OS_VERSION]

[--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET]

[--板板]

[--pagesize {2048,4096,8192,16384,32768,65536,131072}] [--id]

[--dt DT] -o 输出

mkbootimg：错误：无法识别的参数：--header_version 1

[ 12% 1969/15879] 目标 C++：libhealthd_minui <= system/core/healthd/minui/resources.cpp

忍者：构建停止：子命令失败。

00:13:01 忍者失败：退出状态 1

#### 无法构建一些目标 (03:03 (mm:ss)) ####