Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2015 17:00:28 +0800 (CST)
From:      "Yoyo Yan" <aopb592a80@163.com>
To:        freebsd-questions@freebsd.org
Subject:   Re:Ready to ship
Message-ID:  <66072e.b072.14d8a4d41e9.Coremail.aopb592a80@163.com>

Next in thread | Raw E-Mail | Index | Archive | Help
RGVhciBDdXN0b21lciwKCgpIb3cgYXJlIHlvdT8KCklmIHlvdSBidXkgZ29vZHMgZnJvbSBDaGlu
YSBtYWlubGFuZCBhbmQgd2FudCB0byBzYXZlIHRoZSBzaGlwcGluZyBmZWVzIGZyb20gY2hpbmEg
dG8geW91ciBjb3VudHJ5LAoKd2VsY29tZSB0byBjb250YWN0IHdpdGggbWUuV2UgYXJlIGludGVy
bmF0aW9uYWwgZXhwcmVzcyBzaGlwcGluZyBjaGluYSBpbiBDaGluYS4KQ2FuIGhlbHAgdG8gc2hp
cCBnb29kcyB0byBhbGwgb3ZlciB0aGUgd29ybGQuCk91ciBzZXJ2aWNlOiBESEwvVVBTL0ZFREVY
L1ROVC4gZXhwcmVzcyBEb29yIHRvIGRvb3IgYW5kIGRvb3IgdG8gYWlycG9ydC4KRm9yIG1vcmUg
ZGV0YWlscyB3ZWxjb21lIHRvIGNhbGwgbWUuCkl0IGlzIHRpbWUgZm9yIHlvdSB0byBzYXZlIHNo
aXBwaW5nIGZlZXMgb2YgZG9pbmcgYnVzaW5lc3Mgd2l0aCBjaGluZXNlLiBeX14KCkJlc3QgcmVn
YXJkcyAKCllveW8gWWFuClRlbDo4NiA3NTUgNjY4MDI5NTQKTW9iaWxlOjg2IDE1OTE0MDQ5MTcy
CkVtYWlsOnNhbGVzM0BleHByZXNzLWRmaC5jb20KUVE6IDIyNTI2MzI5ODYKU2t5cGU6eWp4enk2
NTUyCgoKRE9OR0ZBTkdIT05HIElOVEVSTkFUSU9OQUwgTE9HSVNUSUNTL0VYUFJFU1MgQ09NUEFO
WSBMSU1JVEVECiAgICAgICAgICAgICAgIAoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCg==
From owner-freebsd-questions@FreeBSD.ORG  Mon May 25 09:20:44 2015
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 0DD66400
 for <freebsd-questions@freebsd.org>; Mon, 25 May 2015 09:20:44 +0000 (UTC)
 (envelope-from guru@unixarea.de)
Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101])
 (using TLSv1 with cipher AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id C052D94B
 for <freebsd-questions@freebsd.org>; Mon, 25 May 2015 09:20:43 +0000 (UTC)
 (envelope-from guru@unixarea.de)
Received: from [93.104.4.185] (helo=localhost.unixarea.de)
 by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.76) (envelope-from <guru@unixarea.de>)
 id 1YwoYk-0006Hp-06; Mon, 25 May 2015 11:20:34 +0200
Received: from localhost.my.domain (c720-r276659 [127.0.0.1])
 by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t4P9KW9A002462
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO);
 Mon, 25 May 2015 11:20:32 +0200 (CEST)
 (envelope-from guru@unixarea.de)
Received: (from guru@localhost)
 by localhost.my.domain (8.14.9/8.14.9/Submit) id t4P9KVwi002461;
 Mon, 25 May 2015 11:20:31 +0200 (CEST)
 (envelope-from guru@unixarea.de)
X-Authentication-Warning: localhost.my.domain: guru set sender to
 guru@unixarea.de using -f
Date: Mon, 25 May 2015 11:20:26 +0200
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-questions@freebsd.org
Cc: Polytropon <freebsd@edvax.de>
Subject: Re: USB to serial adapter
Message-ID: <20150525092026.GA2429@c720-r276659>
Reply-To: Matthias Apitz <guru@unixarea.de>
Mail-Followup-To: Matthias Apitz <guru@unixarea.de>,
 freebsd-questions@freebsd.org, Polytropon <freebsd@edvax.de>
References: <20150502145500.GA2402@c720-r276659>
 <20150502234245.e1098b2a.freebsd@edvax.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <20150502234245.e1098b2a.freebsd@edvax.de>
X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386)
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Con-Id: 51246
X-Con-U: 0-guru
X-Originating-IP: 93.104.4.185
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 25 May 2015 09:20:44 -0000

El día Saturday, May 02, 2015 a las 11:42:45PM +0200, Polytropon escribió:

> On Sat, 2 May 2015 16:55:00 +0200, Matthias Apitz wrote:
> > I have an old VT100 terminal and want this connect to a laptop running
> > FreeBSD which has only USB ports (just for fun to participate in some
> > Vintage Computer Festival). Anybody knows a good adapter which works
> > with our uplcom(4) driver?
> 
> I'd be interested in that topic, too. I have the DEC vt101
> which still works (tested with _real_ serial port), but
> as serial ports are vanishing on desktops, and are being
> nonexistent on laptops, this would be a nice recipe to
> have in order to bring a piece of museum art back to life.

I have it connected today via the USB-to-serial adapter and it is mostly
working fine;

the /etc/ttys line is:
cuaU0   "/usr/libexec/getty std.9600"   vt102   on secure

what is working:

- I can login as 'root' and run for hours something like 'ls -lR /'
  (just to check the serial output)

what is not working:

- if I login as any other unpriv user (and I created a new one for this)
  it hangs after presenting the /etc/motd file; it just hangs

login: valentin
Password: .....

Last login: ....
FreeBSD 11.0-CURRENT (GENERIC) #1 r276659M: Tue Apr 28 15:50:23 CEST 2015

Welcome to FreeBSD!

(hanging)

a ps shows:

2293 U0  Is+    0:00,05 login [pam] (login)
2294 U0  I+     0:00,01 -sh (sh)

and when I fire up a truss command on the shell proc it gives the output
below and the session on the VT102 goes on and all is working fine.

What could cause this?

Thanks

	matthias

