Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: U-boot build error if you change the version for a specific board. #7209

Closed
1 of 2 tasks
The-going opened this issue Sep 11, 2024 · 6 comments
Closed
1 of 2 tasks
Labels
Bug Something isn't working as it should

Comments

@The-going
Copy link
Contributor

The-going commented Sep 11, 2024

What happened?

I want to change the u-boot version only for the bananapim3 board, but I get this error.

[🌱] artifact [ uboot :: uboot() ]
[🌱] Common settings for Armbian OS images [ setting default values ]
[🌱] Skip     cmdline param [ 'PREFER_DOCKER': already set to 'no' after config 'config-test.conf' ]
[🌱] Skip     cmdline param [ 'ARMBIAN_RELAUNCHED': already set to 'yes' after config 'config-test.conf' ]
[🌱] Skip     cmdline param [ 'SET_OWNER_TO_UID': already set to '1000' after config 'config-test.conf' ]
[🌱] Starting single build process [ bananapim3 ]
[🌱] Checking [ basic host setup ]
[🌱] Build host OS release [ jammy ]
[🌱] Build host architecture [ amd64 ]
[🌱] Sourcing board configuration [ /home/leo/build/config/boards/bananapim3.csc ]
[✅] change-tracking: after sourcing board file config/boards/bananapim3.csc [ BOARDFAMILY='sun8i' ]
[✅] change-tracking: after sourcing board file config/boards/bananapim3.csc [ BOOTBRANCH='tag:v2024.07' ]
[✅] change-tracking: after sourcing board file config/boards/bananapim3.csc [ BOOTPATCHDIR='v2024.07' ]
[✅] change-tracking: after sourcing board file config/boards/bananapim3.csc [ BOOTCONFIG='Sinovoip_BPI_M3_defconfig' ]
[✅] change-tracking: after defaulting LINUXFAMILY to BOARDFAMILY [ LINUXFAMILY='sun8i' ]
[🌱] Starting main configuration
[🌱] Using REVISION from [ main VERSION file: '24.11.0-trunk' ]
[🌱] Sourcing family configuration [ /home/leo/build/config/sources/families/sun8i.conf ]
[🌿] Enabling extension [ sunxi-tools ]
[💥] Error 1 occurred in main shell [ at /home/leo/build/lib/functions/configuration/main-config.sh:538
   source_family_config_and_arch() --> lib/functions/configuration/main-config.sh:538
          do_main_configuration() --> lib/functions/configuration/main-config.sh:281
                do_with_logging() --> lib/functions/logging/section-logging.sh:81
    do_with_conditional_logging() --> lib/functions/logging/section-logging.sh:111
      prep_conf_main_minimal_ni() --> lib/functions/main/config-prepare.sh:72
   artifact_uboot_cli_adapter_config_prep() --> lib/functions/artifacts/artifact-uboot.sh:197
   artifact_cli_adapter_config_prep() --> lib/functions/artifacts/artifacts-obtain.sh:34
               cli_artifact_run() --> lib/functions/cli/cli-artifact.sh:36
        armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176
                           main() --> compile.sh:50

What's wrong?

How to reproduce?

diff --git a/config/boards/bananapim3.csc b/config/boards/bananapim3.csc
index 1dbf5f93..32142932 100644
--- a/config/boards/bananapim3.csc
+++ b/config/boards/bananapim3.csc
@@ -6,3 +6,9 @@ BOOTCONFIG="Sinovoip_BPI_M3_defconfig"
 OVERLAY_PREFIX="sun8i-a83t"
 KERNEL_TARGET="legacy,current,edge"
 KERNEL_TEST_TARGET="current"
+
+BOOTBRANCH="tag:v2024.07"
+BOOTPATCHDIR="v2024.07"

./compile.sh uboot

Branch

main (main development branch)

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

Ubuntu 22.04 Jammy

Are you building on Windows WSL2?

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

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@The-going The-going added the Bug Something isn't working as it should label Sep 11, 2024
Copy link

Jira ticket: AR-2488

@The-going
Copy link
Contributor Author

Lacking proper logs.

The whole magazine is in the first post. There is also information in the log files.

@The-going
Copy link
Contributor Author

Oh my God! It sounds like nonsense.
Before starting the compilation, I updated the OS (ubuntu 22.04) and these were Python updates.
And I get this error.

The same thing, but in VM (ubuntu 24.04) it works fine.

@igorpecovnik
Copy link
Member

There were some troubles related to this:
#7213
so it was reverted. If it works now, close the ticket.

@The-going
Copy link
Contributor Author

There were some troubles related to this:
#7213
so it was reverted. If it works now, close the ticket.

It's something else.
And I feel like a fool.
I look at the code and see that the error occurs when
source /home/leo/build/config/sources/families/sun8i.conf is called.
Next comes a recursive call to the source directive.
I add an echo to each called file and see that all files have been read and the variables have the correct value.

On (ubuntu 22.04; Python 3.10.12; Bash 5.1.16(1)-release ) I get this error:

[💥] Error 1 occurred in main shell [ at /home/leo/build/lib/functions/configuration/main-config.sh:538
   source_family_config_and_arch() --> lib/functions/configuration/main-config.sh:538

I canceled all my changes, but the error remained.
I deleted the entire armbian/build folder.
Then I created this folder again and initialized the git there.
I pulled my entire branch and configuration file there.

The creation of the u-boot package was completed successfully.

@The-going
Copy link
Contributor Author

@igorpecovnik
As far as I understand, some of the changes that the build system has added to its tree (the build folder) cannot be undone or rolled back in a trivial way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as it should
Development

No branches or pull requests

2 participants