Skip to contentSkip to conversation

hppa64 Linux in QEMU

DISCUSSION Helge Deller 2 participants 2 messages Dec 29, 2023 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 3574571.ElGaqSPkdT@nimes

#2 lore raw
Quoted 6 lines · Bruno Haible
Quoted 1 line · Nelson H. F. Beebe

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.

Quoted 57 lines

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
...
---------------------------------------------------
Quoted 1 line

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

#3 lore raw
Quoted 7 lines
Quoted 4 lines

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