# truss -p 2294 2>> tty.txt
# cat tty.txt
ioctl(0,TIOCGETA,0xbfbfed00)			 = 0 (0x0)
fcntl(0,0x11,0xa)				 = 10 (0xa)
ioctl(10,TIOCGPGRP,0xbfbfed34)			 = 0 (0x0)
getpgrp()					 = 2293 (0x8f5)
sigaction(SIGTSTP,0x0,{ SIG_IGN SA_RESTART ss_t }) = 0 (0x0)
sigaction(SIGTTOU,0x0,{ SIG_IGN 0x0 ss_t })	 = 0 (0x0)
sigaction(SIGTTIN,0x0,{ SIG_IGN 0x0 ss_t })	 = 0 (0x0)
sigaction(SIGTTIN,{ SIG_DFL 0x0 ss_t },0x0)	 = 0 (0x0)
setpgid(0x0,0x8f6,0xa,0x0,0xbfbfee00,0xbfbfed70) = 0 (0x0)
ioctl(10,TIOCSPGRP,0xbfbfed34)			 = 0 (0x0)
__getcwd("/usr/home/valentin",256)		 = 0 (0x0)
stat("/var/mail/valentin",{ mode=-rw------- ,inode=1767799,size=0,blksize=32768 }) = 0 (0x0)
open("/etc/profile",O_CLOEXEC,00)		 = 3 (0x3)
read(3,"# $FreeBSD: head/etc/profile 208"...,1024) = 616 (0x268)
read(3,0x28879600,1024)				 = 0 (0x0)
close(3)					 = 0 (0x0)
open("/home/valentin/.profile",O_CLOEXEC,00)	 = 3 (0x3)
read(3,"# $FreeBSD: head/share/skel/dot."...,1024) = 810 (0x32a)
stat("/usr/games/fortune",{ mode=-r-xr-xr-x ,inode=1365149,size=18808,blksize=32768 }) = 0 (0x0)
eaccess(0x28889438,0x1,0x0,0x2,0x4e,0x14d49d)	 = 0 (0x0)
geteuid()					 = 1002 (0x3ea)
fork()						 = 2300 (0x8fc)
setpgid(0x8fc,0x8fc,0x0,0x1,0x0,0x0)		 ERR#13 'Permission denied'
wait4(-1,{ EXITED,val=0 },WUNTRACED|WCONTINUED,0x0) = 2300 (0x8fc)
ioctl(10,TIOCSPGRP,0xbfbfeb98)			 = 0 (0x0)
read(3,0x28879600,1024)				 = 0 (0x0)
close(3)					 = 0 (0x0)
open("/home/valentin/.shrc",O_CLOEXEC,00)	 = 3 (0x3)
read(3,"# $FreeBSD: head/share/skel/dot."...,1024) = 971 (0x3cb)
issetugid(0x281f7000,0x2814b41e,0x28148eee,0x281491ee,0x28,0x2814785e) = 0 (0x0)
open("/home/valentin/.editrc",O_RDONLY,0666)	 ERR#2 'No such file or directory'
read(3,0x28879600,1024)				 = 0 (0x0)
close(3)					 = 0 (0x0)
wait4(-1,0xbfbfecc4,WNOHANG|WUNTRACED|WCONTINUED,0x0) ERR#10 'No child processes'
stat("/var/mail/valentin",{ mode=-rw------- ,inode=1767799,size=0,blksize=32768 }) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGWINCH,0x0)		 = 0 (0x0)
ioctl(0,TIOCGWINSZ,0xbfbfeca8)			 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGWINCH,0x0)		 = 0 (0x0)
ioctl(0,TIOCGWINSZ,0xbfbfec58)			 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
fstat(2,{ mode=crw------- ,inode=117,size=0,blksize=4096 }) = 0 (0x0)
ioctl(2,TIOCGETA,0xbfbfeac0)			 = 0 (0x0)
write(2,"$ ",2)					 = 2 (0x2)
ioctl(0,TIOCGETA,0x2880d4d4)			 = 0 (0x0)
ioctl(0,TIOCSETAW,0x2880d4a8)			 = 0 (0x0)
read(0,"l",1)					 = 1 (0x1)
write(2,"l",1)					 = 1 (0x1)
read(0,"s",1)					 = 1 (0x1)
write(2,"s",1)					 = 1 (0x1)
read(0,"\n",1)					 = 1 (0x1)
write(2,"\n",1)					 = 1 (0x1)
ioctl(0,TIOCSETAW,0x2880d47c)			 = 0 (0x0)
stat("/sbin/ls",0xbfbfeb48)			 ERR#2 'No such file or directory'
stat("/bin/ls",{ mode=-r-xr-xr-x ,inode=963101,size=27268,blksize=32768 }) = 0 (0x0)
fork()						 = 2301 (0x8fd)
setpgid(0x8fd,0x8fd,0x200,0x1,0x0,0x0)		 = 0 (0x0)
wait4(-1,{ EXITED,val=0 },WUNTRACED|WCONTINUED,0x0) = 2301 (0x8fd)
ioctl(10,TIOCSPGRP,0xbfbfeba8)			 = 0 (0x0)
wait4(-1,0xbfbfecc4,WNOHANG|WUNTRACED|WCONTINUED,0x0) ERR#10 'No child processes'
stat("/var/mail/valentin",{ mode=-rw------- ,inode=1767799,size=0,blksize=32768 }) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGWINCH,0x0)		 = 0 (0x0)
ioctl(0,TIOCGWINSZ,0xbfbfeca8)			 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGWINCH,0x0)		 = 0 (0x0)
ioctl(0,TIOCGWINSZ,0xbfbfec58)			 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
write(2,"$ ",2)					 = 2 (0x2)
ioctl(0,TIOCGETA,0x2880d4d4)			 = 0 (0x0)
ioctl(0,TIOCSETAW,0x2880d4a8)			 = 0 (0x0)
read(0,"l",1)					 = 1 (0x1)
write(2,"l",1)					 = 1 (0x1)
read(0,"s",1)					 = 1 (0x1)
write(2,"s",1)					 = 1 (0x1)
read(0," ",1)					 = 1 (0x1)
write(2," ",1)					 = 1 (0x1)
read(0,"/",1)					 = 1 (0x1)
write(2,"/",1)					 = 1 (0x1)
read(0,"t",1)					 = 1 (0x1)
write(2,"t",1)					 = 1 (0x1)
read(0,"m",1)					 = 1 (0x1)
write(2,"m",1)					 = 1 (0x1)
read(0,"p",1)					 = 1 (0x1)
write(2,"p",1)					 = 1 (0x1)
read(0,"\n",1)					 = 1 (0x1)
write(2,"\n",1)					 = 1 (0x1)
ioctl(0,TIOCSETAW,0x2880d47c)			 = 0 (0x0)
fork()						 = 2302 (0x8fe)
setpgid(0x8fe,0x8fe,0x200,0x1,0x0,0x0)		 = 0 (0x0)
wait4(-1,{ EXITED,val=0 },WUNTRACED|WCONTINUED,0x0) = 2302 (0x8fe)
ioctl(10,TIOCSPGRP,0xbfbfeba8)			 = 0 (0x0)
wait4(-1,0xbfbfecc4,WNOHANG|WUNTRACED|WCONTINUED,0x0) ERR#10 'No child processes'
stat("/var/mail/valentin",{ mode=-rw------- ,inode=1767799,size=0,blksize=32768 }) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGWINCH,0x0)		 = 0 (0x0)
ioctl(0,TIOCGWINSZ,0xbfbfeca8)			 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGWINCH,0x0)		 = 0 (0x0)
ioctl(0,TIOCGWINSZ,0xbfbfec58)			 = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0)		 = 0 (0x0)
write(2,"$ ",2)					 = 2 (0x2)
ioctl(0,TIOCGETA,0x2880d4d4)			 = 0 (0x0)
ioctl(0,TIOCSETAW,0x2880d4a8)			 = 0 (0x0)

-- 
Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211    +49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?66072e.b072.14d8a4d41e9.Coremail.aopb592a80>