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

resources: Add scripts to make npb image for riscv #59

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from

Conversation

Harshil2107
Copy link
Contributor

This PR adds scripts to make the npb disk image for the RISC-V isa.

  • This PR also moves the hooks.c file as the riscv image will need a non address version of the m5 exit events.

@erin-le erin-le self-requested a review October 14, 2024 20:50
Copy link
Contributor

@powerjg powerjg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@erin-le erin-le left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried building this on Amarillo and encountered a timeout after an hour. The following error message may be relevant:

2024/10/15 13:31:12 packer-plugin-qemu_v1.1.0_x5.0_linux_arm64 plugin: 2024/10/15 13:31:12 Started Qemu. Pid: 2279202                                                  
2024/10/15 13:31:12 packer-plugin-qemu_v1.1.0_x5.0_linux_arm64 plugin: 2024/10/15 13:31:12 Qemu stderr: [W][94655.775624] pw.conf      | [          conf.c: 1031 try_lo
ad_conf()] can't load config client.conf: No such file or directory                
2024/10/15 13:31:12 packer-plugin-qemu_v1.1.0_x5.0_linux_arm64 plugin: 2024/10/15 13:31:12 Qemu stderr: [E][94655.775730] pw.conf      | [          conf.c: 1060 pw_con
f_load_conf_for_context()] can't load config client.conf: No such file or directory
==> qemu.initialize: Waiting 10s for boot...                                       

I also tried building a RISCV GAPBS disk image that had successfully built in the past, but encountered the same error message and timeout. This may indicate that the timeout is due to updating to Ubuntu 24.04 on the host machine.

@Harshil2107
Copy link
Contributor Author

I tried building this on Amarillo and encountered a timeout after an hour. The following error message may be relevant:

2024/10/15 13:31:12 packer-plugin-qemu_v1.1.0_x5.0_linux_arm64 plugin: 2024/10/15 13:31:12 Started Qemu. Pid: 2279202                                                  
2024/10/15 13:31:12 packer-plugin-qemu_v1.1.0_x5.0_linux_arm64 plugin: 2024/10/15 13:31:12 Qemu stderr: [W][94655.775624] pw.conf      | [          conf.c: 1031 try_lo
ad_conf()] can't load config client.conf: No such file or directory                
2024/10/15 13:31:12 packer-plugin-qemu_v1.1.0_x5.0_linux_arm64 plugin: 2024/10/15 13:31:12 Qemu stderr: [E][94655.775730] pw.conf      | [          conf.c: 1060 pw_con
f_load_conf_for_context()] can't load config client.conf: No such file or directory
==> qemu.initialize: Waiting 10s for boot...                                       

I also tried building a RISCV GAPBS disk image that had successfully built in the past, but encountered the same error message and timeout. This may indicate that the timeout is due to updating to Ubuntu 24.04 on the host machine.

It looks like for some reason the pipewire audio drivers need to be installed and enabled to have the qemu vm set up. I have added a dockerfile that setup an ubuntu 24.04 environment and gets all the dependencies required to build the riscv image.

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