Debug RTEMS RTL using qemu-system-arm

Peng Fan van.freenix at gmail.com
Sat Jul 5 07:44:58 UTC 2014


Hi,

I encountered a problem when using qemu-system-arm to simulate RTEMS RTL
using `qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9
-m 256M -kernel build/arm-rtems4.11-realview_pbx_a9_qemu/rtld`

it continuly outputs the following msg, but not run into a shell prompt:
"
pthread_setspecific(shell_current_env_key)
Starting shell....

pthread_setspecific(shell_current_env_key)
Starting shell....

pthread_setspecific(shell_current_env_key)
Starting shell....

pthread_setspecific(shell_current_env_key)
Starting shell....
"
I found that  `sc = rtems_shell_init ("fstst", 60 * 1024, 150,
"/dev/console", 0, 1, NULL);`  returns immediately with the return value
RTEMS_SUCCESSFULL.

If I `git reset --hard *ffc862cbf567*` to the following RTEMS commit,
"commit *ffc862cbf567*068d1cc2b8417bafdf808dfcc67a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:   Tue Sep 17 13:08:49 2013 +0200

    bsp/realview-pbx-a9: Add NULL pointer protection

    Qemu Git version 8641136c54d216edb5bb8ef723c754039b4ce5cf3 or later is
    required."
RTL runs well. I am not familiar with RTEMS internal, not sure why this.
The qemu verison is 2.0.0. RTEMS is 4.11.

Regards,
Peng.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140705/f100eaee/attachment-0001.html>


More information about the users mailing list