Skip to content

Add Debian RISC-V #31

Closed
Closed

Description

@benz0li

RISC-V is now an official Debian architecture: https://lists.debian.org/debian-riscv/2023/07/msg00053.html

The prebuilt is available at https://dl.b-data.ch/utm/debian-unstable-riscv64-utm4.zip

_virtual_machines/debian-riscv64.md:

---
title: Debian RISC-V
architecture: RISC-V64
memory: 1024 MiB
disk: 10 GiB
display: Console
spice_installed: false
username: debian
password: debian
screenshot: to be defined
download: to be defined
utm_link: true
---
## Notes
* Root account username/password is `root`/`password`. You should change this.
* This is a Debian image generated by the [Debian Quick Image Baker](https://people.debian.org/~gio/dqib/).
* Suite: unstable; APT source: `deb [arch=riscv64] http://deb.debian.org/debian/ unstable main`.

Activity

  1. rxhfcy commented on Nov 28, 2023

    @rxhfcy

    @benz0li drive-by comment from a random user:

    Thanks for the prebuilt image, it was very useful to me!

    However, I don't think it could be added in its current form, because apt update doesn't work without first editing random text files (because RISC-V is not a "port" anymore).

    I fixed things by editing /etc/apt/sources.list ("debian-ports" -> "debian"). I also removed the "unreleased" stuff.

    These were the old contents of /etc/apt/sources.list:

    deb [arch=riscv64] http://deb.debian.org/debian-ports unstable main
    deb [arch=riscv64] http://deb.debian.org/debian-ports unreleased main
    
    

    This is what I use now (seems to work):

    deb http://deb.debian.org/debian/ unstable main
    

    PS. After fixing sources.list, apt update && apt upgrade wanted to download I think hundreds of megabytes of updates, so that would be another reason to create a newer image.

  2. benz0li commented on Nov 28, 2023

    @benz0li
    Author

    so that would be another reason to create a newer image.

    @rxhfcy Done.

    debian-unstable-riscv64-utm4.zip now contains the image from the pipeline run on 26 November 2023 at 09:27:10 CET.

  3. benz0li commented on Feb 14, 2024

    @benz0li
    Author

    Please fix networking .

    What do you mean by that?

  4. rxhfcy commented on Feb 15, 2024

    @rxhfcy

    @benz0li could you try downloading a fresh copy of https://dl.b-data.ch/utm/debian-unstable-riscv64-utm4.zip and running it in UTM? After logging in, the network doesn't seem to work at all for some reason.

    I have no idea where the root of the problem is. Is this something you could fix?

  5. benz0li commented on Feb 16, 2024

    @benz0li
    Author

    @benz0li could you try downloading a fresh copy of https://dl.b-data.ch/utm/debian-unstable-riscv64-utm4.zip and running it in UTM? After logging in, the network doesn't seem to work at all for some reason.

    Done. Works as expected. (Sonoma 14.3.1 on arm64; UTM 4.4.4).

    I have no idea where the root of the problem is. Is this something you could fix?

    Me neither. Try changing the VMs network settings. Start with the Emulated Network Card.

  6. rxhfcy commented on Feb 16, 2024

    @rxhfcy

    Thanks for the reply, but I still couldn't get things to work. Everything used to work fine before, no idea what changed. I tested different emulated network cards but none of the ones I tried worked. I was using UTM 4.4.5 (on ARM64 14.3.1) but I also tried UTM 4.4.4 and UTM 4.3.5 (didn't help either).

    debian-unstable-riscv64-utm4.zip now contains the image from the pipeline run on 26 November 2023 at 09:27:10 CET.

    BTW if it's not a huge hassle, could you create a newer image once again? Maybe that might help?

  7. benz0li commented on Feb 16, 2024

    @benz0li
    Author

    Everything used to work fine before, no idea what changed.

    Sometimes I encounter network problems, too. The only thing that helps is rebooting the machine.

  8. rxhfcy commented on Feb 16, 2024

    @rxhfcy

    Unfortunately rebooting doesn't help for me.

  9. ksbjr commented on Feb 16, 2024

    @ksbjr

    ok found the fix. you have to download the newer img here new img rename file to .zip and then unpack it. go into utm and on the riscv vm delete the virtual driv. and then add a new vitrual drive and select the qcow2 img. Next you have to change networking in the vm to bridged, boot the img and login root/root and edit /etc/network/interface file and change the ip to match your network. seems dhcp is not in these images. once you do this reboot. then relogin and dpkg-reconfigure tzdata and set your time zone. then use date to set your time. then you can apt update. DO NOT DELETER THE KERNEL UNDER DRIVES ! this has the uboot and opensbi on it. leave it alone

  10. benz0li commented on Feb 17, 2024

    @benz0li
    Author

    BTW if it's not a huge hassle, could you create a newer image once again?

    Done.


    The network configuration remains unchanged for my images, i.e.

    • Network Mode: Emulated VLAN
    • Emulated Network Card: virtio-net-pci
  11. benz0li commented on Feb 17, 2024

    @benz0li
    Author

    P.S.: Use virt-customize from libguestfs to access and modify virtual machine (VM) disk images.

  12. TimTheBig commented on May 8, 2024

    @TimTheBig

    At boot I get "Failed to connect to bus: No such file or directory" useing @ksbjr's method.
    Then I get "Failed to start networking.service - Raise network interfaces."

  13. benz0li commented on Aug 26, 2024

    @benz0li
    Author

    Closing due to lack of interest.

  14. benz0li commented on Jan 29, 2025

    @benz0li
    Author

    what is the defualt login ?

    See #31 (comment)

  15. rxhfcy commented on Feb 2, 2025

    @rxhfcy

    @benz0li
    Would you consider updating the image again, and switching it to Debian 13 (trixie)? Trixie feels far less intimidating than "unstable".

    I believe trixie will have RISC-V support and is set to become the new official stable release pretty soon, hopefully around mid-year.

    P.S. UTM 4.6.x seems to have fixed the previous networking problems. I don't think there was anything wrong with your image (possibly a QEMU issue)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions