In response to an off-list inquiry as to how to enable TN3270 connections to
Linux/390 running in an LPAR, I prepared this sequence of steps. The setup
at the site used 2074 equipment to allow this sort of access for their other
mainframe operating systems, and they were tired of having to use the HMC to
interact with the Linux/390 system. I've been told that this got them up
and running. Even so, constructive feedback is welcome.
1. Update the I/O configuration for the LPAR to include one (or more) of
the 3270 devices on the 2074.
2. Add this line to /etc/modules.conf:
alias char-major-227 tub3270
3. Rebuild the kernel, and enable 3270 console support.
4. Install the new kernel and re-IPL.
5. Make sure the tub3270 kernel module is loaded (lsmod will show this).
If not, then execute an "insmod tub3270" command.
6. Build entries for the device in /dev. This is the "tricky" part. Take
a look at /usr/src/linux/Documentation/s390/config3270.sh. It should
generate a script named /tmp/mkdev3270 to do this for you, based on what it
sees in /proc/tty/driver/tty3270. I wound up having to tweak mine, but
perhaps they've fixed it since then.
* Note that some distributions may not use the name
/usr/src/linux. They may instead have /usr/src/linux-2.4 or even something
else.
7. Make sure the program that mkdev3270 will be writing into /etc/inittab
exists on your system (/sbin/mingetty). If not, you might have to install a
package, or perhaps even build it from source you download.
8. Run mkdev3270
9. Do a "telinit q" command to tell init to re-read /etc/inittab
Hopefully, at this point, you'll get a "login" screen on your 3270 console.
One problem that I ran into (and again, it may be fixed now), is that the
mkdev3270 script created this entry: /dev/3270/tty0600 But the driver seemed
to want it to be /dev/tty0600 instead. Look out for that, and tweak the
script, if needed.
This has been added to the HOWTOs page on linuxvm.org as well.
http://linuxvm.org/info/howtos/3270.html
Mark Post
----------------------------------------------------------------------
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