Module Name:    src
Committed By:   tsutsui
Date:           Sun Feb  2 10:35:57 UTC 2025

Modified Files:
        src/distrib/macppc: Makefile
Added Files:
        src/distrib/macppc/liveimage: Makefile
        src/distrib/macppc/liveimage/emuimage: Makefile

Log Message:
Add "build.sh live-image" support for macppc.

Confirmed on qemu-9.2.0.

---
qemu-system-ppc -m 256 -machine mac99 -cpu g3 \
 -drive 
file=NetBSD-10.99.12-macppc-live.img,media=disk,format=raw,if=none,id=disk0 \
 -device ide-hd,bus=ide.0,drive=disk0 \
 -netdev user,id=net0 -device e1000,netdev=net0 \
 -nographic
>> =============================================================
>> OpenBIOS 1.1 [Sep 24 2024 19:56]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 256M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,750
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on Sep 24 2024 19:56
Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
>> Not a bootable ELF image
>> switching to new context:

OF_open bootpath=/pci@f2000000/mac-io@c/ata-3@20000/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...

>> NetBSD/macppc OpenFirmware Boot, Revision 1.15 (Sun Feb  2 06:06:05 UTC 2025)
>> Open Firmware version 3.x
>> Open Firmware running in virtual-mode.
11891244+164812 [489184+466096]=0xc68ee8
 start=0x100000
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[   1.0000000]     2024, 2025
[   1.0000000]     The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights 
reserved.

[   1.0000000] NetBSD 10.99.12 (GENERIC) #0: Sun Feb  2 06:28:31 UTC 2025
[   1.0000000]  
runner@fv-az1670-954:/home/runner/work/netbsd-src/netbsd-src/sys/arch/macppc/compile/obj.macppc/GENERIC
[   1.0000000] total memory = 256 MB
[   1.0000000] avail memory = 225 MB
[   1.0000000] found openpic PIC at 80040000
[   1.0000000] OpenPIC Version 1.2: Supports 1 CPUs and 64 interrupt sources.
[   1.0000000] bootpath: /pci@f2000000/mac-io@c/ata-3@20000/disk@0:/netbsd
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0: 750 (Revision 3.1), ID 0 (primary)
[   1.0000000] cpu0: HID0 0x805000a4<EMCP,NAP,DPM,SGE,BTIC,BHT>, powersave: 1
[   1.0000000] cpu0: 0.00 MHz L2 cache present but not enabled

 :

[  13.8062284] boot device: wd0
[  13.8062284] root on wd0a dumps on wd0b
[  13.8212139] root file system type: ffs
[  13.8212139] entropy: best effort
[  13.8212139] kern.module.path=/stand/macppc/10.99.12/modules
Sun Feb  2 10:28:53 UTC 2025
Starting root file system check:
/dev/rwd0a: file system is clean; not checking

 :

Sun Feb  2 10:29:18 UTC 2025
Feb  2 10:29:19  getty[1181]: /dev/ttyE1: Device not configured

NetBSD/macppc (Amnesiac) (ttyZ0)

Feb  2 10:29:19  getty[1275]: /dev/ttyE3: Device not configured
login: Feb  2 10:29:19  getty[1055]: /dev/ttyE0: Device not configured
Feb  2 10:29:19  getty[1023]: /dev/ttyE2: Device not configured
---

Note -cpu g4 (default for -machine mac99) triggers qemu assertion:
---
 :
Starting syslogd.
qemu: fatal: Raised an exception without defined vector 94

NIP fdb4d560   LR fdb4dd40 CTR fd61a308 XER 20000000 CPU#0
MSR 0200d032 HID0 809400a4  HF 02004012 iidx 0 didx 0

 :
---


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/distrib/macppc/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/macppc/liveimage/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/macppc/liveimage/emuimage/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to