Jump to content

[Armbian build PR] - Add opensbi compilation


RSS Bot

Recommended Posts

Description

Building for mangopi mq crashes with the following error:

   Image 'itb' is missing external blobs and is non-functional: opensbi
   
   /binman/itb/fit/images/opensbi/opensbi (fw_dynamic.bin):
      See the documentation for your board. The OpenSBI git repo is at
      https://github.com/riscv/opensbi.git
      You may need to build fw_dynamic.bin first and re-build u-boot with
      OPENSBI=/path/to/fw_dynamic.bin
   
   Some images are invalid
   make: *** [Makefile:1124: .binman_stamp] Error 103
--> (179) ERROR: Error 2 occurred in main shell [ at /armbian/lib/functions/logging/runners.sh:211
       run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211
      run_host_command_logged_long_running() --> lib/functions/logging/runners.sh:188
         do_with_ccache_statistics() --> lib/functions/compilation/ccache.sh:39
              compile_uboot_target() --> lib/functions/compilation/uboot.sh:230
      loop_over_uboot_targets_and_do() --> lib/functions/compilation/uboot.sh:287
                     compile_uboot() --> lib/functions/compilation/uboot.sh:391
                   do_with_logging() --> lib/functions/logging/section-logging.sh:81
      artifact_uboot_build_from_sources() --> lib/functions/artifacts/artifact-uboot.sh:175
       artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34
          obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280
          build_artifact_for_image() --> lib/functions/artifacts/artifacts-obtain.sh:392
       main_default_build_packages() --> lib/functions/main/build-packages.sh:108
      full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:31
             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:176
                              main() --> compile.sh:50

See, e.g., https://forum.armbian.com/topic/21465-armbian-image-and-build-support-for-risc-v/?do=findComment&comment=190008

The fix is to build OpenSBI and use it to build uboot as suggested in error message, as discussed in https://forum.rvspace.org/t/building-u-boot-from-mainline-repo/3398 for example. This PR adds OpenSBI building stage.

How Has This Been Tested?

  • [x] Built for BOARD=mangopi-m28k

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] My changes generate no new warnings

View the full article

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines