Skip to content

Conversation

idootop
Copy link
Contributor

@idootop idootop commented Apr 18, 2025

Problem

On older macOS versions (e.g., macOS 11), uname -o is unsupported (BSD uname lacks this GNU option). This causes host OS detection to fail.

Additionally, the flash script inconsistently uses uname -o on Ubuntu, even though uname -s is the more reliable method across platforms.

Relative issue:

图片

Solution

  • ​​macOS​​: Fall back to uname -s (outputs Darwin) when -o is unavailable.
  • Ubuntu​​: Standardize on uname -s (outputs Linux) instead of uname -o (GNU/Linux) for consistency.
图片

@idootop
Copy link
Contributor Author

idootop commented Apr 18, 2025

@numbqq cc

@viraniac
Copy link
Contributor

viraniac commented Apr 25, 2025

Additionally, the flash script inconsistently uses uname -o on Ubuntu, even though uname -s is the more reliable method across platforms.

Thanks for catching this. When I made the change, I did try to verify that I am getting the correct output, but in the hurry I used a alpine container to check uname -o and it did gave Linux as output. However I see now uname -o output is not consistent across different distributions

@numbqq numbqq merged commit d887085 into khadas:master Apr 26, 2025
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.

3 participants