Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/ftp/software/cdrom.sun/hsfs_node.o.README
Дата изменения: Tue Nov 7 18:30:56 1995
Дата индексирования: Sat Dec 22 16:08:23 2007
Кодировка:

Поисковые слова: п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п п
There is a problem with accessing the Guide Star Catalog CD's on Sun systems.
The Sun HSFS driver doesn't read the GSC record structure files, and complains
about the disk format. It basically makes the files on the disk inaccessible.
The following is a patch provided by Sun which works around this problem. The
patch works on the sun4, sun4c, and sun4m architectures running SunOS 4.1,
4.1.1, 4.1.2, 4.1.3, 4.1.3C, and 4.1.3_U1. There are other problems on the
sun4 architecture that prevent you from having more than one CD player per SCSI
controller at present, so to have both GSC disks mounted directly on a sun4,
you will need two SCSI controllers and busses. The other option is mounting
one per machine and then using NFS to share the disks.

We have not tested this patch under SunOS 4.1.4, but the machine instructions
appear to be in the same location as 4.1.3, so the 4.1.3 patch may also work
under 4.1.4.

This patch is also required for the GS sampler disks, sky survey disks, and
some disks from JPL. You may take this patch and use it, but there is no
support available from the Institute or Sun for supporting this patch in any
way other than using it with Institute produced CD-ROMS.

If you install any of the following Solaris 1.x patches, you will need to
apply the patch by hand afterwards if you will continue to need the
functionality. If you are installing one of the last three, you are probably
planning on upgrading soon, so re-applying the patch may not be useful. Do not
use the pre-patched object files that exist in this directory
(hoth.stsci.edu:/pub) if you have applied any of these to your system.

101068 SunOS 4.1.2;4.1.3: on HSFS CD mounts ls -l lists some files as "filename: not found"
101584 SunOS 4.1.3: HSFS CD DIRECTORIES TURN INTO 0 LENGTH FILES
101824 SunOS 4.1.2: Net install problems for Solaris 2.3 Edition II and higher
101832 SunOS 4.1.3: Net install problems for Solaris 2.3 Edition II and higher
101833 SunOS 4.1.3_U1: Net install problems for Solaris 2.3 Edition II and higher

Of course these patches all conflict with each other, so you have to choose
which problem to fix.

To avoid loosing the patch on kernel rebuilds, you can apply the
same patch to /usr/sys/`arch -k`/OBJ/hsfs_node.o instead and then
rebuild the kernel.

The following is a mail message from Sun concerning the problem:

=============================================================================

As both of you found out, Sun cannot read the guide star
catalog cdrom from NASA. This is because all of the data
files are of type RECORD, which Sun chose not to support because
there is no UNIX interface to access the RECORD structure file.

Attached is a kernel patch that you can make your Sun
machine to read the guide star cdrom. As a precaution, please
save your old kernel before applying this patch.

For SunOS 4.1, 4.1.1, and 4.1.1b:

acuraintegra# adb -w vmunix
>>>> hs_parsedir+9c?X
_hs_parsedir+0x9c: ba0da0ee
>>>> hs_parsedir+9c?Wba0da0e6
_hs_parsedir+0x9c: 0xba0da0ee = 0xba0da0e6
>>>> hs_parsedir+14c?X
_hs_parsedir+0x14c: ba0da0ee
>>>> hs_parsedir+14c?Wba0da0e6
_hs_parsedir+0x14c: 0xba0da0ee = 0xba0da0e6
>>>> $q

For SunOS 4.1.2 or 4.1.3: (also 4.1.3C, 4.1.3_U1, and maybe 4.1.4)

acuraintegra# adb -w vmunix
>>>> hs_parsedir+c0?X
_hs_parsedir+0xc0: ba0de0ee
>>>> hs_parsedir+c0?Wba0de0e6
_hs_parsedir+0xc0: 0xba0de0ee = 0xba0de0e6
>>>> hs_parsedir+1a4?X
_hs_parsedir+0x1a4: ba0de0ee
>>>> hs_parsedir+1a4?Wba0de0e6
_hs_parsedir+0x1a4: 0xba0de0ee = 0xba0de0e6
>>>> $q

Note: >>>> is added to illustrate what you should type.
You need to reboot.

Any question, please let me know.

Feel free to pass along this patch to those who need this fix.

thomaswong@eng.sun.com


============================================================================

For Solaris 2.0/2.1, this is not Sun official, but I believe this is the
correct patch. Once the patch has been applied, you will need to either
reboot the machine, or make sure the module is unloaded with modinfo and
modunload. We have never received an official patch from Sun, nor will we
support our products in conjunction with Solaris 2.0 or 2.1. See below for
patch information concerning Solaris 2.2 and higher releases.


adb -w /kernel/fs/hsfs

>>>> hs_parsedir+0xcc?X
hs_parsedir+0xcc: ba8de0ee
>>>> hs_parsedir+0xcc?W ba8de0e6
hs_parsedir+0xcc: 0xba8de0ee = 0xba8de0e6

>>>> hs_parsedir+0x198?X
hs_parsedir+0x198: ba8de0ee
>>>> hs_parsedir+0x198?W ba8de0e6
hs_parsedir+0x198: 0xba8de0ee = 0xba8de0e6
>>>> $q


In Solaris 2.2 and later releases the driver has changed, and has made the
problem is easier to patch. To access the GSC CD-ROMs under Solaris 2.2 and
higher releases you need to modify /etc/system and add the following lines
and then reboot the system:

set hsfs:ide_prohibited=0xe6
set hsfs:hde_prohibited=0xe6

We have tested this patch under Solaris 2.2, 2.3, and 2.4 Hardware 11/94 on
Sun SPARC systems. We have not tried Solaris 2.3 Edition II, Solaris 2.3
Hardware 4/94 or 8/94, or Solaris 2.4 Hardware 4/95, but we suspect that the
same should apply. This patch should also work on SPARC clones, and
Cray's SPARC based system. It may also work on Solaris 2.4 for the x86
processors and the PowerPC Edition of Solaris 2.5.

There is another bug in Solaris 2.3 and earlier systems that causes files
on the CD-ROM that should be different to be identical. This problem
appears to be fixed in Solaris 2.4.

Please contact system@stsci.edu if you have any problems.