-
Notifications
You must be signed in to change notification settings - Fork 158
Fix compile error in setBootConfigFromNVRAM.c with libbsd #584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 7.0
Are you sure you want to change the base?
Conversation
|
❌ Build EPICS Base 7 base-7.0-1414 failed (commit 1344523b70 by @JJL772) |
|
@JJL772 Which RTEMS version and BSP are you building with? It looks like @hjunkes Thoughts? |
RTEMS 6 with uC5282, beatnik (mvme6100) and mvme3100. |
|
Yes, we can to adopt this. RTEMS6 now has the 'add-ons' rtems-net-legacy and rtems-rtems-libbsd. In both there is now a rtems/rtems_bsdnet.h and in both there ist the following definition: But only rtems-legacy-stack has a definition for this: This section can be found in modules/libcom/RTEMS/posix in rtems_init.c: You can see from the comment that this is still a 'cramp'. At the moment Ran Hong (APS) and I are still working on making the reading of NVRAM universal. |
|
❌ Build EPICS Base 7 base-7.0-1414 failed (commit 1344523b70 by @JJL772) |
|
✅ Build EPICS Base 7 base-7.0-1414 completed (commit 1344523b70 by @JJL772) |
epics-base/modules/libcom/RTEMS/posix/rtems_init.c Lines 106 to 109 in 144f975
Right, so with the libbsd stack, In this case, I don't think we should depend on prototypes from libbsd headers. |
This is a temporary workaround and simply disables the NVRAM boot config when building with libbsd
8a6060e to
bc89421
Compare
|
It seems like the code also relies on As a workaround for now, I've disabled NVRAM support when building with libbsd. Per @hjunkes's comment, it sounds like someone from APS is working on a proper implementation. |
|
✅ Build EPICS Base 7 base-7.0-1484 completed (commit ca8adbbf75 by @JJL772) |
|
This PR is needed to let LibBSD support is being discussed in #595 so the effect of this PR would be resolved in that related work. |
|
@JJL772 Is SLAC wanting to run RTEMS 6 on uC5282 with the libbsd networking? Is there enough RAM on the board to actually do that? |
Is this the Arcturus uC5282 with 16M of memory? It will use more memory however It depend on the feature set enabled for LibBSD. I have not worked on hardware needing to have low memory but it has been done. Does it need NFSv4? |
We may run uC5282 on RTEMS 6, but not with libbsd. |
What stack are you planning on using? |
Several declarations such as
rtems_bsdnet_bootp_boot_file_namecome fromrtems/rtems_bsdnet.h, so it needs to be included regardless of networking stack.