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