Z/Linux Emulation with Hercules: Difference between revisions
From Leo's Notes
This page was last edited on 30 April 2013, at 06:46.
Created page with "== Installation == http://www.josefsipek.net/docs/s390-linux/hercules-s390.html Category:Todo" |
No edit summary |
||
| Line 1: | Line 1: | ||
== Installation == | == Installation == | ||
http://www.josefsipek.net/docs/s390-linux/hercules-s390.html | The guide I am using is available at http://www.josefsipek.net/docs/s390-linux/hercules-s390.html | ||
=== Requirements === | |||
Install hercules, either from a package manager or from source. | |||
<syntaxhighlight lang="bash" line start="1" enclose="div"> | |||
cd ~ | |||
mkdir zlinux | |||
cd zlinux | |||
mkdir rdr dasd prt | |||
</syntaxhighlight> | |||
=== Images === | |||
Download the images from http://ftp.debian.org/debian/dists/stable/main/installer-s390/current/ into <code>rdr/</code>. | |||
Create a configuration file at <code>~/zlinux/s390.cnf</code> with: | |||
<syntaxhighlight lang="text" line start="1" enclose="div"> | |||
CPUSERIAL 000069 # CPU serial number | |||
CPUMODEL 9672 # CPU model number | |||
MAINSIZE 256 # Main storage size in megabytes | |||
XPNDSIZE 0 # Expanded storage size in megabytes | |||
CNSLPORT 3270 # TCP port number to which consoles connect | |||
NUMCPU 2 # Number of CPUs | |||
LOADPARM 0120.... # IPL parameter | |||
OSTAILOR LINUX # OS tailoring | |||
PANRATE SLOW # Panel refresh rate (SLOW, FAST) | |||
ARCHMODE ESAME # Architecture mode ESA/390 or ESAME | |||
# .-----------------------Device number | |||
# | .-----------------Device type | |||
# | | .---------File name and parameters | |||
# | | | | |||
# V V V | |||
#--- ---- -------------------- | |||
# console | |||
001F 3270 | |||
# terminal | |||
0009 3215 | |||
# reader | |||
000C 3505 ./rdr/kernel.debian ./rdr/parmfile.debian ./rdr/initrd.debian autopad eof | |||
# printer | |||
000E 1403 ./prt/print00e.txt crlf | |||
# dasd | |||
0120 3390 ./dasd/3390.LINUX.0120 | |||
0121 3390 ./dasd/3390.LINUX.0121 | |||
# tape | |||
0581 3420 | |||
# network s390 realbox | |||
0A00,0A01 CTCI -n /dev/net/tun -t 1500 10.1.10.2 10.1.10.1 | |||
</syntaxhighlight> | |||
Create the disks | |||
cd ~/zlinux/dasd | |||
dasdinit -lfs -linux 3390.LINUX.0120 3390-3 LIN120 # for / | |||
dasdinit -lfs -linux 3390.LINUX.0121 3390-3 LIN121 # for /home | |||
[[Category:Todo]] | [[Category:Todo]] | ||
Revision as of 06:46, 30 April 2013
Installation
The guide I am using is available at http://www.josefsipek.net/docs/s390-linux/hercules-s390.html
Requirements
Install hercules, either from a package manager or from source.
cd ~
mkdir zlinux
cd zlinux
mkdir rdr dasd prt
Images
Download the images from http://ftp.debian.org/debian/dists/stable/main/installer-s390/current/ into rdr/.
Create a configuration file at ~/zlinux/s390.cnf with:
CPUSERIAL 000069 # CPU serial number
CPUMODEL 9672 # CPU model number
MAINSIZE 256 # Main storage size in megabytes
XPNDSIZE 0 # Expanded storage size in megabytes
CNSLPORT 3270 # TCP port number to which consoles connect
NUMCPU 2 # Number of CPUs
LOADPARM 0120.... # IPL parameter
OSTAILOR LINUX # OS tailoring
PANRATE SLOW # Panel refresh rate (SLOW, FAST)
ARCHMODE ESAME # Architecture mode ESA/390 or ESAME
# .-----------------------Device number
# | .-----------------Device type
# | | .---------File name and parameters
# | | |
# V V V
#--- ---- --------------------
# console
001F 3270
# terminal
0009 3215
# reader
000C 3505 ./rdr/kernel.debian ./rdr/parmfile.debian ./rdr/initrd.debian autopad eof
# printer
000E 1403 ./prt/print00e.txt crlf
# dasd
0120 3390 ./dasd/3390.LINUX.0120
0121 3390 ./dasd/3390.LINUX.0121
# tape
0581 3420
# network s390 realbox
0A00,0A01 CTCI -n /dev/net/tun -t 1500 10.1.10.2 10.1.10.1
Create the disks
cd ~/zlinux/dasd
dasdinit -lfs -linux 3390.LINUX.0120 3390-3 LIN120 # for /
dasdinit -lfs -linux 3390.LINUX.0121 3390-3 LIN121 # for /home