RTEMS graphic testing on RPi

Pavel Pisa pisa at cmp.felk.cvut.cz
Mon Aug 24 16:19:37 UTC 2015


Hello Qiao and Joel,

I have rerun testing of actual RSB mainline testing
on RPi B device. Generally works well.

Used instructions included for archival there

  git clone git://git.rtems.org/rtems-source-builder.git
  cd rtems
  ../source-builder/sb-set-builder \
    --prefix=/opt/rtems4.11 \
    --rtems-bsp=arm/raspberrypi \
    --log=graphic-build-log.txt \
    --with-rtems-bsp=raspberrypi \
    --pkg-tar-files \
    4.11/graphics/freetype2.bset \
    4.11/graphics/libjpeg.bset \
    4.11/graphics/libpng.bset \
    4.11/graphics/libtiff.bset \
    4.11/graphics/t1lib.bset \
    4.11/graphics/microwindows.bset


There are minor problems with t1lib patch and libpng version changes

diff --git a/rtems/config/4.11/graphics/libpng.bset b/rtems/config/4.11/graphics/libpng.bset
index 4df0e03..b858081 100644
--- a/rtems/config/4.11/graphics/libpng.bset
+++ b/rtems/config/4.11/graphics/libpng.bset
@@ -17,4 +17,4 @@
 #
 # Build libpng.
 #
-graphics/libpng-1.5.22-1.cfg
+graphics/libpng-1.5.23-1.cfg
diff --git a/source-builder/config/t1lib-1.cfg b/source-builder/config/t1lib-1.cfg
index 38c3530..b11e1eb 100644
--- a/source-builder/config/t1lib-1.cfg
+++ b/source-builder/config/t1lib-1.cfg
@@ -20,7 +20,7 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
 #
 %source set t1lib ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%{t1lib_version}.tar.gz
 %patch add t1lib https://raw.githubusercontent.com/yangqiao/rtems-tools/graphics/tools/4.11/t1lib/t1lib-5.1.2.diff
-%hash md5 t1lib-5.1.2.diff 196b0e39e36cab5afc6c5c280dcbe9bc
+%hash md5 t1lib-5.1.2.diff 98eeed85780227adf8525deab3679877

 #
 # Prepare the source code.

We should get rid of microwindows patches or at least limit them
to the configuration file only
  microwindows-0.93-dev.diff
  microwindows-0.93-dev-without-keyboard.diff

I have some changes already included in my repo branch for RTEMS.
I.e. keyboard patch

  https://github.com/ppisa/microwindows/commit/57b3eb772dc4175bf356736fe239331c8e125721

I have there configuration file based override of graphic driver
even for RTEMS

  https://github.com/ppisa/microwindows/commit/a85ee935e4ff0f569455004d9a71cc3d218a7ca6

and even null KBD handling should land there.

I hope to find some spare time for that in reasonable time.

As of the 4.11/graphics/nxlib.bset, it does not build for RPi because
keyboard mapping is missing for that platform.

arm-rtems4.11-gcc --pipe -B/opt/rtems4.11/arm-rtems4.11/raspberrypi/lib/ -specs 
bsp_specs -qrtems   -DDEBUG=1 -g -Wall -I/opt/rtems4.11/arm-rtems4.11/raspberrypi/lib/
include/ -I. -DX11_FONT_DIR1=\"\" -DX11_FONT_DIR2=\"\" -DX11_FONT_DIR3=\"\" -DX11_RGBTXT=\"fonts/rgb.txt\" -O3 -I. -o StrKeysym.o -c 
StrKeysym.c
StrKeysym.c:20:30: fatal error: rtems/keyboard.h: No such file or directory
   #include <rtems/keyboard.h>
                              ^
I do not see that as big problem because NXlib is mainly for remote
graphic (i.e. X like protocol) and if I see well the NXlib is absorbed
now in Microwindows directly

See Gregory Haerr actual repo

  https://github.com/ghaerr/microwindows/tree/master/src

Generally, it is great that the RTEMS graphic support build
is included in official RSB repo now and runs on target.

Best wishes,

             Pavel



More information about the devel mailing list