Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Oct 2020 07:46:33 -0500
From:      Jason Bacon <bacon4000@gmail.com>
To:        freebsd-ppc@freebsd.org
Subject:   Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso
Message-ID:  <cb897bb4-cd3a-b797-a07d-cb8cdfbc6dff@gmail.com>
In-Reply-To: <665650437.194869.1602849576719@mail.yahoo.com>
References:  <665650437.194869.1602849576719.ref@mail.yahoo.com> <665650437.194869.1602849576719@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I had some problems with qemu in the past and ended up resolving them=20
with the following.=C2=A0 The pseries-2.5 was the key change for me.

#!/bin/sh -e

#########################################################################=
#
#=C2=A0=C2=A0 Script description:
#=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Install/boot FreeBSD-powerpc on qem=
u
#
#=C2=A0=C2=A0 History:
#=C2=A0=C2=A0 Date=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Name=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Modification
#=C2=A0=C2=A0 2018-07-07=C2=A0 Jason Bacon Begin
#
#=C2=A0=C2=A0 https://wiki.freebsd.org/QemuRecipes
#########################################################################=
#

usage()
{
 =C2=A0=C2=A0=C2=A0 printf "Usage: $0 install|boot disk-image raw|qcow2 [=
cd-image]\n"
 =C2=A0=C2=A0=C2=A0 exit 1
}


#########################################################################=
#
#=C2=A0=C2=A0 Main
#########################################################################=
#

if [ $# -lt 3 ]; then
 =C2=A0=C2=A0=C2=A0 usage
fi

cmd=3D$1
diskimage=3D$2
format=3D$3

case $cmd in
install)
 =C2=A0=C2=A0=C2=A0 cdimage=3D$4
 =C2=A0=C2=A0=C2=A0 set -x
 =C2=A0=C2=A0=C2=A0 if [ ! -e $diskimage ]; then
 =C2=A0=C2=A0=C2=A0 qemu-img create -f $format $diskimage 20g
 =C2=A0=C2=A0=C2=A0 fi
 =C2=A0=C2=A0=C2=A0 # qemu-system-ppc64 -nographic
 =C2=A0=C2=A0=C2=A0 # qemu-system-ppc64 -m 2048 -machine pseries-2.5
 =C2=A0=C2=A0=C2=A0 qemu-system-ppc64 -m 2048 -machine pseries-2.5 \
 =C2=A0=C2=A0=C2=A0 -cdrom $cdimage -drive file=3D$diskimage,format=3D$fo=
rmat -boot d
 =C2=A0=C2=A0=C2=A0 ;;

boot)
 =C2=A0=C2=A0=C2=A0 qemu-system-ppc64 -m 2048 -machine pseries-2.5 \
 =C2=A0=C2=A0=C2=A0 -drive file=3D$diskimage,format=3D$format -boot c
 =C2=A0=C2=A0=C2=A0 ;;

*)
 =C2=A0=C2=A0=C2=A0 usage
 =C2=A0=C2=A0=C2=A0 ;;

esac

On 10/16/20 6:59 AM, Neal Elliott via freebsd-ppc wrote:
> hello,
>                    I'm trying to boot a VM from the "FreeBSD-12.1-RELEA=
SE- powerpc-bootonly.iso" boot file. I'm using qemu with the following ar=
guments:
>
> qemu-system-ppc -M mac99 -prom-env "auto-boot?=3Dtrue" -prom-env "boot-=
device=3Dcdrom:,\ppc\loader" -L Bios -cdrom FreeBSD-12.1-RELEAS
> E-powerpc-bootonly.iso -serial mon:telnet:127.0.0.1:6699,server -vga no=
ne -nographic
>
> how can I go about troubleshooting this problem? can I exclude freebsd =
from using the "pci@f2000000/mac-io@c/escc/ch-b_TT
> =E2=96=92=E2=96=92" device?
>
> here is the output from the failed boot:
>
>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>> OpenBIOS 1.1 [Nov 15 2014 13:00]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Welcome to OpenBIOS v1.1 built on Nov 15 2014 13:00
> Trying cdrom:,\ppc\loader...
> Consoles: Open Firmware console
>
> FreeBSD/powerpc Open Firmware loader, Revision 0.1
> Memory: 131072KB
> Booted from: /pci@f2000000/mac-io@c/ata-4@21000/cdrom@0
>
> Loading /boot/defaults/loader.conf
> /boot/kernel/kernel data=3D0xd950fc+0x3030b8 syms=3D[0x4+0x98790+0x4+0x=
ff011]
> |
> Hit [Enter] to boot immediately, or any other key for command prompt.
> Booting [/boot/kernel/kernel]...
> Kernel entry at 0x1001e0 ...
> ---<<BOOT>>---
> Copyright (c) 1992-2019 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 199=
4
>          The Regents of the University of California. All rights reserv=
ed.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 12.1-RELEASE r354233 GENERIC powerpc
> gcc version 4.2.1 20070831 patched [FreeBSD]
> VT: init without driver.
> cpu0: Motorola PowerPC 7400 revision 2.9, 0.00 MHz
> cpu0: Features 9c000000<PPC32,ALTIVEC,FPU,MMU>
> cpu0: HID0 809400a4<EMCP,DOZE,DPM,EIEC,SGE,BTIC,BHT>
> real memory  =3D 103051264 (98 MB)
> avail memory =3D 96157696 (91 MB)
> arc4random: no preloaded entropy cache
> random: entropy device external interface
> kbd0 at kbdmux0
> ofwbus0: <Open Firmware Device Tree> on nexus0
> cpulist0: <Open Firmware CPU Group> on ofwbus0
> cpu0: <Open Firmware CPU> on cpulist0
> pcib0: <Apple UniNorth Host-PCI bridge> mem 0xf2000000-0xf3ffffff on of=
wbus0
> pci0: <OFW PCI bus> on pcib0
> macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at d=
evice 12.0 on pci0
> cuda0: <Apple CUDA I/O Controller> mem 0x16000-0x17fff irq 25 on macio0=

