kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

freebsd-ppc mailing list
hello,
                  I'm trying to boot a VM from the "FreeBSD-12.1-RELEASE- powerpc-bootonly.iso" boot file. I'm using qemu with the following arguments:

qemu-system-ppc -M mac99 -prom-env "auto-boot?=true" -prom-env "boot-device=cdrom:,\ppc\loader" -L Bios -cdrom FreeBSD-12.1-RELEAS
E-powerpc-bootonly.iso -serial mon:telnet:127.0.0.1:6699,server -vga none -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
▒▒" device?

here is the output from the failed boot:

>> =============================================================
>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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, 1994
        The Regents of the University of California. All rights reserved.
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  = 103051264 (98 MB)
avail memory = 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 ofwbus0
pci0: <OFW PCI bus> on pcib0
macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at device 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 macio0
uart0: <z8530, channel A> on scc0
uart1: <z8530, channel B> on scc0
ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff irq 13,2 on macio0
ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8eff irq 14,3 on macio0
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0x80080000-0x800800ff 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=22, si_name=pci@f2000000/mac-io@c/escc/ch-b_TT
▒▒)
cpuid = 0
time = 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

>> =============================================================
>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

Jason Bacon-6

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

#!/bin/sh -e

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

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


##########################################################################
#   Main
##########################################################################

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

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

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

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

*)
     usage
     ;;

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-RELEASE- powerpc-bootonly.iso" boot file. I'm using qemu with the following arguments:
>
> qemu-system-ppc -M mac99 -prom-env "auto-boot?=true" -prom-env "boot-device=cdrom:,\ppc\loader" -L Bios -cdrom FreeBSD-12.1-RELEAS
> E-powerpc-bootonly.iso -serial mon:telnet:127.0.0.1:6699,server -vga none -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
> ▒▒" device?
>
> here is the output from the failed boot:
>
>>> =============================================================
>>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
> |
> 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, 1994
>          The Regents of the University of California. All rights reserved.
> 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  = 103051264 (98 MB)
> avail memory = 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 ofwbus0
> pci0: <OFW PCI bus> on pcib0
> macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at device 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 macio0
> uart0: <z8530, channel A> on scc0
> uart1: <z8530, channel B> on scc0
> ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff irq 13,2 on macio0
> ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8eff irq 14,3 on macio0
> openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
> ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0x80080000-0x800800ff 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=22, si_name=pci@f2000000/mac-io@c/escc/ch-b_TT
> ▒▒)
> cpuid = 0
> time = 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
>
>>> =============================================================
>>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
> |
> 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
> _______________________________________________
> [hidden email] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
> To unsubscribe, send any mail to "[hidden email]"


--
Earth is a beta site.


_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

freebsd-ppc mailing list
In reply to this post by freebsd-ppc mailing list
I managed to get the OS to boot without panicking, by changing the output and input devices to "scca". however the system still hangs. I have a suspicion, that the OS is booted up, but I don't know how to tell FreeBSD to use the serial console on boot up.

 

output-device             "/pci@f2000000/mac-io@c/escc/ch-b"
input-device              "/pci@f2000000/mac-io@c/escc/ch-b"

0 > setenv output-device scca  ok
0 > setenv input-device scca  ok
0 > boot 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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, 1994
        The Regents of the University of California. All rights reserved.
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  = 103051264 (98 MB)
avail memory = 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 ofwbus0
pci0: <OFW PCI bus> on pcib0
macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at device 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 macio0
uart0: <z8530, channel A> on scc0
uart1: <z8530, channel B> on scc0
ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff irq 13,2 on macio0
ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8eff irq 14,3 on macio0
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
pci0: <network, ethernet> at device 13.0 (no driver attached)
pci0: <simple comms, UART> 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 0
cryptosoft0: <software crypto> on nexus0
Timecounter "timebase" frequency 100000000 Hz quality 0
Event timer "decrementer" frequency 100000000 Hz quality 1000
Timecounters tick every 1.000 msec
interrupt storm detected on "irq25:"; throttling interrupt source
usb_needs_explore_all: no devclass
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <QEMU QEMU DVD-ROM 2.2.> Removable CD-ROM SCSI device
cd0: Serial Number QM00003
cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes)
cd0: 238MB (121905 2048 byte sectors)
random: unblocking device.



