[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1098731: marked as done (debian-installer: riscv64: Installer crashes with load access fault trap on VisualFive2 board)



Your message dated Thu, 27 Feb 2025 16:24:14 +0000
with message-id <[🔎] Z8CRrk3uqbVpxoCS@molly.nomadium.net>
and subject line Re: debian-installer: riscv64: Installer crashes with load access fault trap on VisualFive2 board
has caused the Debian Bug report #1098731,
regarding debian-installer: riscv64: Installer crashes with load access fault trap on VisualFive2 board
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1098731: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098731
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: debian-installer
Severity: normal
Tags: d-i

Hi folks,

I tried to test d-i trixie alpha 1 release and latest weekly build (2025/02/17)
[1] on RISC-V hardware but it's not working for me. I'm using a VisualFive 2 v1.3b board, booting from a SD card.

I'm not sure if I'm missing something obvious in the documentation but after
grub boots and tries to load the Linux kernel it fails with a trap, see full
error at the end.

I also didn't find anything related to RISC-V on the errata [2].

It crashes with the same error if I let the board boot through u-boot autoboot
or if I interrupt it and gave the following commands:


fatload mmc 1:2 ${kernel_addr_r} efi/boot/bootriscv64.efi
fatload mmc 1:2 ${fdt_addr_r} dtb/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
bootefi ${kernel_addr_r} ${fdt_addr_r}

As reference, I could install debian on a qemu VM virt board using the installer
without issues and I can also install and run OpenBSD current on that VF2 board.

Is this an issue on my end or did anyone could install trixie on VF2?
I know you can run Debian on this board already but I wanted to check if the
installer is also supported.

I'm happy to troubleshoot or provide more info if required.

Thanks,
Miguel.


1. https://www.debian.org/devel/debian-installer/errata
2. https://cdimage.debian.org/cdimage/weekly-builds/riscv64/iso-cd/




EFI stub: Booting Linux Kernel...
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Using DTB from configuration table
clk u5_dw_i2c_clk_core already disabled
clk u5_dw_i2c_clk_apb already disabled
sbi_trap_error: hart0: trap handler failed (error -2)
sbi_trap_error: hart0: mcause=0x0000000000000005 mtval=0x0000000040048060
sbi_trap_error: hart0: mepc=0x0000000040004cac mstatus=0x0000000200001800
sbi_trap_error: hart0: ra=0x0000000040009ee2 sp=0x0000000040047f10
sbi_trap_error: hart0: gp=0x0000000000000000 tp=0x0000000040048000
sbi_trap_error: hart0: s0=0x0000000040047f20 s1=0x0000000040048000
sbi_trap_error: hart0: a0=0x0000000040048060 a1=0x0000000000000002
sbi_trap_error: hart0: a2=0x0000000000000000 a3=0x0000000000000019
sbi_trap_error: hart0: a4=0x0000000000000001 a5=0x0000000040048060
sbi_trap_error: hart0: a6=0x00000000400480a8 a7=0x0000000000000004
sbi_trap_error: hart0: s2=0x00000000400241a8 s3=0x0000000000000000
sbi_trap_error: hart0: s4=0x0000000000000000 s5=0x0000000040029000
sbi_trap_error: hart0: s6=0x0000000040029020 s7=0x0000000000000000
sbi_trap_error: hart0: s8=0x000000000000001c s9=0x0000000040035ab0
sbi_trap_error: hart0: s10=0x0000000000000000 s11=0x0000000000000000
sbi_trap_error: hart0: t0=0x0000000000000000 t1=0x0000000000000000
sbi_trap_error: hart0: t2=0x0000000000000000 t3=0x0000000000002000
sbi_trap_error: hart0: t4=0x0000000000000000 t5=0x0000000000000000
sbi_trap_error: hart0: t6=0x0000000000000000


-- System Information:
Debian Release: 12.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-31-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
Miguel Landaeta, nomadium at debian.org
secure email with PGP 0x6E608B637D8967E9 available at http://miguel.cc/key.
"Faith means not wanting to know what is true." -- Nietzsche

--- End Message ---
--- Begin Message ---
On Sun, Feb 23, 2025 at 02:21:09PM +0000, Miguel Landaeta wrote:
> [...] 
>
> I'm not sure if I'm missing something obvious in the documentation but after
> grub boots and tries to load the Linux kernel it fails with a trap, see full
> error at the end.

This was not an issue with d-i but lack of documentation I guess.

I could start the installer successfully with the following commands in u-boot,
after googling [1] a bit:

load mmc 1:2 ${fdt_addr_r} dtb/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
fdt addr ${fdt_addr_r}; fdt rsvmem add 0x40000000 0x00001000
boot

I could install successfully trixie to a VisionFive 2 board without any issues!




1. http://forum.rvspace.org/t/visionfive-2-official-opensuse-image/2002/10

--- End Message ---

Reply to: