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

Update Linux images #580

Open
Timmmm opened this issue Oct 7, 2024 · 1 comment
Open

Update Linux images #580

Timmmm opened this issue Oct 7, 2024 · 1 comment

Comments

@Timmmm
Copy link
Collaborator

Timmmm commented Oct 7, 2024

The Linux images in os-boot a) are very out of date, awkward to use because they require patching the model, and don't really belong there anyway.

We should

  1. Create up-to-date images and put them in another repo, probably with the ELF's attached to Github releases.
  2. Remove the images from os-boot, and replace them with instructions (or maybe a script) to use the ELFs from the other repo.

It would be really great if the images could run on all of the major emulators:

  1. Sail
  2. Spike
  3. QEMU
  4. Whisper
  5. Imperas

(I think that's it?)

@Timmmm
Copy link
Collaborator Author

Timmmm commented Oct 7, 2024

I have got Sail and Spike working, and Imperas partly working with a newer Linux (with no userspace admittedly but I don't know if that really matters). The hard bit is getting console output working on all the emulators, and how to supply the DTB.

  1. Sail and Spike support HTIF for console output. OpenSBI supports this and can expose this to Linux, so they're pretty easy. Both support supplying a DTB on the command line.
  2. Imperas doesn't support HTIF or supplying DTBs on the command line. OpenSBI can embed the DTB but I'm not sure how to get console output yet.
  3. For some reason my Linux image doesn't boot with the default Sail memory limit. Changing it to match Spike makes it work. Probably a good idea anyway.

I haven't tried QEMU or Whisper yet.

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