<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 31, 2020 at 9:59 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">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 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 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 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></blockquote><div>I meant to say that the framebuffer doesn't work with the current HEAD (6b0307).</div><div>I checked with a previous commit, which is 19a6ce and found it working.</div><div>I should have been clear in the problem statement, sorry about that. </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>
>> This brings up two questions:<br>
>> 1. Should we add the commit hash in the user manual so that the 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 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 libbsd?<br>
>>     I guess only BBB uses an overlay currently. Can we add a BSD license to<br>
>>     the overlay and add it somewhere in rtems or rtems-libbsd 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 location<br>
> for that. Do you have a good suggestion?<br>
> <br></blockquote><div>How about rtemsbsd/sys/dts/arm/overlays ?</div><div>Following the freebsd tree freebsd/sys/dts/arm/overlays/ </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>
>> Vijay><br>
>> _______________________________________________<br>
>> devel mailing list<br>
>> <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>
</blockquote></div></div>