Re: [armv7] 13.1-BETA2 boots on beaglebone, 14-CURRENT snapshot panics
- In reply to: Matteo Riondato : "Re: [armv7] 13.1-BETA2 boots on beaglebone, 14-CURRENT snapshot panics"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Apr 2022 21:14:09 UTC
On 2022-04-13 at 08:58 EDT, Matteo Riondato <matteo@freebsd.org> wrote: >On 2022-04-12 at 18:09 EDT, Oskar Holmlund <info@ohdata.se> wrote: >>2022-04-12 15:48 skrev Matteo Riondato: >>>While trying to make my beaglebone enhanced boot with the >>>am335x-sancloud-bbe.dtb (no success so far), I tried booting it >>>with the am335x-boneblack.dtb, loaded at the loader prompt. >>> >>>The publicly available 13.1-BETA2 GENERICSD image boots into >>>multi-user (boot -v log available at >>>http://rionda.to/files/boot-13.1-BETA2-boneblack.log), while the >>>14-CURRENT 20220407 snapshot panics as follows: >>>[SNIP] >>>I can also build my own image trying to bisect the problem, but >>>wonder if anyone has any hint of what commit(s) could be causing >>>this issue. >>> >>>(I also wonder whether I should be posting on freebsd-current@, >>>rather than freebsd-arm@ . Suggestions accepted) > >>Read this thread >>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 >>use today. I hope I find some time to do a testbuild tomorrow and >>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 you for creating them. Some details below: * I uploaded the bootverbose log at 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 cleanly (I'm not entirely sure why, it seems that very little has changed since it was created), but it was easy to apply the rejs. The patch at https://reviews.freebsd.org/D31311 applied cleanly. * I enabled building am335x-sancloud-bbe.dtb in sys/modules/dtb/am335x/Makefile, and I managed to boot to multiuser by loading it at the loader prompt. While the BBE was able to boot 13.x to multiuser by loading am335x-boneblack.dtb, that's no longer the case for 14. * The onboard Wi-Fi does not seem to be recognized out of the box. It should be supported by rtwn(4), as it is a rtwn over usb. I see the following in dmesg: ugen1.3: <Realtek 802.11n WLAN Adapter> at usbus1 I assume I'll have to play around with the device tree. Any hint is appreciated. * I'm also trying to configure the pcf8563 RTC clock that is connected to the i2c bus. From https://cgit.freebsd.org/src/tree/sys/dev/iicbus/rtc/pcf85063.c, it seems it would be supported. I'll likely need something like pcf8563: pcf8563@51 { compatible = "nxp,pcf8563"; reg = <0x51>; }; in the &i2c0 section of the dts, but we'll see whether that's enough (I bet not, I'm still learning my way around dts.) Thanks, Matteo