[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Why does open("/dev/ttyS0",...) fail in my user app?
Hi,
i think you have to make sure there is a driver associated with the tty's major
number. You can look whether there is such a driver loaded somewhere in
/proc/drivers (if i am correct) .
If there is not you should add a driver during kernel compile time by selecting
it from the options in menuconfig or make your own driver.
Someone correct me if i'm wrong, Wouter
Quoting Brettschneider Falk <fbrettschneider@baumeroptronic.de>:
> 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/
>
>
--
Wouter Wiggers
Intern @ University of Queensland, Australia
Master student @ University of Twente, Netherlands
___________________________
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/