Re: hppa64 Linux in QEMU

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

 



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





[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux