From owner-freebsd-ppc@freebsd.org Mon Oct 12 23:31:08 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 45B1242B6EA for ; Mon, 12 Oct 2020 23:31:08 +0000 (UTC) (envelope-from clhamilto@gmail.com) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C9FL346Kqz3YVB for ; Mon, 12 Oct 2020 23:31:07 +0000 (UTC) (envelope-from clhamilto@gmail.com) Received: by mail-ej1-x635.google.com with SMTP id t25so25568695ejd.13 for ; Mon, 12 Oct 2020 16:31:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=lzdJfhEucYVrYlakcb4mW456XKBje51TdgAE64K0ckE=; b=On6u6F3nfAcMGmb26AtdNVGhqsgeDwj+NVMUHQM0QTZWy211SrtMiUBit4tWwEsoAG Dsfa79yR9Y3sd+ddDCr/Ipw8JxQDObWNGtOOHVspg94hGa96fHXfuoMALacG3h43GJXC yx60TvBrIwPWvQKhN97kO6YI/XssR4QNnUBr9rd/XhJ5/owRcjyOaKSHFlsmSEYDBXqO 8KSM5AqWNu7C5gFjG0DzfExsmC9dOahkYfc2ymZRHYe0GQqtcDeqg3EQ/DFv2KAnwsU9 Ri2Ejfs0mBmpprYBc82xi/Ni2VRNp6P40DVUalxw/Lsa5vVGzFrn2nCiKBoQv0xayeIh Nh3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lzdJfhEucYVrYlakcb4mW456XKBje51TdgAE64K0ckE=; b=rp7Apa4huyUBkejS4FebrJZju6OSftIxKySCAbagvvzpY8++Jm5Ulhq4kuCB14A5wH DjS3yYrza0ptCyKabwrBINMOSkXLiz3tCLC6fmF4HkGM+mLXlV8OXNr+0Dhe3QJOjpmT pDv3RzmU59zjWojipCPCGrBhQWwD5DdLbRrNWhY4onyv7FXtnpGixly36CnJCGpqPsv1 zhQsF4MJsuoWQo4j2GhPFAbdThzzzZAxpobHZP4xuPHa7DX3nWLZH2sGBs2so39tMFyr PRdAy/82+7tIJcak6cgMYBsKxlTW14IZDarvsOZlisSzEJRm74hjccXCKj3XtE00hi4J 3Q4A== X-Gm-Message-State: AOAM532HxxUjDlVRFLif75Id9sMbCHbICromwHskY7jBrgrvN4iVbcrs wGC3XO47jv9BsZIdBlmWJTaYGEX0cTzKP4uMCcVbJypxM9o= X-Google-Smtp-Source: ABdhPJwQ5hftEhFoH/DqoNfRPyGya8EmF8ZLQcFRGX0arbzq00LTmOm2R4E2o2t/gC/mpxFCw1ro6/Q7WuWcy7/LPFo= X-Received: by 2002:a17:906:eb59:: with SMTP id mc25mr29890755ejb.34.1602545465210; Mon, 12 Oct 2020 16:31:05 -0700 (PDT) MIME-Version: 1.0 From: Curtis Hamilton Date: Mon, 12 Oct 2020 19:30:54 -0400 Message-ID: Subject: Porting Free Pascal to FreeBSD/PowerPC To: freebsd-ppc@freebsd.org X-Rspamd-Queue-Id: 4C9FL346Kqz3YVB X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=On6u6F3n; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of clhamilto@gmail.com designates 2a00:1450:4864:20::635 as permitted sender) smtp.mailfrom=clhamilto@gmail.com X-Spamd-Result: default: False [-3.24 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.978]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.997]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::635:from]; NEURAL_HAM_SHORT(-0.27)[-0.268]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ppc]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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: Mon, 12 Oct 2020 23:31:08 -0000 I=E2=80=99ve started work in porting free pascal to powerpc (32bit and 64bi= t) and I=E2=80=99m looking for some help with adapting the startup code (prt0.as a= nd cprt0.as files). I=E2=80=99ve attempted modifying and using the Linux code with mixed result= s. (Because I don=E2=80=99t know what I=E2=80=99m doing when it comes to ppc = assembly language.) Porting guidance is located at https://wiki.freepascal.org/Porting_the_Unix_rtl_to_a_new_target Any help would be greatly appreciated. I=E2=80=99ve created a repository o= n GitHub at https://github.com/lenoil98/freepascal Please let me know if you have any questions. Thanks in advance for your help From owner-freebsd-ppc@freebsd.org Thu Oct 15 15:39:11 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 B47B54417BA for ; Thu, 15 Oct 2020 15:39:11 +0000 (UTC) (envelope-from support@adultlotions.com) Received: from adultlotions.com (adultlotions.com [62.210.53.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CBtk65zFsz4d5V for ; Thu, 15 Oct 2020 15:39:10 +0000 (UTC) (envelope-from support@adultlotions.com) Message-ID: <84b0d5887ca8173f1ce3b5e6ed39011d3ec6d6dbe3@adultlotions.com> Reply-To: Garlow Keys From: Garlow Keys To: freebsd-ppc@freebsd.org Subject: Receipt 627989 Date: Thu, 15 Oct 2020 08:39:08 -0700 MIME-Version: 1.0 Precedence: bulk X-Rspamd-Queue-Id: 4CBtk65zFsz4d5V X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.48 / 15.00]; HAS_REPLYTO(0.00)[noreply@adultlotions.com]; R_SPF_ALLOW(-0.20)[+a:c]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; HAS_ATTACHMENT(0.00)[]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[adultlotions.com:+]; DMARC_POLICY_ALLOW(-0.50)[adultlotions.com,quarantine]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:12876, ipnet:62.210.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; R_DKIM_ALLOW(-0.20)[adultlotions.com:s=dkim311]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PRECEDENCE_BULK(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; REPLYTO_DOM_EQ_FROM_DOM(0.00)[]; NEURAL_HAM_LONG(-1.01)[-1.011]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_ENDS_SPACES(0.50)[]; NEURAL_SPAM_SHORT(0.03)[0.031]; MAILMAN_DEST(0.00)[freebsd-ppc] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.33 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2020 15:39:11 -0000 Hello Dearest client, Invoice content #29586 Regards, Garlow Keys From owner-freebsd-ppc@freebsd.org Fri Oct 16 11:59:45 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 511544327DC for ; Fri, 16 Oct 2020 11:59:45 +0000 (UTC) (envelope-from nealelliott@netscape.net) Received: from sonic304-24.consmr.mail.gq1.yahoo.com (sonic304-24.consmr.mail.gq1.yahoo.com [98.137.68.205]) (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 4CCPpQ0dnKz4rVv for ; Fri, 16 Oct 2020 11:59:41 +0000 (UTC) (envelope-from nealelliott@netscape.net) X-YMail-OSG: refR6ZgVM1lnGHnEXTmu2aOj2WxGbBRUcNryooNK2RLj5Dc_6i8wFCyTWX9WfRM CKP7Hlro5Ym2iGVMP5YJHbvYLc3wrp8Q6MRh0VRABz47A9XBbTqbGSUXRDDE2Sv0znyLuv_dOrUR KzmqT64mJsTJ5jwNDLGQmESCGx8NOtxMoIGgr.PjMoyyuCc2M4y.VTE2GmxqHque3RHFfFz1jhs6 FOCgDYMqYIv98ZNYEwQvmqaGGaLmSMNq4B4r1kH9jmiT2RkZziaUwNCjGD3qU8UaqiD9t.jArszj 2YoONawyedg60X2UTIfxtTu7l5DVhipo_J2W59tt3CkTyEC4eX_RThnu8wTqP6YvOJw1ruVfdsUU ZkMclqxRTPF_.NWf7F35xriZxkUsb.__1EyOxKKNpTX8iOwb5iNO58UcERU6c4YNTk6GzFISsQs8 EJ.3YgXEURYT3.C2Z2tvblXdp7iX_dZCwVudDnB6w2fbNmLAPWnvHn06HKyhgjehzZRhVtl3x_0Q rUklvPbWJsHBVUfVXmGnSg8mhkVuc1IWk_64HPg5osfKaUScLZoD4X608ndpWhzs6ZnxworTKaq0 0GQRuoBzRuwfF4aQ6IBeMzWudbN..SHyQZBJRfyQoOKoYu6O1ItqEQmzvKOygpEgqx_B.y2k5X1r dtsnp17mBO8zckfa11p.L3QznaRF8dhAgPNA23zDV1s7_EIhn9It33ivsZHxG4LqmzcFP4mX2SIR Bmkco4iA1YVBmkCdU50YLgLnfRlkOzT3bGfuiO4YAaVPJkVE8CmSjbpQqAF_8AT5SiQHZdEav7PX YbSEHd14EKTFGyj_mHpk7RHxk.wSUfHWTYcD61UKc7OmbnM4M1TArBx52zV16wz16qDofH7ouNui Iqc1KuW97sZS669rKiM3VoJl.p10MHq6xXbHkaXVdIFF0dIJ2bXD2egkgDXibGSFOkx4ti6BXVIu yxA.pRlNuQQln8WfY6ULy2BMxGpGQAMMdIpIGIviGlSIH3yM2V3ET9GWjFhz4ULvSWBDinLix44_ l8kgwNUFk6AM1bZZJ.sL5KJYoDc_zcRiCGf8QTWxDslYdvSl5rnYqlPj8ATeTTEMgWcuJJA7EtdN ggdAkrHrA.dlKoZwVtCE7swH4WKzM6PqR9eXP_2W9JpF5Ql3UNOZ7LL_W0lFNTptydHD9nWgFtx0 jvQlDE_nOzm.PYe52NqN9sZhgjC5eWZi.j4bu2t8uEoIhsmVBLLwLtQtERNYR7KmR.tf18Jcgxa0 W7FnkbiGSBgb1FBnJmRc1zq5TrtiybJa02isKr9pRKhcKnqDcAbHxBtEpmvFjGQl53I2462q_gmn 8cuwY3NIOpfD4N3kZtDjHCL81EMJS5IQcGglMdy.YqYaorLky86yLVrw58Z8KXu3qvyCXlZBvfn8 T76GWe7pNx5n6Nb7mDWSM_qjFptCkWGUfhuoDgbzBIlo- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Fri, 16 Oct 2020 11:59:39 +0000 Date: Fri, 16 Oct 2020 11:59:36 +0000 (UTC) From: Neal Elliott Reply-To: Neal Elliott To: "freebsd-ppc@freebsd.org" Message-ID: <665650437.194869.1602849576719@mail.yahoo.com> Subject: 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 References: <665650437.194869.1602849576719.ref@mail.yahoo.com> X-Mailer: WebService/1.1.16868 aolwebmail Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0 X-Rspamd-Queue-Id: 4CCPpQ0dnKz4rVv X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.74 / 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]; 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.95)[-0.951]; 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.03)[-1.032]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[netscape.net]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.0.82.8:email,0.0.0.0:email]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.205:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.205:from]; NEURAL_SPAM_SHORT(0.24)[0.243]; 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: Fri, 16 Oct 2020 11:59:45 -0000 hello,=20 I'm trying to boot a VM from the "FreeBSD-12.1-RELEASE- p= owerpc-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 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 cpu0: HID0 809400a4 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: 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 From owner-freebsd-ppc@freebsd.org Fri Oct 16 12:46:38 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 16CC443432D for ; Fri, 16 Oct 2020 12:46:38 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCQrY0lq5z4v9Y for ; Fri, 16 Oct 2020 12:46:36 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-io1-xd2b.google.com with SMTP id m17so3625984ioo.1 for ; Fri, 16 Oct 2020 05:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=Izulv4sQhsg2aQr1Al4uPkVwzhVpjod/uq3Ttzl7dFQ=; b=FGjmJdk0X8skglZE6x50ND+S8ghmgDV9zw1TRnGtKpfftLs6AwLMhGOC8kzNjCFajL 6EKtiCZZ6leMiM+70RmR/YtKypUNY+8q//wJt8Jo+50Eigf+ncmoBAhxTWCdfoZM38if Etqaupla1PQOG4FU/iFPbdcQ1ygKZex3EFcGE1Ot0SQ4ZVdJOfbOBnwWP+5SIUXIKE3B sCkgN+HGe8avrZg8CcPNeK0TEzHYDQdVpmLB8WFD+icnWy4PoYIMkTNnrKQi2Z2zvLIu lwMK3Ka6QCTZlk/+Vu6Fs+Na9+GNdLqnN3bU8BdBLnte8EEtDGlehlM3GbpEzezk7v/5 BGHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Izulv4sQhsg2aQr1Al4uPkVwzhVpjod/uq3Ttzl7dFQ=; b=ImmzC/G+24oZdXtH2FUR7FUqYmiPJFd/pW1XAOHDFwI/SzZyCmk+vK38STNO4QW2Pb /HaUfLH83andjTCHXmVNGuTo77wEaLyDVquDlCb/KGA2z5ZuKUxVcXVhbFSz252vb1wt Eu5OhAkrULI0Y1nO79nKoGgwP/si9Kgboni7OYblTAKemfn2392Wq2/ytrFlrHFW20kt 0CB+kMNmxrMb0/qWALWuzbeKuhUkm6ewwNGHPFbhopQhyFNBwZ9l3T/60IkUnJ6SHnkW AqhZudsOPsrBKJgoeGysJEvmTQJ28nRaO+hS7qjMYiYK2uyN+G0DqApd5XboWZPa4+Vv mKSA== X-Gm-Message-State: AOAM531/3va7WIIvyH318cMSyQ4c06w9FhHF2R3PKcNh3IVe/j0BBCkv GhUCtJlXOlhtY6es8x6RHWmR/mjkSDM= X-Google-Smtp-Source: ABdhPJwSBU9hDDXujgvSKoHcoPYPyK9cywmbP0rJZCsNFoCOclYs58Cv7HIdzii2oxaZeJJ80/7ZxA== X-Received: by 2002:a5e:9913:: with SMTP id t19mr2145397ioj.95.1602852395046; Fri, 16 Oct 2020 05:46:35 -0700 (PDT) Received: from coral.acadix.biz (2603-6000-a40b-4f00-0223-24ff-fe37-c4d7.res6.spectrum.com. [2603:6000:a40b:4f00:223:24ff:fe37:c4d7]) by smtp.gmail.com with ESMTPSA id f11sm2107371ioj.27.2020.10.16.05.46.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Oct 2020 05:46:34 -0700 (PDT) Subject: Re: kernel panic when booting FreeBSD-12.1-RELEASE- powerpc-bootonly.iso To: freebsd-ppc@freebsd.org References: <665650437.194869.1602849576719.ref@mail.yahoo.com> <665650437.194869.1602849576719@mail.yahoo.com> From: Jason Bacon Message-ID: Date: Fri, 16 Oct 2020 07:46:33 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <665650437.194869.1602849576719@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: 4CCQrY0lq5z4v9Y X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FGjmJdk0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of bacon4000@gmail.com designates 2607:f8b0:4864:20::d2b as permitted sender) smtp.mailfrom=bacon4000@gmail.com X-Spamd-Result: default: False [-3.73 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.75)[-0.746]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.966]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; 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.02)[-1.022]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; 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)[2607:f8b0:4864:20::d2b:from]; RCVD_TLS_ALL(0.00)[]; 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: Fri, 16 Oct 2020 12:46:38 -0000 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 ... > ---<>--- > 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 > cpu0: HID0 809400a4 > 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: on nexus0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > pcib0: mem 0xf2000000-0xf3ffffff on of= wbus0 > pci0: on pcib0 > macio0: mem 0x80000000-0x8007ffff irq 27 at d= evice 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 m= acio0 > uart0: on scc0 > uart1: on scc0 > ata0: mem 0x20000-0x20fff,0x8b00-0x8cff ir= q 13,2 on macio0 > ata1: mem 0x21000-0x21fff,0x8d00-0x8= eff irq 14,3 on macio0 > openpic0: mem 0x40000-0x7ffff on macio0 > ohci0: mem 0x80080000-0x800800= ff irq 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 = ofwbus0 > unin0: Version 913731689 > cryptosoft0: 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. From owner-freebsd-ppc@freebsd.org Fri Oct 16 15:29:58 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 DF347439345 for ; Fri, 16 Oct 2020 15:29:58 +0000 (UTC) (envelope-from nealelliott@netscape.net) Received: from sonic316-54.consmr.mail.gq1.yahoo.com (sonic316-54.consmr.mail.gq1.yahoo.com [98.137.69.30]) (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 4CCVSz757sz3bRt for ; Fri, 16 Oct 2020 15:29:55 +0000 (UTC) (envelope-from nealelliott@netscape.net) X-YMail-OSG: vv2becMVM1n5R7WCjDskS3ANKIofQv6cJjSnvuWE58pK31WjC_qYDSS2MJBx83n idNGxGbaRNePTLaA7TQbpXqz75GgBDsCXOBI.nQN461H2Q2HPwRpEDMACCaFvcrKczB4ISH4rugA 3_a1vLzsSqPrywhwubcivXnOKmj32a8JsgYk7P1W0mu1a22wetZGuKnAYYpzX4K4OxHKMlXX2rB7 cMCQRRhyVeSWq3.6bJyeawHT6mo9xva7QdK4Ct5FGjuXpDoKUfG9H3BiAN1yjZ1hwWTysKSlhUwa 6lE1XxkZntm2zMMiW3QA3pGCGDFbNudTKS8I_cnyOdbcdDeutEDMP_1jnMZDFNctgngCOSNNn5Jb OHx_mbjPd9ysuHQoLbrP0WVmaa72tIjAMVzD6cWK4WbkYEe3UgexkSAVehcFMMBOQ3_0BFBGRwhn zSckp0iMLgGYLjKVcUYpqeCH_w8e4ou1qkzxl2eKSzSSDUjYpVEgoL2dDX1Yp0DLU.ZhmeqCiMuQ 9wjTLo2MX_awQktMmrQfT27L8PP5w0C5BOVBnhP_44.7eKXlQQPbFRV0frklSGu6_4lZH37U6drq y7YLXq7ndvm0WTL2ndFwLOD_mL.5LaT5CJaqk5E7fpAR3t9ZwVC9Nm81dQ.islAQCLXTpPFjlzD4 RAE6RGJ.H7IsLYrzlQTJcTC_ynnNIp24wZpneTe9b3_7ybkU6i6Zc2g8j8CPl9ACTL.S5BPwm22j w2_Du0_mYJ.5WocqMtB0A0g4MiGP6knpwJGAwBC_E9tvPL_tTCgUprI3PTTb5DfctkKl8EqhZXCz Cu_cdYhJD3V_t2ACRK4Gha0OgtIxYMykxqZKYPA_73mm0KhtIXreaBk0yTkbi1Xrq_xfER01vUm0 jEQpr0geC9RC8Le_3cb2s2QbZI8c5Reoz4t591c0JZJVXBqgKtJ3.dU9KGl_qz9_U6HgubnOdF75 M1bo52uB7FognsJpWeQLQnw4tskdKEBHWrssafDamw7AdJIf37aTDVu.uXjHzX1E5r1d4nxuBsTm Qix5lTS7wJ84ntuwq82gYti8nabIKm0hqzwHtA2QKHMAI4nBnY8BawzaC6D4vR_01Nj_BdEjlEZP LftLhwPlgzdMRVwwQFEVJl0GImCuGkPdMr15PPl6oxo1x6DIzQAC0hoBlm7KN98QyUNH91n6w1Rx oaxQofy3YpDshhnbZ3bh2ZSfjP31S3RQCIysDcUZVcP.QQFqS6WHzzatui6x3_oA9LTq_P6QU5h9 e1bzu0hrMXKUPLngeUBcZMFV9Ge5eOtvzeCxYDrRCGc6swJ68cBGSrIwy2cpBjSLBmPaRPYwv8aY tPqX7qM5EUMLq.c48NvWBXbk6ld7HV_m7er2q.dRY4M2Q7Ll19jweFgts644kAMEgxVYNGam0KuY UUg0PDlgbJF3xoIU.sZSRt8IRMK4BALOyl.LeEpA02dAdoUcvYmelvxATxgiA0B6tR3G.E_Re7Ur vbwf6KIDm Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Fri, 16 Oct 2020 15:29:53 +0000 Date: Fri, 16 Oct 2020 15:29:52 +0000 (UTC) From: Neal Elliott Reply-To: Neal Elliott To: "freebsd-ppc@freebsd.org" Message-ID: <327983317.255460.1602862192017@mail.yahoo.com> In-Reply-To: <665650437.194869.1602849576719@mail.yahoo.com> References: <665650437.194869.1602849576719.ref@mail.yahoo.com> <665650437.194869.1602849576719@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 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0 X-Rspamd-Queue-Id: 4CCVSz757sz3bRt X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.81 / 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]; 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.96)[-0.960]; 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.82.8:email,0.0.0.0:email]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.03)[-1.032]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[netscape.net]; RCPT_COUNT_ONE(0.00)[1]; DBL_PROHIBIT(0.00)[0.0.82.8:email,0.0.0.0:email]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.30:from]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.30:from]; NEURAL_SPAM_SHORT(0.18)[0.182]; 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: Fri, 16 Oct 2020 15:29:58 -0000 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 "/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=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 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 cpu0: HID0 809400a4 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: 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 From owner-freebsd-ppc@freebsd.org Sat Oct 17 16:35:04 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 8F79643C8C1 for ; Sat, 17 Oct 2020 16:35:04 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CD7sh3HRZz4Nhf for ; Sat, 17 Oct 2020 16:35:04 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bdragon/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4FAAE23B73 for ; Sat, 17 Oct 2020 16:35:04 +0000 (UTC) (envelope-from bdragon@FreeBSD.org) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 0566527C0054 for ; Sat, 17 Oct 2020 12:35:04 -0400 (EDT) Received: from imap1 ([10.202.2.51]) by compute3.internal (MEProxy); Sat, 17 Oct 2020 12:35:04 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieejgddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdluddtmdenucfjughrpefofg ggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedfuehrrghnughonhcuuegv rhhgrhgvnhdfuceosggurhgrghhonheshfhrvggvuefuffdrohhrgheqnecuggftrfgrth htvghrnhepjefhfedtuddtleegkeegtdegjeekffdvjedttdehgffgveeugffgfeelvdeg hffgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsg gurhgrghhonhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddtgedvfeeh keeigedqudekuddtkeehuddqsggurhgrghhonheppefhrhgvvgeuufffrdhorhhgsehimh grphdrtggt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id B7924C200A5; Sat, 17 Oct 2020 12:35:03 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-489-gf39678d-fm-20201011.001-gf39678d0 Mime-Version: 1.0 Message-Id: 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> Date: Sat, 17 Oct 2020 11:34:44 -0500 From: "Brandon Bergren" To: "FreeBSD PowerPC ML" Subject: =?UTF-8?Q?Re:_kernel_panic_when_booting_FreeBSD-12.1-RELEASE-_powerpc-bo?= =?UTF-8?Q?otonly.iso?= Content-Type: text/plain 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: Sat, 17 Oct 2020 16:35:04 -0000 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 bdragon@FreeBSD.org