Patch Name: PHCO_17867

Patch Description: s700_800 11.00 ioinitrc, assign ttys for B,C class systems

Creation Date: 99/03/19

Post Date: 99/03/19

Hardware Platforms - OS Releases:
	s700: 11.00
	s800: 11.00

Products: N/A

Filesets:
	OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP

Automatic Reboot?: Yes

Status: General Release

Critical: No

Category Tags:
	defect_repair hardware_enablement general_release

Path Name: /hp-ux_patches/s700_800/11.X/PHCO_17867

Symptoms:
	PHCO_17867:
	On the latest C class system (C360), the device files
	/dev/tty0p0 and /dev/tty1p0 map to serial port 2 and serial
	port 1, respectively.  This is the reverse from the mapping
	on some earlier B and C class systems.

	This patch modifies /sbin/ioinitrc so that it will detect
	when the device files are reversed and switch them back so
	that they are consistent with the mapping on the original
	B and C class systems.

	This patch need not be applied to Series 800 systems,
	although it may be applied with no adverse effects.

	PHCO_15048:
	On some newer B and C class systems (B132L+, B180L, C200 and
	C240), the device files /dev/tty0p0 and /dev/tty1p0 map to
	serial port 2 and serial port 1, respectively.  This is the
	reverse from the mapping on earlier B and C class systems.

	This patch modifies /sbin/ioinitrc so that it will detect
	when the device files are reversed and switch them back so
	that they are consistent with the mapping on the original
	B and C class systems.

	This patch need not be applied to Series 800 systems,
	although it may be applied with no adverse effects.

Defect Description:
	PHCO_17867:
	The code that was added by patch PHCO_15048 is specific to
	a particular set of workstation models.  This check did not
	detect the 9000/785/C360 because that system did not exist
	at the time that PHCO_15048 was created.

	Resolution:
	The solution is to modify /sbin/ioinitrc so that it will
	recognize the C360 system and perform the necessary changes
	when run on that platform.

	PHCO_15048:
	Due to hardware changes on some of the newer B and C class
	systems, the hardware path to serial port 2 changed.  This
	change resulted in serial port 2 being recognized by the
	system before serial port 1 was recognized.  When the system
	first boots, its assigns "instance" numbers to the serial
	ports in the order that they are recognized.  This resulted
	in serial port 2 having instance number 0, while serial port
	1 would have instance number 1.  This is the reverse of the
	assignments on earlier B and C class systems and can be
	confusing.

	The solution is to modify /sbin/ioinitrc to detect when the
	serial port assignments have been reversed and to force them
	to be mapped so that serial port 1 has instance number 0 and
	serial port 2 has instance number 1.

SR:
	5003402933 5003452318

Patch Files:
	
	OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	/sbin/ioinitrc
	/sbin/modelstr

what(1) Output:
	
	OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	/sbin/ioinitrc:
		$Revision: 80.3.1.2 $ PATCH_11.00 (PHCO_17867)
	/sbin/modelstr:
		modelstr $Revision: 1.1 $ PATCH_11.00 (PHCO_15048)
		PATCH/10.20:PHCO_10027 libc.a_ID@@/main/r10dav/libc_
			dav/libc_dav_cpe/7
		/ux/core/libs/libc/archive_pa1/libc.a_ID
		Feb  7 1997 16:44:21

cksum(1) Output:
	
	OS-Core.UX-CORE,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP:
	2228328549 5850 /sbin/ioinitrc
	2320780020 12346 /sbin/modelstr

Patch Conflicts: None

Patch Dependencies: None

Hardware Dependencies: None

Other Dependencies: None

Supersedes:
	PHCO_15048 

Equivalent Patches:
	PHCO_17866:
	s700: 10.20
	s800: 10.20

Patch Package Size: 40 KBytes

Installation Instructions:
	Please review all instructions and the Hewlett-Packard
	SupportLine User Guide or your Hewlett-Packard support terms
	and conditions for precautions, scope of license,
	restrictions, and, limitation of liability and warranties,
	before installing this patch.
	------------------------------------------------------------
	1. Back up your system before installing a patch.

	2. Login as root.

	3. Copy the patch to the /tmp directory.

	4. Move to the /tmp directory and unshar the patch:

		cd /tmp
		sh PHCO_17867

	5. Run swinstall to install the patch:

		swinstall -x autoreboot=true -x patch_match_target=true \
			  -s /tmp/PHCO_17867.depot

	By default swinstall will archive the original software in 
	/var/adm/sw/save/PHCO_17867.  If you do not wish to retain a
	copy of the original software, use the patch_save_files option:

		swinstall -x autoreboot=true -x patch_match_target=true \
			  -x patch_save_files=false -s /tmp/PHCO_17867.depot

	WARNING: If patch_save_files is false when a patch is installed,
		 the patch cannot be deinstalled.  Please be careful
		 when using this feature.

	For future reference, the contents of the PHCO_17867.text file is 
	available in the product readme:

		swlist -l product -a readme -d @ /tmp/PHCO_17867.depot

	To put this patch on a magnetic tape and install from the
	tape drive, use the command:

		dd if=/tmp/PHCO_17867.depot of=/dev/rmt/0m bs=2k

Special Installation Instructions:
	Applying this patch will cause the system to reboot.  When
	the system reboots for the first time, it will determine if
	the device files /dev/tty0p0 and /dev/tty1p0 need to be
	reassigned.  If so, it will perform the reassignment and
	reboot the system again.

	If the system reassigns the device files for the serial
	ports /dev/tty0p0 and /dev/tty1p0, any manual configuration
	that depends on those device file names may need to be
	updated to be consistent with the new assignments.

