Re: How to start telnetd in POSIX_Init

2019-07-24 Thread Sebastian Huber
On 24/07/2019 17:54, Heinz Junkes wrote: I use the posix implementation in RTEMS5. How can I start telnetd in POSIX_Init? Is there an example/manual? In the old and new network stack, you can start a telnet server like this: static void telnet_shell(char *name, void *arg) { rtems_she

Re: RTEMS C++ examples?

2019-07-24 Thread groups
I’m working on a bit of a hobby project right now and someone bullied me into trying C++. Fine. Plus I did say that I’d try it in anger at some point. So far I’ve managed to get a simple Init going that creates two tasks. I haven’t tried it yet, since it was 2AM when I finally got the right sequ

Re: RTEMS C++ examples?

2019-07-24 Thread Chris Johns
On 25/7/19 9:25 am, Joel Sherrill wrote: > One open issue we don't know the right solution to is how to mix C/C++ threads > with POSIX threads. The language threads don't have as many attributes as > POSIX > threads including stack size and priority. Ignoring that, the task > synchronization objec

Re: How to start telnetd in POSIX_Init

2019-07-24 Thread Chris Johns
On 25/7/19 1:54 am, Heinz Junkes wrote: > I use the posix implementation in RTEMS5. > > How can I start telnetd in POSIX_Init? > Is there an example/manual? If you are using LibBSD there is rc.conf support ... https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/telnetd/telnetd-service.c This mean

Re: RTEMS C++ examples?

2019-07-24 Thread Joel Sherrill
We don't have any great C++ examples but there are samples like cdtest. Personally, I am in the habit of having an rtems_config.c file which does configuration and startup and calls main. Just have a C++ main that is called from the Init thread. Pure POSIX code in the "main()". One open issue we d

Re: CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER macro issue

2019-07-24 Thread Joel Sherrill
On Wed, Jul 24, 2019, 1:58 PM Michel Macena wrote: > Thanks for the answer. > Sorry for my ignorance but I can't see how is this related with my > problem. I didn't get the "Create bad task" problem. Also there is no > fatal error with code 20. > No RTEMS bsp makes any effort to return an exit

Re: CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER macro issue

2019-07-24 Thread Michel Macena
Thanks for the answer. Sorry for my ignorance but I can't see how is this related with my problem. I didn't get the "Create bad task" problem. Also there is no fatal error with code 20. Em qua, 24 de jul de 2019 às 02:46, Sebastian Huber < sebastian.hu...@embedded-brains.de> escreveu: > > > On

How to start telnetd in POSIX_Init

2019-07-24 Thread Heinz Junkes
I use the posix implementation in RTEMS5. How can I start telnetd in POSIX_Init? Is there an example/manual? Very concretely: Which priority do I have to choose in the rtems_telnetd_config_table the Posix Prio or the rtems Prio? Danke, Heinz smime.p7s Description: S/MIME cryptographic sign

Change Clock Frequency

2019-07-24 Thread Michel Macena
Hi, I'm working with an ERC 32 target board and would like to change the system clock frequency. There is a file in $PROJECT_HOME/src/rtems/bsps/sparc/shared/start called Start.s. In this file there is a line for clock speed: > SYM(CLOCK_SPEED): > > .word 0x0a, 0, 0, 0 ! 7E (10 MHz default) > I

Problems running RTEMS on Raspberry Pi2

2019-07-24 Thread Jan.Sommer
Hello, We are having troubles getting RTEMS to run on the RPi2. We built the BSP from current master and used the firmware of a recent Raspbian on the SD-Card, but could not manage to get any output on the UART. We also tried to use an older version of the firmware as mentioned here by Alan (htt