Skip to content

[Bug]: Creatng abl kernel boot image fails with ModuleNotFoundError: No module named 'gki' #9726

@hmsjy2017

Description

@hmsjy2017

What happened?

When creating abl kernel boot image, it' build failed with:

  [🐳|🌱] Creatng abl kernel boot image with dtb qcs8250-dg-svr-865-tiny and cmdline clk_ignore_unused pd_ignore_unused loglevel=8 panic=30 audit=0 allow_mismatched_32bit_el0 mem_sleep_default=s2idle console=tty0 earlycon=qcom_geni,0xa90000 console=ttyMSM0,115200n8 pcie_pme=nomsi root=UUID=a928667b-e0ea-474b-9f76-24e0f9046fa2 slot_suffix=_b   [ image-output-abl ]
  Traceback (most recent call last):
    File "/usr/bin/mkbootimg", line 31, in <module>
      from gki.generate_gki_certificate import generate_gki_certificate
  ModuleNotFoundError: No module named 'gki'
  [🐳|💥] Error 1 occurred in main shell [ at /armbian/extensions/image-output-abl.sh:47
     post_build_image__900_convert_to_abl_img() --> extensions/image-output-abl.sh:47
                 post_build_image() --> <extension_magic>:225
            call_extension_method() --> lib/functions/general/extensions.sh:67
     create_image_from_sdcard_rootfs() --> lib/functions/image/rootfs-to-image.sh:145
                  do_with_logging() --> lib/functions/logging/section-logging.sh:81
           build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:104
     full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36
            do_with_default_build() --> lib/functions/main/default-build.sh:42
           cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
          armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                   cli_entrypoint() --> lib/functions/cli/entrypoint.sh:208
                             main() --> compile.sh:50
   ]
  Error:  Error 1 occurred in main shell at /armbian/extensions/image-output-abl.sh:47
     post_build_image__900_convert_to_abl_img() --> extensions/image-output-abl.sh:47
                 post_build_image() --> <extension_magic>:225
            call_extension_method() --> lib/functions/general/extensions.sh:67
     create_image_from_sdcard_rootfs() --> lib/functions/image/rootfs-to-image.sh:145
                  do_with_logging() --> lib/functions/logging/section-logging.sh:81
           build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:104
     full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36
            do_with_default_build() --> lib/functions/main/default-build.sh:42
           cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
          armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                   cli_entrypoint() --> lib/functions/cli/entrypoint.sh:208
                             main() --> compile.sh:50
  
  [🐳|💥] Cleaning up [ please wait for cleanups to finish ]
  rm: skipping '/armbian/.tmp/image-cf3df84f-3e45-49a3-a26a-80077674d96e/rootfs-new', since it's on a different device
  [🐳|💥] Cleanup handler failed, this is a severe bug in the build system or extensions [ trap_handler_cleanup_destimg ]
  Error:  Cleanup handler failed, this is a severe bug in the build system or extensions trap_handler_cleanup_destimg

It seems that the build system cannot find python module gki. And discussions about it are as follows:
https://bugs.launchpad.net/ubuntu/+source/android-platform-tools/+bug/2058228
nmeum/android-tools#76

How to reproduce?

https://github.com/hmsjy2017/dg-srv-865-tiny-armbian/actions/runs/24946941520/workflow

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

https://paste.armbian.com/xoyekiteho

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working as it should

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions