public inbox for linux-parisc@vger.kernel.org
 help / color / mirror / Atom feed
* Re: hppa64 Linux in QEMU
       [not found] ` <3574571.ElGaqSPkdT@nimes>
@ 2023-12-29 16:53   ` Helge Deller
  2023-12-29 18:02     ` Bruno Haible
  0 siblings, 1 reply; 2+ messages in thread
From: Helge Deller @ 2023-12-29 16:53 UTC (permalink / raw)
  To: Bruno Haible, Nelson H. F. Beebe; +Cc: René Rebe, linux-parisc

On 12/29/23 17:15, Bruno Haible wrote:
> Nelson H. F. Beebe wrote:
>> I'm going to look at building a VM for the 64-bit variant.
>
> I tried it, but couldn't complete the installation.
>
> The only Linux distro with HPPA64 binaries that I know of

Debian and Gentoo can install a 64-bit kernel as well.
The userspace binaries are 32-bit on ALL distributions, since
we don't have a 64-bit glibc yet.

> I don't want to build everything myself — is T2-SDE. Here's what I tried:
>
> Download: http://dl.t2sde.org/binary/2023/t2-23.12-hppa64-minimal-firefox-gcc-glibc.iso
>
> Use qemu-8.2.0 (because it support 64-bit CPUs)
> % PATH=$HOME/inst-qemu/8.2.0/bin:$PATH
>
>
> Create empty disk:
> % qemu-img create -f qcow2 t2sde.qcow2 10G
>
> Pull kernel and initrd out of the installation CD:
> % sudo mount -r -t iso9660 -o loop t2-23.12-hppa64-minimal-firefox-gcc-glibc.iso /mnt
> % mkdir boot
> % cp -a /mnt/boot/* boot/
> % sudo umount /mnt
>
>
> Run installer:
> Doc says: Start 64-bit machine with "-machine C3700" and 32-bit CPU with "-machine B160L"
> % machine_args="-M C3700 -m 256"
> % disk_args="-drive file=t2sde.qcow2,format=qcow2,id=hd0"
> % net_args=""
> % display_args="-nographic"
> % common_args="$machine_args $disk_args $net_args $display_args"
> % qemu-system-hppa $common_args \
>      -kernel boot/vmlinux-6.6.7-t2 -initrd boot/initrd-6.6.7-t2 \
>      -drive file=t2-23.12-hppa64-minimal-firefox-gcc-glibc.iso,if=scsi,bus=0,unit=2,media=cdrom
>
> Serial terminal: <Enter> or console
> # install
> Partition:
>    fdisk
>    n p 1 <Enter> <Enter>
>    w
> On /dev/sda1: Create filesystem of type ext3 [why not ext4?] with mount point /
> --------------------------------------------------- HERE it hangs
> handle_break: 2921306 callbacks suppressed
> handle_break: 2923362 callbacks suppressed
> handle_break: 2919859 callbacks suppressed
> handle_break: 2944852 callbacks suppressed
> handle_break: 2933621 callbacks suppressed
> handle_break: 2948476 callbacks suppressed
> handle_break: 2952380 callbacks suppressed
> handle_break: 2869013 callbacks suppressed
> handle_break: 2800234 callbacks suppressed
> handle_break: 2908121 callbacks suppressed
> handle_break: 2825626 callbacks suppressed
> handle_break: 2899328 callbacks suppressed
> handle_break: 2916401 callbacks suppressed
> handle_break: 2886012 callbacks suppressed
> handle_break: 2942498 callbacks suppressed
> handle_break: 2925950 callbacks suppressed
> handle_break: 2923203 callbacks suppressed
> ...
> ---------------------------------------------------
>
> Any ideas, what one could try, to get further?

There still seems a problem in qemu when running a 64-bit kernel.
This shows up when kernel modules are used, esp. e.g. with ext4.

As a work-around for now I suggest to use the 32-bit kernel and do the
installation. Then, after installation, install a 64-bit kernel
(a manually built one which does not use kernel modules) and boot
that one.

Beside that, at least Debian will install a 32-bit kernel by default
since the SeaBIOS-hppa firmware is still 32-bit only and will report
back to the installers to "install a 32-bit kernel".
This will change as soon as I can come up with a 64-bit SeaBIOS-hppa,
but currently I'll try to focus on fixing the 64-bit kernel (modules)
issue and fixing booting 32-bit HP-UX.

Helge

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hppa64 Linux in QEMU
  2023-12-29 16:53   ` hppa64 Linux in QEMU Helge Deller
@ 2023-12-29 18:02     ` Bruno Haible
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2023-12-29 18:02 UTC (permalink / raw)
  To: Nelson H. F. Beebe, Helge Deller; +Cc: René Rebe, linux-parisc

> > handle_break: 2925950 callbacks suppressed
> > handle_break: 2923203 callbacks suppressed
> > ...
> > ---------------------------------------------------
> 
> There still seems a problem in qemu when running a 64-bit kernel.
> This shows up when kernel modules are used, esp. e.g. with ext4.

I see; thanks for explaining.

Bruno




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-29 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CMM.0.95.0.1703805969.beebe@gamma.math.utah.edu>
     [not found] ` <3574571.ElGaqSPkdT@nimes>
2023-12-29 16:53   ` hppa64 Linux in QEMU Helge Deller
2023-12-29 18:02     ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox