From owner-freebsd-ppc@freebsd.org Sun Oct 18 15:25:19 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0DE6D43430E for ; Sun, 18 Oct 2020 15:25:19 +0000 (UTC) (envelope-from nealelliott@netscape.net) Received: from sonic307-55.consmr.mail.gq1.yahoo.com (sonic307-55.consmr.mail.gq1.yahoo.com [98.137.64.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CDkGj3xSzz4Yk0 for ; Sun, 18 Oct 2020 15:25:16 +0000 (UTC) (envelope-from nealelliott@netscape.net) X-YMail-OSG: 9ALIOEEVM1nzLBFkQ2FkrnQ0gCsD_A7vUccQsbo3Xz0EX4APJ7ErY9mtTeAbrJT mq6_eExb.._.sInU6TQzw__GkchMpciz.ma_q.Sz9p0KirrmeGB.Qa9XqVcbK6NXJ7.PQLsfDub_ rVnxVkHByG7IDa5ZrAUrrj1iksJm43XTcUsCiUWzbBsAuXNpW9.B9EszeceiOSZv2dVgIU5wNK.5 rreSIvWp0.HRsieSiVs4ODUKjkh3IeAvvOzWjdQAWMLRx8umfcgW3wZVIRz2_CUc3x0s2FcNzvS_ U3qAdb7HydzI9Jnn0lJ421TFC.m5moWf6HFdHkLbgaDnT0scr01WfWaqO2GX.wenX9WPMRw3ygfi y9vQWBvFmhFqJoTOmz73XuEynGW29mDWlYhLxIodDgd5UseJP7ALyj_zeJoGj_3LvNA8VKL8bkw7 kxGdtG9H3TJpky.TwRyTCpVDflz7NhsiQuY4lmDRBFBPYDnZG_BLilYZPsnFnwMnMoJEKAuTm3FD ITTAz9aE4fQpQlWvgfx8lu4naV62ER0hjQDcEbliMfboSV52BX7YNY18qvah0Dhm7nV2nZBs8V4g pHAVNPkEy5LaoqJI93wz3aZSzkCX0HS4TjliPG4hu_RUEBsSzIFCL_AhLBLZ8v_DSx8bx7G4ZXC7 haolkw86wOIgXHRo16QH8WvcKrjGvpZT4RQgfHO3gJey_W2oAIzZWKHDm3u.8S0Z8cd4QahhcyPV sGAGj9y9qqPAabik6w.QeH0qQ7odhlSlGN5y9LsWzZanLKx2_nfWCtBlLERc7ZC1Q8OJQMoAEii6 v6xizO8nqxrVH8XHY8M6IbDrir8MsPLmfnrfBn0trLYhGsfCDTZZytpH7ZhrZoseKEUe7UwXEBVl sow1Pgqo1wjWlFXy2ILUANX.79BLUEYyLyPIeyX_E_8I.E0ZaTE_v_GmpHkcbxezd9DhYw8UKpLW 7ctt9_Yxa9IGkS3gZVqYfstLFfeAPp65ebBJXw.hmFrRkVBJnZTaW9BR9L.lD9K00r20Y9DoV22E cc9YDENzOUW9J1U0FaUWGnaipwCRMUmjBJqeqsqIxDCMdUX9lxs0.jtfj_6ke_HDzOeQHsWgHC6E RNQWf7yowSD3q7PXkKuDUrnpHWOhajlanIxEowvC0AIWfBWQbZ5oClQOgfX3DBD5k3fFAHBSEHTJ lxngcYDvFPT.aNzSAwwFR.vFy0p17oidCJJbP5c0BDoaPwqiS7ZW2cG.D53aTcMnHKUdG49e3i7I FbP6i_GkX9GH1__PiSdR1ixHHASxY_g5jYKbh6ibkoCWhQTqcdcr6JnWCM_XOoLu6NCBKt_unpYb zYguwJmHRdVeVhFch2jsVkotK_JVA7YczLUBbuSeNqOzZqWS5g8XWYRD6NsxfMuMKA6I7r4h_F1L iaEdWJb89T1ZbaG0trvR9UUAvBygJRTzOSdp1rNxO Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Sun, 18 Oct 2020 15:25:13 +0000 Date: Sun, 18 Oct 2020 15:25:12 +0000 (UTC) From: Neal Elliott Reply-To: Neal Elliott To: "freebsd-ppc@freebsd.org" Message-ID: <484568760.603566.1603034712260@mail.yahoo.com> In-Reply-To: <327983317.255460.1602862192017@mail.yahoo.com> References: <665650437.194869.1602849576719.ref@mail.yahoo.com> <665650437.194869.1602849576719@mail.yahoo.com> <327983317.255460.1602862192017@mail.yahoo.com> Subject: Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.16868 aolwebmail Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0 X-Rspamd-Queue-Id: 4CDkGj3xSzz4Yk0 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; HAS_REPLYTO(0.00)[nealelliott@netscape.net]; FREEMAIL_FROM(0.00)[netscape.net]; R_SPF_ALLOW(-0.20)[+ip4:98.137.64.0/21]; DKIM_TRACE(0.00)[netscape.net:+]; DMARC_POLICY_ALLOW(-0.50)[netscape.net,reject]; NEURAL_HAM_SHORT(-0.37)[-0.367]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[netscape.net]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.93)[-0.934]; R_DKIM_ALLOW(-0.20)[netscape.net:s=a2048]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0:email,0.0.82.8:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[netscape.net]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.0.0.0:email,0.0.82.8:email]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.31:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.31:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ppc] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Oct 2020 15:25:19 -0000 Thanks for the heads up on the mac serial driver fix. I tried the latest ve= rsion 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]... =20 Kernel entry at 0x100570 ... KDB: debugger backends: ddb KDB: current backend: ddb panic: witness_save: witness_cold cpuid =3D 0 time =3D 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= =3D0x3030 r1=3D0xc8ef08 cr=3D0x44000a40 xer=3D0 ctr=3D0x8cbac0 sr=3D0x400= 00000 frame=3D0xc8ee50 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 To: freebsd-ppc@freebsd.org Sent: Fri, Oct 16, 2020 11:29 am Subject: Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-booton= ly.iso I managed to get the OS to boot without panicking, by changing the output a= nd input devices to "scca". however the system still hangs. I have a suspic= ion, that the OS is booted up, but I don't know how to tell FreeBSD to use = the serial console on boot up. =20 output-device=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/pci@f2000000/mac-= io@c/escc/ch-b" input-device=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/pci@f2000000= /mac-io@c/escc/ch-b" 0 > setenv output-device scca=C2=A0 ok 0 > setenv input-device scca=C2=A0 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=3D0xd950fc+0x3030b8 syms=3D[0x4+0x98790+0x4+0xff01= 1] | Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Kernel entry at 0x1001e0 ... ---<>--- Copyright (c) 1992-2019 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 =C2=A0 =C2=A0 =C2=A0 =C2=A0 The Regents of the University of California. Al= l 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 cpu0: HID0 809400a4 real memory=C2=A0 =3D 103051264 (98 MB) avail memory =3D 96157696 (91 MB) arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: on nexus0 cpulist0: on ofwbus0 cpu0: on cpulist0 pcib0: mem 0xf2000000-0xf3ffffff on ofwbus= 0 pci0: on pcib0 macio0: mem 0x80000000-0x8007ffff irq 27 at devic= e 12.0 on pci0 cuda0: mem 0x16000-0x17fff irq 25 on macio0 cuda0: registered as a time-of-day clock, resolution 0.001000s adb0: on cuda0 scc0: mem 0x13000-0x13fff irq 37,36 on macio= 0 uart0: on scc0 uart1: on scc0 ata0: mem 0x20000-0x20fff,0x8b00-0x8cff irq 13= ,2 on macio0 ata1: mem 0x21000-0x21fff,0x8d00-0x8eff = irq 14,3 on macio0 openpic0: mem 0x40000-0x7ffff on macio0 pci0: at device 13.0 (no driver attached) pci0: at device 14.0 (no driver attached) powermac_nvram0: mem 0xfff04000-0xfff07fff on ofwbus0 powermac_nvram0: both banks appear to be corrupt device_attach: powermac_nvram0 attach returned 6 unin0: mem 0xf8000000-0xf8ffffff on ofwb= us0 unin0: Version 0 cryptosoft0: 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: 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 To: freebsd-ppc@freebsd.org Sent: Fri, Oct 16, 2020 7:59 am Subject: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.i= so hello,=20 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 I'm trying t= o 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?=3Dtrue" -prom-env "boot-devi= ce=3Dcdrom:,\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 =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+0xff01= 1] | Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Kernel entry at 0x1001e0 ... ---<>--- Copyright (c) 1992-2019 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 =C2=A0 =C2=A0 =C2=A0 =C2=A0 The Regents of the University of California. Al= l 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 cpu0: HID0 809400a4 real memory=C2=A0 =3D 103051264 (98 MB) avail memory =3D 96157696 (91 MB) arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: on nexus0 cpulist0: on ofwbus0 cpu0: on cpulist0 pcib0: mem 0xf2000000-0xf3ffffff on ofwbus= 0 pci0: on pcib0 macio0: mem 0x80000000-0x8007ffff irq 27 at devic= e 12.0 on pci0 cuda0: mem 0x16000-0x17fff irq 25 on macio0 cuda0: registered as a time-of-day clock, resolution 0.001000s adb0: on cuda0 scc0: mem 0x13000-0x13fff irq 37,36 on macio= 0 uart0: on scc0 uart1: on scc0 ata0: mem 0x20000-0x20fff,0x8b00-0x8cff irq 13= ,2 on macio0 ata1: mem 0x21000-0x21fff,0x8d00-0x8eff = irq 14,3 on macio0 openpic0: mem 0x40000-0x7ffff on macio0 ohci0: mem 0x80080000-0x800800ff i= rq 27 at device 13.0 on pci0 usbus0 on ohci0 pci0: at device 14.0 (no driver attached) powermac_nvram0: mem 0xfff04000-0xfff07fff on ofwbus0 powermac_nvram0: both banks appear to be corrupt device_attach: powermac_nvram0 attach returned 6 unin0: mem 0xf8000000-0xf8ffffff on ofwb= us0 unin0: Version 913731689 cryptosoft0: on nexus0 panic: make_dev_alias_v: bad si_name (error=3D22, si_name=3Dpci@f2000000/ma= c-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+0xff01= 1] | 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