Bug#989020: linux-image-5.9.0-5-sh7751r entirely fails to boot in qemu-system-sh4
Package: src:linux
Version: 5.9.15-1
Severity: normal
X-Debbugs-Cc: rincebrain@gmail.com
Dear Maintainer,
On a lark, I decided to try and get a sh4 boot environment running. So I
tried downloading the oldest (2019-11-21, with vmlinuz-4.19.0-5-sh7751r)
and newest (2021-04-17, with vmlinuz-5.9.0-5-sh7751r) debian-installer
tarballs, and they both did the same thing in qemu - no serial output, no
graphical output.
So I found https://people.debian.org/~aurel32/qemu/sh4/, and tried booting
that kernel and initrd with my qemu command, and that worked fine.
So next I tried a debootstrap --arch=sh4 sh4_chroot, chrooted in, installed
the kernel (linux-image-5.9.0-5-sh7751r), generated an initrd, partitioned
the disk image file I made before, mkfs.ext4, rsync -avx everything over,
try booting with the kernel+initrd from the chroot...same result.
The qemu line I used is:
qemu-system-sh4 -M r2d -serial null -serial mon:stdio -m 1024 -usb -usbdevice keyboard -kernel sh4_chroot/boot/vmlinuz-5.9.0-5-sh7751r -initrd sh4_chroot/boot/initrd.img-5.9.0-5-sh7751r -drive file=sh4_disk,format=raw -append "root=/dev/sda1 console=tty0 noiotrap" -vnc :30
The qemu version is 5.2+dfsg-9~bpo10+1.
It's certainly possible that I could be holding it wrong, and something has
changed between 2.6.32 and 4.19.0 that means I need a different command line,
but I'm kind of surprised if the same command doesn't at least produce
_some_ output, and unsurprisingly it's quite difficult to find documentation
on how to do this properly.
- Rich
-- Package-specific info:
** Kernel log: boot messages should be attached
-- System Information:
Debian Release: 11.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: sh4
Kernel: Linux 4.19.0-16-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Versions of packages linux-image-5.9.0-5-sh7751r depends on:
ii initramfs-tools [linux-initramfs-tool] 0.140
ii kmod 28-1
ii linux-base 4.6
Versions of packages linux-image-5.9.0-5-sh7751r recommends:
ii apparmor 2.13.6-10
ii firmware-linux-free 20200122-1
Versions of packages linux-image-5.9.0-5-sh7751r suggests:
pn debian-kernel-handbook <none>
pn linux-doc-5.9 <none>
Versions of packages linux-image-5.9.0-5-sh7751r is related to:
pn firmware-amd-graphics <none>
pn firmware-atheros <none>
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-brcm80211 <none>
pn firmware-cavium <none>
pn firmware-intel-sound <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
pn firmware-iwlwifi <none>
pn firmware-libertas <none>
pn firmware-linux-nonfree <none>
pn firmware-misc-nonfree <none>
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
pn firmware-realtek <none>
pn firmware-samsung <none>
pn firmware-siano <none>
pn firmware-ti-connectivity <none>
pn xen-hypervisor <none>
Reply to: