Thursday, November 20, 2008

Hercules and Slackware (slack/390) - Part 4

...Continuing from Part 3

Defining kernel boot-parameters

OK, so Hercules is configured the way we need.
But to be able to boot the Slack/390 kernel, we need to set some parameters.
It is more or less like setting boot-time parameters in your lilo.conf file, only a bit different :-)

The standard parmfile.txt came with only one (but very important) line:
ramdisk_size=22528 root=/dev/ram0 ro ip=off
This line defines the size of the ram disk and that our root will be found on /dev/ram0 (and mounted read-only)

But just booting the kernel won't get us anywhere. We need an interface to the outside world to install Slack/390 over NFS.

In the (download)/kernels directory we have a file called 'parmfile.values.txt' that explains all options, but to avoid suffering, I'll tell you here how I did it :-)

1) Basic parameters

This line tells us where (device numbers again) the DASDs are.
This line defines our host (actually the guest, as we are working in Hercules, not a real machine):
- is our Fully Qualified Domain Name (hostname.domain)
- eth0 is the name of our network interface
- is our ip address
- 1500 is our MTU (Maximum Transfer Unit)

Here we define the rest of our network parameters, like we normally do in /etc/rc.d/rc.inet1.conf:
- is our network subnet
- is our network mask
- is our broadcast address
- is our gateway
You will need to adapt these values to your reality...

Speaks for itself... Again, adapt to your reality

The domain name you would normally put in your /etc/resolv.conf as 'search xxx'

2) Defining your network interface

Getting the network to communicate was a bit of a struggle, as the information is not always very clear. But in the end I got it working with these lines:

This is the Lan Channel Station we defined in hercules.cnf
- 0xf00 is the device address
- 1 is the type (an OSA-2 adapter in LCS mode)

Here we repeat the device addresses of out LCS adapter...

And again, just in another format:
- 0x04 stands for channel type LCS

3) Sample parmfile.txt

Again, to save trouble and time, here is an example of a parmfile. Copy the text and save it as (install)/rdr/parmfile.txt, overwriting the downloaded file:

ramdisk_size=22528 root=/dev/ram0 ro ip=off

OK, we're finished editing files!
In my next post, we'll do our first IPL into GNU/Linux!

Labels: , , ,


Post a Comment

Subscribe to Post Comments [Atom]

<< Home