From nobody Sat Apr 16 21:14:09 2022 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 AABC9CFFBCF for ; Sat, 16 Apr 2022 21:14:10 +0000 (UTC) (envelope-from matteo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KgmCk4ND9z3jQF; Sat, 16 Apr 2022 21:14:10 +0000 (UTC) (envelope-from matteo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650143650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WlTPmz93ZVhZndVIZMpOlOMshCW44FSzfnVOkZyiQOI=; b=WRbIbISFZHLLaIA2+oFtYi0EdYZOJhtecDWCxTpITB1beDZ+khOiIVD2GDvwlm5jTUi80s BAi25AeNZYpYcVotdtauQbNjo1/0jxCT9S2JqpTXeSewMalVBk46yDpsX1HagwNb0A4Fjz u/somlU2R8VXoZpDLCZ0NHYqL9k356KRn5V+rb1LhyEq8s58Uz6dr/Piv8uFwqR012JPyE 0NQva5f1YUovGa5vMpnSCv4twFZBklnDOWs2X2tAzMhLEhQ+6g98N7ePXY7dDTgCocRva1 RP+WiOhQBJDwrSrDJId+F0naY/puaVM44g3x6VsEiODpysunDnnv8/tMFrZGtw== Received: from ubertino.local (unknown [IPv6:2601:19b:4400:1779::102f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: matteo/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 552DF6C8D; Sat, 16 Apr 2022 21:14:10 +0000 (UTC) (envelope-from matteo@freebsd.org) Date: Sat, 16 Apr 2022 17:14:09 -0400 From: Matteo Riondato To: Oskar Holmlund Cc: freebsd-arm@freebsd.org Subject: Re: [armv7] 13.1-BETA2 boots on beaglebone, 14-CURRENT snapshot panics Message-ID: <20220416211409.tafuqhgcwavmkzdc@ubertino.local> X-PGP-Key: http://rionda.to/files/matteogpg.asc References: <20220412134814.4m5cdgoqliol52gb@ubertino.local> <32c957088640343eae49e7e76d89ac0c@ohdata.se> <20220413125823.u4cpmnxutamtmql5@ubertino.local> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mwvlmrecolqquyqn" Content-Disposition: inline In-Reply-To: <20220413125823.u4cpmnxutamtmql5@ubertino.local> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650143650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WlTPmz93ZVhZndVIZMpOlOMshCW44FSzfnVOkZyiQOI=; b=a71uEGxc7FeCr2+aTYqNbQO0N6EBGhnF3RJirCb+lREnaxE5OyTPaps7GQMrTox3oMu9IP dPcm2AbvmLKs2SObOWxtYUSCxO/E1SjKIA6O0yArqKTSUDaK3ctScChmjyoP92y+urUZrK aYEXY26dXu+Gc3MIGETRPDHNgjmq4W5rZ9qlGBdcNu7IKJZZiKYUKLEr2UXCtWPhjzl5LZ si6KswvXFGBmEHba4QlCVEubSmv3tI2iCxaZErcmoveGJmXI9oKGHLJRpgI637bEVb1nu6 bMP0t7W14OisnbM8b9d6tX/OOaW4twcyfTcN8FdzvRDr8M1IVgJIFNYvtsFrWA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650143650; a=rsa-sha256; cv=none; b=JFehJTv4ROwq2styYN+bwh7yUAMvus75JMoJ0oHgvQ2YOS1gtmG93VqP5ZndINh9xR/Fqv d6qRSO4rsXuJP3k9mfhiVVHcrgQaTktT5HteerLGKkm0tpfQmnqbqltALoDlqbgJLe0my+ 1sW5bAq7rI6cn77XRTzfXzp+qNHHMmHhmicNAX3CCjaOUdIr9mUL9qCccq1fO8w04yz0pw 4ephM89UoOq9nCnXwVqHqM+cOXTbDe4m2df7Ew4Lx11u1ot0HeDmY42SLxiwNY0SilWe66 UGqP0qtai+GaRnfC+PPsQVpy7foj+licYrf8ey+rmlSBnRJWct56J3oFlTxYVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Status: O Content-Length: 3962 Lines: 98 --mwvlmrecolqquyqn Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2022-04-13 at 08:58 EDT, Matteo Riondato wrote: >On 2022-04-12 at 18:09 EDT, Oskar Holmlund wrote:=20 >>2022-04-12 15:48 skrev Matteo Riondato:=20 >>>While trying to make my beaglebone enhanced boot with the =20 >>>am335x-sancloud-bbe.dtb (no success so far), I tried booting it =20 >>>with the am335x-boneblack.dtb, loaded at the loader prompt. >>> >>>The publicly available 13.1-BETA2 GENERICSD image boots into =20 >>>multi-user (boot -v log available at =20 >>>http://rionda.to/files/boot-13.1-BETA2-boneblack.log), while the =20 >>>14-CURRENT 20220407 snapshot panics as follows:=20 >>>[SNIP]=20 >>>I can also build my own image trying to bisect the problem, but =20 >>>wonder if anyone has any hint of what commit(s) could be causing =20 >>>this issue. >>> >>>(I also wonder whether I should be posting on freebsd-current@, =20 >>>rather than freebsd-arm@ . Suggestions accepted) > >>Read this thread=20 >>https://lists.freebsd.org/archives/freebsd-arm/2021-August/000410.html >> >>I'm not sure the reviews mentioned in the last post are the one to =20 >>use today. I hope I find some time to do a testbuild tomorrow and =20 >>get back to you. > >Thank you, Oskar, I'll give it a shot in the next few days. Hi Oskar, The patches at the linked reviews made my BBE boot to multiuser. Thank=20 you for creating them. Some details below: * I uploaded the bootverbose log at=20 https://rionda.to/files/boot-14.0-CURRENT(patched)-sancloud-bbe.log in case it may interest you. * The patch at https://reviews.freebsd.org/D27889 didn't apply=20 cleanly (I'm not entirely sure why, it seems that very little has=20 changed since it was created), but it was easy to apply the rejs.=20 The patch at https://reviews.freebsd.org/D31311 applied cleanly. * I enabled building am335x-sancloud-bbe.dtb in=20 sys/modules/dtb/am335x/Makefile, and I managed to boot to multiuser=20 by loading it at the loader prompt. While the BBE was able to boot=20 13.x to multiuser by loading am335x-boneblack.dtb, that's no longer=20 the case for 14. * The onboard Wi-Fi does not seem to be recognized out of the box.=20 It should be supported by rtwn(4), as it is a rtwn over usb. I see=20 the following in dmesg: ugen1.3: at usbus1 I assume I'll have to play around with the device tree. Any hint is=20 appreciated. * I'm also trying to configure the pcf8563 RTC clock that is=20 connected to the i2c bus. From=20 https://cgit.freebsd.org/src/tree/sys/dev/iicbus/rtc/pcf85063.c, it=20 seems it would be supported. I'll likely need something like pcf8563: pcf8563@51 { compatible =3D "nxp,pcf8563"; reg =3D <0x51>; }; in the &i2c0 section of the dts, but we'll see whether that's enough=20 (I bet not, I'm still learning my way around dts.) Thanks, Matteo --mwvlmrecolqquyqn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAABCgAxFiEEa9uKZL0hP4E8Nl5vGwL9SVQlVQEFAmJbMZoTGGhrcHM6Ly9w Z3AubWl0LmVkdQAKCRAbAv1JVCVVARNdD/9Cggqb0VyR+Pm/fJAdan1NdTqzlMhK YAhlhDVUY5Tles9nf/OhlrW8zu6/L42L8HqhALNS1WYrhUWuoySzjLqLIckVh5Vi 2lDA+W+U9NzzleA8l0qaL5bNukyT72cpWAIV/MNSNi9lObPopK7O+YimPlv6z/nP DnXJLZ2Z2xRggNkxG2lDtbjCv80N9863zE/CdHKBNa3tkqOJ2CmXz1PzostXvT7o I4TBorYezRBwAsgrh09jKLn3VI5pXHlWX1xEafTeilJbKEVEnlYtRtwO2wypMsBa vLkIXG2uaAFlD2wsIDaVmmwDN5gsi9xgXhq/SbSkJbpfE0vK3w+atf88KpMqQYrr ipkqTpagEI7V/PWWdHHHRugi+6Z0JgASlqUNuqg3K+JWA4Ir1HZm34VAVhLkgrZV yXZ1GUqknhlyrAQA9o3Q6Smyvm3xvVmLxC56p0Ds04SRzKyjvd1HwI6/UOKuK93U UwyubZpZ3VxCZoMzERkNhoA7ZKKjJsckVvxfuD17lOp2wMwGAWbzxCYidOO5zO0v c0k0meNiylVxV6nrGeiRWeHxiRoORMqTV0kEA175Z3PCCPKCAWvpJCD+6omuW9xc DpE8n9Xt5c6/BI3UkDhAcpj2HbwlCvsVhyUSnEN+1sGbVekdghnPtWPYK+uMXhW7 6k/JE9+WPOXmOg== =0C6G -----END PGP SIGNATURE----- --mwvlmrecolqquyqn--