[okl4-developer] serial driver l4_kdb

Lukas HANEL lukas.hanel at st.com
Sat May 17 01:34:29 EST 2008


Hello

I am currently trying to get the iguana drivers example to work on my
machine. Therefore
I currently want to use the l4_kdb driver in v2 framework.

When testing the examples that do not need drivers, I was already seeing
output. How does this go in line with the possibility to explicitly set
the kernel debugger as serial console?

If iguana is already using kdb, is it possible to also provide a virtual
serial server using kdb, such that Linux can use it?

Problems:
But there are two packages,
  drv_l4_kdb,
  l4kdb_uart.
Which one do I want to use?

In the machines.py, what do I set for memory and interrupt?
 Just empty structures?

serial_driver = "l4kdb_uart"
    v2_drivers = [  (serial_driver, "vserial", serial_memory,
serial_interrupt), ...

Note: when using drv_l4_kdb I get a bunch of errors:
[CC  ] build/iguana/vserial/object/src/serial_server.o
[CC  ] build/iguana/include/interfaces/vserial_serverloop.o
[CC  ] build/iguana/object/libs_drv_l4_kdb/src/main.o
drivers/drv_l4_kdb/src/main.c:62:34: driver/character_ops.h: No such
file or directory
drivers/drv_l4_kdb/src/main.c:73:25: timer/timer.h: No such file or
directory
drivers/drv_l4_kdb/src/main.c:76: error: parse error before "dma_handle_t"
drivers/drv_l4_kdb/src/main.c:77: warning: function declaration isn't a
prototype
...

However, when using l4kdb_uart I get some other errors:
[CC  ] build/iguana/vserial/object/src/serial_server.o
[CC  ] build/iguana/include/interfaces/vserial_serverloop.o
python tools/dd_dsl_2.py drivers/l4kdb_uart/src/l4kdb_uart.dx
build/iguana/object/drivers_l4kdb_uart/src/l4kdb_uart.h arm
[CC  ] build/iguana/object/libs_l4kdb_uart/src/main.o
drivers/l4kdb_uart/src/main.c: In function `pollthrd':
drivers/l4kdb_uart/src/main.c:117: error: too few arguments to function
`L4_KDB_ReadChar'
drivers/l4kdb_uart/src/main.c:118: warning: comparison is always true
due to limited range of data type






More information about the Developer mailing list