Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] can't open /dev/tty No such device or address
@ 2009-02-02 22:29 jeff angielski
  2009-02-02 23:24 ` Hamish Moffatt
  0 siblings, 1 reply; 6+ messages in thread
From: jeff angielski @ 2009-02-02 22:29 UTC (permalink / raw)
  To: buildroot


I am getting the following errors when trying to boot a CRAMFS image on
my PowerPC target.

can't open /dev/tty1: No such device or address
can't open /dev/tty2: No such device or address
can't open /dev/tty3: No such device or address
<repeats over and over>


If I log into the system through my serial port (/dev/ttyCPM0) you can
see that the char devs exist in the fileystem.

crw-rw-rw-  1 root     root       4,   1 Dec 31 17:00 tty1             
crw-rw-rw-  1 root     root       4,   2 Dec 31 17:00 tty2             
crw-rw-rw-  1 root     root       4,   3 Dec 31 17:00 tty3  


The node info matches the device_table.txt.

Any idea what is going on here?  Anybody else seeing this?


-- 
Jeff Angielski
The PTR Group
www.theptrgroup.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] can't open /dev/tty No such device or address
  2009-02-02 22:29 [Buildroot] can't open /dev/tty No such device or address jeff angielski
@ 2009-02-02 23:24 ` Hamish Moffatt
  2009-02-03  4:03   ` jeff angielski
  0 siblings, 1 reply; 6+ messages in thread
From: Hamish Moffatt @ 2009-02-02 23:24 UTC (permalink / raw)
  To: buildroot

On Mon, Feb 02, 2009 at 05:29:05PM -0500, jeff angielski wrote:
> 
> I am getting the following errors when trying to boot a CRAMFS image on
> my PowerPC target.
> 
> can't open /dev/tty1: No such device or address
> can't open /dev/tty2: No such device or address
> can't open /dev/tty3: No such device or address
> <repeats over and over>
> 
> 
> If I log into the system through my serial port (/dev/ttyCPM0) you can
> see that the char devs exist in the fileystem.
> 
> crw-rw-rw-  1 root     root       4,   1 Dec 31 17:00 tty1             
> crw-rw-rw-  1 root     root       4,   2 Dec 31 17:00 tty2             
> crw-rw-rw-  1 root     root       4,   3 Dec 31 17:00 tty3  
> 
> 
> The node info matches the device_table.txt.
> 
> Any idea what is going on here?  Anybody else seeing this?

You have the /dev entries but no driver for device 4, 1 etc in the
kernel.


Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] can't open /dev/tty No such device or address
  2009-02-02 23:24 ` Hamish Moffatt
@ 2009-02-03  4:03   ` jeff angielski
  2009-02-03  7:01     ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: jeff angielski @ 2009-02-03  4:03 UTC (permalink / raw)
  To: buildroot

On Tue, 2009-02-03 at 10:24 +1100, Hamish Moffatt wrote:
> On Mon, Feb 02, 2009 at 05:29:05PM -0500, jeff angielski wrote:
> > 
> > I am getting the following errors when trying to boot a CRAMFS image on
> > my PowerPC target.
> > 
> > can't open /dev/tty1: No such device or address
> > can't open /dev/tty2: No such device or address
> > can't open /dev/tty3: No such device or address
> > <repeats over and over>
> > 
> > 
> > If I log into the system through my serial port (/dev/ttyCPM0) you can
> > see that the char devs exist in the fileystem.
> > 
> > crw-rw-rw-  1 root     root       4,   1 Dec 31 17:00 tty1             
> > crw-rw-rw-  1 root     root       4,   2 Dec 31 17:00 tty2             
> > crw-rw-rw-  1 root     root       4,   3 Dec 31 17:00 tty3  
> > 
> > 
> > The node info matches the device_table.txt.
> > 
> > Any idea what is going on here?  Anybody else seeing this?
> 
> You have the /dev entries but no driver for device 4, 1 etc in the
> kernel.

You are correct.  At some point while I was trying to get my serial
port, /dev/ttyCPM0, up and running as the serial console in buildroot I
must have inadvertently disabled Virtual Terminals in the kernel config
file.  Once I enabled them again all was well.

Thanks for the info.


-- 
Jeff Angielski
The PTR Group
www.theptrgroup.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] can't open /dev/tty No such device or address
  2009-02-03  4:03   ` jeff angielski
@ 2009-02-03  7:01     ` Peter Korsgaard
  2009-02-03 13:25       ` jeff angielski
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Korsgaard @ 2009-02-03  7:01 UTC (permalink / raw)
  To: buildroot

>>>>> "jeff" == jeff angielski <jeff@theptrgroup.com> writes:

Hi,

 jeff> You are correct.  At some point while I was trying to get my
 jeff> serial port, /dev/ttyCPM0, up and running as the serial console
 jeff> in buildroot I must have inadvertently disabled Virtual
 jeff> Terminals in the kernel config file.  Once I enabled them again
 jeff> all was well.

We don't seem to have ttyCPMx devices listed in the default
/etc/securetty, what major/minor device numbers does it use and how
many are typically present?

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] can't open /dev/tty No such device or address
  2009-02-03  7:01     ` Peter Korsgaard
@ 2009-02-03 13:25       ` jeff angielski
  2009-02-03 14:28         ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: jeff angielski @ 2009-02-03 13:25 UTC (permalink / raw)
  To: buildroot

On Tue, 2009-02-03 at 08:01 +0100, Peter Korsgaard wrote:
> >>>>> "jeff" == jeff angielski <jeff@theptrgroup.com> writes:
> 
> Hi,
> 
>  jeff> You are correct.  At some point while I was trying to get my
>  jeff> serial port, /dev/ttyCPM0, up and running as the serial console
>  jeff> in buildroot I must have inadvertently disabled Virtual
>  jeff> Terminals in the kernel config file.  Once I enabled them again
>  jeff> all was well.
> 
> We don't seem to have ttyCPMx devices listed in the default
> /etc/securetty, what major/minor device numbers does it use and how
> many are typically present?

These are serial ports from the 2.6.x kernel based on the CPM core in
the PowerPC processors.  They can be found in the linux kernel under
linux/drivers/serial/cpm_uart.

Here is what I added to the device_table.txt to make it work.

/dev/ttyCPM c	666	0	0	204	46	0	1	6


-- 
Jeff Angielski
The PTR Group
www.theptrgroup.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] can't open /dev/tty No such device or address
  2009-02-03 13:25       ` jeff angielski
@ 2009-02-03 14:28         ` Peter Korsgaard
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2009-02-03 14:28 UTC (permalink / raw)
  To: buildroot

>>>>> "jeff" == jeff angielski <jeff@theptrgroup.com> writes:

 jeff> Here is what I added to the device_table.txt to make it work.

 jeff> /dev/ttyCPM c	666	0	0	204	46	0	1	6

6 nodes? devices.txt seems a bit broken in this regard, but it seems
like only the region 46..49 has been reserved for cpm.

I've updated the generic device_table.txt / securetty with
ttyCPM[0-3].

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-03 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 22:29 [Buildroot] can't open /dev/tty No such device or address jeff angielski
2009-02-02 23:24 ` Hamish Moffatt
2009-02-03  4:03   ` jeff angielski
2009-02-03  7:01     ` Peter Korsgaard
2009-02-03 13:25       ` jeff angielski
2009-02-03 14:28         ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox