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

Boot from NVMe is broken with "upstream" u-boot and "upstream" kernel #72

Closed
misuzu opened this issue Aug 8, 2023 · 1 comment
Closed

Comments

@misuzu
Copy link

misuzu commented Aug 8, 2023

Here is my setup:

The problem:

I have my EFI partition on an SD card and the root ext4 filesystem on an NVMe drive. This setup works fine, the u-boot loads systemd-boot, it then loads the kernel, it does its thing, mounts root filesystem and starts systemd.

But, if I copy my EFI partition to an NVMe drive and eject the SD card or just run pci enum and then boot in u-boot, the Linux kernel won't be able to initialize NVMe.

tl;dr - initialize NVMe drive in the u-boot - kernel won't find it, don't initialize NVMe drive in the u-boot - everything fine.

Here are the logs:
efi_on_sdcard.log (working)

efi_on_nvme.log (fails)

sdcard-to-nvme_cut_diff.txt (the difference between the two, minus time)

The OS image and the u-boot files for testing can be found here.

@misuzu
Copy link
Author

misuzu commented Aug 16, 2023

Looks like the issue is gone with starfive-tech/linux@67e8df0 and misuzu/u-boot@0850e3a

@misuzu misuzu closed this as completed Aug 16, 2023
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

No branches or pull requests

1 participant