-----Original Message-----
From: Neal Elliott <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Fri, Oct 16, 2020 7:59 am
Subject: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

hello,
                  I'm trying to boot a VM from the "FreeBSD-12.1-RELEASE- powerpc-bootonly.iso" boot file. I'm using qemu with the following arguments:

qemu-system-ppc -M mac99 -prom-env "auto-boot?=true" -prom-env "boot-device=cdrom:,\ppc\loader" -L Bios -cdrom FreeBSD-12.1-RELEAS
E-powerpc-bootonly.iso -serial mon:telnet:127.0.0.1:6699,server -vga none -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
▒▒" device?

here is the output from the failed boot:

>> =============================================================
>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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, 1994
        The Regents of the University of California. All rights reserved.
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  = 103051264 (98 MB)
avail memory = 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 ofwbus0
pci0: <OFW PCI bus> on pcib0
macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at device 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 macio0
uart0: <z8530, channel A> on scc0
uart1: <z8530, channel B> on scc0
ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff irq 13,2 on macio0
ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8eff irq 14,3 on macio0
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0x80080000-0x800800ff 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=22, si_name=pci@f2000000/mac-io@c/escc/ch-b_TT
▒▒)
cpuid = 0
time = 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

>> =============================================================
>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

Brandon Bergren-3
The fix for this is to backport my r362179 changes, while preserving the sparc64 compatibility.

Some pieces of the scc driver are hardcoded for SUN channel spacing, so the driver doesn't get set up properly when attaching to escc.

Specifically, a constant interrupt happens on channel A and it doesn't clear it properly because it's writing to the wrong address.

On Fri, Oct 16, 2020, at 10:29 AM, Neal Elliott via freebsd-ppc wrote:

> I managed to get the OS to boot without panicking, by changing the
> output and input devices to "scca". however the system still hangs. I
> have a suspicion, that the OS is booted up, but I don't know how to
> tell FreeBSD to use the serial console on boot up.
>
>  
>
> output-device             "/pci@f2000000/mac-io@c/escc/ch-b"
> input-device              "/pci@f2000000/mac-io@c/escc/ch-b"
>
> 0 > setenv output-device scca  ok
> 0 > setenv input-device scca  ok
> 0 > boot 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=0xd950fc+0x3030b8
> syms=[0x4+0x98790+0x4+0xff011]
> |

--
  Brandon Bergren
  [hidden email]
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

freebsd-ppc mailing list
In reply to this post by freebsd-ppc mailing list
Thanks for the heads up on the mac serial driver fix. I tried the latest version of FreeBSD that I could find: "FreeBSD-13.0-CURRENT-powerpc-20201015-2fa296b785e-mini-memstick.img"

unfortunately, it kernel panics....


Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...              
Kernel entry at 0x100570 ...
KDB: debugger backends: ddb
KDB: current backend: ddb
panic: witness_save: witness_cold
cpuid = 0
time = 1
KDB: stack backtrace:
0x00c8e998: at kdb_backtrace+0x64
0x00c8e9f8: at vpanic+0x204
0x00c8ea68: at panic+0x64
0x00c8eaa8: at witness_save+0x17c
0x00c8eab8: at _sx_slock_hard+0x3d4
0x00c8eb38: at _sx_slock_int+0x120
0x00c8eb68: at _sx_slock+0x28
0x00c8eb78: at vm_map_lookup+0xf4
0x00c8ec18: at vm_fault+0x190
0x00c8ece8: at vm_fault_trap+0xa8
0x00c8ed28: at trap_pfault+0x130
0x00c8ed68: at trap+0x240
0x00c8ee18: at powerpc_interrupt+0x188
0x00c8ee48: kernel DSI read trap @ 0x4c00002c by moea_pvo_enter+0xe4: srr1=0x3030
            r1=0xc8ef08 cr=0x44000a40 xer=0 ctr=0x8cbac0 sr=0x40000000 frame=0xc8ee50
