qemu

https://qiita.com/kakinaguru_zo/items/92e5a9bfdb26ffb810dc

# install qemu-user-static
```sh
tokunori@tokunori-desktop:~$ sudo apt install qemu-user-static binfmt-support 
[sudo] tokunori のパスワード: 
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了        
状態情報を読み取っています... 完了        
以下のパッケージが新たにインストールされます:
  binfmt-support qemu-user-static
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 5 個。
14.8 MB のアーカイブを取得する必要があります。
この操作後に追加で 137 MB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu noble/universe amd64 binfmt-support amd64 2.2.2-7 [56.2 kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu noble-updates/universe amd64 qemu-user-static amd64 1:8.2.2+ds-0ubuntu1.2 [14.7 MB]
14.8 MB を 6秒 で取得しました (2,301 kB/s)                                                                                                                                                                                         
以前に未選択のパッケージ binfmt-support を選択しています。
(データベースを読み込んでいます ... 現在 312430 個のファイルとディレクトリがインストールされています。)
.../binfmt-support_2.2.2-7_amd64.deb を展開する準備をしています ...
binfmt-support (2.2.2-7) を展開しています...
以前に未選択のパッケージ qemu-user-static を選択しています。
.../qemu-user-static_1%3a8.2.2+ds-0ubuntu1.2_amd64.deb を展開する準備をしています ...
qemu-user-static (1:8.2.2+ds-0ubuntu1.2) を展開しています...
qemu-user-static (1:8.2.2+ds-0ubuntu1.2) を設定しています ...
binfmt-support (2.2.2-7) を設定しています ...
update-binfmts: warning: llvm-16-runtime.binfmt already enabled in kernel.
update-binfmts: warning: python3.12 already enabled in kernel.
update-binfmts: warning: llvm-18-runtime.binfmt already enabled in kernel.
Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service → /usr/lib/systemd/system/binfmt-support.service.
man-db (2.12.0-4build2) のトリガを処理しています ...
systemd (255.4-1ubuntu8.4) のトリガを処理しています ...
```

# extract systemd-nspawn directory tree
## extract MIPS (32-bit big endian) debian
```sh
tokunori@tokunori-desktop:~$ sudo su
[sudo] tokunori のパスワード:
root@tokunori-desktop:/home/tokunori# mkdir -p /var/lib/machines
root@tokunori-desktop:/home/tokunori# cd /var/lib/machines
root@tokunori-desktop:/var/lib/machines# btrfs subvolume create mips-buster
bash: btrfs: コマンドが見つかりません
```

## extract PowerPC (64-bit big endian) debian
```sh
root@tokunori-desktop:/var/lib/machines# cat /var/tmp/ports.txt | mmdebstrap --components="main" --architectures=ppc64 --variant=apt --include=debian-ports-archive-keyring,systemd-sysv,libpam-systemd,libnss-systemd,dbus-user-session,locales,tzdata,apt-utils,whiptail,vim-tiny,bash sid ppc64-sid -
I: automatically chosen mode: root
I: ppc64 cannot be executed natively, but transparently using qemu-user binfmt emulation
I: reading sources.list from standard input...
I: automatically chosen format: directory
E: /var/lib/machines/ppc64-sid is not empty
root@tokunori-desktop:/var/lib/machines# rm -rf ppc64-sid/
root@tokunori-desktop:/var/lib/machines# cat /var/tmp/ports.txt | mmdebstrap --components="main" --architectures=ppc64 --variant=apt --include=debian-ports-archive-keyring,systemd-sysv,libpam-systemd,libnss-systemd,dbus-user-session,locales,tzdata,apt-utils,whiptail,vim-tiny,bash sid ppc64-sid -
I: automatically chosen mode: root
I: ppc64 cannot be executed natively, but transparently using qemu-user binfmt emulation
I: reading sources.list from standard input...
I: automatically chosen format: directory
W: Download is performed unsandboxed as root as file /var/lib/machines/ppc64-sid/var/lib/apt/lists/partial couldn't be accessed by user _apt
I: running apt-get update...
done
I: downloading packages with apt...
done
I: extracting archives...
done
I: installing essential packages...
done
I: installing remaining packages inside the chroot...
done
done
I: cleaning package lists and apt cache...
done
done
I: success in 274.5216 seconds
```

