LINUX
Install Linux on your SunBlade100
    Here is a document that describe all the steps to install the Suse7.1 on a SunBlade.

        At the end of the document you will find unresolved problems..

        Pierre-Mikael Legris
        --------------------------------------------------------------

        How to install a Suse7.1 on a SunBlade100

        This document describe how to setup
        -boot net using tftp, rarpd and NFS
        -dual boot solaris/linux
        -Suse installation
        -X configuration

        Pierre-Mikael Legris
                16/06/2001

        Thanks to 
        David S. Miller
        Ben Collins
        Thorsten Kukuk

        http://www.ultralinux.org/

        ----- INSTALLATION PROCEDURE ----------------
        *note: my SunBlade100 has no DVD nor 3D card

        *note2: I experienced an anoying bug
         sometimes the display is kind of "scrambled"
         reboot until it goes right
         once the installation is finished don't bother about it
         at X startup evrythings will go back fine.

        *Files
        "you need to download the folowing file:
        in the following directory download the last version of each file
        ftp://ftp.suse.com/pub/people/kukuk/SPARC/
        rename tftp64-blade-XXXXXXXX.img to  tftp64-blade.img

        Download  xserver-xfree86_4.1.0-0pre1v1.1_sparc.deb from
        http://people.debian.org/~branden/woody/sparc/

        get an iso image of Suse 7.1 for sparcs
        suse-sparc-7.1-CD1.iso
        ftp://ftp.suse.com/pub/suse/sparc/7.1/iso/
        or use a closer mirror 

        *first you need to know the ethernet MAC adress of your sun's card
        during startup you can read it next to the sun logo
        mine shows: Ethernet Adress 0:3:ba:8:1e:97

        I will use the IP 192.168.2.26 for this box

        * on solaris
        edit /etc/vfstab and comment out the line with /space
        attention evrythings in /space will be lost so backup it

        To boot the SB they are two ways, there is no bootbale CD yet
        so you can install it on an other Sun and ULTRA for example
        then just change the kernel.
        Another way is to do it from the network. Here is how to do it.
        You need another computer to do so.
        This is the procedure to do it from a PC with the Mandrake 8.0
         *Install rarpd
         from kernel 2.3 rarp isn't supported by linux kernels
         you can download rarpd at: ftp://ftp.dementia.org/pub/net-tools
         you will need libpcap and libnet to compile rarpd
         you can also use Suse's rarpd.rpm from rpmfind.net

         edit /etc/ethers
         mines contain a single line with the MAC and the IP adresses:
         00:03:ba:08:1e:97 192.168.2.26

         now start rarpd

         *Installation of tftpd on my pc-linux
         Mandrake8.0
          installation of package "tftp-server"
          have a look in /etc/xinetd.d/tftp
          -be sure to give the -s option for sunOS compatibility
          -I also added a -l option to log tftp requests  
         my tftp file looks like this:
         -----------
         service tftp
         {
                disable = no
                socket_type             = dgram
                protocol                = udp
                wait                    = yes
                user                    = root
                server                  = /usr/sbin/in.tftpd
                server_args             = -l -s /tftpboot
         }
         -----------

          $ mkdir /tftpboot
          $ chmod 755 /tftpboot
          $ service xinetd restart 
            or
          $ /etc/rc.d/init.d/xinetd restart

          now you need to convert your IP adress into it's hexadecimal value
          192 -> C0 ; 128 -> A8 ...
          192.168.2.26 -> C0A8021A

          Copy the sun tftp64-blade.img to /tftpboot/C0A8021A
          be sure it's chmod 644

          you can check that tftp is working with
           tftp localhost
           get C0A8021A

         * NFS setup
          I installed the Suse using NFS and an iso image of CD1
          for those like me who never remember how to mount an iso image
          mount -o loop -t iso9660 suse-sparc-7.1-CD1.iso /tmp/z

         NFS setup
         -edit your export file and add the folowing line
          /tmp/z 192.168.2.26(ro,insecure)
         -restart/start ftp server
          $ service nfs restart

        **Now it is time to boot your sun
        When your sun starts to boot press "STOP+A"
        when you have a "go" type "boot net"
        your SunBlade should reboot..
        And everything should go fine....

        what could go wrong
         -the sun keeps telling you that ARP/RARP request timed out
          then you're rarp server (rarpd) is not working properly
           sorry I can't help..
         -the sun the suns tells you that ARP/RARP request timed out and then stops
          there is a problem with tftp
           test you're tftp server as explained before.
           maybe you're file name is not right
           add the "-l" option in /etc/xinetd.d/tftp as noticed before
           and to a "tail -f /var/log/messages" to see what's going on
           remember to restart xinetd


        During the keyboard installation if you choose
        US/SUN which is wrong ! :-)
        you will be able to change back to US/PS2 with the keys
        numLock => up
        control => back
        del => enter

        *Installation
        If you choosed NFS installation configure your network parameters
        CD-ROM installation should go fine too.

        I first used Yast2 for the installation but as I failed I went back to yast1

        If something goes wrong, boot net again and choose 
        "boot installed system" on Suse instalation menu

        *Installation with Yast1
        I choosed "expert mode" and I didn't changed anything to the package selection

         * Installation settings
          1-configure hard disk partitions
            do not remove hda1 hda2 and hda3 if you want to use solaris again
            I changed hda4 size
            here is my partition table: to preserve solaris dual-boot possibility
            Device Flag    Start       End    Blocks   Id  System
            /dev/hda1          1041     13525   6291936    3  SunOS swap
            /dev/hda2             0      1041    524664    3  SunOS swap
            /dev/hda3             0     29649  14943096    5  Whole disk
            /dev/hda4         13526     22361   4452840    8  SunOS home
            /dev/hda7  u      22362     28607   3147480   83  Linux native
            /dev/hda8         28608     29649    524664   82  Linux swap


          2-set target partitions/filesystems
            mount / on /dev/hda7     

         * package management 
          1-start_installation
          2-main menu

         * finish installation and exist Yast
          1-Standard kernel 2.4 (64bit)
          2-CDROM
           ATAPI EIDE -> on /dev/hdb

         * network. configure it on your own
           The ethernet card is not in the list so don't try to find it

         * reboot 
           Normaly your sun should try to reboot on solaris again
           do a STOP+A at boot time
           type "boot net"
           then from the installation menu choose "boot an installed partition"
           choose "/dev/hda7" as root device

         * setup step2
           - for you mouse choose "USB Mouse" imps2
           - Installation medium
             we have no network yet so we will do this later

        When the installation is finished

        * NETWORK and SOUND modules settings
        the network card is a sun GEM (module sungem)
        you can use pico to edit your files
        edit /etc/rc.config 
           add " sungem trident" to the INITRD_MODULES list
           go to the sound section (about line 48)
           and change the 3 lines to:
             alias char-major-14 trident
             #alias sound off
             #alias midi off

        edit /etc/modules.conf 
          be sure to have the line
            alias eth0 sungem
          

        with YaST change your network configuration to fit your needs
        restart the network
         $ /etc/rc.d/network restart
        try "ifconfig" to see if your network parametrs are ok
         you may have to reboot.
           do a STOP+A at boot time
           type "boot net"
           then from the installation menu choose "boot an installed partition"
           choose "/dev/hda7" as root device

        download the folowing files on your SB
        k_blade-2.4.5-0.sparc64.rpm  modutils-2.4.5-5.sparc.rpm usbmgr.rpm usbutils.rpm usbview.rpm
        then do
        $ rpm -Uvh *.rpm

        if /lib/modules/2.4.6-pre1 does not exists:
         $ mkdir /lib/modules/2.4.6-pre1

        $ depmod
        $ mk_initrd

        *MULTIBOOT
         1-SILO
          edit /etc/silo.conf
           change root=/dev/sda5 to /dev/hda7 (or whatever your root partition is)
           uncoment the initrd line in the /boot/vmlinuz block
           be sure to have "partition=7"
           add the folowing two lines at the end of the file
             other=1
             label=solaris 
          save the changes and exit
          $ silo

         now you can reboot

           at boot time press STOP+A
           At OK prompt type:
             OK nvalias linux /pci@1f,0/ide@d/disk@0,0:g
             OK nvalias solaris /pci@1f,0/ide@d/disk@0,0:a
           choose the default OS you want to boot (here linux)
             OK setenv boot-device linux
           from now you can boot on the desired OS by pressing STOP+A
           then you have to type "boot linux" or "boot solaris"    
           anyway if you boot on linux you will have the choice again
             OK boot

        now evrything should work

        *X installation
         we will convert the xserver debian package to a rpm one
         on the SB run 
         $ alien -r xserver-xfree86_4.1.0-0prev1v1_sparc.deb
         $ rpm -Uvh --force xserver-xfree86-4.1.0-1.sparc64.rpm
         $ ln -s /usr/X11R6/bin/Xfree86 /var/X11R6/bin/X
         
         copy the following lines in /etc/X11/XF86Config-4
         #----------- /etc/X11/XF86Config-4 --------------
        Section "ServerLayout"
                Identifier     "XFree86 Configured"
                Screen      0  "Screen0" 0 0
                InputDevice    "Mouse0" "CorePointer"
                InputDevice    "keyboard" "CoreKeyboard"
        EndSection

        Section "Files"
                RgbPath      "/usr/X11R6/lib/X11/rgb"
                ModulePath   "/usr/X11R6/lib/modules"
                FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
                FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
                FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
                FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
                FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
                FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
        EndSection

        Section "Module"
                Load  "dbe"
                Load  "dri"
                Load  "extmod"
                Load  "pex5"
                Load  "record"
                Load  "xie"
                Load  "glx"
        EndSection

        Section "InputDevice"
                Identifier  "keyboard"
                Driver      "keyboard"
                Option      "XkbModel" "pc101"
                Option      "XkbLayout" "us"
        EndSection

        Section "InputDevice"
                Identifier  "Mouse0"
                Driver      "mouse"
                Option      "Protocol" "PS/2"
                Option      "Device" "/dev/mouse"
        EndSection

        Section "Monitor"
                Identifier   "Monitor0"
                VendorName   "Monitor Vendor"
                ModelName    "Monitor Model"
                HorizSync    31.5 - 79.0
                VertRefresh  50.0 - 100.0
        EndSection

        Section "Device"
                Identifier  "ATI RAGE"
                Driver      "ati"
                VendorName  "ATI"
                BoardName   "Mach64 GR"
                ChipSet     "ati"
                ChipId      0x4752
                ChipRev     0x27
                BusID       "PCI:0:19:0"
        EndSection

        Section "Screen"
                Identifier "Screen0"
                Device     "ATI RAGE"
                Monitor    "Monitor0"
                DefaultDepth 24
                SubSection "Display"
                        Depth     24
                        Modes     "1024x768"
                EndSubSection
        EndSection

        Section "DRI"
        EndSection
         #--------- end of /etc/X11/XF86Config-4 ---------
         in the section screen you can change the resolution to "1280x1024"

         

        you can change you're prefered login manager by changing
        the value of "DISPLAYMANAGER" in /etc/rc.config

        if you want to start in graphical mode you also need to 
         set "CHECK_INITTAB" to "NO" in /etc/rc.config 
         edit /etc/inittab and change the "defaut runlevel" line to:
          id:5:initdefault:


        start Graphical mode
         $ telinit 5 

        *If you want to access solaris partition 
         $ mkdir /solaris
         then add this line to /etc/fstab
          /dev/hda1 /solaris ufs default 0 0
         $ mount -a

        Victory!

        -------------------------------------------
        Following informations

        There is no driver for the floppy drive, neither for the smart card reader

        ** Those are mails sent on sparclinux@vger.kernel.org

        The installation I made on the SB100 is not perfect. Here is a list of the problems I still have. Maybe 
	somes will be familiar to you:

        Another thing, is there a driver for the smart-card reader?

        PM Legris

        1- I can't get to mount the floppy drive (/dev/fd0 no such device)
        3- At boot I've the following error message:
           "can't locate module char-major-11
            /dev/kbd: NO such device"
        4- when boot kde I've the following errors in the console:
        Jun 18 17:46:27 blaize modprobe: modprobe: Can't locate module keybdev
        Jun 18 17:46:28 blaize kernel: sys32_ioctl(showconsole:90): Unknown cmd fd(0) cmd(40045432) arg(effffbf4)
        Jun 18 17:46:30 blaize /usr/sbin/gpm[346]: Error in protocol
        Jun 18 17:58:09 blaize kernel: sys32_ioctl(showconsole:408): Unknown cmd fd(0) cmd(40045432) arg(effffbf4)
        Jun 18 17:58:12 blaize kernel: Warning: Remapping obsolete /dev/fb* minor 32 to 1
        Jun 18 17:58:12 blaize modprobe: modprobe: Can't locate module fb1
        Jun 18 17:58:12 blaize kernel: Warning: Remapping obsolete /dev/fb* minor 64 to 2
        Jun 18 17:58:12 blaize modprobe: modprobe: Can't locate module fb2
        Jun 18 17:58:14 blaize modprobe: modprobe: Can't locate module char-major-11
        Jun 18 18:17:15 blaize modprobe: modprobe: Can't locate module sound-slot-0
        Jun 18 18:17:15 blaize modprobe: modprobe: Can't locate module sound-service-0-1 

        ---------------------------------------------------------------------------------


        > 3- At boot I've the following error message:
        > "can't locate module char-major-11
        > /dev/kbd: NO such device"

        I don't know in the moment from where this could be come, but our
        current hardware detection does not know about USB keyboards on SPARC
        (it is already fixed for the next version).

        > 4- when boot kde I've the following errors in the console:
        > Jun 18 17:46:27 blaize modprobe: modprobe: Can't locate module keybdev

        Old kernel bug: the kernel tries to load a module which is already
        compiled into the kernel.

        > Jun 18 17:46:28 blaize kernel: sys32_ioctl(showconsole:90): Unknown cmd 
        > fd(0) cmd(40045432) arg(effffbf4)

        Some special SuSE kernel patches are still missing, but you can 
        ignore this. As result, only logging of the init start scripts will
        not work.

          Thorsten

        -----------------------------------------------------------------------------------

        > Another thing, is there a driver for the smart-card reader?

        No.

         > 1- I can't get to mount the floppy drive (/dev/fd0 no such device)

        No driver. The ISA bus on the sb100 is "funky".

         > 3- At boot I've the following error message:
         > "can't locate module char-major-11
         > /dev/kbd: NO such device"

        It's a usb keyboard, probably confusing the suse initscripts.

         > Jun 18 17:46:30 blaize /usr/sbin/gpm[346]: Error in protocol
         > Jun 18 17:58:09 blaize kernel: sys32_ioctl(showconsole:408): Unknown cmd 
         > fd(0) cmd(40045432) arg(effffbf4)

        GPM needs to be set to expect USB mouse.

         > Jun 18 17:58:12 blaize kernel: Warning: Remapping obsolete /dev/fb* 
         > minor 32 to 1
         > Jun 18 17:58:12 blaize modprobe: modprobe: Can't locate module fb1
         > Jun 18 17:58:12 blaize kernel: Warning: Remapping obsolete /dev/fb* 
         > minor 64 to 2
         > Jun 18 17:58:12 blaize modprobe: modprobe: Can't locate module fb2
         > Jun 18 17:58:14 blaize modprobe: modprobe: Can't locate module char-major-11
         > Jun 18 18:17:15 blaize modprobe: modprobe: Can't locate module sound-slot-0
         > Jun 18 18:17:15 blaize modprobe: modprobe: Can't locate module 
         > sound-service-0-1

        Most of these are harmless and can be ignored.

        Later,
        David S. Miller
        davem@redhat.com

        --------------------------------------------------------------------------------