Skip to content

Update Linux images #580

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

Open
Timmmm opened this issue Oct 7, 2024 · 1 comment · May be fixed by #889
Open

Update Linux images #580

Timmmm opened this issue Oct 7, 2024 · 1 comment · May be fixed by #889

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.

Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 26, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Co-authored-by: Tim Hutt <tdhutt@gmail.com>
@Arielfoever Arielfoever linked a pull request Apr 26, 2025 that will close this issue
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 26, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Co-authored-by: Tim Hutt <tdhutt@gmail.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 26, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Co-authored-by: Tim Hutt <tdhutt@gmail.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 27, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 27, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 29, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Arielfoever added a commit to Arielfoever/sail-riscv that referenced this issue Apr 30, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
Timmmm pushed a commit to Arielfoever/sail-riscv that referenced this issue May 1, 2025
  Fix riscv#580

Signed-off-by: Ariel Xiong <ArielHeleneto@outlook.com>
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 a pull request may close this issue.

1 participant