Hi, Christian,

Christian Thalinger wrote:
>> However, this demand was not able to be accepted. Because it contradicts the 
>> specification. 
>> Please refer to CR 6818983 for details.
> 
> Hmm.  As the bug is Closed/Will Not Fix, what is the real fix for this
> problem then?

I am customizing original SXCE iso image. 

It is a hard way...
This work is done at each every release...


1. Obtain the latest Nevada/SXCE iso version

2. Copy iso to a disk for editing

    * Need to mount the ISO (i.e. sol-nv-b127-x86-dvd.iso)ex

      # lofiadm -a /export/iso/sol-nv-b127-x86-dvd.iso 
      /dev/lofi/1
      # mount -o ro -F hsfs -o ro /dev/lofi/1 /mnt
  
        or

      # mount -F hsfs -o ro /export/iso/sol-nv-b127-x86-dvd.iso /mnt


    * Then copy contents to some where on your hard disk

      # mkdir /usr/tmp/DVD
      # cd /mnt
      # find . -depth -print | cpio -pdm /usr/tmp/DVD

3. Extract the mini bootarchive for editing

      32 bit archive
      # /boot/solaris/bin/root_archive unpack /usr/tmp/DVD/boot/x86.miniroot \
             /usr/tmp/miniroot

      64 bit archive
      # /boot/solaris/bin/root_archive unpack 
/usr/tmp/DVD/boot/amd64/x86.miniroot \
            /usr/tmp/miniroot64

4. modified driver_aliases in extract bootarchive

   * following entry is added from 'ata "ide"' ahead by necessarily.
        
        ahci "pci10de,ab5"
        ahci "pciclass,010185"

     32 bit archive
     # cd /usr/tmp/miniroot/etc
     # vi driver_aliases
  
     64 bit archive
     # cd /usr/tmp/miniroot64/etc
     # vi driver_aliases


5. Rebuild miniboot

     32 bit archive 
     # /boot/solaris/bin/root_archive pack /usr/tmp/DVD/boot/x86.miniroot \
             /usr/tmp/miniroot

     64 bit archive
     # /boot/solaris/bin/root_archive pack /usr/tmp/DVD/boot/amd64/x86.miniroot 
\
        /usr/tmp/miniroot64

        ??- ahci driver comes to attached when installing it.


6. Replace original SUNWahci/install/postinstall script and SUNWahci/pkgmap

      # cd /usr/tmp/DVD/Solaris_11/Product/SUNWahci
      # vi postinstall

      * 63rd line is rewritten. 
   
           "pciclass,010601" to "pci10de,ab5"

     and 

      * Modify the SUNWahci pkgmap file with the appropriate sizes, checksums 
        and last access dates.

        See Reference: 5. Modify the SUNWrtjv pkgmap file with the appropriate 
        sizes, checksums and last access dates.  The source code for a sample C 
program,
        called pkgmap_info, which prints out the necessary information, can be 
found here.

          http://blogs.sun.com/jtc/entry/real_time_java_in_a
 
7. Rebuild iso image

    # /usr/bin/mkisofs -b boot/grub/stage2_eltorito -c .catalog -no-emul-boot \
        -boot-load-size 4 -boot-info-table -relaxed-filenames \
        -l -ldots -r -N -d -D -V "Solaris ahci_hack" -o 
sol-nv-b127-x86-dvd_ahci_hack.iso \
        /usr/tmp/DVD


8. Write iso image to DVD

    # cdrecord dev=n,n,n sol-nv-b127-x86-dvd_ahci_hack.iso


9. boot from DVD 

  Please confirm the output of prtconf in the single user mode.  
  If ahci was seen, it is a success!
   
  and In addition, it is necessary to confirm whether it is possible to install 
it normally.
  
10. Notes

  * necessary to modified failsafe archive. 
  * Please don't / (root) device in the mount by using other SXCE media. 
    When the mount is done with 'ata driver' and 'pci-ide driver' becoming it 
impossibility to boot.
  * Liveupgrade is possible. Original SXCE media or iso can be used. 

11. todo 

  * For OpenSolaris LiveCD or Live USB...
??offer end of SXCE is scheduled. 

Regards, 
-- Kazuyuki Sato

Reply via email to