## start container
```sh
root@tokunori-desktop:/var/lib/machines# systemd-nspawn -M ppc64-sid -b
Spawning container ppc64-sid on /var/lib/machines/ppc64-sid.
Press Ctrl-] three times within 1s to kill container.
systemd 256.6-1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT +LIBARCHIVE)
Detected virtualization systemd-nspawn.
Detected architecture ppc64.

Welcome to Debian GNU/Linux trixie/sid!

Queued start job for default target graphical.target.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice user.slice - User and Session Slice.
[  OK  ] Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target paths.target - Path Units.
[  OK  ] Reached target remote-fs.target - Remote File Systems.
[  OK  ] Reached target slices.target - Slice Units.
[  OK  ] Reached target swap.target - Swaps.
[  OK  ] Listening on systemd-creds.socket - Credential Encryption/Decryption.
[  OK  ] Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[  OK  ] Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[  OK  ] Listening on systemd-journald.socket - Journal Sockets.
         Mounting dev-hugepages.mount - Huge Pages File System...
         Mounting run-lock.mount - Legacy Locks Directory /run/lock...
         Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
systemd-journald.service: (This warning is only shown for the first unit using IP firewalling.)
         Starting systemd-journald.service - Journal Service...
         Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
         Starting systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully...
systemd-tmpfiles-setup-dev-early.service: Failed to set up credentials: Invalid argument
systemd-tmpfiles-setup-dev-early.service: Failed at step CREDENTIALS spawning systemd-tmpfiles: Invalid argument
systemd-journald.service: Failed to set up credentials: Invalid argument
systemd-journald.service: Failed at step CREDENTIALS spawning /usr/lib/systemd/systemd-journald: Invalid argument
systemd-tmpfiles-setup-dev-early.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-tmpfiles-setup-dev-early.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-tmpfiles-setup-dev-early.service - Create Static Device Nodes in /dev gracefully.
See 'systemctl status systemd-tmpfiles-setup-dev-early.service' for details.
[  OK  ] Mounted dev-hugepages.mount - Huge Pages File System.
systemd-journald.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-journald.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journald.service - Journal Service.
See 'systemctl status systemd-journald.service' for details.
systemd-journald.service: Scheduled restart job, restart counter is at 1.
         Starting systemd-journald.service - Journal Service...
[  OK  ] Mounted run-lock.mount - Legacy Locks Directory /run/lock.
[  OK  ] Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[  OK  ] Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
         Starting systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev...
systemd-tmpfiles-setup-dev.service: Failed to set up credentials: Invalid argument
systemd-journald.service: Failed to set up credentials: Invalid argument
systemd-tmpfiles-setup-dev.service: Failed at step CREDENTIALS spawning systemd-tmpfiles: Invalid argument
systemd-journald.service: Failed at step CREDENTIALS spawning /usr/lib/systemd/systemd-journald: Invalid argument
systemd-tmpfiles-setup-dev.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-tmpfiles-setup-dev.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
See 'systemctl status systemd-tmpfiles-setup-dev.service' for details.
systemd-journald.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-journald.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journald.service - Journal Service.
See 'systemctl status systemd-journald.service' for details.
systemd-journald.service: Scheduled restart job, restart counter is at 2.
[  OK  ] Reached target local-fs-pre.target - Preparation for Local File Systems.
[  OK  ] Reached target local-fs.target - Local File Systems.
[  OK  ] Listening on systemd-sysext.socket - System Extension Image Management.
         Starting systemd-journald.service - Journal Service...
systemd-journald.service: Failed to set up credentials: Invalid argument
systemd-journald.service: Failed at step CREDENTIALS spawning /usr/lib/systemd/systemd-journald: Invalid argument
systemd-journald.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-journald.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journald.service - Journal Service.
See 'systemctl status systemd-journald.service' for details.
systemd-journald.service: Scheduled restart job, restart counter is at 3.
         Starting systemd-journald.service - Journal Service...
systemd-journald.service: Failed to set up credentials: Invalid argument
systemd-journald.service: Failed at step CREDENTIALS spawning /usr/lib/systemd/systemd-journald: Invalid argument
systemd-journald.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-journald.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journald.service - Journal Service.
See 'systemctl status systemd-journald.service' for details.
systemd-journald.service: Scheduled restart job, restart counter is at 4.
         Starting systemd-journald.service - Journal Service...
systemd-journald.service: Failed to set up credentials: Invalid argument
systemd-journald.service: Failed at step CREDENTIALS spawning /usr/lib/systemd/systemd-journald: Invalid argument
systemd-journald.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-journald.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journald.service - Journal Service.
See 'systemctl status systemd-journald.service' for details.
systemd-journald.service: Scheduled restart job, restart counter is at 5.
systemd-journald.service: Start request repeated too quickly.
systemd-journald.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journald.service - Journal Service.
See 'systemctl status systemd-journald.service' for details.
systemd-journald-dev-log.socket: Failed with result 'service-start-limit-hit'.
systemd-journald.socket: Failed with result 'service-start-limit-hit'.
         Starting systemd-journal-flush.service - Flush Journal to Persistent Storage...
systemd-journal-flush.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
systemd-journal-flush.service: Main process exited, code=exited, status=1/FAILURE
systemd-journal-flush.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-journal-flush.service - Flush Journal to Persistent Storage.
See 'systemctl status systemd-journal-flush.service' for details.
         Starting systemd-tmpfiles-setup.service - Create System Files and Directories...
systemd-tmpfiles-setup.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
systemd-tmpfiles-setup.service: Failed to set up credentials: Invalid argument
systemd-tmpfiles-setup.service: Failed at step CREDENTIALS spawning systemd-tmpfiles: Invalid argument
systemd-tmpfiles-setup.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-tmpfiles-setup.service: Failed with result 'exit-code'.
[FAILED] Failed to start systemd-tmpfiles-setup.service - Create System Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.
         Starting systemd-update-utmp.service - Record System Boot/Shutdown in UTMP...
systemd-update-utmp.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
[  OK  ] Finished systemd-update-utmp.service - Record System Boot/Shutdown in UTMP.
[  OK  ] Reached target sysinit.target - System Initialization.
[  OK  ] Started apt-daily.timer - Daily apt download activities.
[  OK  ] Started apt-daily-upgrade.timer - Daily apt upgrade and clean activities.
[  OK  ] Started dpkg-db-backup.timer - Daily dpkg database backup timer.
[  OK  ] Started systemd-tmpfiles-clean.timer - Daily Cleanup of Temporary Directories.
[  OK  ] Reached target timers.target - Timer Units.
[  OK  ] Listening on dbus.socket - D-Bus System Message Bus Socket.
[  OK  ] Listening on systemd-hostnamed.socket - Hostname Service Socket.
[  OK  ] Reached target sockets.target - Socket Units.
[  OK  ] Reached target basic.target - Basic System.
System is tainted: unmerged-bin
         Starting dbus.service - D-Bus System Message Bus...
         Starting systemd-logind.service - User Login Management...
         Starting systemd-user-sessions.service - Permit User Sessions...
dbus.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
systemd-user-sessions.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
systemd-logind.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
[  OK  ] Finished systemd-user-sessions.service - Permit User Sessions.
[  OK  ] Started console-getty.service - Console Getty.
[  OK  ] Reached target getty.target - Login Prompts.
[  OK  ] Started dbus.service - D-Bus System Message Bus.
[  OK  ] Started systemd-logind.service - User Login Management.
[  OK  ] Reached target multi-user.target - Multi-User System.
[  OK  ] Reached target graphical.target - Graphical Interface.
         Starting systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP...
systemd-update-utmp-runlevel.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
systemd-update-utmp-runlevel.service: Deactivated successfully.
[  OK  ] Finished systemd-update-utmp-runlevel.service - Record Runlevel Change in UTMP.
Startup finished in 2.116s.
console-getty.service: Failed to set up credentials: Invalid argument
console-getty.service: Failed at step CREDENTIALS spawning /sbin/agetty: Invalid argument
console-getty.service: Deactivated successfully.
console-getty.service: Scheduled restart job, restart counter is at 1.
console-getty.service: Failed to set up credentials: Invalid argument
console-getty.service: Failed at step CREDENTIALS spawning /sbin/agetty: Invalid argument
console-getty.service: Deactivated successfully.
console-getty.service: Scheduled restart job, restart counter is at 2.
console-getty.service: Failed to set up credentials: Invalid argument
console-getty.service: Failed at step CREDENTIALS spawning /sbin/agetty: Invalid argument
console-getty.service: Deactivated successfully.
console-getty.service: Scheduled restart job, restart counter is at 3.
console-getty.service: Failed to set up credentials: Invalid argument
console-getty.service: Failed at step CREDENTIALS spawning /sbin/agetty: Invalid argument
console-getty.service: Deactivated successfully.
console-getty.service: Scheduled restart job, restart counter is at 4.
console-getty.service: Failed to set up credentials: Invalid argument
console-getty.service: Failed at step CREDENTIALS spawning /sbin/agetty: Invalid argument
console-getty.service: Deactivated successfully.
console-getty.service: Scheduled restart job, restart counter is at 5.
console-getty.service: Start request repeated too quickly.
console-getty.service: Failed with result 'start-limit-hit'.
user-runtime-dir@0.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
user@0.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
Failed to make us a subreaper, ignoring: Invalid argument
Queued start job for default target default.target.
dbus.socket: Failed to connect stdout to the journal socket, ignoring: Connection refused
Startup finished in 491ms.
systemd-tmpfiles-clean.service: Failed to connect stdout to the journal socket, ignoring: Connection refused
systemd-tmpfiles-clean.service: Failed to set up credentials: Invalid argument
systemd-tmpfiles-clean.service: Failed at step CREDENTIALS spawning systemd-tmpfiles: Invalid argument
systemd-tmpfiles-clean.service: Main process exited, code=exited, status=243/CREDENTIALS
systemd-tmpfiles-clean.service: Failed with result 'exit-code'.
```

