12.03.2002 15:29:24 Linux on 390 Port �������(�):

Hello Jim!

You are almost right. I look at source code and found, that

minor number 0 for rewinding,
minor number 1 for non-rewinding. For the same device, of course.

For second device, I thing, it will be 2&3.

Now, I can describe all the way.

1) insmod tape390 tape=<address>

 Driver uses major number 254 (in my case)

2) cd /dev; mknod ntibm1 c  254   1

3) mt -f /dev/ntibm1 rewind

4) dd if=image of=/dev/ntibm1 bs=1024                  # write kernel image
    mt -f /dev/ntibm1 eof 1                                               #
write EndOfFile mark

 dd if=parmfile of=/dev/ntibm1 bs=1024                  # write parmfile
    mt -f /dev/ntibm1 eof 1                                               #
write EndOfFile mark

 dd if=initrd of=/dev/ntibm1 bs=1024                        # write ramdisk
image
    mt -f /dev/ntibm1 eof 2                                               #
write EndOfFile mark twice - for sure :)


5)  mt -f /dev/ntibm1 rewind

You have the correct tape. Easy :)


>Sergey,
>
>I don't have the source for tape390.o, but if it's modeled after SCSI tape
>support, the minor device number should be 128+n for a non-rewinding
>device, just 128 in your case. Minors between 0-127 all rewind.
>



Reply via email to