IBM's current patches for the Linux kernel are available at the developerWorks web site.
Mark Post has created a script that will generate an autoinst.xml file that can be used to automate a very minimal SLES on System z install.
Mike MacIsaac of IBM has created a script that takes the installation CD .iso images for SLES9, the Service Pack CD .iso images, and combines them all into one directory structure that can be used to install new SLES9 systems.
Linux 2.4.26 - 2.4.32 Patches for S/390 and zSeriesThese files have the equivalent of all the IBM patches for their 2.4.21 "June 2003 stream," plus a couple of patches to fix compilation errors. Most of the work was done by the Debian folks, so thank them (although I'm gaining on them). The kernels resulting from these patches have been IPLed, but not much testing done. No warranties, use at your own risk, the usual stuff.
These patches do include the timer patch, and the kerntypes patch, as well as the two patches for xip2fs.
Netware to Samba Conversion ToolJoe Poole and Brian Mays of Boscovs have donated some VB code that they used to migrate/convert 600 users and 80GB of their data from a Netware 4.1 environment to Samba running on Linux. They also did something very unusual for our industry, and provided some documentation. :) Please note that this is free for your use, no warranty implied, etc., etc. In other words, you get to use the code, not bug them if it doesn't work perfectly in your environment. If anyone does not have MS Word available to read the document, let me know and a PDF version can be created.
Execute in Place file system driver - xip2fs(Last updated May 1, 2004)
Xip2fs is a file system driver that allows you to mount an ext2-compatible file system from a DCSS (VM Discontiguous Shared Segment). The benefit of using xip2fs instead of mounting the file system as ext2 using the DCSS block device driver is that xip2fs provides execute-in-place capability.
This means that memory-mapping a file residing on xip2fs will simply result in the user process' page table entries pointing directly to the DCSS pages, as opposed to reading file pages into the page cache (as a typical ext2 mounted file system would do).
Since all executables and shared libraries are memory-mapped in order to execute, running those from an xip2 mounted file system will mean that all processes across all VM guests in the system that use these files will share the same physical pages of memory to hold the executable code, potentially resulting in significant overall memory savings.
There is also a new manual, specifically dedicated to these patches, on IBM's developerWorks web page. Both the "containing" page, and the document itself are referenced below.
Neale Ferguson has created a program that will allow superusers on Linux/390 guests running on z/VM to issue CP commands, and get back the response. The original version of the command came out in 2000, and has been improved several times since then. The command has been packaged with at least one Linux/390 distribution. If yours does not have the latest version in binary form, you will need to build it from the source provided below.
Bootshell support for gcc 3.2 and glibc 2.2.5Mark Post contributed a small patch to Mike Kershaw's bootshell program that will allow it to compile with gcc 3.2 and glibc 2.2.5. A link to both the original source, and the patch are included.
As requested by Rick Troth, we are providing a mirror copy of his CMS File System package. This package allows access to CMS files on CMS minidisks that are owned or linked by a Linux/390 guest on z/VM. The CMS minidisk must not reside in a z/VM SFS pool.
Multiple Configuration Boot Support(Last updated March 19, 2003)
Leland Lucius has created a "multiboot" patch that adds the ability to IPL different configurations from the same device using the LOADPARM parameter on VM's IPL command or the "Load Parameter" field on the Hardware Management Console.
It is especially useful when IPLing zLinux in an LPAR. You may setup several configs in /etc/zipl.conf, like a known good one, a test one, and one that IPLs into single user mode. Then if something untoward happens while testing, you have alternatives to get zLinux back up.
You can even maintain 1 zipl.conf that can be used by several LPARs and/or VM guests.
The patch applies to s390-tools-1.1.6, available from IBM's developerWorks site.
Neale Ferguson has created updated RPMs for mono on Linux/390. They total about 21MB in size. These should eventually be available at the mono.org web site. They will be removed from here when that happens. The icu- and libicu- files are in support of Unicode.
Patches to gdb 5.2.1The good folks at Dignus, LLC have donated some patches to gdb 5.2.1 so that it will compile on Linux/390. As is usual with Open Source software, no warranty is implied or expressed, so don't rag on them too much if they don't work for you. There are two patches:
A script to print out the current IPL volumeRob van der Heij documented a technique to determine the IPL volume on a Linux/390 2.4 and higher system. Mark Post turned that into a shell script to make it easy to use. The script checks for a few things that are required to run successfully, and then prints out the device number of the IPL volume. Due to the permissions on /proc/kcore, you must be running with UID=0 to execute the script.
A spam abatement sendmail featureDavid Boyes contributed a section of his sendmail host.mc file that relates to spam abatement. He had a number of warnings about trying to use these parameters on your system, so please read them at http://www.marist.edu/htbin/wlvtype?LINUX-VM.31917. The file has been given a hopefully descriptive name, antispam.host.mc.
A patch to the CMS Filesystem (cmsfs) UtilitiesRichard Hirst reported a problem with cmsfscp not correctly handling sparse CMS files. According to Richard "for 4K blocks of zeros, CMS does allocate any disk space - it just sets the corresponding indirect pointer on disk to zero." The patch fixes the cmsfs utilities, but does not touch the kernel module.
A patch to 2.4.7 to correct a hang condition when doing I/O to a CMS Reserved MinidiskCarsten Otte of IBM reported the following problem.
"With our latest 2.4.7 patches there is a problem with CMS reserved minidisk: As soon as you start to do I/O to a CMS reserved minidisk on a system with VM pseudo page fault support, the application doing the I/O hangs forever. The following patch applies on top of the developerworks patches and fixes the problem. Note, that the problem is already fixed on 2.4.17, this is a retrofit of the corresponding patch!"
The patch is available here, since there doesn't seem to be any sign of it on IBM's DeveloperWorks site. There is a later patch file for 2.4.7, but it only seems to address an IUCV problem.
Reba file system benchmark utility(Contributed by Jim Sibley)
Reba is a file system benchmark focused on the dasd driver and hardware file system using sequential write and read. Since the read can be deferred to a later time, the read can be timed to
Reba binary and source package
Automated Shutdown of the Linux System(Contributed by Neale Ferguson)
These patches for 2.4.7 and 2.4.17 add support for an automated shutdown of a Linux/390 system when one of these situations are encountered:
# Powerdown ca:12345:ctrlaltdel:/sbin/shutdown -t1 -h nowlinux-2.4.7-s390-quiesce.diffs
Patch for IUCV initialization delay(Contributed by David Kennedy) Note that IBM has produced their own version of this patch, linux-2.4.7-s390-8-iucv, which is available at http://www10.software.ibm.com/developerworks/opensource/linux390/current2_4_x-august2001.shtml#SBCRkernelsum7. IBM claims that when running on a guest with more than one CPU, David's patch can bring down VM.
"Some people have been commenting about slowness in starting up IUCV connections to the TCPIP service on z/VM. Some mailing list messages on this topic include:
"It appears the issue with this is because of a race condition in the drivers/s390/net/iucv.c code. The patch provided in this email should remove the race condition.
"This patch can be applied to the latest 2.4 and 2.5 kernel series. I have submitted this patch to email@example.com."
Autologin Patch for mingetty for SuSE SLES 7.2(Contributed by Ken Hall)
"SuSE SLES7 came with a highly modified version of mingetty that wouldn't accept the patch as it was (from http://users.jagunet.com/~kodis/autologin/autologin.html). (It looks like someone added several features without changing the version number.)
"I've refitted the changes and created a new patch that seems to work properly with the version of mingetty shipped with that version.
"You have to install the Source RPM for sysvinit, and then apply the patch to the mingetty-0.9.4b directory."
To cleanly port anything with a configure script, you will
want to apply this patch to config.guess
and config.sub. In the directory that contains config.guess and
If that fails, you should try the patch for older autoconf scripts and see whether that works.
If no directory is given, it works from the current directory downward.
It is quite possible that neither of these patches will work. There are a near-infinite number of configure script variations out there. What you want to do is actually fairly simple.
In general, configure wants to give you CFLAGS of -g -O2. Optimization level 2 is currently broken under Linux/390, so you should specify CFLAGS=-O1 on your make command line.
This can be made trickier if CFLAGS itself is more complex;
in general, replace -Ox, where x > 1, with -O1.
So far, I have patches for the following packages to build
them under the IBM flavor of Linux/390.
Questions? Problems? Send mail to Adam Thornton, <firstname.lastname@example.org>.
If you're running the 2.2.14 level of Linux/390 and the date is incorrect here's how to fix it: