NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.39k stars 13.61k forks source link

uboot: 2023.07.02 -> 2024.01 bad instruction when run with qemu #309137

Open TravisWhitaker opened 4 months ago

TravisWhitaker commented 4 months ago

The commit cdc6e3f3b59d77027371a8c2c43e24b7ac0b9e80 seems to build a ubootQemuAarch64 that uses an illegal instruction sequence when doing XHCI enumeration, see https://gitlab.com/qemu-project/qemu/-/issues/2312#note_1888152804

I'm still working out whether this is a problem with u-boot or its linker script; the problem doesn't seem to be due to anything Nixpkgs is doing as far as I can tell though.

TravisWhitaker commented 4 months ago

This problem doesn't exist in u-boot 2023.10.

flokli commented 4 months ago

@TravisWhitaker can you bisect and take this to the U-Boot mailing list, and link here? Doesn't seem to be a nixpkgs-specific issue.

TravisWhitaker commented 4 months ago

Yes this will need to be fixed upstream in u-boot, but the fact that is NixOS-specific is that 23.11's ubootQemuAarch64 works with XHCI and master's/presumably 24.05's will not (so finding this issue might wind up helping someone out).