## start container shell
```sh
root@tokunori-desktop:/home/tokunori# cd /var/lib/machines/
root@tokunori-desktop:/var/lib/machines# machinectl shell ppc64-sid
Connected to machine ppc64-sid. Press ^] three times within 1s to exit session.
root@ppc64-sid:~#
```

https://www.debian.org/distrib/index.en.html

https://blog.bitmeister.jp/?p=3633

# install qemu-system-ppc
```sh
tokunori@tokunori-desktop:~$ sudo apt install qemu-system-ppc
[sudo] tokunori のパスワード: 
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています... 完了        
状態情報を読み取っています... 完了        
提案パッケージ:
  vde2
以下のパッケージが新たにインストールされます:
  qemu-system-ppc
アップグレード: 0 個、新規インストール: 1 個、削除: 0 個、保留: 5 個。
9,076 kB のアーカイブを取得する必要があります。
この操作後に追加で 36.6 MB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu noble-updates/main amd64 qemu-system-ppc amd64 1:8.2.2+ds-0ubuntu1.2 [9,076 kB]
9,076 kB を 4秒 で取得しました (2,259 kB/s)  
以前に未選択のパッケージ qemu-system-ppc を選択しています。
(データベースを読み込んでいます ... 現在 312418 個のファイルとディレクトリがインストールされています。)
.../qemu-system-ppc_1%3a8.2.2+ds-0ubuntu1.2_amd64.deb を展開する準備をしています ...
qemu-system-ppc (1:8.2.2+ds-0ubuntu1.2) を展開しています...
qemu-system-ppc (1:8.2.2+ds-0ubuntu1.2) を設定しています ...
man-db (2.12.0-4build2) のトリガを処理しています ...
```
# download debian wheezy disc image
```sh
tokunori@tokunori-desktop:~$ wget https://people.debian.org/~aurel32/qemu/powerpc/debian_wheezy_powerpc_standard.qcow2
--2024-09-16 18:02:15--  https://people.debian.org/~aurel32/qemu/powerpc/debian_wheezy_powerpc_standard.qcow2
people.debian.org (people.debian.org) をDNSに問いあわせています... 2607:f8f0:614:1::1274:67, 209.87.16.67
people.debian.org (people.debian.org)|2607:f8f0:614:1::1274:67|:443 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 279052288 (266M)
‘debian_wheezy_powerpc_standard.qcow2’ に保存中

debian_wheezy_powerpc_standard.qcow2                     100%[==================================================================================================================================>] 266.12M  3.11MB/s    in 80s     

2024-09-16 18:03:35 (3.33 MB/s) - ‘debian_wheezy_powerpc_standard.qcow2’ へ保存完了 [279052288/279052288]
```
# start vm
```sh
tokunori@tokunori-desktop:~$ sudo qemu-system-ppc -hda debian_wheezy_powerpc_standard.qcow2 -nographic
[sudo] tokunori のパスワード: 

>> =============================================================
>> OpenBIOS 1.1 [Aug 21 2024 01:53]
>> Configuration device id QEMU version 1 machine id 2
>> CPUs: 1
>> Memory: 128M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,750
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on Aug 21 2024 01:53
Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
>> Not a bootable ELF image
>> switching to new context:
Second-stage QUIK loader
Welcome to quik. mate is good.
Debian GNU/Linux PowerPCchosen/bootargs = 
boot:  
Linux
initrd imagename = /initrd.img, mem_size: 7208956
initrd_start: 
Starting at 510000, , 13041664
OF stdout device is: /pci@80000000/mac-io@10/escc@13000/ch-a@13020
Preparing to boot Linux version 3.2.0-4-powerpc (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-11) ) #1 Debian 3.2.51-1
Detected machine type: 00000400
command line: console=ttyS0,9600 console=tty0
memory layout at init:
  memory_limit : 00000000 (16 MB aligned)
  alloc_bottom : 016bb000
  alloc_top    : 08000000
  alloc_top_hi : 08000000
  rmo_top      : 08000000
  ram_top      : 08000000
found display   : /pci@80000000/QEMU,VGA@1, opening... done
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x016bc000 -> 0x016bc58a
Device tree struct  0x016bd000 -> 0x016bf000
Calling quiesce...
returning from prom_init
Hello World !
[    0.000000] Using PowerMac machine description
[    0.000000] Cannot reserve gpages without hugetlb enabled
[    0.000000] Total memory = 128MB; using 256kB for hash table (at c7fc0000)
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.2.0-4-powerpc (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-11) ) #1 Debian 3.2.51-1
[    0.000000] Found initrd at 0xc0c70000:0xc16ba1d7
[    0.000000] Found a Heathrow mac-io controller, rev: 0, mapped at 0xff780000
[    0.000000] PowerMac motherboard: PowerMac G3 (Silk)
[    0.000000] boot stdout isn't a display !
[    0.000000] bootconsole [udbg0] enabled
setup_arch: bootmem
[    0.000000] Found Grackle (MPC106) PCI host bridge at 0x0000000080000000. Firmware bus number: 0->0
[    0.000000] PCI host bridge /pci@80000000 (primary) ranges:
[    0.000000]   IO 0x00000000fe000000..0x00000000fe7fffff -> 0x0000000000000000
[    0.000000]  MEM 0x00000000fd000000..0x00000000fdffffff -> 0x0000000000000000 
[    0.000000]  MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000 
[    0.000000]  Removing ISA hole at 0x00000000fd000000
[    0.000000] nvram: OF partition at 0x1800
[    0.000000] nvram: XP partition at 0x1300
[    0.000000] nvram: NR partition at 0x1400
arch: exit
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00008000
[    0.000000]   Normal   empty
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda3 ro 
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 112000k/131072k available (5212k kernel code, 19072k reserved, 316k data, 1511k bss, 244k init)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffcf000..0xfffff000  : fixmap
[    0.000000]   * 0xff800000..0xffc00000  : highmem PTEs
[    0.000000]   * 0xfef5a000..0xff800000  : early ioremap
[    0.000000]   * 0xc9000000..0xfef5a000  : vmalloc & ioremap
[    0.000000] NR_IRQS:512
[    0.000000] irq: Found primary Apple PIC /pci@80000000/mac-io@10 for 64 irqs
[    0.000000] irq: System has 64 possible interrupts
[    0.000000] GMT Delta read from XPRAM: 0 minutes, DST: off
[    0.000000] clocksource: timebase mult[f0f6bf4] shift[22] registered
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [ttyPZ0] enabled, bootconsole disabled
[    0.000000] console [ttyPZ0] enabled, bootconsole disabled
[    0.012947] pid_max: default: 32768 minimum: 301
[    0.013533] Security Framework initialized
[    0.015003] AppArmor: AppArmor disabled by boot time parameter
[    0.015401] Mount-cache hash table entries: 512
[    0.022127] Initializing cgroup subsys cpuacct
[    0.022331] Initializing cgroup subsys memory
[    0.022777] Initializing cgroup subsys devices
[    0.023019] Initializing cgroup subsys freezer
[    0.023224] Initializing cgroup subsys net_cls
[    0.023502] Initializing cgroup subsys blkio
[    0.023761] Initializing cgroup subsys perf_event
[    0.036696] devtmpfs: initialized
[    0.043796] print_constraints: dummy: 
[    0.045337] NET: Registered protocol family 16
             
[    0.049578] PCI: Probing PCI hardware
[    0.070758] bio: create slab <bio-0> at 0
[    0.073853] vgaarb: device added: PCI:0000:00:01.0,decodes=io+mem,owns=io+mem,locks=none
[    0.074127] vgaarb: loaded
[    0.074287] vgaarb: bridge control possible 0000:00:01.0
[    0.075395] SCSI subsystem initialized
[    0.080092] Switching to clocksource timebase
[    0.107074] NET: Registered protocol family 2
[    0.109342] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.112839] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.113284] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.113694] TCP: Hash tables configured (established 4096 bind 4096)
[    0.114013] TCP reno registered
[    0.114197] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.114535] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.115980] NET: Registered protocol family 1
[    0.119811] Unpacking initramfs...
[    0.619124] Freeing initrd memory: 10540k freed
[    0.621107] Thermal assist unit using timers, shrink_timer: 500 jiffies
[    0.624513] audit: initializing netlink socket (disabled)
[    0.625202] type=2000 audit(1726477490.616:1): initialized
[    0.654083] VFS: Disk quotas dquot_6.5.2
[    0.654346] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.655733] msgmni has been set to 241
[    0.662137] alg: No test for stdrng (krng)
[    0.662503] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.662901] io scheduler noop registered
[    0.663058] io scheduler deadline registered
[    0.663283] io scheduler cfq registered (default)
[    0.665815] Using unsupported 800x600 QEMU,VGA at 80000000, depth=32, pitch=3200
[    0.675417] Console: switching to colour frame buffer device 100x37
[    0.679237] fb0: Open Firmware frame buffer device on /pci@80000000/QEMU,VGA@1
[    0.679978] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.681687] pmac_zilog: 0.6 (Benjamin Herrenschmidt <benh@kernel.crashing.org>)
[    0.682085] ttyPZ0 at MMIO 0x81113020 (irq = 16) is a Z85c30 ESCC - Serial port
[    0.682641] ttyPZ1 at MMIO 0x81113000 (irq = 17) is a Z85c30 ESCC - Serial port
[    0.683089] Serial: MPC52xx PSC UART driver
[    0.683533] Generic non-volatile memory driver v1.1
[    0.683864] Linux agpgart interface v0.103
[    0.685072] MacIO PCI driver attached to Heathrow chipset
[    0.688167] Macintosh CUDA driver v0.5 for Unified ADB.
[    0.691280] adb: starting probe task...
[    0.704948] ADB keyboard at 2, handler 1
[    0.705255] Detected ADB keyboard, type ANSI.
[    0.706328] input: ADB keyboard as /devices/virtual/input/input0
[    0.710928] ADB mouse at 3, handler set to 3 (Mouse Systems A3 Mouse, or compatible)
[    0.712167] input: ADB mouse as /devices/virtual/input/input1
[    0.712480] adb: finished probe task...
[    1.708602] pata-macio 0.00020000:ata-3: Activating pata-macio chipset Heathrow ATA, Apple bus ID 0
[    1.711403] scsi0 : pata_macio
[    1.712268] ata1: PATA max MWDMA2 irq 19
[    1.873067] ata1.00: ATA-7: QEMU HARDDISK, 2.5+, max UDMA/100
[    1.873274] ata1.00: 52428800 sectors, multi 16: LBA48 
[    1.874777] ata1.00: configured for MWDMA2
[    1.883259] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    2.732481] pata-macio 0.00021000:ata-3: Activating pata-macio chipset Heathrow ATA, Apple bus ID 1
[    2.733550] scsi1 : pata_macio
[    2.733831] ata2: PATA max MWDMA2 irq 22
[    2.734900] mousedev: PS/2 mouse device common for all mice
[    2.736656] rtc-generic rtc-generic: rtc core: registered rtc-generic as rtc0
[    2.738063] TCP cubic registered
[    2.738412] NET: Registered protocol family 10
[    2.743371] Mobile IPv6
[    2.743593] NET: Registered protocol family 17
[    2.743894] Registering the dns_resolver key type
[    2.745568] registered taskstats version 1
[    2.747416] rtc-generic rtc-generic: setting system clock to 2024-09-16 09:04:53 UTC (1726477493)
[    2.747844] Initializing network drop monitor service
[    2.897026] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[    2.897584] ata2.00: configured for MWDMA2
[    2.899456] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     2.5+ PQ: 0 ANSI: 5
[    2.933531] Freeing unused kernel memory: 244k freed
Loading, please wait...
[    3.108881] udevd[46]: starting version 175
[    3.419529] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker
[    3.487065] eth0: RealTek RTL-8029 found at 0x1000, IRQ 23, 52:54:00:12:34:56.
[    3.706584] sd 0:0:0:0: [sda] 52428800 512-byte logical blocks: (26.8 GB/25.0 GiB)
[    3.708366] sd 0:0:0:0: [sda] Write Protect is off
[    3.710001] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.716184] sr0: scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[    3.716597] cdrom: Uniform CD-ROM driver Revision: 3.20
[    3.728758]  sda: [mac] sda1 sda2 sda3 sda4 sda5
[    3.734284] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.790380] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.790999] sr 1:0:0:0: Attached scsi generic sg1 type 5
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... [    4.197023] PM: Starting manual resume from disk
done.
[    4.268139] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[    5.956275] udevd[252]: starting version 175
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Setting preliminary keymap...done.
[....] Activating swap...[    8.454523] Adding 1151860k swap on /dev/sda4.  Priority:-1 extents:1 across:1151860k 
done.
[    8.543589] EXT4-fs (sda3): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
/dev/sda3: clean, 34206/1553440 files, 311971/6203125 blocks
done.
[    8.872929] EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro
[warn] Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning).
[   10.136649] loop: module loaded
[info] Loading kernel module loop.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
/dev/sda2: clean, 23/124992 files, 35358/250000 blocks
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[ ok ] Configuring network interfaces...done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utilities: statd[   16.711258] RPC: Registered named UNIX socket transport module.
[   16.711505] RPC: Registered udp transport module.
[   16.711661] RPC: Registered tcp transport module.
[   16.711812] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   16.756512] FS-Cache: Loaded
[   16.798980] FS-Cache: Netfs 'nfs' registered for caching
[   16.843817] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ ok pd.
[ ok ] Cleaning up temporary files....
[info] Setting console screen modes.
setterm: cannot (un)set powersave mode: Invalid argument
[info] Skipping font and keymap setup (handled by console-setup).
[ ok ] Setting up console font and keymap...done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting rpcbind daemon...[....] Already running..
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting enhanced syslogd: rsyslogd.
[ ok ] Starting deferred execution scheduler: atd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting MTA: exim4.
[ ok ing mouse emulation daemon: [....] Starting OpenBSD Secure Shell server: sshd.
mouseemu.
[   23.637368] input: Mouseemu virtual keyboard as /devices/virtual/input/input2
[   23.641550] input: Mouseemu virtual mouse as /devices/virtual/input/input3

Debian GNU/Linux 7 debian-powerpc ttyPZ0

debian-powerpc login:  
```