Re: getty over serial is running

2007-04-19 Thread Frantisek Dufka

Eero Tamminen wrote:

Hi,

ext Kalle Vahlman wrote:

Mystery solved. There is clear bug in the script. While the comment
above dd
talks about reading it writes to /dev/ttyS0 creating 1 byte regular
file in /dev.

#test if we can read ttyS0, we have serial console
if dd of=/dev/ttyS0 count=1 bs=1 if=/dev/zero ; then

So everybody should have getty running in latest FW.
Or did I change the script while sleeping?

If you did, you did it on my device too.


:-)

- Bug to Bugzilla?



Reported as https://maemo.org/bugzilla/show_bug.cgi?id=1222
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


getty over serial is running

2007-04-18 Thread Frantisek Dufka

Frantisek Dufka wrote:

Eero Tamminen wrote:


Are you building your own kernel which is newer than the one coming
with the latest release?I heard that with some of the newer versions
/etc/init.d/ttyusb0 could start getty and the script needs to be updated
for newer kernel.


Well, I do have /dev/ttyS0 device file.
dd read test for serial in /etc/init.d/ttyusb0 does not fail
Nokia-N800-10:~# /etc/init.d/ttyusb0 start
1+0 records in
1+0 records out
so the scripts uncomments line
#T0:12345:respawn:/sbin/getty -L ttyS0 115200 vt100
and I see
Nokia-N800-10:~# ps -ef | grep getty
 1550 root460 S   /sbin/getty -L ttyS0 115200 vt100

Workaround is to comment inittab line with two #'s.

How is this supposed to work in theory?

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


getty over serial is running

2007-04-18 Thread FrantiĊĦek Dufka

   I heard that with some of the newer versions
 /etc/init.d/ttyusb0 could start getty and the script needs to be updated
 for newer kernel.
 

Mystery solved. There is clear bug in the script. While the comment above dd 
talks about reading it writes to /dev/ttyS0 creating 1 byte regular file in 
/dev.

#test if we can read ttyS0, we have serial console
if dd of=/dev/ttyS0 count=1 bs=1 if=/dev/zero ; then

So everybody should have getty running in latest FW.
Or did I change the script while sleeping?

Frantisek
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers