<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 27, 2020, 2:29 PM Christian Mauderer <<a href="mailto:oss@c-mauderer.de" target="_blank" rel="noreferrer">oss@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello John,<br>
<br>
On 27/11/2020 18:43, John Nathen wrote:<br>
> Hi,<br>
> <br>
> I'm new to RTEMS and started playing with RTEMS on the STMH32H743ZI<br>
> Nucleo board using the stm32h7 BSP a few weeks ago; I've got a few basic<br>
> programs (LED Blink, console output...) to work on this board with minor<br>
> changes in the configuration.<br>
> <br>
> The network driver for this BSP is implemented for libbsd, but I want to<br>
> use the RTEMS legacy networking due to memory constraints.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">How much too large is the footprint? Christian has previously suggested that there MIGHT be a way to reduce the footprint if we had requirements for a minimum feature set.</div><div dir="auto"><br></div><div dir="auto">Did you look at disabling features?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> <br>
> I've started to develop a networking driver that supports the RTEMS<br>
> legacy networking but haven't made much progress as I'm new to RTEMS.<br>
> <br>
> I was wondering if anyone has already done a driver implementation or<br>
> has any suggestions or inputs on how to proceed.<br>
<br>
Note that the STM32H7 BSP is one of the newest BSPs. I doubt that anyone<br>
tried to use it with the legacy stack yet.<br>
<br>
Please also note that there have already been some discussions whether<br>
the legacy stack should be removed. See<br>
<br>
  <a href="https://lists.rtems.org/pipermail/devel/2020-October/062611.html" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.rtems.org/pipermail/devel/2020-October/062611.html</a><br>
<br>
for one of the latest. I don't think that it will be removed soon as<br>
long as it don't make some trouble. But I would strongly advice against<br>
starting a serious project with it.<br>
<br>
If libbsd is really too heavy (did you try the minimal config by the<br>
way?) you might should look into lwIP instead.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">+1 </div><div dir="auto"><br></div><div dir="auto">The old stack source code will eventually be moved to a limbo repository and a build system for that will only get added if there is demand (volunteer or paid core developer).</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
That said: If you still want to use the legacy stack, you might want to<br>
try to just backport the libbsd driver. For that I would suggest to take<br>
a look at some of the drivers that have been ported in the other<br>
direction so you can find the differences. For example the if_atsam or<br>
some of the ffec drivers:<br>
<br>
  <a href="https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/sys/dev/atsam/if_atsam.c" rel="noreferrer noreferrer noreferrer" target="_blank">https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/sys/dev/atsam/if_atsam.c</a><br>
  <a href="https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/sys/dev/ffec" rel="noreferrer noreferrer noreferrer" target="_blank">https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/sys/dev/ffec</a><br>
<br>
The structure is quite similar between both stacks.<br>
<br>
Best regards<br>
<br>
Christian<br>
<br>
> <br>
> Any help would be appreciated.<br>
> <br>
> Best Regards,<br>
> John<br>
> <br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" rel="noreferrer noreferrer" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
> <br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" rel="noreferrer noreferrer" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div></div></div>