Dann and company,

Sorry this took so long. Other fires burning.

Here are my partner Dave's notes, which I think address
most of the gory details you were asking for.

Ironically, we'd already started down the path suggested 
by Hildburg Asano in his subsequent mail about compiling
the AIC driver into boel.

At the moment, I think we'll just stop, let the community
munge the data we're tossing out and await some suggestions.


===================================================================
System Imager Installation Notes                        11/13/03
David Marquardt
Sten Heller

Notes on effort to get SystmImager 3.15 working on a Sun V60 with an Adaptec 
(AIC-7902) SCSI controller.
************************************************************************
rpm -qa | grep gcc
gcc-gnat-3.2-7
gcc-3.2-7
libgcc-3.2-7
gcc-g77-3.2-7
gcc-java-3.2-7
gcc-c++-3.2-7


************************************************************************
lsmod
Module                  Size  Used by    Tainted: P
nls_cp437               5148   0  (autoclean)
msdos                   8348   0  (autoclean)
fat                    40024   0  (autoclean) [msdos]
loop                   12888   0  (autoclean)
nls_iso8859-1           3516   0  (autoclean)
ide-cd                 33640   0  (autoclean)
cdrom                  34144   0  (autoclean) [ide-cd]
soundcore               7108   0  (autoclean)
imb                    14384   0  (unused)
autofs                 13700   0  (autoclean) (unused)
e1000                  56332   1
iptable_filter          2412   0  (autoclean) (unused)
ip_tables              15608   1  [iptable_filter]
mousedev                5688   1
keybdev                 2976   0  (unused)
hid                    22404   0  (unused)
input                   6240   0  [mousedev keybdev hid]
usb-uhci               27276   0  (unused)
usbcore                80512   1  [hid usb-uhci]
ext3                   73024   2
jbd                    56752   2  [ext3]
aic79xx               282224   3
sd_mod                 13552   6
scsi_mod              110344   2  [aic79xx sd_mod]

************************************************************************
uname -a
Linux imageserver 2.4.18-14smp #1 SMP Wed Sep 4 12:34:47 EDT 2002 i686 i686 i386 
GNU/Linux

more /etc/redhat-release
Red Hat Linux release 8.0 (Psyche)

************************************************************************
ls -l /tmp/systemimager-3.1.5/initrd_source/my_modules
total 460
-rw-r--r--    1 root     1000       316565 Nov 11 15:22 aic79xx.o
-rw-r--r--    1 1000     1000          895 Nov  7 07:33 INSMOD_COMMANDS
-rw-r--r--    1 root     1000       136299 Nov 11 15:25 scsi_mod.o

************************************************************************
more INSMOD_COMMANDS
...
# EXAMPLES
# ------------------------------------------------------------------------------
# insmod e100.o e100_speed_duplex=4
# insmod my_special_scsi_driver.o
#
insmod scsi_mod.o
insmod aic79xx.o

************************************************************************

pwd
/tmp/systemimager-3.1.5

make clean
make binaries

(Edited out previous output.)

gcc -D__KERNEL__ -I/tmp/systemimager-3.1.5/src/linux-2.4.20/include  -Wall 
-Wstrict-prototypes -Wno-trigraphs -Os -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE 
-DMODVERSIONS -include 
/tmp/systemimager-3.1.5/src/linux-2.4.20/include/linux/modversions.h  -nostdinc 
-iwithprefix include -DKBUILD_BASENAME=scsi_syms  -DEXPORT_SYMTAB -c scsi_syms.c
ld -m elf_i386 -r -o scsi_mod.o scsi.o hosts.o scsi_ioctl.o constants.o scsicam.o 
scsi_proc.o scsi_error.o scsi_obsolete.o scsi_queue.o scsi_lib.o scsi_merge.o 
scsi_dma.o scsi_scan.o scsi_syms.o
ln -sf sim710.scr fake7.c
gcc -E -D__KERNEL__ -I/tmp/systemimager-3.1.5/src/linux-2.4.20/include  -traditional 
-DCHIP=710 fake7.c | grep -v '^#' | perl -s script_asm.pl -ncr710
script_asm.pl : Illegal combination of registers in line 72 :   MOVE CTEST7 & 0xef TO 
CTEST7
        Either source and destination registers must be the same,
        or either source or destination register must be SFBR.
make[3]: *** [sim710_d.h] Error 255
make[3]: Leaving directory `/tmp/systemimager-3.1.5/src/linux-2.4.20/drivers/scsi'
make[2]: *** [_modsubdir_scsi] Error 2
make[2]: Leaving directory `/tmp/systemimager-3.1.5/src/linux-2.4.20/drivers'
make[1]: *** [_mod_drivers] Error 2
make[1]: Leaving directory `/tmp/systemimager-3.1.5/src/linux-2.4.20'
make: *** [/tmp/systemimager-3.1.5/src/modules_build-stamp] Error 2

Note: I replaced this line with the following:
MOVE CTEST7 TO SFBR
MOVE SFBR & 0xef CTEST7
I believe it is a correct fix but the actual bug is in the Perl script: script_asm.pl. 
Probably and unititalized value??
Restarted make. Completed with no errors.

make install_binaries
...
#
# Note: This tarball should be installed to the "boot/i386/AIC79XX" directory.
/tmp/systemimager-3.1.5/tools/si_install --si-prefix=/usr -m 644
/tmp/systemimager-3.1.5/tmp/boel_binaries.tar.gz
/usr/share/systemimager/boot/i386/AIC79XX
/tmp/systemimager-3.1.5/tools/si_install:
/tmp/systemimager-3.1.5/tmp/boel_binaries.tar.gz appears to be binary, so
leaving it alone.
# boel_binaries.tar.gz installed.

Note: Another problem occurred in /initrd_source/initrd.rul.
RH 8.0 did not like the date used in the touch command (196912311900). I changed it to 
197012311900 and it was okey with that.
************************************************************************

mkautoinstallcd -out-file crs_v60.iso -flavor AIC79XX


# Boot from CD

...
start_syslogd

get_boel_binaries_tarball
rsync -ac 129.149.29.180::/boot/i386/AIC79XX/boel_binaries.tar.gz /tmp/boel_binaries
receiving file list ... done
boel_bianries.tar.gz
wrote 115 bytes read 3306087 bytes
total size is 3305564
autodetect_hardware_and_load_modules
Detecting hardware: ide-scsi

Loading sd_mod...
Using scsi_mod.o
Using /lib/modules/2.4.20-boel/kernel/drivers/scsi/sd_mod.o
assuming sd_mod is compiled into the kernel, not needed, or already loaded.

Loading ide-disk
Using /lib/modules/2.4.20-boel/kernel/drivers/scsi/ide-disk.o

Loading ide-disk
Assuming ide-disk is compiled into the kernel, not needed, or already loaded.


I will now run the autoinstall script: /script/compute06.sh

get_arch
Partioning /dev/sda...
Old partition table for /dev/sda:
Error: Could not stat device /dev/sda - No such file or directory
parted -s -- /dev/sda mklabel msdos || shellout
Error: Could not stat device /dev/sda - No such file or directory

Write variables
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<



That is pretty much everything plus the kitchen sink. If there is 
anything we left out or more info needed, please advise. 

In general I would like to thank all the folks who have responded to
this thread. There seems to be a lot of interest. If there is anything
we need to cookbook at the end of this, I will be happy to write up the
finished solution and send it off.

                                =stan


-- 
Stan Heller
Systems Engineer
Sun Microsystems Professional Services
Customer Ready Systems   (415) 254-5667


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Sisuite-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to