Wednesday, June 15, 2016

How to build patched RTEMS for Jailhouse

If you want to make a rtems cell for jailhouse, you should patch rtems.

I got five patch files from Jan Kiszka. ( jan.kiszka@siemens.com )
The patch files are involved with apic, ioapic, pic, memory etc for jailhouse to support rtems.

I got rtems and rtems-source-builder from git.
I checkout rtems and rtems-source-builder.

rtems baseline is commit f334847.
rtems-source-builder baseline is commit 04aadb6.
I matched rtems and rtems-source-builder by date of commit.

If you use rtems-source-builder master, you would get some error when you install i386-rtems by sb-set-builder.

Joel Sherrill will clone RTEMS for this old version issue.

After patching rtems, I installed rtems with command for jailhouse.
# ../rtems_git_dir/configure USE_COM1_AS_CONSOLE=1 CLOCK_DRIVER_USE_TSC=1 \
>    CLOCK_DRIVER_USE_8254=0 BSP_PRESS_KEY_FOR_RESET=1 --target=i386-rtems4.11 \
>    --enable-networking --enable-tests=samples --disable-posix --disable-multiprocessing \
>    --disable-cxx --enable-rtemsbsp=pc386 --prefix=~/rtems_build_dir \
>     BSP_PRINT_EXCEPTION_CONTEXT=1

And then, you can use hello.bin for jailhouse in testsuites.

Now I am writing config file for jailhouse to create cell for rtems.

No comments:

Post a Comment