RTEMS on uC5282

Vijay Kumar Banerjee vijay at rtems.org
Tue Jul 6 16:08:32 UTC 2021


On Tue, Jul 6, 2021 at 9:58 AM Johnson, Andrew N. <anj at anl.gov> wrote:
>
> Hi Vijay,
>
> On Jul 4, 2021, at 6:08 PM, Vijay Kumar Banerjee <vijay at rtems.org> wrote:
>
> I have a uC5282 board running uClinux and I was wondering if someone
> has instructions for converting the RTEMS exe files into boot files
> that can be booted from the ram buffer (using `goram` from
> uCbootloader.
>
> The RTEMS documentation is empty:
> https://docs.rtems.org/branches/master/user/bsps/bsps-m68k.html#uc5282
>
> I will populate this section in the documentation once I figure out
> how to run and debug RTEMS executables on it. Any help is much
> appreciated.
>
>
> It’s likely that most if not all uC5282 devices running RTEMS to date have been EPICS IOCs. We finally released EPICS 7.0.6 over the weekend which contains (initial & experimental) support for RTEMS 5, but while I have compiled code for our RTEMS-uC5282 target I haven’t actually run it on a real device. In any case the command that we have always used to build bootable EPICS IOCs with on that target is this line from our GNUmake-based build system:
>
> $(RTEMS_TOOLS)/bin/$(OBJCOPY_FOR_TARGET) -O binary -R .comment -S $< $@
>
>
This worked. Thanks!

> where $@ is the bootable file and $< the file output by the link-line:
>
> An explicit example output from a build that I just ran:
>
> /usr/local/vw/rtems/rtems-5.1/bin/m68k-rtems5-g++ -B/usr/local/vw/rtems/rtems-5.1/m68k-rtems5/uC5282/lib/ -specs bsp_specs -qrtems   -o libComTestHarness -static -L/home/phoebus4/ANJ/epics/base/7.0/lib/RTEMS-uC5282           -mcpu=5282 -u POSIX_Init         epicsTypesTest.o epicsInlineTest1.o epicsInlineTest2.o
>
> ... snipped ... epicsTimeZoneTest.o rtemsTestHarness.o rtemsTestData.o   -lCom       -lm -lrtemsCom -lCom -ltftpfs -lnfs -lz -ltelnetd -lrtemscpu -lc -lm -lgcc
> /usr/local/vw/rtems/rtems-5.1/bin/m68k-rtems5-objcopy -O binary -R .comment -S libComTestHarness libComTestHarness.boot
> Installing created executable ../../../../bin/RTEMS-uC5282/libComTestHarness
> Installing created executable ../../../../bin/RTEMS-uC5282/libComTestHarness.boot
>
>
> We then load the libComTestHarness.boot file into the device using tftp.
>
I tried the XMODEM file transfer, which seems very slow at 9600, I'll
give it a shot with tftp as well. Thank you for mentioning.

> For EPICS applications the BSP may have to be built with the legacy network stack, but if so that’s due to our initialization code which probably hasn’t been updated yet.
>

I have it built with the legacy network stack.

Thank you for the commands, I will update the RTEMS side of documentation soon.


Best regards,
Vijay
> HTH,
>
> - Andrew
>
> --
> Complexity comes for free, simplicity you have to work for.
>


More information about the devel mailing list