From nobody Sun Aug 15 08:59:57 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D62161765B22 for ; Sun, 15 Aug 2021 08:56:59 +0000 (UTC) (envelope-from info@ohdata.se) Received: from mail01.ohdata.se (46-22-124-5.ip.axbyte.se [46.22.124.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4GnWPh3XJ9z4lq6; Sun, 15 Aug 2021 08:56:56 +0000 (UTC) (envelope-from info@ohdata.se) Received: from localhost (localhost [127.0.0.1]) by mail01.ohdata.se (Postfix) with ESMTP id 0DDC92138D; Sun, 15 Aug 2021 10:55:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail01.ohdata.se Received: from mail01.ohdata.se ([127.0.0.1]) by localhost (mail01.ohdata.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lhlSfNgkezvF; Sun, 15 Aug 2021 10:55:32 +0200 (CEST) Received: from webmail.ohdata.se (unknown [10.0.38.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01.ohdata.se (Postfix) with ESMTPSA id 52D0B2137B; Sun, 15 Aug 2021 10:55:32 +0200 (CEST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sun, 15 Aug 2021 10:59:57 +0200 From: Oskar Holmlund To: Yoshiro MIHIRA Cc: Mark Johnston , freebsd-arm , owner-freebsd-arm@freebsd.org Subject: Re: [14-CURRENT]BBB can't boot 14-CURRENT GENERICSD-20210805 Organization: OH Data In-Reply-To: References: Message-ID: <4897b349a728a5f63498338f2adb63e7@ohdata.se> X-Sender: info@ohdata.se User-Agent: Roundcube Webmail/1.3.6 X-Rspamd-Queue-Id: 4GnWPh3XJ9z4lq6 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N 2021-08-15 09:59 skrev Yoshiro MIHIRA: > I applied ti_sysc.c patch with > 14.0-CURRENT-arm-armv7-GENERICSD-20210805. > > Unfortunately, I got another panic(No usable event timer found!) > > ofwbus0: > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > regfix0: on ofwbus0 > clk_fixed0: on ofwbus0 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > ti_sysc0: on ofwbus0 > > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpufreq_dt0: on cpu0 > cpufreq_dt0: no regulator for cpu@0 > device_attach: cpufreq_dt0 attach returned 6 > ti_sysc0: on ofwbus0 > device_attach: ti_sysc0 attach returned 6 > gpioled0: on ofwbus0 > gpioled0: failed to map pin > gpioled0: failed to map pin > gpioled0: failed to map pin > gpioled0: failed to map pin > panic: No usable event timer found! <-----------------------------PANIC > > I compared between13-stable and 14-current. > 14-current kernel can't attach clock management. > ti_prcm0: mem 0-0x1fff on ti_sysc0 > > If I replace dtb directory(I got from 13-stable dtb directory and I put > FAT > partition dtb and /boot/dtb), 14-GENERICSD can't boot.... > > > 2021年8月15日(日) 0:12 Mark Johnston : > >> On Sat, Aug 14, 2021 at 06:15:37PM +0900, Yoshiro MIHIRA wrote: >> > I can use 13.0-STABLE-arm-armv7-GENERICSD-20210812 on Beaglebone >> Black[OK]. >> > >> > However, I tested 14-CURRENT GENERICSD-20210805 on Beaglebone Black. >> > It can't boot with the below message[NG]. >> > >> > Please let me know to solve this issue. >> > >> > If I use the same microSD on Raspberry PI2, it can boot without issue. >> > I put all boot console messages. >> > >> https://people.freebsd.org/~sanpei/20210814-boot-NG-14-GENERICSD-20210805 >> > >> > < >> > mem: >> > ofwbus0: >> > ti_sysc0: on ofwbus0 >> > panic: Assertion size > 0 failed at /usr/src/sys/kern/subr_vmem.c:1332 >> >> I guess that the DTB has changed somehow such that this error path >> is getting exercised. This patch should allow you to boot without >> panicking, at least. >> >> diff --git a/sys/arm/ti/ti_sysc.c b/sys/arm/ti/ti_sysc.c >> index b16158aa5d83..4fda12f05725 100644 >> --- a/sys/arm/ti/ti_sysc.c >> +++ b/sys/arm/ti/ti_sysc.c >> @@ -306,6 +306,8 @@ parse_regfields(struct ti_sysc_softc *sc) { >> >> /* Grab the content of reg properties */ >> nreg = OF_getproplen(node, "reg"); >> + if (nreg == -1) >> + return (ENXIO); >> reg = malloc(nreg, M_DEVBUF, M_WAITOK); >> OF_getencprop(node, "reg", reg, nreg); >> >> Hi, You will probably need these two reviews to get AM335x to boot on the latest device-tree import. https://reviews.freebsd.org/D27889 https://reviews.freebsd.org/D31311 -- Bästa Hälsningar Oskar Holmlund Tel 070-3220292