replacement for bin2boot in RTEMS 5.1
Chris Johns
chrisj at rtems.org
Wed Jan 16 23:08:40 UTC 2019
hi,
Sorry about the delay.
On 16/1/19 3:19 am, Heinz Junkes wrote:
> To boot rtems code within qemu we used bin2boot in 4.10 like
>
> i386-rtems4.10/pc386/build-tools/bin2boot dbScanTest.boot 0x00097E00 /home/travis/.rtems/i386-rtems4.10/pc386/lib/start16.bin 0x00097C00 0 dbScanTest.bin 0x00100000 0
>
> With RTEMS 5.1 this command disappeared with #3410. What can be used instead?
>
Nothing :)
You should consider using the ELF kernel directly and to avoid the 16bit stub.
For real hardware testing I use PXE to boot iPXE over a network and then chain
to GRUB.
I had a play with the RSB built qemu and RTEMS 5 I can run qemu for the PC BSP
configure with:
$ /opt/work/chris/rtems/kernel/rtems.git/configure --target=i386-rtems5 \
--prefix=/opt/work/chris/rtems/kernel/5 \
--enable-rtemsbsp=pc686 \
--enable-maintainer-mode \
BSP_PRINT_EXCEPTION_CONTEXT=1 \
BSP_PRESS_KEY_FOR_RESET=0 \
--enable-tests
$ make -j 12
$ ls
Makefile config.log config.status i386-rtems5
Using the following (no idea why COM3, but it) works:
$ qemu-system-i386 -no-reboot -serial null -append "--console=/dev/com3" \
-serial mon:stdio -net none -m 1024M -kernel `find . -name hello.exe`
i386: isr=0 irr=1
*** BEGIN OF TEST HELLO WORLD ***
*** TEST VERSION: 5.0.0.7af97f2ddb36669fe7e3735734076d6cf84c5879-modified
*** TEST STATE: EXPECTED-PASS
*** TEST BUILD: RTEMS_NETWORKING RTEMS_POSIX_API
*** TEST TOOLS: 7.4.0 20181206 (RTEMS 5, RSB
8b0e78a8039168e84326d956d4e2d92eeedce78b, Newlib
dc6e94551f09d3a983afd571478d63a09d6f66fa)
Hello World
*** END OF TEST HELLO WORLD ***
*** FATAL ***
fatal source: 5 (RTEMS_FATAL_SOURCE_EXIT)
fatal code: 0 (0x00000000)
RTEMS version: 5.0.0.7af97f2ddb36669fe7e3735734076d6cf84c5879-modified
RTEMS tools: 7.4.0 20181206 (RTEMS 5, RSB
8b0e78a8039168e84326d956d4e2d92eeedce78b, Newlib
dc6e94551f09d3a983afd571478d63a09d6f66fa)
executing thread ID: 0x08a010001
executing thread name: UI1
Note: the QEMU '-curses' option proved useful in figuring this out.
Chris
More information about the users
mailing list