> cuda0: registered as a time-of-day clock, resolution 0.001000s
> adb0: <Apple Desktop Bus> on cuda0
> scc0: <Zilog Z8530 dual channel SCC> mem 0x13000-0x13fff irq 37,36 on m=
acio0
> uart0: <z8530, channel A> on scc0
> uart1: <z8530, channel B> on scc0
> ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff ir=
q 13,2 on macio0
> ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8=
eff irq 14,3 on macio0
> openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
> ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0x80080000-0x800800=
ff irq 27 at device 13.0 on pci0
> usbus0 on ohci0
> pci0: <network, ethernet> at device 14.0 (no driver attached)
> powermac_nvram0: <Apple NVRAM> mem 0xfff04000-0xfff07fff on ofwbus0
> powermac_nvram0: both banks appear to be corrupt
> device_attach: powermac_nvram0 attach returned 6
> unin0: <Apple UniNorth System Controller> mem 0xf8000000-0xf8ffffff on =
ofwbus0
> unin0: Version 913731689
> cryptosoft0: <software crypto> on nexus0
> panic: make_dev_alias_v: bad si_name (error=3D22, si_name=3Dpci@f200000=
0/mac-io@c/escc/ch-b_TT
> =E2=96=92=E2=96=92)
> cpuid =3D 0
> time =3D 1
> KDB: stack backtrace:
> #0 0x5b2a1c at kdb_backtrace+0x7c
> #1 0x54c7f0 at vpanic+0x1f8
> #2 0x54c8b4 at panic+0x54
> #3 0x4c8d3c at make_dev_alias_v+0xa4
> #4 0x4c9070 at make_dev_alias+0x60
> #5 0x9417b8 at cn_drvinit+0xd0
> #6 0x4c1d5c at mi_startup+0x178
> #7 0x100254 at __start+0x74
> Uptime: 1s
>
>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>> OpenBIOS 1.1 [Nov 15 2014 13:00]
>>> Configuration device id QEMU version 1 machine id 1
>>> CPUs: 1
>>> Memory: 128M
>>> UUID: 00000000-0000-0000-0000-000000000000
>>> CPU type PowerPC,G4
> milliseconds isn't unique.
> Welcome to OpenBIOS v1.1 built on Nov 15 2014 13:00
> Trying cdrom:,\ppc\loader...
> Consoles: Open Firmware console
>
> FreeBSD/powerpc Open Firmware loader, Revision 0.1
> Memory: 131072KB
> Booted from: /pci@f2000000/mac-io@c/ata-4@21000/cdrom@0
>
> Loading /boot/defaults/loader.conf
> /boot/kernel/kernel data=3D0xd950fc+0x3030b8 syms=3D[0x4+0x98790+0x4+0x=
ff011]
> |
> Hit [Enter] to boot immediately, or any other key for command prompt.
>
>
> Type '?' for a list of commands, 'help' for more detailed help.
> OK
>   not found
> OK
> _______________________________________________
> freebsd-ppc@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"


--=20
Earth is a beta site.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb897bb4-cd3a-b797-a07d-cb8cdfbc6dff>