From nobody Sun Aug 15 07:59:54 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 9A6F01761E3B for ; Sun, 15 Aug 2021 08:00:11 +0000 (UTC) (envelope-from sanpei.ml@gmail.com) Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (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 4GnV8C3LbYz4jDS; Sun, 15 Aug 2021 08:00:11 +0000 (UTC) (envelope-from sanpei.ml@gmail.com) Received: by mail-il1-x129.google.com with SMTP id z2so15423249iln.0; Sun, 15 Aug 2021 01:00:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6fkVLUe/gY09KHQ/JTEkJCZPU5gkRslzk+dKLowkHEg=; b=bapSzSFGAFHbQ5gAZhsiT1TN/9UI9uqzy62EnCxrZLjYiBoPZhHFDAwL5ynYSgVna0 +KoGDvvyj3IvT2UkGwYD3mk+b1//HZ4oG7cgaZAi++Spc4PfxOkj3gPMI81mwfmOPqHV 7QZ19NGjX3mlk2rHtflmIERysUPPim+cBcP2rap8eygDeHTtu1tbwRC5RrQHjUDvZXsZ b9qJ2xbJimCkXmVCKMjR9E/3k+cZvmBk2tehWttvxUrU8bbzwUqkp3gJCSuDB9SB6rHo V8hyUwBGaKATQ2gPSzMxMXig7SOtl6Gycmr+eA7CXQZKLCaFKMGevXmGngQoKd0pEE29 qGwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6fkVLUe/gY09KHQ/JTEkJCZPU5gkRslzk+dKLowkHEg=; b=JM2BOfk/2k+Q5p3r77w/VppH0Kh308Cw3wl9+olEDv3vBSK7J8Z74bPGeMixoOvBGS 6fu6UMSB8lamTuRn2A/DxIC22/eJQyx7aZ/TlPA2ErtKLqUHSRnlCbe+vIe2LxPex0Qb 4WHqYKEDHuTsJUgelWfQl+sbHcWyDkR2IDJ4LxLTZlJJonNxgQAM4TuDevFb3Rtuq9PI 6eCgzmsNlLBqEbNB1GxDp+BtKcNz0KmMXHKqWssKQ8GUTDAq/aeFUdFodUTnaYzbQRsl 2X4f1DkOGJF4AeazvgTzLcBjAnmvP1IYpBYadKp+Yq56+eb0gp/ESBCiHdfjG+k2ZYvy nv/w== X-Gm-Message-State: AOAM533YAvQsPBPCzwYDYZ2/v13LLA89onbNcjA/xs+cW29wTsusTAwW Z9aj7N2eBQsmQW/XGTg40hehei7+zj6yMuPbcntmPZEtZ6kY6g== X-Google-Smtp-Source: ABdhPJxvSl3OEGk1KVfWjsTNh2YPzg6DZ0GyR1s5soXByvJK6hyNCNq4xZbEKU1deunRcVfDYY7m9C9jFjYmUefl9YQ= X-Received: by 2002:a05:6e02:12a2:: with SMTP id f2mr7630524ilr.222.1629014405303; Sun, 15 Aug 2021 01:00:05 -0700 (PDT) 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 References: In-Reply-To: From: Yoshiro MIHIRA Date: Sun, 15 Aug 2021 16:59:54 +0900 Message-ID: Subject: Re: [14-CURRENT]BBB can't boot 14-CURRENT GENERICSD-20210805 To: Mark Johnston Cc: freebsd-arm Content-Type: multipart/alternative; boundary="000000000000f652f405c9947855" X-Rspamd-Queue-Id: 4GnV8C3LbYz4jDS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: Y --000000000000f652f405c9947855 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E5=B9=B48=E6=9C=8815=E6=97=A5(=E6=97=A5) 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 =3D OF_getproplen(node, "reg"); > + if (nreg =3D=3D -1) > + return (ENXIO); > reg =3D malloc(nreg, M_DEVBUF, M_WAITOK); > OF_getencprop(node, "reg", reg, nreg); > > --000000000000f652f405c9947855--