Skip to contentSkip to conversation

can't open /dev/tty No such device or address

Buildroot jeff angielski 3 participants 6 messages Feb 2, 2009 – Feb 3, 2009

lore
Share & tools
lore
#0 lore raw

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?

Signature · 3 lines
Jeff Angielski
The PTR Group
www.theptrgroup.com
#1 lore raw
Quoted 13 lines · jeff angielski

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.

Quoted 8 lines
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

Signature · 1 line
Hamish Moffatt VK3SB <[email protected]> <[email protected]>
#2 lore raw
Quoted 19 lines · Hamish Moffatt
Quoted 18 lines · jeff angielski

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  
Quoted 6 lines
Quoted 3 lines

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.

Signature · 3 lines
Jeff Angielski
The PTR Group
www.theptrgroup.com
#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"jeff" == jeff angielski <[email protected]> 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?

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 10 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"jeff" == jeff angielski <[email protected]> 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.

Quoted 3 lines

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

Signature · 3 lines
Jeff Angielski
The PTR Group
www.theptrgroup.com
#5 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"jeff" == jeff angielski <[email protected]> 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].

Signature · 1 line
Bye, Peter Korsgaard