Hi Tobias,

i think your last e-mail only reached me ;-)

When investigating your example: without knowing to much of how HelenOS
works, but I would think your hello example not even gets executed at
all, or am I wrong?

Assuming it doesn't get executed at all, please find out what needs to
be done, that your example is used as roottask. Is it just a naming
convention, e.g. the binary has to be named init, or has it to do with
some special elf-section of the binary, or does it need to be relocated
to a special address, or something else?

Moreover, your code still lacks initialization of the serial device, but
anyway I tried it myself, and I'm almost sure it isn't executed at all.
I've put an endless while-loop at the beginning of the program, and then
listed all tasks and threads in the kernel debugger via 'tasks' and
'threads' command, there was nothing more than the kernel.

With regard to the serial output of the kernel (I mean the patch from
Vojtech): it worked for me, after enabling serial output in the
kernel-config, I got all kernel messages printed on the serial line. But
it's probably not that useful to you at this stage, because input isn't
used from the serial line, so if you try to use the kernel konsole you
have to type into the framebuffer window of qemu while the output goes
to the serial line ;-)

Ok, I hope that helps you at least a bit. I appreciate, that you've
responded in such a timely manner, and showed up your current problems.
Let's keep in touch.

Regards
Stefan

On 30.05.2012 13:41, Tobias Börtitz wrote:
> Hey,
> 
> I have to agree with Stefan in all points.
> Therefore I modified my code trying to implement both approaches (serial
> output by using the SYS_IOSPACE_ENABLE syscall and serial output via
> klog_write). It's compiling but neither one of those approaches is
> printing anything to the serial port yet. I'm still trying to figure out
> what went wrong or what I forgot to do. The code can be found in my
> repository [1] in /src/tests/simple_serial_print/.
> 
> Regards
> Tobias
> 
> 
> 
> 
> [1] https://github.com/kurbel/genode/tree/base-spartan

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to