File:  [NetBSD Developer Wiki] / wikisrc / ports / news68kfaq.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Tue Dec 25 17:23:40 2012 UTC (15 months, 3 weeks ago) by mspo
Branches: MAIN
CVS tags: HEAD
add news68k pages

### General Questions

-   [How can I set up a serial console?](#serial_console)
-   [My NEWS does not print anything to console!](#dead_nvram)
-   [How should I set the DIP switches?](#dip_sw)
-   [How can I turn off the machine other than by unplugging the
    cable?](#power_off)
-   [NetBSD/news68k install floppy does not boot](#bootfd)
-   [Kernel prints "level 3 interrupt:" forever after boot with power
    cycle](#level_3_int)
-   [Can I install both NetBSD and NEWS-OS in the same
    disk?](#coexist_news_os)

### PROM monitor Questions

-   [What commands can I use at the PROM prompt?](#prom_command)
-   [Can NetBSD/news68k boot via network?](#netboot)

### Hardware Questions

-   [What are the specs of my NEWS?](#spec)
-   [Which type of SIMM can be used for my NEWS?](#memory)
-   [Is there any hope to support NWS-18x0 models?](#news1800)
-   [How about NWS-8xx and NWS-7xx models?](#news800)

### Other sources of information

-   [Other sources of information from NetBSD.org](#other_info_nbsd)

* * * * *

### General Questions

#### How can I set up a serial console? ([top](#general))

First, turn off DIP switches 1-3 to specify to use serial console for
the PROM monitor. (See [DIP switch descriptions](#dip_sw) for details)

The NEWS machines use CH0 port for serial console, with 9600bps, 8 bit
char, no parity and 1 stop bit.

Serial ports of news1400/1500/1600/1700 use ordinary 25P D-sub
connectors, so you just need a null modem cable.

news1200 uses female 9P D-sub connectors. It has the same pin layout
with PCs, though they have male 9P connectors.

See the [NetBSD Serial Port
Primer](../../docs/Hardware/Misc/serial.html) for more information.

#### My NEWS does not print anything to console! ([top](#general))

The NEWS machines use the MK48T02 NVRAM chip, which is also used in the
SPARCstation machines. If the NVRAM battery is dead, the machine won't
boot properly.

What you need to do, both with a new NVRAM, or one with a dead battery
is to press the POWER/RESET buttons in the following order to force the
PROM monitor to re-initialize the NVRAM:

-   Press and hold POWER button

-   Press RESET, while still holding POWER

-   Release RESET first

-   And then release POWER

Unlike SPARCstations, you don't have to restore any data like the
ethernet MAC address. The MAC address is stored in ROM on NEWS, and only
thing you have to set is the time of the day for the clock.

If you are going to replace the dead NVRAM, the [Sun NVRAM/hostid
page](http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html) has
lots of useful information about the chips. Maybe you could try to
[attach a new battery onto the
NVRAM](http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html#attach),
but on some NEWS models the NVRAM might be soldered to the mainboard
without a socket `:-(`{.code}

#### How should I set the DIP switches? ([top](#general))
news68k machines have one block of 8 dip switches:
<a name="console_settings"></a><p class="title"><b>Table 1. </b></p>
<div class="table-contents">
<table border="1">
<colgroup><col></colgroup>
<thead><tr>
<th>Switch 1,2,3</th>
<th>console settings</th>
</tr></thead>
<tbody>
<tr>
<td><code class="code">OFF,OFF,OFF</code></td>
<td>ANSI terminals (i.e., serial console)</td>
</tr>
<tr>
<td><code class="code">OFF,OFF,ON </code></td>
<td>NWB-512 monochrome bitmap console</td>
</tr>
<tr>
<td><code class="code">ON ,OFF,OFF</code></td>
<td>NWB-225A color bitmap console</td>
</tr>
<tr>
<td><code class="code">ON ,ON ,ON </code></td>
<td>newer framebuffers which support autoselection functions
     (NWS-251, NWB-514, etc.)</td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="table-break">

<div class="table">
<a name="boot_device"></a><p class="title"><b>Table 2. </b></p>
<div class="table-contents">
<table border="1">
<colgroup><col></colgroup>
<thead><tr>
<th>Switch 4</th>
<th>boot device</th>
</tr></thead>
<tbody>
<tr>
<td><code class="code">OFF</code></td>
<td>boot from SCSI disk: <code class="code">hd()</code>
</td>
</tr>
<tr>
<td><code class="code">ON</code></td>
<td>boot from floppy disk: <code class="code">fh()</code>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="table-break">

<div class="table">
<a name="autoboot"></a><p class="title"><b>Table 3. </b></p>
<div class="table-contents">
<table border="1">
<colgroup><col></colgroup>
<thead><tr>
<th>Switch 5</th>
<th>autoboot</th>
</tr></thead>
<tbody>
<tr>
<td><code class="code">OFF</code></td>
<td>PROM monitor</td>
</tr>
<tr>
<td><code class="code">ON</code></td>
<td>auto boot</td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="table-break">

<div class="table">
<a name="diagnostic"></a><p class="title"><b>Table 4. </b></p>
<div class="table-contents">
<table border="1">
<colgroup><col></colgroup>
<thead><tr>
<th>Switch 6</th>
<th>diagnostic (?)</th>
</tr></thead>
<tbody>
<tr>
<td><code class="code">OFF</code></td>
<td>Diag off (default)</td>
</tr>
<tr>
<td><code class="code">ON</code></td>
<td>Diag on</td>
</tr>
</tbody>
</table>
</div>
</div>
<br class="table-break">

<div class="table">
<a name="unused"></a><p class="title"><b>Table 5. </b></p>
<div class="table-contents">
<table border="1">
<colgroup><col></colgroup>
<thead><tr>
<th>Switch 7,8</th>
<th>unused</th>
</tr></thead>
<tbody><tr><td>default off</td></tr></tbody>
</table>
</div>
</div>

#### How can I turn off the machine other than by unplugging the cable? ([top](#general))

Just press the RESET button (without POWER), or use the `"off"`{.code}
command on the PROM prompt.

#### NetBSD/news68k install floppy does not boot ([top](#general))

There are some reports that some news1500 machines cannot boot the
install floppy because of read errors. It might be caused by a bug in
the PROM monitor or boot loader, but could be actual media errors. Try
cleaning up your drive and booting several times with several disks.

#### Kernel prints `"level 3 interrupt:"`{.code} forever after boot with power cycle ([top](#general))

Some old versions of PROM monitors do not initialize framebuffers in
expansion slots properly when serial console is specified, which leads
to the framebuffer causing spurious interrupts.

The workaround is to reset the machine (using the POWER+RESET method
mentioned above) with bitmap console settings once, and then reset again
with serial console.

#### Can I install both NetBSD and NEWS-OS in the same disk? ([top](#general))

It is not well tested and not recommended, but yes, it is possible.

NetBSD/news68k can recognize NEWS-OS disklabels and mount NEWS-OS disks,
but once NetBSD modifies the NEWS-OS disklabel, NEWS-OS cannot recognize
them. It is recommended to install each OS on its own disk.

* * * * *

### PROM monitor Questions
<a name="prom_command"></a>What commands can I use at the PROM prompt? (<a href="#prom_questions">top</a>)
  </h4>
<p>
The <code class="code">help</code> command will show all the commands.
On a NWS-1750 it says:</p>
<pre class="programlisting">
NEWS&gt; help
bf [.{b|w|l}] &lt;bgn&gt; {&lt;end&gt;|:&lt;cnt&gt;} &lt;data&gt;               : Block Fill
bm &lt;bgn&gt; {&lt;end&gt;|:&lt;cnt&gt;} &lt;dest&gt;                          : Block Move
bo [&lt;dev&gt;]                                              : BOot
bp [&lt;addr&gt; [:&lt;cnt&gt;]] ...                                : BreakPoint set
cp &lt;src_dev&gt; &lt;bgn&gt;:&lt;cnt&gt; &lt;dst_dev&gt; &lt;dest&gt;               : CoPy
format {fd|fh}                                          : FORMAT floppy
go [&lt;addr&gt; [&lt;bkpt&gt; [:&lt;cnt&gt;]]]                           : GO to user program
help                                                    : display this
md [.{b|w|l}] [&lt;bgn&gt; [{&lt;end&gt;|:&lt;cnt&gt;}]]                  : Memory Display
ms [.{b|w|l}] [&lt;addr&gt; [&lt;data&gt;]]                         : Memory Set
mu                                                      : Memory Usage
nobp [&lt;addr&gt;] ...                                       : NO BreakPoint
off                                                     : turn power OFF
rc                                                      : Re-assign Console
rd [{dreg|areg|preg|creg|mreg}] ...                     : Register Display
rr                                                      : Register Reset
rs [&lt;reg&gt; [&lt;data&gt;]]                                     : Register Set
set [&lt;var&gt;[=&lt;value&gt;]]                                   : SET variable
st [:&lt;cnt&gt;]                                             : Stack back Trace
tr [:&lt;cnt&gt;] [branch] [{dreg|areg|preg|creg|mreg}]       : instruction TRace
vers                                                    : VERSion number
NEWS&gt;
</pre>
<p>
Other machines might print these messages differently,
but they should be mostly the same.
</p>
<p>
For the boot command, you can specify the following options:</p>
<div class="table">
<a name="boot_options"></a><p class="title"><b>Table 6. </b></p>
<div class="table-contents">
<table border="1">
<colgroup><col></colgroup>
<tbody>
<tr>
<td><code class="code">bo</code></td>
<td>boot from default device (usually <code class="code">sd0</code>)</td>
</tr>
<tr>
<td><code class="code">bo /1</code></td>
<td>boot with <code class="code">RB_ASKNAME</code>
 (i.e., ask for root device before mountroot)</td>
</tr>
<tr>
<td><code class="code">bo /2</code></td>
<td>boot with <code class="code">RB_SINGLE</code>
 (i.e., go to single-user mode)</td>
</tr>
<tr>
<td><code class="code">bo fh()</code></td>
<td>boot from 1.44M floppy</td>
</tr>
<tr>
<td><code class="code">bo hd(1)</code></td>
<td>boot from SCSI disk with ID 1</td>
</tr>
<tr>
<td><code class="code">bo /2 hd()/netbsd.0 </code></td>
<td>boot <code class="code">"netbsd.0"</code> on <code class="code">sd0</code> in single-user mode</td>
</tr>
</tbody>
</table>
</div>
</div>

#### Can NetBSD/news68k boot via network? ([top](#prom_questions))

No, not yet.

The PROM monitor of news68k machines uses "remote disk (rd)" for
diskless boot, but it is only supported by NEWS-OS and there is no
documentation about it.

`rd_rpc.h`{.code} or `rd_srq.h`{.code} in NEWS-OS might be helpful, but
currently no one is working on it.

* * * * *

### Hardware Questions

#### What are the specs of my NEWS? ([top](#hardware_questions))

See this [page of SONY NEWS
specifications](http://katsu.watanabe.name/doc/sonynews/model.html). It
is written in Japanese, but still has lots of good information for
non-Japanese readers.

#### Which type of SIMM can be used for my NEWS? ([top](#hardware_questions))

For news1600/1700 machines, 30pin 1M SIMMs with 9 chips can be used to
upgrade to 16M bytes. SIMMs with 3 chips or SIMMs without parity cannot
be used. To upgrade from 16M to 32M, the optional memory board is
required.

For news1400/1500 machines, 30pin 1M SIMMs with 8 or 9 chips can be used
(these machines don't use the parity bit). SIMMs with 2 or 3 chips
cannot be used.

#### Is there any hope to support NWS-18x0 models? ([top](#hardware_questions))

Unfortunately, there are many barriers to supporting news1800 machines.
news1800 models have dual 68030 CPUs. One is a main processor, and
another is an "I/O Processor". All devices (tty, ethernet, SCSI, etc.)
are connected to the IOP, but there is little information about how to
handle them. NEWS-OS provides a special module for the IOP called "MRX",
and it is loaded by the PROM at boot time from the root directory.

Some people have asked for NEWS device information from Sony, and Sony
once had planned to open their NEWS-OS sources. But there were many
problems with source license issues, and the NEWS development division
in Sony had already been dissolved, so no one could resolve the issues
officially.

#### How about NWS-8xx and NWS-7xx models? ([top](#hardware_questions))

The one problem is that news800 models also use an I/O processor, which
is mentioned in the above entry. Another problem is that news800 uses
m68020 and Sony's own MMU, not Motorola's m68851 MMU. news700 also has
an original MMU like news800. There is little information about it,
either.

* * * * *

### Other sources of information

#### Other sources of information from NetBSD.org ([top](#other_info))

-   [NetBSD/news68k 6.0 install
    notes](http://ftp.NetBSD.org/pub/NetBSD/NetBSD-6.0/news68k/INSTALL.html)
    - supported hardware and how to install.

-   [port-news68k mail list](../../mailinglists/#port-news68k)
    ([archive](http://mail-index.NetBSD.org/port-news68k/)) - if you
    have any additional questions please subscribe.

-   [History of NEWS machines](../newsmips/history.html) - A brief
    history of machines running NetBSD/newsmips and NetBSD/news68k.

-   [NetBSD Serial Port Primer](../../docs/Hardware/Misc/serial.html)

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb