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

fdtoverlay: provide better error message for missing /__symbols__ #153

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

Amjad50
Copy link
Contributor

@Amjad50 Amjad50 commented Oct 28, 2024

This was added because trying to apply overlay on dtb without knowing a lot about the subject can be frustrating with strange error messages.

Before this, it will tell you:
Failed to apply 'overlay.dtbo': FDT_ERR_BADOFFSET

Which doesn't explain much if you don't know.

This new message is similar to what's shown in u-boot when trying to apply overlay.

Reason for this is that it took me a while to debug this and understand it was an issue with /__symbols__, and got that from u-boot, hopefully it will make debugging life easier for future people with similar issue.

@Amjad50 Amjad50 force-pushed the better_error_message_missing_symbols branch from 30c96b3 to 56739a2 Compare October 28, 2024 04:03
This was added because trying to apply overlay on dtb without knowing a lot
about the subject can be frustrating with strange error messages.

Before this, it will tell you:
`Failed to apply 'overlay.dtbo': FDT_ERR_BADOFFSET`

This message is similar to what's shown in `u-boot` when
trying to apply overlay

Signed-off-by: Amjad Alsharafi <[email protected]>
@Amjad50 Amjad50 force-pushed the better_error_message_missing_symbols branch from 56739a2 to d798a3f Compare October 28, 2024 04:05
@dgibson dgibson merged commit 838f11e into dgibson:main Oct 30, 2024
12 checks passed
@dgibson
Copy link
Owner

dgibson commented Oct 30, 2024

LGTM, merged.

@Amjad50 Amjad50 deleted the better_error_message_missing_symbols branch October 30, 2024 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants