<div dir="ltr"><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 2, 2020 at 9:49 PM Christian Mauderer <<a href="mailto:list@c-mauderer.de">list@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 31/01/2020 17:43, Vijay Kumar Banerjee wrote:<br>
> <br>
> <br>
> On Fri, Jan 31, 2020 at 9:59 PM Christian Mauderer <<a href="mailto:list@c-mauderer.de" target="_blank">list@c-mauderer.de</a><br>
> <mailto:<a href="mailto:list@c-mauderer.de" target="_blank">list@c-mauderer.de</a>>> wrote:<br>
> <br>
> On 31/01/2020 17:25, Christian Mauderer wrote:<br>
> > On 31/01/2020 16:04, Vijay Kumar Banerjee wrote:<br>
> >> Hi,<br>
> >><br>
> >> While trying to run an rtems-littlevgl app on BBB, I found that<br>
> the device<br>
> >> tree generated from the freebsd source matching the freebsd-org<br>
> >> HEAD commit doesn't work with the app and framebuffer device fails<br>
> >> to open. This is most likely due to the changes in the freebsd dts<br>
> >> sources because of which the overlay isn't working as expected.<br>
> ><br>
> > If I remember correctly, SD card doesn't work either with a FDT<br>
> that is<br>
> > too new.<br>
> ><br>
> >><br>
> >> I haven't had a detailed look at what's missing and the u-boot isn't<br>
> >> reporting any error in applying the overlay either. I checked<br>
> that the<br>
> >> device tree built from freebsd tree matching the following commit<br>
> >> works:<br>
> >> 19a6ceb89dbacf74697d493e48c388767126d418<br>
> ><br>
> > At the moment that's the right one. But that can change if someone<br>
> > updates libbsd again.<br>
> <br>
> And I have to correct myself: That is not the right one. The current<br>
> libbsd HEAD should work with 6b0307a0a5184339393f555d5d424190d8a8277a.<br>
> <br>
> I meant to say that the framebuffer doesn't work with the current HEAD<br>
> (6b0307).<br>
> I checked with a previous commit, which is 19a6ce and found it working.<br>
> I should have been clear in the problem statement, sorry about that. <br>
<br>
Thats not good. But the correct way would be to find out what's wrong<br>
and fix it. Did they add a fix in a future FreeBSD version?<br>
<br></blockquote><div>Most likely the overlay isn't working as expected. I'll have to have a detailed</div><div>look to figure out what's going on there. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> <br>
> ><br>
> >><br>
> >> This brings up two questions:<br>
> >> 1. Should we add the commit hash in the user manual so that the<br>
> user can<br>
> >> build<br>
> >> from source matching that commits instead of HEAD. This can be a<br>
> >> problem <br>
> >> as other codes ported from freebsd might break if the device tree<br>
> >> doesn't<br>
> >> match the HEAD commit of freebsd-org<br>
> ><br>
> > Adding a fixed commit id isn't really a good idea either. It is nearly<br>
> > guaranteed that no one updates it if libbsd is updated. It would be<br>
> > better to add instructions how to find out which commit should be<br>
> used.<br>
> <br>
> The command would be:<br>
> <br>
> git ls-files -s freebsd-org<br>
> <br>
> It works regardless whether the sub-module is initialized or not.<br>
> <br>
> ><br>
> >><br>
> >> 2. How do we manage the device tree overlays required by RTEMS or<br>
> libbsd?<br>
> >> I guess only BBB uses an overlay currently. Can we add a BSD<br>
> license to<br>
> >> the overlay and add it somewhere in rtems or rtems-libbsd<br>
> repository and<br>
> >> maintain it?<br>
> ><br>
> > I think you wrote the overlay so you can add any license you want. But<br>
> > I'm really not sure where to put it. We currently don't have a<br>
> location<br>
> > for that. Do you have a good suggestion?<br>
> ><br>
> <br>
> How about rtemsbsd/sys/dts/arm/overlays ?<br>
> Following the freebsd tree freebsd/sys/dts/arm/overlays/ <br>
<br>
Following the FreeBSD tree is a good point. But would they be visible<br>
there? Beneath that: We currently don't have support for building the<br>
overlays. Do you have an idea how that could look like?<br>
<br></blockquote><div>keeping it visible will be a problem. For building the overlay, we can use dtc</div><div>and add a script to build the overlay. I see that rsb has a build package for</div><div>devel/dtc.bset as well. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Best regards<br>
<br>
Christian<br>
<br>
> <br>
> > Best regards<br>
> ><br>
> > Christian<br>
> ><br>
> >><br>
> >> Best regards,<br>
> >> Vijay><br>
> >> _______________________________________________<br>
> >> devel mailing list<br>
> >> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a> <mailto:<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a>><br>
> >> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
> >><br>
> <br>
</blockquote></div></div>