NetBSD-Users archive

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

Re: ldattach(8) alike util in NetBSD?



On 16 Feb 2015, at 10:12 , Fredrik Pettai <pettai%nordu.net@localhost> wrote:

> On 16 Feb 2015, at 03:34 , Christos Zoulas <christos%astron.com@localhost> wrote:
>> 
>> 
>> What are you trying to do here? Use a serial line from a program
>> that does not understand how to set the baud rate?
> 
> Adjust the baud rate on the tty, then read the output from that tty
> cat /dev/ttyU0 doesn’t seem to work, so I guess I need to set it in tty “raw” mode.
> 
> However, stty switches back to the original settings:
> 
> rpi# stty -f /dev/ttyU0 speed 460800
> 9600
> 
> rpi# stty -a -f /dev/ttyU0 | head
> ispeed 0 baud; ospeed 9600 baud; 0 rows; 0 columns; queue = 1024; line = termios;
> lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
> 	-echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo
> 	-extproc
> iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
> 	brkint -inpck -ignpar -parmrk
> oflags: opost onlcr -ocrnl oxtabs onocr onlret
> cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -mdmbuf
> 	-cdtrcts
> cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;

Oh, as I wasn’t on the console, I didn’t notice that the RPI echoed stuff 
to the console while I was trying to set the baud rate via stty -f

/P

dwctwo0: dwc2_hc_chhltd_intr_dma: Channel 0 - ChHltd set, but reason is unknown
dwctwo0: hcint 0x00000402, intsts 0x06400009
dwctwo0: dwc2_hc_chhltd_intr_dma: Channel 7 - ChHltd set, but reason is unknown
dwctwo0: hcint 0x00000402, intsts 0x06400029
dwctwo0: dwc2_hc_chhltd_intr_dma: Channel 3 - ChHltd set, but reason is unknown
dwctwo0: hcint 0x00000402, intsts 0x06400029
ucomreadcb: wonky status=INVAL
dwctwo0: dwc2_hc_chhltd_intr_dma: Channel 3 - ChHltd set, but reason is unknown
dwctwo0: hcint 0x00000402, intsts 0x06400029
dwctwo0: dwc2_hc_chhltd_intr_dma: Channel 4 - ChHltd set, but reason is unknown
dwctwo0: hcint 0x00000402, intsts 0x06400029
dwctwo0: dwc2_hc_chhltd_intr_dma: Channel 2 - ChHltd set, but reason is unknown
dwctwo0: hcint 0x00000402, intsts 0x04400029
ucomreadcb: wonky status=INVAL


Home | Main Index | Thread Index | Old Index