RKI Image for Raspberry PI 2

Pavel Pisa ppisa4lists at pikron.com
Tue May 24 11:56:17 UTC 2016

Hello Mudit,

On Tuesday 24 of May 2016 11:17:44 Mudit Jain wrote:
> Hi All,
> For raspberry pi bsp, the RKI image using https://github.com/alanc98/rki is
> successfully build by modifying the Makefile as per the instructions given
> in the same .
> However when I try the same for raspberry pi 2 bsp, the build fails with
> the following error :
> ---------------------------------------------------------------------------
> mudit at mudit-HP-Pavilion-g6-Notebook-PC:~/Desktop/sandbox/rki$ make
> ARCH=arm-rtems4.12 BSP=raspberrypi2
> RTEMS_TOOL_BASE=/home/mudit/Desktop/sandbox/rtems-4.12
> RTEMS_BSP_BASE=/home/mudit/Desktop/sandbox/rtems-4.12
> arm-rtems4.12-gcc  -Wa,-a=legacy-build/arm-rtems4.12-raspberrypi2/init.lis
> -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a7
> -D__ARM__   --pipe
> -B/home/mudit/Desktop/sandbox/rtems-4.12/arm-rtems4.12/raspberrypi2/lib
> -specs bsp_specs -qrtems -Wall -I. -Iinclude/  -I. -g -O2  -c -o
> legacy-build/arm-rtems4.12-raspberrypi2/init.o init.c
> init.c:23:24: fatal error: netinet/in.h: No such file or directory
>  #include <netinet/in.h>

I would expect that configuration with --disable-networking then
problem cold go away. What toolchain (NewLib, GCC) do you use?
The missing file is part of the RTEMS


it is preinstalled during build to


and finally installed to 


> I have build RTEMS for Raspberry PI 2 with the following parameters :
> $sandbox/rtems/configure --target=arm-rtems4.12 --prefix="$sandbox/
> rtems-4.12" --enable-networking --enable-rtemsbsp=raspberrypi2
> The build is successful, however when I try building the rki it gives out
> the above error.

As for the actual mainline, I have build RPi 2 with my latest
patches setup successfully. I used next configuration

../../../git/rtems/configure --target=arm-rtems4.12 --prefix=/opt/rtems4.12 \
  --enable-rtems-inlines --disable-multiprocessing --enable-cxx \
  --enable-rdbg --enable-maintainer-mode --enable-tests=samples \
  --enable-networking --enable-posix --disable-itron --disable-ada \
  --disable-expada --disable-multilib --disable-docs \

I have tested on HW only RPi1 build, but I have managed/hacked my build
of QEMU 2.6 to run RPi2 ticker image with arm-none-eabi-gdb used for
load of image to the emulator. The ticker run through whole initialization
and prints the time zero messages. But then it stalls because RTEMS
use of timer seems to be inncompatible with QEMU RPi2 limited support
still. I hope that my RTEMS RPi BSP updates should work well
with real RPi2 HW and even graphic console should work same as on RPi1
when enabled by config.txt.

It would be great if my series can be tested and ACKed for mainline

Best wishes,


More information about the devel mailing list