<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf8">
<title>/usr/web/sources/contrib/newsham/NOTES.sparc64 - Plan 9 from Bell Labs</title>
<!-- THIS FILE IS AUTOMATICALLY GENERATED. -->
<!-- EDIT sources.tr INSTEAD. -->
</meta>
</head>
<body>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
<span style="font-size: 10pt"><a href="/plan9/">Plan 9 from Bell Labs</a>&rsquo;s /usr/web/sources/contrib/newsham/NOTES.sparc64</span></p>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<center><font size=-1>
Copyright © 2009 Alcatel-Lucent.<br />
Distributed under the
<a href="/plan9/license.html">Lucent Public License version 1.02</a>.
<br />
<a href="/plan9/download.html">Download the Plan 9 distribution.</a>
</font>
</center>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<table width="100%" cellspacing=0 border=0><tr><td align="center">
<table cellspacing=0 cellpadding=5 bgcolor="#eeeeff"><tr><td align="left">
<pre>
<!-- END HEADER -->
Plan9 on Ultrasparc
2005-04-21

Supported Platforms
  - Sun Ultra2

Supported Hardware
  - HME 10/100 ethernet
  - HME/FAS366 SCSI
     - no booting from disk yet
     - no support for sunlabel disk labels
  - Z8530 uart serial port




My tree had some stale directories that needed cleaning:
  - cd /sys/src/cmd &amp;&amp; rm 6? 9? rtstats
  - In between builds /sys/src/cmd/cc doesnt clean several
     libraries.  The should be manually removed if you want
     a clean rebuild:
         9/boot/libboot.a?
         cmd/cc/cc.a?
         cmd/map/libmap/libmap.a?
         cmd/plot/libplot.a?
         cmd/postscript/common/com.a?
         cmd/upas/common/libcommon.a?
         cmd/usb/lib/usb.a?

To build:
  - mount your root drive and extract the files
    - disk/kfscmd allow
    - 9fs kfs
    - cd /n/kfs
    - tar -x &lt; $home/sparc64src.tar
  - build the cross compilers
    - for(d in ua ul uc) { cd /sys/src/cmd/$d &amp;&amp; mk install }
    - cd /sys/src/ape/cmd &amp;&amp; mk cc.install
    - cd /sys/src/cmd &amp;&amp; mk pcc.install 
  - build the libraries and binaries
    - cd /sys/src
    - objtype=sparc64 mk install
  - build the kernel
    - cd /sys/src/9/sparc64
    - mk install
  - optionally rebuild your cross platform
    - cd /sys/src &amp;&amp; mk install

To run:
  - make all binaries on a file server
  - setup for net booting with tftpd and rarpd running
  - connect a serial line to ttyA (uart #3) of the ultrasparc box.
     The default baud is 9600, but you may alter the
     speed with a command line option:
        console="3 b19200 l8 pn s1".
  - from the open firmware prompt run "boot net".  
     Arguments can be added to the end
     of the boot command if desired.
  - continue net booting as normal
  - scsi support's in now.
     to partition the drive use the disk/prep utility on
     the /dev/sd??/data partition.  The prep label will
     be read back during the boot process.
     Note: I've had to leave some empty space at the
     start of my disk to keep the table from getting clobbered.
     I havent investigated this further yet.  I recommend
     starting the first partition at offset 63 for now.
     You cant boot the kernel off disk yet (although you
     probably can boot it off a cdrom -- I havent tried yet),
     however you can use the disk as a local root filesystem
     after the kernel boots.  Adjust the kernel config file 
     to pick the partition you wish to use.
  - To simplify booting, you can configure ofw.  Setting the
     boot-device variable sets the devices to boot from.  Setting
     boot-file sets the command line arguments:
        {0} ok setenv boot-device net disk
        {0} ok setenv boot-device console="3 b19200 l8 pn s1" venti=#S/sd01/arenas0
        {0} printenv
        {0} boot


Updating:
  - if you installed an earlier version of this distribution you
     should remove /sys/src/cmd/K[cal].  The compiler tools are
     now named u[acl].
  - If you had installed a previous version there are files
     which were modified which are no longer needed.  You should
     restore the following files from sources:
         replica/pull -s -v sys/src/cmd/strip.c \
                 sys/src/libmach \
                 sys/include \
                 sys/lib/acid \
                 386/lib/libmach.a \
                 386/bin/^(acid ar strip size) \
                 sparc64


------
#!/bin/rc

cd /sys/src
rm -f 9/boot/libboot.a?
rm -f cmd/cc/cc.a?
rm -f cmd/map/libmap/libmap.a?
rm -f cmd/plot/libplot.a?
rm -f cmd/postscript/common/com.a?
rm -f cmd/upas/common/libcommon.a?
rm -f cmd/usb/lib/usb.a?
cd /sys/src/cmd &amp;&amp; rm -f 6? 9? rtstats
cd /sys/src &amp;&amp; mk clean

for(d in ua ul uc) { cd /sys/src/cmd/$d &amp;&amp; mk install }
cd /sys/src/ape/cmd &amp;&amp; mk cc.install
cd /sys/src/cmd &amp;&amp; mk pcc.install

cd /sys/src &amp;&amp; objtype=sparc64 mk install
cd /sys/src/9/sparc64 &amp;&amp; mk install
<!-- BEGIN TAIL -->
</pre>
</td></tr></table>
</td></tr></table>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
<span style="font-size: 10pt"></span></p>
<p style="margin-top: 0; margin-bottom: 0.50in"></p>
<p style="margin-top: 0; margin-bottom: 0.33in"></p>
<center><table border="0"><tr>
<td valign="middle"><a href="http://www.alcatel-lucent.com/"><img border="0" src="/plan9/img/logo_ft.gif" alt="Bell Labs" />
</a></td>
<td valign="middle"><a href="http://www.opensource.org"><img border="0" alt="OSI certified" src="/plan9/img/osi-certified-60x50.gif" />
</a></td>
<td><img style="padding-right: 45px;" alt="Powered by Plan 9" src="/plan9/img/power36.gif" />
</td>
</tr></table></center>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<center>
<span style="font-size: 10pt">(<a href="/plan9/">Return to Plan 9 Home Page</a>)</span>
</center>
<p style="margin-top: 0; margin-bottom: 0.17in"></p>
<center><font size=-1>
<span style="font-size: 10pt"><a href="http://www.lucent.com/copyright.html">Copyright</a></span>
<span style="font-size: 10pt">© 2009 Alcatel-Lucent.</span>
<span style="font-size: 10pt">All Rights Reserved.</span>
<br />
<span style="font-size: 10pt">Comments to</span>
<span style="font-size: 10pt"><a href="mailto:webmaster@plan9.bell-labs.com">webmaster@plan9.bell-labs.com</a>.</span>
</font></center>
</body>
</html>

