Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2002 22:43:18 +0800
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        stable@freebsd.org
Subject:   cu(1) fails to run ~$cat file
Message-ID:  <20020716224318.A797@grosbein.pp.ru>

next in thread | raw e-mail | index | archive | help
Hi!

I try to reprogram 1M flash of my modem, connect to port
using 'cu -l cuaa1 -s 57600' (port uses hardware flow control, crtscts)
and send flash loader software using
~$cat loader.s37

The loader is small (23078 bytes) and is transferred right, it starts,
prompts me for flash image and waits. Note the speed must be 57600 or
less to smooth reprogramming. Now I send image using ~$cat image.s37
(393250 bytes), it starts sending but at some point cat(1) fails with
'Input/output error'. So I get inoperable flash.

I suspect that cu(1) doesn't keep data rate under 57600 so I enable
rshd, play with dummynet and mtu of lo0 and use another console to run
rsh localhost cat image.s37 >>/dev/cuaa1

instead of 
~$cat image.s37

dummynet keeps data rate under 57600 and reprogramming process completes
successfully so I can send this letter :-)

I wonder why cu(1) doesn't handles output of cat(1) correctly?
I tried also to use ~> instead of ~$cat to send file but failed to
deny cu(1) to check echo. I tried ~s binary (binary mode transfer)
and ~s echonl \000 (disable waiting for echo) but it still waits for echo.
~s echo-check is false by default.

Eugene Grosbein

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020716224318.A797>