[comp.sys.nsc.32k] Help.... monitor never returns from write

nomad@uxc.cso.uiuc.edu (Lee Damon) (09/23/90)

I'm not sure I'm doing this right, but here's the scoop:  I'm trying to
download the minix binaries (tar files) to dragon. I have the small
root system working, the system boots Minix, login works, etc.  (I did
all that the night I got the box running.)

At this point I'm trying to follow directions in step 5 of the install
doc.

>NS32000 ROM Debugger
>Version: Sat Jul 14 19:25:31 PDT 1990
>RAM free above 0x1554
>
>Command (? for help): download 2000
>Stopped
>castle.org# !db
>dbugger/downdos bin1.tz 1 < /dev/cua0 > /dev/cua0
>Length=346262 CRC=31424
>castle.org# z
>
>Stopped
>castle 84% fg
>su
>castle.org# fg
>tip tb9600
>CRC ok, length = 346262
>Command (? for help): write d'30256 2000 d'346262

(it never comes back.... the disk activity light went out a long time
ago.)

I've tried "write d'30256*2 2000 d'346262*2" and other combinations as
well. (I left the drive table alone, 40MB should be enough to get the
file systems up and running, and when I looked at bc64, the number
wasn't 0, so I didn't want to mess with things.) No matter what I do,
it never returns.

I then reboot the box, bring up minix, and try to read what I can:
(Hoping I'll get something...)

># ncat /dev/hd4 | uncompress > /tmp/bin1.tar
>Write failed
>stdin: not in compressed format

Based on the help command, I get the impression that I'm using it
right, howerver I'm 98% sure I'm not using the monitor's "write"
command correctly. I've tried all the combinations of write that I can
think of, based on what's in the Minix install docs. I looked at the
code in scsi_hi.c, but I'm not a programming type and it made little
sense to me.

Help?

nomad
---------------------------------                                     \
play: castle!nomad or nomad@castle.org      - Lee "nomad" Damon -      \
work: convex!nomad or nomad@convex.com                                  \
Marketing Computer Systems Administrator - Convex [Super]Computer Co.  / \
              "I Can't Stand Intolerance!"                            /   \

dlr@daver.bungi.com (Dave Rand) (09/23/90)

[In the message entitled "Help.... monitor never returns from write" on Sep 22, 14:07, Lee Damon writes:]
> >CRC ok, length = 346262
> >Command (? for help): write d'30256 2000 d'346262

Try using blocks... about d'677 should be enough (instead of 346262).

> ># ncat /dev/hd4 | uncompress > /tmp/bin1.tar
> >Write failed
> >stdin: not in compressed format

I didn't have any luck using pipes this way, and you are using ncat wrong.
Try:

ncat /dev/hd4 346262 >/tmp/bin.tar.Z
uncompress /tmp/bin.tar.Z
tar xvf /tmp/bin.tar

This should get you up...


-- 
Dave Rand
{pyramid|mips|bct|vsi1}!daver!dlr	Internet: dlr@daver.bungi.com

dlr@daver.bungi.com (Dave Rand) (09/23/90)

[In the message entitled "Re: Help.... monitor never returns from write" on Sep 22, 16:36, Dave Rand writes:]
> [In the message entitled "Help.... monitor never returns from write" on Sep 22, 14:07, Lee Damon writes:]
> > >CRC ok, length = 346262
> > >Command (? for help): write d'30256 2000 d'346262
> 
> Try using blocks... about d'677 should be enough (instead of 346262).

Teach me to reply too quickly!

Don't forget that the disk starting block is in disk-size blocks too.
You should probably try:

write d'60512 2000 d'677


-- 
Dave Rand
{pyramid|mips|bct|vsi1}!daver!dlr	Internet: dlr@daver.bungi.com

nomad@hydra.convex.com (Lee Damon) (09/23/90)

>> >CRC ok, length = 346262
>> >Command (? for help): write d'30256 2000 d'346262
>Try using blocks... about d'677 should be enough (instead of 346262).

<sigh> I read and reread and rereread that help message, and never
made the connection <block> != <byte> .  That's what I get for
being in a hurry.

>> ># ncat /dev/hd4 | uncompress > /tmp/bin1.tar
>I didn't have any luck using pipes this way, and you are using ncat wrong.

And again, what I get for typing in a hurry. I had ncat right on
my screen, but didn't translate correctly.

>This should get you up...

Yep, it sure did. thanks! (once I changed the write target correctly
to 60512 :-)

So, dragon.castle.org is now running full distribution Minix. All
I have to do now is figure out how to make backups. :-) Anyone
have a driver for an Archive 2150S streaming tape drive?

nomad
---------------------------------                                     \
play: castle!nomad or nomad@castle.org      - Lee "nomad" Damon -      \
work: convex!nomad or nomad@convex.com                                  \
Marketing Computer Systems Administrator - Convex [Super]Computer Co.  / \
              "I Can't Stand Intolerance!"                            /   \