[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Why does open("/dev/ttyS0",...) fail in my user app?



Hi,

Following the hint of John Williams I think now I prevent the blocking of
the serial port by the ucLinux console as I commented out the code lines in
function "void xmbrs_console_init(void)" of file
uclinux_dist/linux_2.4.x/arch/microblaze/kernel/xmbserial.c and recompiled
the kernel.

But anyway, this posix code in my user app still fails with return value 0.
	int fd = open("/dev/ttyS0", O_RDWR | O_ASYNC, 0666);

Any idea?

Mit freundlichen Grüßen / Best regards

Falk Brettschneider
___________________________________

  Dipl.-Inform. Falk Brettschneider
  Softwareentwickler / Software Developer
  Baumer Optronic GmbH
  http://www.baumeroptronic.de
 

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/