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 trying to load overlays from the wrong location (and failed) #7551

Closed
1 of 2 tasks
chemwolf6922 opened this issue Dec 8, 2024 · 7 comments
Closed
1 of 2 tasks
Labels
Bug Something isn't working as it should Good first issue Feel free to contribute :)

Comments

@chemwolf6922
Copy link

What happened?

I'm using a 64bit board (nanopi neo 2). The overlay dtbs are located at /boot/dtb/allwinner/overlay/ as they should. But when booting, the following u-boot log was printed:

Failed to load '/boot/dtb/overlay/sun50i-h5-spi-spidev.dtbo'
Failed to load '/boot/dtb/overlay/sun50i-h5-fixup.scr'

u-boot is trying to load overlays in the 32bit system folder.

How to reproduce?

Flash a new system

Linux nanopineo2 6.6.62-current-sunxi64 #1 SMP Sun Nov 17 14:08:59 UTC 2024 aarch64 GNU/Linux
Armbian_community 25.2.0-trunk.124 Bookworm 

Enable the spi-spidev by adding the following lines to /boot/armbianEnv.txt

overlays=spi-spidev
param_spidev_spi_bus=0
param_spidev_max_freq=100000000

Reboot. Look at the u-boot log.

Branch

main (main development branch)

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

Debian 12 Bookworm

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
@chemwolf6922 chemwolf6922 added the Bug Something isn't working as it should label Dec 8, 2024
Copy link
Contributor

github-actions bot commented Dec 8, 2024

Hey @chemwolf6922 !

Looks like it's your first time interacting with Armbian here on GitHub.

Welcome and thank you for taking the time to report an issue ❤️.

Don't forget to star ⭐ the repo.

@github-actions github-actions bot added the Good first issue Feel free to contribute :) label Dec 8, 2024
Copy link
Contributor

github-actions bot commented Dec 8, 2024

Jira ticket: AR-2553

@chemwolf6922
Copy link
Author

The fdtfile u-boot env is wrong. It is set to

fdtfile=allwinner/sun50i-h5-nanopi-neo2.dtb

This will lead to a wrong fdtdir (dtb). Which will lead to the wrong overlay files:

${fdtdir}/overlay/${overlay_prefix}-${overlay_file}.dtbo

@chemwolf6922
Copy link
Author

The fdtfile u-boot env is wrong. It is set to

fdtfile=allwinner/sun50i-h5-nanopi-neo2.dtb

This will lead to a wrong fdtdir (dtb). Which will lead to the wrong overlay files:

${fdtdir}/overlay/${overlay_prefix}-${overlay_file}.dtbo

A temporary fix: Adding this line to /boot/armbianEnv.txt to override the wrong env.

fdtfile=sun50i-h5-nanopi-neo2.dtb

@chemwolf6922 chemwolf6922 changed the title [Bug]: U-boot trying to load dtb from the wrong location (and failed) [Bug]: U-boot trying to load overlays from the wrong location (and failed) Dec 8, 2024
@igorpecovnik
Copy link
Member

fix in the pr stage #7535

@The-going
Copy link
Contributor

The fdtfile u-boot env is wrong. It is set to

fdtfile=allwinner/sun50i-h5-nanopi-neo2.dtb

A temporary solution to the problem:
Please add to armbianEnv.txt file string fdtfile=sun50i-h5-nanopi-neo2.dtb
without vendor's name

I'm sorry for the inconvenience.

@chemwolf6922
Copy link
Author

Thanks for the reply. I'm happy to help. Closing this one since the fix was merged.

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 Good first issue Feel free to contribute :)
Development

No branches or pull requests

3 participants