0x00c8ef08: at moea_pvo_enter+0xc0
0x00c8ef48: at moea_kenter_attr+0x128
0x00c8ef68: at moea_bootstrap+0x6b4
0x00c8ef98: at powerpc_init+0x560
0x00c8efe8: at __start+0x64
KDB: enter: panic
[ thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x74: addi    r3, r0, 0x0
db>

-----Original Message-----
From: Neal Elliott <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Fri, Oct 16, 2020 11:29 am
Subject: Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

I managed to get the OS to boot without panicking, by changing the output and input devices to "scca". however the system still hangs. I have a suspicion, that the OS is booted up, but I don't know how to tell FreeBSD to use the serial console on boot up.

 

output-device             "/pci@f2000000/mac-io@c/escc/ch-b"
input-device              "/pci@f2000000/mac-io@c/escc/ch-b"

0 > setenv output-device scca  ok
0 > setenv input-device scca  ok
0 > boot 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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, 1994
        The Regents of the University of California. All rights reserved.
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  = 103051264 (98 MB)
avail memory = 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 ofwbus0
pci0: <OFW PCI bus> on pcib0
macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at device 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 macio0
uart0: <z8530, channel A> on scc0
uart1: <z8530, channel B> on scc0
ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff irq 13,2 on macio0
ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8eff irq 14,3 on macio0
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
pci0: <network, ethernet> at device 13.0 (no driver attached)
pci0: <simple comms, UART> 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 0
cryptosoft0: <software crypto> on nexus0
Timecounter "timebase" frequency 100000000 Hz quality 0
Event timer "decrementer" frequency 100000000 Hz quality 1000
Timecounters tick every 1.000 msec
interrupt storm detected on "irq25:"; throttling interrupt source
usb_needs_explore_all: no devclass
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <QEMU QEMU DVD-ROM 2.2.> Removable CD-ROM SCSI device
cd0: Serial Number QM00003
cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes)
cd0: 238MB (121905 2048 byte sectors)
random: unblocking device.



-----Original Message-----
From: Neal Elliott <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Fri, Oct 16, 2020 7:59 am
Subject: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso

hello,
                  I'm trying to boot a VM from the "FreeBSD-12.1-RELEASE- powerpc-bootonly.iso" boot file. I'm using qemu with the following arguments:

qemu-system-ppc -M mac99 -prom-env "auto-boot?=true" -prom-env "boot-device=cdrom:,\ppc\loader" -L Bios -cdrom FreeBSD-12.1-RELEAS
E-powerpc-bootonly.iso -serial mon:telnet:127.0.0.1:6699,server -vga none -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
▒▒" device?

here is the output from the failed boot:

>> =============================================================
>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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, 1994
        The Regents of the University of California. All rights reserved.
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  = 103051264 (98 MB)
avail memory = 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 ofwbus0
pci0: <OFW PCI bus> on pcib0
macio0: <KeyLargo I/O Controller> mem 0x80000000-0x8007ffff irq 27 at device 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 macio0
uart0: <z8530, channel A> on scc0
uart1: <z8530, channel B> on scc0
ata0: <Apple MacIO ATA Controller> mem 0x20000-0x20fff,0x8b00-0x8cff irq 13,2 on macio0
ata1: <Apple MacIO Ultra ATA Controller> mem 0x21000-0x21fff,0x8d00-0x8eff irq 14,3 on macio0
openpic0: <OpenPIC Interrupt Controller> mem 0x40000-0x7ffff on macio0
ohci0: <Apple KeyLargo/Intrepid USB controller> mem 0x80080000-0x800800ff 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=22, si_name=pci@f2000000/mac-io@c/escc/ch-b_TT
▒▒)
cpuid = 0
time = 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

>> =============================================================
>> 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=0xd950fc+0x3030b8 syms=[0x4+0x98790+0x4+0xff011]
|
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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ppc
To unsubscribe, send any mail to "[hidden email]"