Re: sys_open() return -ENXIO when booting kernel

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

On Mon, Aug 21, 2006 at 08:51:45PM +0800, ?????? wrote:
>  On Mon, Aug 21, 2006 at 05:57:24PM +0800, ?????? wrote:
> > I trace kernel and find tty->driver->open calls uart_open() function.
> > And I think uart_get() give ENXIO finally.
> >  
> > I want to know why ENXIO return.  May be rootfs has no the device opend?
> Because there was no UART registered for that, or there was and it has been
> subsequently marked for removal.
> (If you want better help, please publish your source code.)
> OK.
> The follow is my uart driver source code. And I have not modify the other
> kernel file, for example, main.c, tty_io.c, serial_core.c, open.c, etc.
> Please check it.
> static struct device_driver vdavinci_driver = {
> 	.name		= "vdavinci_uart",
> 	.bus		= &platform_bus_type,

Do you have a corresponding platform device registered?

List admin:

[Linux ARM]     [Linux ARM MSM]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google Follow linuxarm on Twitter