To start a session on a 3270 tty I use "lab1:12345 /sbin/mingetty /dev/tty0700"
 in /etc/inittab.
 

What do I use for the /dev/tub0700?

>>> [EMAIL PROTECTED] 11/12/04 04:21PM >>>
Hi, Richard

As to /dev/3270/tub* being block devices, that's new to me.  Could you
point me more exactly to where you saw this?

The 3270 driver uses two major numbers, 227 and 228, for line-mode and
fullscreen operations.  Both are character devices.  The script
/usr/src/linux{,-2.4}/Documentation/s390/config3270.sh generates
/tmp/mkdev3270, which generates character device special files
/dev/3270/ttyfoo and /dev/3270/tubfoo respectively, foo a 4-character
device address.  Minor number 0 is used only with major 228 and defines
the generic fullscreen device /dev/3270/tub; 0 is not used with major 227.

To find for yourself what devices the 3270 driver knows about, give
these two commands:
    echo what=config > /proc/tty/driver/tty3270
    cat /proc/tty/driver/tty3270
Use the address at the CONSOLE line for your console device.  The line
will read:
    <device>  CONSOLE  <minor>

If you use the above scripts to configure your 3270s, you should expect
to see /dev/3270/tub<device> as major 228, minor <minor>.
If you don't want to, or don't have them available, do this:
    mkdir /dev/3270
    mknod /dev/3270/tub<device> c 228 <minor>

Hope this helps.

Richard Hitt  [EMAIL PROTECTED] 



Richard Pinion wrote:

>Are you saying my device should be tub0700 rather than tty0700?
>
>I looked at the device list on kernel.org and saw that /dev/3270/tty* is a 
>character device and /dev/3270/tub* is a block device.
>
>
>
>>>>[EMAIL PROTECTED] 11/12/04 03:16PM >>>
>>>>
>>>>
>Richard Troth wrote:
>
>
>
>>[snip]
>>
>>Mark,  you might want to make a note of this and get back with
>>the rest of the Slack team.   Richard H.,  I haven't looked at
>>the 3270 console code,  but are you okay with 5,1?   It is the
>>current choice for /dev/console,  per the kernel doc.
>>
>>-- R;
>>
>>
>>
>>
>Hi, Richard et al
>
>Major/minor 5,1 for /dev/console seems okay, but I'd be surprised if you
>are able to use /dev/tty with that; I bet "echo foo > /dev/tty" fails.
>To run ned nevertheless on a 3270 console, use the undocumented -T
>option.  For instance, if your console's at 0009, use "ned -T
>/dev/3270/tub0009".  Ordinarily ned uses /dev/3270/tub, the full-screen
>analogue of /dev/tty.
>
>handy hint --> Note that, unlike vi, ned can be used at the end of a
>pipe:  "ps -ef | ned -T /dev/3270/tub0009".  <-- handy hint
>
>Richard Hitt   [EMAIL PROTECTED] 
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
>http://www.marist.edu/htbin/wlvindex?LINUX-390 
>
>----------------------------------------------------------------------
>For LINUX-390 subscribe / signoff / archive access instructions,
>send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
>http://www.marist.edu/htbin/wlvindex?LINUX-390 
>
>
>
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to