author: Mark Henderson

subject: FAQ: Frequently Asked Questions about Sun NVRAM, IDPROM, hostid

text:
Frequently Asked Questions about Sun NVRAM/hostid

$Date: 1997/04/15 13:36:20 $

$Revision: 1.42 $

This document has been placed in the public domain by the author - Mark
Henderson <[email]>

If this information is abused, misinterpreted, or incorrect you can render
your computer unbootable. The information in this document is distributed in
the hope that it will be useful, but without any warranty; without even the
implied warranty of merchantability or fitness for a particular purpose. You
use this document at your own risk. The author disclaims responsibility for
any damages that might result from the use of this document, even if they
result from negligence or errors on the part of the author. Please do not
use the information in this document to steal software or violate licence
agreements with software vendors.

This is the new and hopefully improved Sun NVRAM FAQ. It is an attempt to
answer the following frequently asked questions on comp.sys.sun.hardware and
comp.sys.sun.admin.

  1. When I turn on my Sun I get output which looks something like:

     Sun Workstation, Model Sun-XXXXXX Series.
     ROM Rev X.X, XXMB memory installed
     ID PROM invalid.
     Testing 0 Megabytes of Memory ... Completed.
     ERROR: missing or invalid ID prom
     Requesting Internet address for 0:0:0:0:0:0

     or

     Sun Workstation, Model Sun-XXXX Series.
     Type 4 Keyboard
     ROM Rev X.X, XXMB memory installed, Serial #16777215
     Ethernet address ff:ff:ff:ff:ff:ff, Host ID ffffffff

     Invalid format type in NVRAM
     The IDPROM contents are invalid

     How can I fix this? (Probably Replace chip)
  2. The clock on my Sun has stopped working. When I turn off the machine it
     loses track of the time and/or complains about invalid TOD when I turn
     it on. How do I get my clock to keep time when the system is off?
     (Replace chip)
  3. I get warnings about by NVRAM battery being low when I boot my machine
     but otherwise it works nicely. Should I be worried? (Replace chip)
  4. When my Sun boots I get warnings about the IDPROM checksum being
     incorrect and/or Invalid format type in NVRAM. What does this mean and
     how can I fix it?
  5. The hostid and/or ethernet address on my Sun have been corrupted. How
     can I restore it to a sane state?
  6. How do I change the hostid and/or ethernet address of my Sun
     workstation?
  7. My Sun is in full-security mode (can't even boot without password) and
     I don't know the EEPROM password. How do I fix this? (Replace chip)

The information in this document applies to the following Sun architectures:
sun4c, sun4m, sun4d, sun4u, sun3x (but not to sun4, sun3)

All of these questions relate to the NVRAM chip in the Sun workstation. The
contents of the NVRAM chip can become corrupted for a variety of reasons,
most commonly, failure of the embedded battery. The battery embedded in the
NVRAM chip keeps the clock running when the machine is off and also
maintains important system configuration information. This FAQ tells you how
to reprogram your NVRAM chip and where to buy a new one, should you need to
replace your current NVRAM chip. If you have one of the questions marked
(Replace Chip), you'll need to purchase a new NVRAM chip. The cost is about
US$20. For the other questions, as long as your machine retains its hostid
and ethernet address when turned off, and the clock keeps time when the
machine is turned off, reprogramming your NVRAM chip is enough.

One question is marked (Probably Replace Chip). Usually, when the NVRAM gets
corrupted in this way, this is a symptom that the battery embedded in the
NVRAM chip has run out and you need to replace the chip. If the machine is
relatively new, you should try reprogramming the NVRAM chip with a hostid
and ethernet address using the instructions below, then do a reset at the
"ok" prompt to make sure the banner looks as expected. Next turn the machine
off for a couple of minutes and turn it on again. If the machine retains its
hostid and ethernet address, then you probably don't need to replace the
NVRAM chip.

People can be asking two different questions when they are asking how to
change the ethernet address of a workstation. If you merely want to change
the ethernet address of an interface on your system, you can use the
ifconfig command and forget about the procedures in this document. The
ethernet address in NVRAM is the default address for all ethernet
interfaces. If, for some reason, you want to change this default ethernet
address in NVRAM, then the instructions in this document will tell you how
to do this. Sun workstations are a little strange in this regard, they don't
get their MAC addresses from the ethernet hardware itself.

The most up to date version of this document can be obtained from the
following sites:

   * ftp://ftp.mindlink.net/pub/crypto/sun-stuff/sun-nvram-hostid.faq.html
   * ftp://ftp.netcom.com/pub/he/henderso/sun-nvram-hostid.faq.html
   * http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html

Plain text versions of this document are available from the following:

   * ftp://ftp.mindlink.net/pub/crypto/sun-stuff/sun-nvram-hostid.faq
   * ftp://ftp.netcom.com/pub/he/henderso/sun-nvram-hostid.faq
   * http://www.squirrel.com/squirrel/sun-nvram-hostid.faq

This FAQ is also distributed as part of a larger package for spoofing the
hostid on Sun workstations called change-sun-hostid. In particular, parts of
change-sun-hostid can be used to modify the apparent hostid for some or all
processes on a UNIX system without messing with the NVRAM. This package even
provides a way to make a host seem to have multiple hostids (different
processes see different hostids). If you are interested in changing your
hostid to deal with software licence issues, you should probably try the
scripts/programs in this package first, as most of them don't make permanent
changes to a chip on your motherboard. Changing the NVRAM should be a last
resort. You can retrieve this package from:

   * ftp://ftp.mindlink.net/pub/crypto/sun-stuff/change-sun-hostid.tar.gz
   * ftp://ftp.netcom.com/pub/he/henderso/change-sun-hostid.tar.gz
   * http://www.squirrel.com/squirrel/sun-stuff/change-sun-hostid.tar.gz

Some related links:

   * http://www.jaist.ac.jp/~kosmic/private/data/sparc_nvram_change.html is
     a Japanese language file with information on reprogramming and
     replacing the NVRAM in a sun4c machine.
   * http://www.portnet.co.jp/JIS/techical/WS/sunnvram.japanese.html is a
     Japanese language eeprom-nvram FAQ
   * For other Sun Hardware questions, check out The Sun Hardware Reference
     available from ftp://ftp.picarefy.com/pub/Sun-Hardware-Ref
   * For those who want more technical information about the NVRAM chips
     themselves, SGS-Thomson has a WWW page with datasheets for the M48T02,
     M48T08, and M48T59Y on http://www.st.com
   * Useful tools for Sun Workstations at
     http://www.squirrel.com/squirrel/sun-stuff.html

This document consists of the following parts.

  1. Introduction and Hardware
  2. General sun4c, sun4m, sun4d, sun4u IDPROM Programming
  3. A Quick-and-Dirty Guide to Restoring the NVRAM of a sun4c/m/u Machine
  4. The Sun 3/80
  5. Examples
  6. Odds and Ends
       a. Resetting the NVRAM when Stop-N doesn't work
       b. Attaching a new battery onto an existing M48T02
       c. How to start and stop the NVRAM clock on the Sun 3/80 and sun4c
          machines
       d. Other more arcane methods for modifying the IDPROM
       e. The hostid on Solaris 2.5 x86
       f. The NVRAM in sun4 architecture machines
  7. Credits

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

Introduction and Hardware

Every Sun 3/80, sun4c, sun4u, and sun4m architecture machine contains an
NVRAM chip (not to be confused with the NVRAM in Prestoserve). This NVRAM
chip stores various configuration parameters (e.g. boot device, amount of
RAM to test), maintains the clock, and also contains the IDPROM data, which
is composed of the ethernet address, date of manufacture, hostid, a version
number, and a checksum. The name IDPROM is historical. On older machines
such as the sun2, sun3, and sun4 architecture machines the hostid and
ethernet address were stored in a PROM called the IDPROM.

The sun4d machines (e.g. SS1000) also have an NVRAM chip. However, the
IDPROM information is stored in a flash EEPROM and is downloaded into the
NVRAM during POST. You can also upload the IDPROM information from the NVRAM
chip to the flash EEPROM, so you can change the value of IDPROM in the flash
EEPROM by merely changing the NVRAM and uploading the new values.

This document is for people who want to accomplish one of the following
tasks:

   * Install a new NVRAM chip in a Sun 3/80, sun4c, or sun4m machine.
     Usually this will be due to NVRAM failure or loss of the NVRAM password
     in full security mode.
   * Change the hostid/ethernet address of a Sun 3/80, sun4c, sun4m, sun4u
     or sun4d machine.
   * Restore a machine with a corrupted NVRAM chip in a Sun 3/80, sun4c,
     sun4u, sun4m machine to working order.

I'm going to focus on methods that involve reprogramming the chip from the
FORTH OpenBoot monitor ("ok" prompt). The OpenBoot monitor uses a modified
version of FORTH, which is a language similar to that used on the HP
calculators which use RPN. You don't need to know any FORTH to reprogram
your IDPROM, but the instructions below might make a little more sense if
you do know some FORTH.

The NVRAM chip will usually have a white or yellow barcode label on it
(except for sun4d). Given the barcode, Sun can reconstruct your original
hostid and ethernet address. I have no idea how this is done, but the
barcode serves as an easy way to identify the chip on the motherboard.

[Image]

The following table gives the location of the NVRAM chip for various models
of Sun workstation.

 3/80                           U0205
 4/60 (SS1)                     U089
 4/40 (IPC)                     U0901
 4/65 (SS1+)                    U089
 4/20 (SLC)                     U1011
 4/25 (ELC)                     U0813
 4/50 (IPX)                     U0512
 4/75 (SS2)                     U0512
 4E                             U1101
 4/10 (SPARCclassic X)          U0707
 4/15 (SPARCclassic)            U0707
 4/30 (LX/ZX)                   U0707
 SPARC Xterm 1                  U1605
 SS4                            U1605
 SS5                            U1506
 SS10                           U1004
 SS20                           U1004
 SS600MP                        U2701
 SS240 (Voyager)                U1506
 SS1000/1000E                   U1007
 SS2000/2000E                   U1205
 U1/170                         U2006

The NVRAM chips are SGS-Thomson Timekeeper (formerly Mostek) chips. They
contain an embedded battery with a fixed life. When the machine is off, the
battery runs down. It is very common for the battery embedded in the
Timekeeper chip in an older Sun (sun4c, sun3x) to fail. The following table
lists the NVRAM chip type by machine architecture:

 sun4c          M48T02
 sun4m          M48T08/18
 sun4d          M48T08
 sun4u          M48T59Y
 sun3x          M48T02

The NVRAM chips used to be designated Mostek MK48T02 etc. These chips come
in various speeds. The newer SGS-Thomson part numbers are M48T02-200PC1 for
the 200ns M48T02, M48T08-100PC1 for the 100ns M48T08. 200ns is adequate for
any Sun, but often the faster chips are easier to come by, and there is no
harm in buying them. If you have trouble tracking down a local SGS-Thomson
distributor, Mouser electronics sells the SGS-Thomson Timekeeper chips
(800-346-6873, 817-483-5712). The Mouser part numbers as of 1995 are slighly
different and are as follows:

 SGS-Thomson   Mouser part number speed  capacity
 M48T02-200PC1 511-M48T02-20PC1   200ns  2kB
 M48T02-150PC1 511-M48T02-15PC1   150ns  2kB
 M48T02-120PC1 511-M48T02-12PC1   120ns  2kB
 M48T08-150PC1 511-M48T08-15PC1   150ns  8kB
 M48T08-100PC1 511-M48T08-10PC1   100ns  8kB
 M48T59Y-70PC1 511-M48T59Y-70PC1  70ns   8kB

As of Oct 1995, the prices for these chips from Mouser range from
US$16.00-23.12. I have no affiliation with Mouser other than as a customer.

Dallas Semicondutor makes a clone of the SGS-Thomson M48T02 chips, the
DS1642. I've had mixed experience using the Dallas chips in a Sun. My
experience is that these chips do not work properly in the following
machines: 3/80, SS2, IPX (they fail POST, but otherwise seem OK). However,
the Dallas chips are reported to work in the following machines: SS1, SS1+,
IPC. I have no idea whether the Dallas chips work properly in the following:
SLC, ELC. You can order the DS1642 chips in 120ns or 150ns speeds (150ns is
fine) directly from Dallas in quantities up to 10 by calling 1-800-336-6933
and giving Dallas a credit card number. Data sheets and distrubutor lists
for Dallas are available from http://www.dalsemi.com/. Stanislav Sinyagin
<[email]> reports that the M48T12 is another acceptable alternative for
the SS1.

Here are some other sources for M48T02/8/18 chips (if you know of sources
not listed here, please send me email). Any SGS-Thomson distributor that
will sell the chips in small quantities should do. There is a list of
SGS-Thomson distributors at http://www.st.com/distrib/index.html. Thanks to
[email], Kenji Oshima <[email]>, Michael J
C Firth <[email]>, Bernd Wagner <[email]>, Werner
Lappessen <[email]>, Mikael Bergqvist <[email]> for
sending me the sources I have here:

   * Farnell Electronic Components (01132 636311) in the U.K.
   * Maplin Electronics (01702 554161) in the U.K.
   * Wakamatsu Tsusho Parts Shop, Mitsuwa Budg. 2F, 1-11-4 Soto-kanda,
     Chiyoda-ku, Tokyo 101 Japan tel. (+81)3-3251-4121 / fax.
     (+81)3-3251-7877
   * Jermyn GmbH, Im Dachstueck 6, D-65449 Limburg, phone in Germany : 06431
     5080
   * elpro, Am Kreuzer 13, D-64372 Ober-Ramstadt, phone in Germany :
     06154/63570, fax: 06154/635749, email [email]
   * ELFA (http://www.elfa.se/) is a Swedish company with branch offices in
     Norway, Denmark, and Finland. Part number for the M48T02 is 73-712-06
     (part name in catalogue: M48T02B-15/ST) and the cost is Skr 182
     (excluding VAT) as of April 1997. Phone numbers:
        o Sweden Order: +46 (0)8 735 35 35, Info 735 35 15
        o Finland Order: 08001 11 827
        o Denmark Order: 8001 20 02
        o Norway Order: 800 10 135

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

General sun4c, sun4m, sun4d, sun4u IDPROM Programming

If you have a valid NVRAM chip installed (IDPROM is ok) then before doing
anything else, write down a copy of the IDPROM information. You can get it
under Sun OS 4.1.x by running /usr/etc/devinfo -vp or under Solaris 2.x by
executing /usr/sbin/prtconf -vp. Alternatively you can get the IDPROM
information at the OpenBoot monitor "ok" prompt by typing the command
.idprom (yes the "." is part of the command). You'll need this information
if the NVRAM gets screwed up and you need to try and back out.

Step 1.

Go to the OpenBoot monitor (ok prompt). You can do this by turning on your
machine, pressing L1/Stop-A to interrupt the boot sequence, and entering
"new command mode". Alternatively, if your machine is running, just shut
down your operating system.

If you are installing a new NVRAM type set-defaults followed by the <Enter>
key and then setenv diag-switch? false followed by the <Enter> key.

Generally a machine will reset the NVRAM to the default values (excluding
the IDPROM information) when it detects a new NVRAM. Still, it is good to do
a set-defaults just in case this fails.

Step 2.

The command to reprogram the IDPROM part of NVRAM is "mkp". The format for
the command is

<value> <location> mkp

where location is read off the following table (all values are in
hexadecimal). Note that some Sun clones (e.g. Tatung COMPstation 25 with TWS
boot PROM REV 1.7) don't have an "mkp" command. If "mkp" doesn't work on
your system, see the section below entitled Other more arcane methods for
modifying the IDPROM.

 byte(s)     contents
 0           always 01 - format/version number
 1           first byte of hostid (machine type)
 2-7         6 byte ethernet address (first three bytes should be 08,00,20)
 8-b         date of manufacture (usually all 0s, doesn't really matter)
 c           second byte of hostid
 d           third byte of hostid
 e           fourth byte of hostid
 f           IDPROM checksum - bitwise xor of bytes 0-e

As mentioned above, you can look at the complete idprom by executing
.idprom. Bytes c through e in the table above are collectively referred to
as the serial number. If you convert the concatenation of bytes c-e to
decimal, this is the serial number you see when you turn the machine on.

Alternatively, you can use the idprom@ command to get a particular byte from
the IDPROM

<location> idprom@

returns the IDPROM value of byte <location>

so

<location> idprom@ .

prints the IDPROM value of byte <location> because . is the FORTH command to
print the value on the bottom of the stack.

Now make the changes using mkp. Be very careful and be sure to compute the
checksum after making changes. If you don't, you'll get nasty warnings about
an incorrect IDPROM checksum on boot. A quick and dirty way to compute and
store the checksum in location f is to execute the following at the "ok"
prompt _after_ you have made your changes to locations 0-e.

0 f 0 do i idprom@ xor loop f mkp

Don't change the first byte of the hostid to something that doesn't
correspond to your system type (see table below). Similarly, the first three
bytes of the ethernet address should be (08,00,20). The first byte of the
hostid is often used to determine the architecture when booting from CDROM
on some Sun models. If you don't set the first three bytes of the ethernet
address to 08,00,20 you might get message which says that you have a
defective motherboard (but then I don't know of any other consequences of
changing this to some reasonable value, especially avoid ff:ff:ff:ff:ff:ff
!. On some systems you can get away with changing the first three bytes of
the hostid to more or less anything you want).

If you'd rather not use the table below, you can find out what you should
make the first byte of the hostid by typing real-machine-type . at the "ok"
prompt. Note that real-machine-type may not be defined on some machines with
older boot proms.

e.g. modify the hostid of an IPX to be 57c0ffee and the ethernet address to
be 08:00:20:c0:ff:ee. At the OpenBoot monitor prompt (ok)

1 0 mkp
real-machine-type 1 mkp
8 2 mkp
0 3 mkp
20 4 mkp
c0 5 mkp
ff 6 mkp
ee 7 mkp
0 8 mkp
0 9 mkp
0 a mkp
0 b mkp
c0 c mkp
ff d mkp
ee e mkp
0 f 0 do i idprom@ xor loop f mkp

Step 3.

If you are on an SS1000, type update-system-idprom at the OpenBoot PROM "ok"
prompt.

For any of the above machines, now type reset at the ok prompt. Your machine
should then attempt to reboot with your new hostid/enet addr.

 The following table matches Sun system models with the first
        byte of the hostid. This is from a posting to
         comp.sys.sun.admin by [email]

 01 2/1x0
 02 2/50
 11 3/160
 12 3/50
 13 3/2x0
 14 3/110
 17 3/60
 18 3/e
 21 4/2x0
 22 4/1x0
 23 4/3x0
 24 4/4x0
 31 386i
 41 3/4x0
 42 3/80
 51 SPARCstation 1 (4/60)
 52 SPARCstation IPC (4/40)
 53 SPARCstation 1+ (4/65)
 54 SPARCstation SLC (4/20)
 55 SPARCstation 2 (4/75)
 56 SPARCstation ELC
 57 SPARCstation IPX (4/50)
 61 4/e
 71 4/6x0
 72 SPARCstation 10 or SPARCstation 20
 80 SPARCstation Classic, LX, 4, 5, SS1000, Voyager, Ultra 1
----------------------------------------------------------------------------

A Quick-and-Dirty Guide to Restoring the NVRAM of a sun4c/m/u machine

This is for folks who need to replace their NVRAM chip in a sun4c/m/u
machine and don't want to bother with XOR calculations or the details above
with mkp. I am assuming that you have a brand new NVRAM chip in hand. All
numbers below are in hex.

First, decide what ethernet address you want to use and what you want for
the last three byte of the hostid. The ethernet address should begin with
08:00:20. There are no restrictions on the last three bytes of the hostid.
Say the ethernet address is 08:00:20:E3:E4:E5 and the last three bytes of
the hostid are H1, H2, H3. The first byte of the hostid will automatically
be set according to the system type (real-machine-type variable in the
OpenBoot monitor).

Turn off the machine. Remove the old NVRAM chip after noting the
orientation. Insert the new NVRAM chip. Be sure to insert it in the correct
orientation, as installing it in the wrong orientation and powering on the
machine will generally destroy the chip. Power up the machine and bring it
to the "ok" prompt. At the "ok" prompt execute the following

set-defaults
setenv diag-switch? false
8 0 20 E3 E4 E5 H1H2H3 mkpl

mkpl expects some input (but it doesn't prompt you). The input is a
Control-D followed by a Control-R. If mkpl does not print a copyright
notice, then it changed the IDPROM. You should make sure by looking at the
idprom after using mkpl by executing the .idpromcommand

e.g. 8 0 20 13 de ad c0ffee mkpl will set the last three bytes of the hostid
to c0ffee and the ethernet address to 08:00:20:13:de:ad.

N.B. mkpl will only work if the IDPROM checksum is invalid. Otherwise it
will simply print a copyright notice after you type the Control-R. So, if
you can't get mkpl to work, you can try making the IDPROM checksum invalid.
You can invalidate the IDPROM checksum in an NVRAM with a valid IDPROM
checksum by executing f idprom@ 1 xor f mkp. If you still can't get mkpl to
work, then you should try using mkp as described in the above section. This
note was added because on some machines, set-defaults will set the IDPROM
checksum according to the other values in the IDPROM.

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

The Sun 3/80.

Here's a way to modify NVRAM IDPROM info on a Sun 3/80 (people have to do
this because of the usual battery problem, as with the sun4c machines) This
may not be the most elegant procedure, but this should allow you to modify
the NVRAM IDPROM info on a sun 3/80. At first glance you might think that
the q command would work, but it doesn't seem to actually modify anything
when given addresses >= 0x7d8

Press Stop-A after you turn the 3/80 on

N.B.:^t is a command in the steps below. Don't try control-T. This procedure
has only been tested with 2.9.2 PROMS.

  1. At the > prompt execute the command ^t fef04000. You'll get output
     which includes the following (samples included)

     TIA entry = 33FA500
     TIB entry = 33FB80A
     PTE=64000049

     Write these values down.
  2. Change the TIA entry for fedfa000 to match the above

     TIA MAP FEDFA000 [...] ? 33FA500

     Type Control-D at the next ? prompt
  3. Change the TIB entry to match the above:

     TIB MAP FEDFA000 [...] ? 33FB80A

  4. Now change the pagemap entry to match the above

     p fedfa000
     PageMap FEDFA000 [...] ? 64000049

  5. Now enter the new IDPROM values. Use the following table and be sure to
     get the checksum right.

     o fedfa7d8
     ...

     Jay York <[email]> has provided me with a great simplification
     of the above procedure that I have been unable to test. His procedure
     skips the steps preceeding this last step (o fedfa7d8). Instead, one
     can simply do o fef047d8 and enter the IDPROM values at that point. I
     am leaving the more involved procedure above, because I don't have a
     3/80 to test this simplified procedure.

                                 Sun 3/80 IDPROM

      byte         contents
      fedfa7d8     01
      fedfa7d9     42

      fedfa7da-7df 6 byte ethernet address (first three bytes must be
                   08,00,20)
      fedfa7e0-7e3 date of manufacture (all 0s is fine)
      fedfa7e4     second byte of hostid
      fedfa7e5     third byte of hostid
      fedfa7e6     fourth byte of hostid
      fedfa7e7     checksum - bitwise xor of bytes at fedfa7d8-fedfa7e6
  6. Reset the computer by executing the command k 2. It should come back up
     with the desired hostid and ethernet address.
  7. If you are installing a new M48T02 chip, you'll also need to initialise
     the other values in NVRAM, e.g. boot device, memory, etc. Unlike the
     sun4c machines, the Sun 3/80 does not set these parameters to sane
     defaults when it detects a new M48T02. To modify the rest of NVRAM you
     can use the q command in the monitor. See the table below.

When Sun OS 4.1.x boots, it will kick-start the clock. The first time it
boots it will complain that the TOD is not initialized. It shouldn't
complain the second time the machine boots. However, if you are using Sun OS
4.1 a bug that was fixed in 4.1.1 will prevent the OS from being able to use
the NVRAM clock. One can fix this. change the line in
/usr/include/sun3x/devaddr.h and /usr/kvm/sys/sun3x/devaddr.h from

#define V_CLK1ADDR 0xFEDFC7F8

to

#define V_CLK1ADDR 0xFEDFA7F8

and then patching the kernel by searching for 0xFEDFC7F8 in the kernel and
changing it to be 0xFEDFA7F8. Thanks to [email] for
this information.

The following table of memory locations in NVRAM for the Sun 3 series
machines is from the Sun Hardware Reference by James W. Birdsall
<[email]>. I provide it here so you won't have to dig up the
Sun Hardware Reference to restore a 3/80 to working order. I've omitted a
few rows that have nothing to do with the 3/80 (mostly 386i stuff)

  0x14       Installed memory in MB.

  0x15       Tested memory in MB

  0x16       Monitor screen    0x00     1152x900 (standard resolution)
             size
                               0x12     1024 x 1024

                               0x13     1600 x 1280

                               0x14     1440 x 1440

                               0x15     1024 x 768

  0x17       Watchdog reset    0x00     invoke ROM monitor
             action
                               0x12     initate power-on reset (default)

  0x18       Boot device       0x00     poll (default)

                               0x12     boot from EEPROM/NVRAM specified
                                        boot device

  0x19-0x1a  SunOS boot        0x78     xy
             device name (in   0x79
             ASCII)
                               0x78     xd
                               0x64

                               0x73     sd
                               0x64

                               0x69     ie
                               0x65

                               0x69     id
                               0x64

                               0x6c     le
                               0x65

  0x1b-0x1d  SunOS boot        0x00     (0,0,0) (default)
             device            0x00
             controller,       0x00
             unit, partition
             numbers

  0x1f       Primary terminal  0x00     monochrome FB

                               0x10     serial port A

                               0x11     serial port B

                               0x12     0x12 VMEbus and 3/60-P4 color
                                        frame buffers (configure locations
                                        0x60c-0x613 when VX and MVX
                                        graphics options are installed)

                               0x20     non-3/60 P4 color frame buffer

  0x20       Power-up banner   0x00     Sun logo display

                               0x12     custom banner stored in 0x68-0xb7

  0x21       Keyboard click    0x00     off

                               0x12     on

  0x22-23    Diagnostic boot   Used when NORM/DIAG switch is in DIAG
             device name (in   position. On the 3/80 there isn't a switch,
             ASCII)            NORM/DIAG mode is controlled by location
                               0x70b. As in 0x1b-0x1d or 0x00, 0x00 to
                               invoke the PROM monitor

  0x24-0x26  Diagnostic boot device controller, unit, partition number

  0x28-0x4f  Diagnostic boot   Used when in DIAG mode. ASCII codes for
             path              path and filename to boot, or all zeros to
                               invoke ROM monitor

  0x50       High resolution number of columns

  0x51       High resolution number of rows

  0x58       Serial port A     0x00     9600
             default baud
             rate              0x12     use rate stored at 0x59-0x5a

  0x59-0x5a  Serial port A     The baud rate as a 16-bit number, MSB first
             baud rate         (e.g. 0x04 0xb0 for 1200)

  0x5b       Serial port A     0x00     assert DTR and RTS
             DTR/RTS
                               0x12     do not assert DTR and RTS

  0x60       Serial port B     0x00     9600
             default baud
             rate              0x12     use rate stored at 0x61-0x62. Note
                                        that when in DIAG mode, port B
                                        runs at 1200 baud and the settings
                                        in 0x60-0x62 are ignored

  0x61-0x62  Serial port B     The baud rate as a 16-bit number, MSB first
             baud rate         (e.g. 0x04 b0 for 1200)

  0x63       Serial port B     0x00     assert DTR and RTS
             DTR/RTS
                               0x12     do not assert DTR and RTS

  0x68-0xb7  Custom banner     ASCII codes for desired banner, padded with
                               spaces and ending with 0x0D, 0x0A in
                               locations 0xB6 and 0xB7

  0x18f      Logo type         0x00     normal Sun logo

                               0x06     3D logo for CG6

                               0x12     custom logo

  0x492      Password mode     0x01     command secure mode
             select
                               0x5e     fully secure mode

                               other    non-secure mode

  0x493-a    Password          Eight bytes of password in ASCII. If the
                               ROM is 2.8, enter a '@' character before
                               each letter of the password. Enter one
                               letter per location, followed by Return. If
                               the password is less than eight letters,
                               enter 0x00 in the remaining locations. The
                               hexadecimal values of the letters can also
                               be used to enter the password.

  0x70b      3/80 power-on     0x06     normal boot
             mode
                               0x12     diagnostic boot

                               other    diagnostic boot

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

Examples

N.B. As I said above, you should be careful that the first byte of the
hostid matches the system type.

  1. Modify the hostid of an IPX to be 57c0ffee and the ethernet address to
     be 08:00:20:c0:ff:ee. At the OpenBoot PROM monitor prompt

     01 0 mkp
     57 1 mkp
     08 2 mkp
     0 3 mkp
     20 4 mkp
     c0 5 mkp
     ff 6 mkp
     ee 7 mkp
     57 8 mkp
     0 9 mkp
     0 a mkp
     0 b mkp
     c0 c mkp
     ff d mkp
     ee e mkp
     29 f mkp

     Notice the simplification in the above example. If you make the
     ethernet address 08:00:20:H1:H2:H3 and the four bytes of the hostid
     ST,H1,H2,H3 where ST is the system type byte, and you put ST,0,0,0 in
     the date of manufacture field, then the IDPROM checksum will always be
     29 (remember all of these numbers are hexadecimal). This make things a
     bit easier, you can, in general, just enter

     01 0 mkp
     real-machine-type 1 mkp
     08 2 mkp
     0 3 mkp
     20 4 mkp
     H1 5 mkp
     H2 6 mkp
     H3 7 mkp
     real-machine-type 8 mkp
     0 9 mkp
     0 a mkp
     0 b mkp
     H1 c mkp
     H2 d mkp
     H3 e mkp
     29 f mkp

     and you don't need to calculate the checksum since it will always be
     0x29.
  2. Change the hostid of an SS10 to be 72c0ffee and the ethernet address to
     be 08:00:20:c0:ff:ee.

     01 0 mkp
     72 1 mkp
     08 2 mkp
     0  3 mkp
     20 4 mkp
     c0 5 mkp
     ff 6 mkp
     ee 7 mkp
     0 8 mkp
     0 9 mkp
     0 a mkp
     0 b mkp
     c0 c mkp
     ff d mkp
     ee e mkp
     0 f 0 do i idprom@ xor loop f mkp

  3. Change the hostid of an SS1000 to 80c0ffee. Leave the ethernet address
     and the date of manufacture intact. Note that the system type byte for
     the SS1000 is 0x80

     c0 c mkp
     ff d mkp
     ee e mkp
     0 f 0 do i idprom@ xor loop f mkp
     update-system-idprom

  4. Install a new NVRAM in an IPX. Set the hostid to 57c0ffee and the
     ethernet address to be 08:00:20:c0:ff:ee .
       1. Turn the machine off.
       2. Remove the old NVRAM chip
       3. Install the new NVRAM chip. Be sure to get the orientation right.
       4. Turn the machine on.
       5. At the OpenBoot monitor prompt execute the following commands:

          set-defaults
          setenv diag-switch? false
          8 0 20 c0 ff ee c0ffee mkpl
          ^D^R

          where ^D represents Control-D, etc.

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

Odds and Ends.

Resetting the NVRAM (when Stop-N doesn't do it)

You might want to do this to recover from the loss of an NVRAM password (in
full security mode) or if you mess up your nvramrc. I think that the safest
thing to do is pay the $20 for a new Timekeeper chip. But several people
have reported to me success hot-swapping the NVRAM (i.e. removing and
installing a new chip when the system is on).

[email] (Stephen Dowdy) writes:

Attaching a new battery onto an existing M48T02

My take on this procedure is that it isn't worth trying to save the US$20 it
would take to buy a new M48T02. This procedure requires considerable care.
I'm including this excerpt from the old NVRAM FAQ for completeness.

The contents of the (nv)ram are backed up by a 3V lithium battery. It's
located together with a quartz on top of the ram in a kind of backpack. The
battery is on the side that's opposed to the dot marking pin 1, next to pin
12:

                        _oscillator
                        /
                       / _battery
                      / /
                   -------
                   | O O | <-- cut here
                   -------
                  /
             Pin 1

At the point marked above, some kind of nose is reaching down from the
backpack over the resin. Carefully cut through the polyester resin filling
the dimple. This works best with some kind of mini drill with a small
milling head or a razor knife. Buried in the resin you'll find two small
diagonal metal connectors :).

Be careful not to short-circuit them, or you'll loose the contents of your
nvram (if it was still able to keep them). -That's why you should save them
*before* :)

The connector closest to pin 12 is ground, the other (opposing) one +3V. You
can now solder some wire to them and connect them to a new 3V lithium
battery.

How to start and stop the NVRAM clock on the Sun 3/80 and sun4c machines

The following information on starting and stopping the clock in the NVRAM
chip on the Sun 3/80 was contributed by [email]. I've
added the tables and the sun4c information below. As it says below, you
don't normally need to do this. Sun OS will take care of starting the clock
on a new NVRAM chip for you.

Procedure to 'kick start' a new MK48T02 NVRAM clock chip on Sun 3/80

WARNING : This procedure is intended to be used on new, blank NVRAM chips only.
If you are using it on an existing NVRAM (for some unknown reason) you should
follow the procedures described in 'Backing up your NVRAM'.

This procedure shouldn't normally be necessary as SunOS provides this
functionality as part of the normal clock initialisation.  However, it may
prove useful in unforeseen circumstances.

The step numbers correspond to the step numbers in the SGS-Thomson
data sheet procedure for 'kick starting' the clock.

The data sheet warns NOT to leave the kick start bit set to 1 for normal use
as this will cause excessive current drain and shorten the life of the battery.
It does not mention if this is dangerous or by how much the life of the battery
is shortened...:-(

The kick start bit is the MSB in location 7FB

(The old NVRAM contents will be displayed by the monitor in the place
marked XX in the steps below.)

First halt the machine and get to the monitor prompt.

EEPROM 7F8: XX? 80              Step 1. Set write bit (enable write)
EEPROM 7F9: XX? 0               Step 2. Reset stop bit (not stopped)
EEPROM 7FA: XX? (Press Enter)
EEPROM 7FB: XX? 80              Step 3. Set kick start
EEPROM 7FC: XX? q
EEPROM 7F8: XX? 0               Step 4. Reset write (disable write)
EEPROM 7F9: XX? q
                                Step 5. Wait for 2 seconds.
EEPROM 7F8: XX? 80              Step 6. Set write bit
EEPROM 7F9: XX? q
EEPROM 7FA: XX? (Press Enter)
EEPROM 7FB: XX? 0               Step 7. Reset kick start
EEPROM 7FC: XX? q
EEPROM 7F9: XX? 0               Step 8. Set a dummy time & date...
EEPROM 7FA: XX? 0
EEPROM 7FB: XX? 0
EEPROM 7FC: XX? 4
EEPROM 7FD: XX? 11
EEPROM 7FE: XX? 1
EEPROM 7FF: XX? 96
EEPROM 7F8: XX? 0               Step 9. Reset write bit
EEPROM 7F9: XX? q

And that's it.
Double check that the Kick Start bit is set to zero by doing the following :

EEPROM 7FB: XX? q

XX should be a value less than 80 Hex.  If it isn't repeat the procedure
again.

The related and opposite function to this is Stopping the Clock in the NVRAM.
When the clock is stopped, the storage life of the battery is extended because
the oscillator is not running.  This might be useful if you intend to put the
machine into storage or not use it for a while.

Again, halt the machine and get to the monitor prompt.

EEPROM 7F8: XX? 80              Set write bit
EEPROM 7F9: XX? 80              Set stop bit
EEPROM 7FA: XX? q
EEPROM 7F8: XX? 0               Reset write bit
EEPROM 7F9: XX? q

Simon Allen  [email] 1996.

As Simon Allen mentions, the kick-start procedure is not normally necessary
as Sun OS automatically starts the lock in an NVRAM with a stopped clock.
However, if you are putting a machine into long term storage, it is nice to
be able to stop the clock as doing this will significantly lower current
drain on the battery. The following information from the M48T02 data sheet
gives information on the clock.

                      The M48T02 Register Map

                             Data
 Address                                                 Function
        Bit 7 Bit 6 Bit 5 Bit 4Bit 3 Bit 2 Bit 1 Bit 0
   7ff  -     -     -     -    -     -     -     -       Year 00-99
   7fe  0     0     0     -    -     -     -     -      Month 01-12
   7fd  0     0     -     -    -     -     -     -       Date 01-31
   7fc  0     FT    0     0    0     -     -     -        Day 01-07
   7fb  KS    0     -     -    -     -     -     -      Hours 00-23
   7fa  0     -     -     -    -     -     -     -    Minutes 00-59
   7f9  ST    -     -     -    -     -     -     -    Seconds 00-59
   7f8  W     R     S     -    -     -     -     -    Control

   * ST is STOP BIT
   * W is WRITE BIT
   * R is READ BIT
   * S is SIGN BIT
   * FT is FREQ TEST BIT
   * KS is KICK START BIT

Instructions for starting the clock

  1. Set the Write Bit to 1
  2. Reset the Stop Bit to 0
  3. Set the Kick Start Bit to 1
  4. Reset the Write Bit to 0
  5. Wait two seconds
  6. Set the Write Bit to 1
  7. Reset the Kick Start Bit to 0
  8. Set the Correct Time and Date
  9. Reset the Write Bit to 0

N.B. Leaving the KS bit set will cause the Clock to draw excessive current
and will shorten the battery life.

Instructions for stopping the clock

  1. Set the Write Bit to 1
  2. Set the Stop Bit to 1
  3. Reset the Write Bit to 0

Given the above tables, Simon Allen's instructions for the 3/80, and the
next section on which tells how to map the NVRAM to virtual memory on sun4c
machines, it is a relatively easy matter to see how to stop and start the
clock on a sun4c machine.

Stopping the clock on a sun4c machine

2000000 obio 0 map-page             map NVRAM to page 0
80 7f8 c!                           set write bit
80 7f9 c!                           set stop bit
0 7f8 c!                            reset write bit

Starting the clock on a sun4c machine

2000000 obio 0 map-page             map NVRAM to page 0
80 7f8 c!                           set write bit
0 7f9 c!                            reset stop bit
80 7fb c!                           set kick start
0 7f8 c!                            reset write bit
wait for two seconds

80 7f8 c!                           set write bit
0 7fb c!                            reset kick start

0 7f9 c!                            set dummy time and date
0 7fa c!                            (if necessary)
0 7fb c!
4 7fc c!
11 7fd c!
1 7fe c!
96 7ff c!

0 7f8 c!                            reset write bit

Other more arcane methods for modifying the IDPROM

mkp and mkpl are not the only way to modify the IDPROM. Before I discovered
these commands, I used to use procedures like the ones below. The material
in this section assumes that you have access to the OpenBoot PROM manual
which is part of the Solaris 2.x Answerbook.

You can use the OpenBoot monitor to find the virtual address of the NVRAM.
The basic steps are:

  1. cd to the eeprom device (you can find its exact name via show-devs)
  2. execute .attributes or .properties depending upon whether you have V2
     or V3 of the OpenBoot PROM.
  3. execute device-end followed by reset

For example

    ok show-devs
    ...
    /obio/eeprom@0,200000
    ...
    ok cd /obio/eeprom@0,200000
    ok .attributes
    address: ffee9000
    ...
    ok device-end
    ok reset


author: Jake H Dias

subject: Partition sizes on HardDisks

text:
Hello all ST users,

I would like to buy a Harddisk, something around 80-100Mb.

I have heard though that you HAVE to partition the disk into a number
of drives. eg. c: d: e:, etc.  and that they have to be within a certain
size.

What is this size and can it be "fixed" to increase it?

Either post here or email me please.

Thankyou

Jake


author: Mickey Boyd

subject: Re: Partition sizes on HardDisks

text:
In article <[email]>, [email] (Jake H Dias) writes:

TOS 1.0 and 1.2, 16mb.  Tos 1.4 and greater, 32mb.  These are per partition.
If you use the ICD host adaptor (a good choice), you can use BGM partitions
of any size, but some software will reputedly not work with them (however,
for storage of stuff they work fine).  Can anyone confirm/deny this?

You are also restricted to drive letters A-P.


author: Uwe Seimet [Chemie

subject: Re: Partition sizes on HardDisks

text:
[email] (Jake H Dias) writes:

The maximum partition size is 256 MBye, if you partition your drive with
a program compatible to at least HDX 3.0.

Once you have partitioned your drive you cannot change the partitions sizes
without loosing your data.

********************************************************
*              Uwe Seimet                              *
*              [email]                   *
*              [email]                 *
*------------------------------------------------------*
* I hate this machine, I wish that they would sell it. *
* It doesn't do what I want but only what I tell it.   *
* (Programmer's lament)                                *
********************************************************


author: Stephen Jacobs

subject: Re: Partition sizes on HardDisks

text:
In article <[email]> [email] writes:
I have a disk with partitions up to 240 MB working fine on a Mega with TOS
1.2.  The host adapter is a BMS 200.  The key is in the hard disk utilities:
I believe HDX 3 or higher is needed to get partitions bigger than 16 MB.
The version I'm using (5.something) is supposed to be in general release,
but the ways of Atari can be a little confusing to outsiders, so maybe
it isn't.
                                        Steve    [email]


author: Eric Dujardin

subject: Re: Partition sizes on HardDisks

text:
In article <[email]>, [email] (Mickey Boyd) writes:
|> If you use the ICD host adaptor (a good choice), you can use BGM partitions
|> of any size
|>

What is the minimum size for HD partitions ?  I need a small one (e.g. 512 Ko) for Minix (because it creates a virtual disk of the same size), but my Atari formatting software (version 3.xx) can't give me less than 1 Mo. Any solution ?


author: Philipp Knirsch

subject: Re: Partition sizes on HardDisks

text:
In <[email]> [email] (Mickey Boyd) writes:

I myself have a 60MB harddisk. I was a original Megafile30, but i got a
60MB RLL from a friend, which i put in instead.
I formated it with AHDI 3.01 and also use this driver.

The first few months, i used 6 partitions, all smaller than 16MB, although
i use TOS1.4.

One day, i backuped my harddisk and reformated it (there were several new
errors...), and decided to try larger partitions. First, i tried up to
30 MB. That worked fine with all programms, except some very old ones.

But as i used greater partitons than 32MB, nearly every programm didn't
work anymore, which needed direct sector-read access. For example SED440
didn't work anymore, and it's one of the best german disk-monitor programms.

So i changed again to less than 32MB and everything worked fine again.

By the way: The CBHD, the driver of the SED didn't work with these big
Partitions, too...

Phil.


author: Remy Adam Hathaway

subject: Re: Partition sizes on HardDisks

text:
[email] (Stephen Jacobs) writes:

	The problem I've encountered with >16 meg partitions is a problem
with sector editors.  To have >16, you need to increase the sector size
beyond 512 bytes.  Most are designed to handle 512 and nothing else.  I
would imagine, however, that there are editors available.  (Disk space and
usage can get screwy as well.)

					[email]


author: Theo Janssen

subject: Re: Partition sizes on HardDisks

text:
In article <[email]>, [email] (Eric Dujardin) writes:

Hi Eric !
I don't know if you really want the virtual disk for the root device.
It's quite simple to recompile the Kernel, so that your root device is
i.e. on /dev/hd3 and there's no need for a virtual disk. You'll get more
memory for Applications and the loss of performance is acceptable.
Just change the line '#define DROOTDEV (DEV_RAM + 0)' into
'#define DROOTDEV (DEV_HD0 + 3)' in 'include/minix/boot.h' and start
the compiler. As a result you should get a new minix.img which now uses
/dev/hd3 as the root device.

     greetings   Theo


author: Mike Healy

subject: Re: Partition sizes on HardDisks

text:
I also have a hard disk question (hopefully not a FAQ).

I have a 1986 vintage SH204 (20 Mb). I was given a 40 Mb Seagate ST521
for free, so I swapped out the original drive (a Tandon TM 262) and
put in the Seagate.

Now here's the problem:

I have the Supra utilities. Using the SUPFMT program I created a drive
type to match the ST521 (6 heads, 820 cylinders, reduced write at
cylinder 820, no write precomp, landing zone at cylinder 819 [have
also tried  4]) and a controller type (17 sectors per track,
1:1 interleave, step pulse rate of 2, no reserved tracks, no mapping
of bad sectors, no removable media, no fixed partitions).

I have set up the partitions in various ways, 5Mb, 7Mb, 16Mb, 12Mb.
I also tried 4 10Mb partitions with no different results.

At any rate, when I format it, the disk chugs along and everything
seems to go ok. When the computer resets, it doesn't recognize
the C,D,E and F drives and there is no data in logical sector 0
when I use the SUPEDT editor. If I set the drive specs then I see
the correct data using the sector editor. If I exit the program
and rerun it, the data is no longer there.

What I think is happening is that data isn't actually getting
written to the disk, perhaps due to some incompatibility between
the controller and the drive.

The SH204 has an Atari host adapter, rev C. I am not sure what
type of controller I have. Does anyone have any ideas and/or
suggestions? I really need the extra disk space and (like
everyone) need to minimize the cost (so I would like to get the
equipment I have on hand to work). Thanks.

Mike Healy
[email]


author: Chris Herborth

subject: Re: Partition sizes on HardDisks

text:
In article <[email]> [email] (Remy Adam Hathaway) writes:
}	The problem I've encountered with >16 meg partitions is a problem
}with sector editors.  To have >16, you need to increase the sector size
}beyond 512 bytes.  Most are designed to handle 512 and nothing else.  I
}would imagine, however, that there are editors available.  (Disk space and
}usage can get screwy as well.)

The problem I have with > 16M partitions (I only have one, since having
several allows me to keep things organized) is that there are NO (to my
knowledge), public domain/shareware or commercial, defraggers that will
work on them.  Luckily, Bob Luneski (author of Diamond Back II) is working
on one...

Yes, I'm a de-fragger freak...  I hate having a fragmented drive!


author: Roger Sheppard

subject: Re: Partition sizes on HardDisks

text:
In article <[email]> [email] (Remy Adam Hathaway) writes:

This is only true with TOS 1.0/1.2 and HDX formater, if you have TOS
1.4 and higher you can format 32 meg partions with 512 byte sectors,
but not with HDX, but is possible with Supra, and not to sure about ICD..


subject: Re: Partition sizes on HardDisks

text:
In article <[email]> [email] (Remy Adam Hathaway) writes:

While BGM partitions have large logical sectors, they still have 512 byte
physical sectors.  At least 2 sector editors that I've used (Supra and
Atari) deal in physical sectors.  I can see how this might make sector
editing a file or a FAT entry even more confusing than it already is, but
at least the editor doesn't choke.
                                   Steve       [email]


subject: Re: Partition sizes on HardDisks

text:
[email] (Mike Healy) writes:

	I'd go for ICD software, it does a much better job, and would likely
have your drive in the specs.

	There's a problem with the host adaptor, at least I know there is with
the Rev. B, which is what I had.  I did the same thing, except I upgraded to
a Seagate 84meg (SN296 or something...)  There's a PAL chip in the controller
that has a bug.  You can get something called the ADE chip from Berkeley
Microsystems.  It's $20 or so, and my drive has worked beautifully since I put
it in.  You might also consider getting an ICD host adapter, the simple model
runs for $50 and will do wonders for your drive (not to mention the software
is quite nice.)

					Remy Hathaway


author: Roy Gosewehr

subject: Re: Partition sizes on HardDisks

text:
In article <[email]> herborth@pinot (Chris Herborth) writes:

Correct me if I'm wrong (and I am sure that someone will :-) but I was
under the impression that Beckemeyer Development's Hard Disk Sentry
handled BGM partitions.  True or not?  I currently keep my partitions
under 16Mb and use the Michtron Toolkit to de-fragment.

Roy C. Gosewehr


subject: Re: Partition sizes on HardDisks

text:
In <[email]> herborth@pinot (Chris Herborth) writes:

Hello, Chris.

There is a defragmenter of the Atari-Corporation, those guys, who wrote
the HDX-Software, and it works very well even on big partitons.
It is called CHKDSK3 and can be found via archie. If you can't ftp, just
email me and i'll send it to, you.

But the problems with the sector-editors remain... I use a very popular
programm here in germany, called SED440, which is really very good
(you can read harddisk even without any driver-programm...), but it also
has problems with by big partitions...

Read ya, Phil.


author: Michael Bongartz

subject: Re: Partition sizes on HardDisks

text:
In <[email]>, Roy Gosewehr writes:

Setry doesn't have any problems with BGM's (Tested with 88 MB Syquest / ICD).

Bye, Michael


subject: Re: Partition sizes on HardDisks

text:
In article <zxmgn01.695719301@mailserv> [email] (Philipp Knirsch) writes:

Please don't post CHKDSK3 to the net as its not PD, and only given
to Developers only..


author: [redacted]

subject: Digilent's JTAG-USB cable with chipscope

text:
Can one use the JTAG-USB cable from digilent with chipscope ?

Sumit


author: Antti Lukats

subject: Re: Digilent's JTAG-USB cable with chipscope

text:
<[email]> schrieb im Newsbeitrag
news:[email]...

ChipScope only works with officially supported Xilinx cable, and does not
work with 3rd party cable to it is not 100% compliant to fully supported
cable.

It could be possible to write 'ChipScope' server that would allow to use 3rd
party cable, but would require reverse engineering of the protocol used by
the ChipScope server.

Antti


author: Paul Hartke

text:
No.  It does work with the Digilent Adept Suite.

[email] wrote:


text:
Humm... Why wouldn't Xilinx support this cable (I thought Digilent and
Xilinx have a close relationship) and if not Why wouldn't Xilinx
publish the protocols used by Chipscope server. Are they trying to make
money by selling their own expensive USB cable ?

Sumit


text:
<[email]> schrieb im Newsbeitrag
news:[email]...

The Xilinx - Digilent co-oper is not so close.

Xilinx is NOT publishing the ChipScope server protocol and
Xilinx is NOT publishing the Impact server protocol

because they may change those with every service pack and the do not want
additional hassle from 3rd parties. Maybe some other issues as well.

Yes, it looks like Xilinx is trying to make money on the over priced USB
Cable, that doesnt work very good. The PCs with LPT port are coming to be
'hard to get' items, so the only official cable is Xilinx USB cable, what is
very EXPENSIVE, it only contains Cypress 68013 and Coolrunner, but cost
495$.

Antti


author: Eric Smith

text:
"Antti Lukats" <[email]> writes:

Did you mean that the cable doesn't work very well, or that trying to
make money on it doesn't work very well?  I hope you meant the latter,
since I'm considering buying one.

Seems not completely unreasonable.

Eric


text:
"Antti Lukats" <[email]> schrieb im Newsbeitrag
news:dcn3ss$qou$04$[email]...
is

UUPS! I made a mistake - the USB cable is $149 not 495, so its not so bad
deal at all.
(some other FPGA vendor sells USB cable for 400+ USD so I messed up)

sorry.

Antti
PS we are using the Xilinx USB cables all the time now.


author: James Horn

text:
Indeed - for US$150 it's a good deal.  It's a USB2.0 High Speed cable that can handle 25Mbps through the JTAG port.  I just got one two weeks ago and,
after struggling a bit to understand how to get ChipScope Pro running properly, promptly debugged and verified a Spartan 3 VHDL design written by
someone else.  Not bad for an old Altera AHDL weenie, if I say so myself.

Thanks for a fine toolset, Xilinx!

Jim Horn, Sonoma County California


author: Joe

subject: Re: how can I bypass the security password?

text:
seanjs <[email]> wrote:

If all this doesn't work, boot up from an emergency system disk and
get rid of the p/w program

Joe


author: Vasanth Venkatachalam

subject: question about memory stalls

text:
Hi,

In high-end processors like the Pentium 4 and Pentium M, do memory stalls
every happen, and if so how often? That is, does the processor ever sit idle
waiting for data to brought in from main memory (due to a cache miss)? I
would have thought that since these are out-of-order processors they never
get stalled, but I'm curious.

Any thoughts?

Vasanth


author: alexi

subject: Re: question about memory stalls

text:
"Vasanth Venkatachalam" <[email]> wrote in message
news:ch2p19$6n3$[email]...
idle

According to this recent exchange on comp.arch,
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=NsgUc.15106%24MD.265
6%40fe1.texas.rr.com

it is clear that OoO processors do stall, and sometimes a lot
(look at scalability results for 171.swim and 179.art benchmarks
from SPEC CPU2000). However, it does seem that the exact amount
of stall cycles is not possible to capture using current state
of performance counters, as it follows from continuation
(discontinuation :-( ) of the discussion. The problem is in the
overlap between speculative execution and waiting for memory,
and determining the amount of useful speculation during the same
event. It seems that independent counting of inter-dependent
and time-overlapped events does not make much practical sense.

Also, from the practical manual (referenced in other post)
http://www.scl.ameslab.gov/Projects/Rabbit/menu3a.html
it appears that there are more questions than answers with
regard of performance counter's usage and their meaning.

Regards,

 - Alexei


author: Grumble

subject: Re: question about memory stalls

text:
Vasanth Venkatachalam wrote:

If you are not familiar with the NetBurst micro-architecture,
I would recommend this overview.

The Microarchitecture of the Pentium 4 Processor
http://www.intel.com/technology/itj/q12001/pdf/art_2.pdf


author: Dennis Gordon

subject: Is there a problem with Acrobat 5?

text:
Hi Everyone...

I recently upgraded to Acrobat 5 from 4.05. Although the new features
are cool, I have had numerous freezes and apparent registry
corruptions while running the program. I've had to run
scandisk/restore and reinstall it several times. I first thought that
this was just a problem with my PC and Acrobat 5; but I found out
yesterday that one of our printers has been having similar problems
with it on their Macs. I can see that the new version uses more
resources than its predecessors, but my PC is fairly fast (800+mhz)
and with 192 megs of ram, I don't expect the program to freeze
repeatedly. There is no info or patches at the Adobe site, so I'm
wondering if this problem has been widely reported. Any insight here
would be greatly appreciated.

Dennis


author: Neil Gould

subject: Re: Is there a problem with Acrobat 5?

text:
Hi Dennis,

Dennis Gordon <[email]> wrote:
I've been running Acrobat 5 for a couple of months, and have *never* had
it freeze up. Did you do a clean install, or install over 4.05?

Regards,


author: ChromaTech in Vancouver

subject: Re: Is there a problem with Acrobat 5?

text:
Ditto Here.
I have Acrobat 5 on an Athlon 1.2 running Win2k.
No problems whatsoever, and this was not a clean install.
I have Acro 4 and 5 on the same machine.
This machine has never seen Acro 3.

Frank Jones

"I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use." -Galileo


subject: Re: Is there a problem with Acrobat 5?

text:
My installation of Acrobat 5 on my machine at home has also run fine.
My machine at work has a lot more threads running with Outlook, DSL,
lots of network traffic and other graphic apps running; it just has to
work harder in general. It seems that the new Acrobat needs a bit more
resource push to get going... and sometimes it just doesn't makes
it...


author: Jono Moore

subject: Re: Is there a problem with Acrobat 5?

text:
in article [email], Dennis Gordon at
[email] wrote on 6/21/01 19:41:

It definitely seems to be piggier on the resource front. I've got an older
machine at home (K62-300) and v4 started up pretty quick, but v5 takes a
while.


author: Anthony K Kong

subject: Pentium Bug?

text:
First of all... Please don't frame me for asking an unrelated question
here!  But my news group provider didn't have any "hardware" related
group I can join...

Does anyone know anything in regard to the Pentium's Floating point bug?
Please send me some info.  Thanks in advance...

Anthony.


author: Robert J Fielding

subject: Re: Pentium Bug?

text:
Anthony K Kong ([email]) wrote:

: Does anyone know anything in regard to the Pentium's Floating point bug?
: Please send me some info.  Thanks in advance...

: Anthony.

 I heard that Intel itself posted something on the I-net about this....
  If someone has it, could they let me know?

rob


author: Mathew Chacko & Darren Miner

subject: Re: Pentium Bug?

text:
In <3bor3l$[email]> [email] (Robert J Fielding)
writes:

bug?

There are about 400 postings a day about the fdiv bug on comp.sys.intel!

Regards,
Darren Miner


subject: Re: Pentium Bug?

text:
In article <3bor3l$[email]>,
[email] (Robert J Fielding) writes:

Check the newgroup comp.sys.intel.  You'll find plenty of hot-tempered
discussion on this subject.


author: Keith

subject: Re: New Netscape "Atlas"  Out

text:
In article <[email]>, [email] (Christopher Schulte) wrote:
If your using Win95.. I think it always used the registry.. I encountered the
same thing.. :-)

Shouldn't be.. I'm about to try it too, since rumor has it its speedier.. What
the heck, eh? :)


author: Gabriel Díaz

text:
hello

Vesa code has some problems to deal with ati hd5750 cards here. Themouse cursor disappear when a lot of scrolling is happening,  vesa is unable to drive the card beyond 8bit depth modes or 1280x1024 resolutions. Besides that, the performance i see is almost the same i had with the radeon driver and the 9500 i had in the thinkpad, or the intel driver (given that my stress test is reading man pages and watching flickr photos. . . .)

I guess the radeon driver is unable to work with modern ati cards no?

I would love a book recommendation to learn something about graphics programming, so at least i can guess what or where to look to try to debug the problem.

slds.

gabi

----- Original Message ----
From: erik quanstrom <[email]>
To: [email]
Sent: Fri, April 30, 2010 2:07:07 PM
Subject: Re: [9fans] ctrl radeon: not working for ATI Radeon 9600 Mobility?

me, too.  radeon performance is not good with vesa.

cpu speed seems to have little to do with it.  the main slowdown
is reading from the hardware framebuffer, which plan 9 does a lot.
on many modern cards there is no phsical framebuffer.  it's
constructed by firmware (perhaps running in smm mode on the
cpu) on-the-fly.

i think it's mainly a question of getting the best graphics
performance.  but these days the 2d accelleration (especially
for radeon) is fairly poor.  i'd love to have my nvidia mx400
back with a pcie interface.

- erik


author: Venkatesh Srinivas

subject: Re: [9fans] ctrl radeon: not working for ATI Radeon 9600 Mobility?

text:
erik quanstrom wrote:

Agreed.

erik quanstrom wrote:

Do you happen to have any workloads where this is a problem? There is
a lot more we can do for the radeon, particularly the r100-r300 chips,
which could improve draw performance.

Have you ever tried enabling HW_ACCEL in the Radeon driver? It
accelerates fill/scroll to some degree, which would certainly be a
first step.

Gabriel Díaz <[email]> wrote:

Right now the Radeon driver can deal with r100-r300; it is missing PCI
VID/DIDs for a number of r200 cards, mostly the later 9200 and 9250
series. It is also missing a number of r300s (9600, 9800) and the PCIe
X1050, X3xx, X5xx, and X6xx. I don't know how well the later cards
will work, but they are nominally the same as the 9500/9700, which are
supported.

Sean Stangl at CMU started working on support for more modern
(R500/R600 iirc) cards; I believe he got most of ATOMBIOS support and
snarf() routines for the r600 done.

I don't know of a book that describes any modern graphics hardware,
sorry. However, here is a bit of an overview of what is going on with
the radeon, at least:

The radeon exposes a pair of bus-accessible memory regions (BARs), the
framebuffer and the MMIO region; these regions appear in physical
memory and are mapped by vgaradeon.c (take a look at radeonenable()).
On the Radeon, BAR 0 holds the framebuffer, IIRC; vgalinearpci()
searches the card for the largest region and guesses that that is the
framebuffer. BAR 2 holds the MMIO region. We ask that the framebuffer
segment is set to write-combining via the MTRRs; we cannot do the same
for the MMIO region.

To just draw, you can write to the framebuffer region.

To ask the radeon gpu to do anything interesting for you, you must
carry out a series of register writes - for example, to fill a
rectangle with a solid color, you write the rectangle's color to
DP_BRUSH_FGRD_CLR (register 0x147c), the start to DST_X_Y, and the
width and height to DST_WIDTH_HEIGHT. Everything you can ask the
radeon to do is ultimately done via register writes.

agd5f's blog has two entries that are pretty useful:
http://www.botchco.com/agd5f/?p=50 and
http://www.botchco.com/agd5f/?p=16.

-- vs


author: erik quanstrom

text:
i didn't make it clear that i'm using the vesa
interface.  and it's very slow for every day
use with acme, but it sure displays pictures quickly.

; pci | grep vid | grep 1002
1.5.0:	vid  03.00.00 1002/791e  10 0:d800000c 134217728 1:00000000 16 2:fbff0004 65536 3:00000000 16 4:0000a001 256 5:fbe00000 1048576
; pci 1002/791e
1002/791e
	ATI Technologies Inc RS690 [Radeon X1200 Series]

i wonder if this pio doesn't explain a lot of the slowness.
i would have thought that they would have used a ring.

i hope you don't also pio the image data in?

- erik


text:
On Sat, May 1, 2010 at 10:08 AM, erik quanstrom <[email]> wrote:

There is a command processor on the radeon, which we do not
initialize; it can share a ring of commands with the host; it can also
accept indirect buffers. If the radeon driver (on supported h/w) was
too slow for general work, then we could use it, but if its fine right
now, there is no need.

If we really needed speed, we could go further - currently plan9 video
drivers can only accelerate fill and scroll, but in principle the draw
path could use any other functionality the card was willing to do for
it; for the earlier radeons, the 2D engine can do a lot... for the
later ones, we could use the 3d engine in the same style as X's EXA.

-- vs


author: Amir Kadic

subject: many packages in one file

text:
Hi!

I'd like to put 2 (or more) packages in one file, the code
each of which is using functionality from the other ones.

And I'd like to make the whole thing compile :-)

Something like:

package a;
use b;
package b;
use a;

(The reason is simple: stuff the whole app into one file
for distribution.)

Thanks for any hints.

Amir


author: Abigail

subject: Re: many packages in one file

text:
Amir Kadic ([email]) wrote on MMMCMIII September MCMXCIII in
<URL:news:[email]>:
&&
&&  Hi!
&&
&&  I'd like to put 2 (or more) packages in one file, the code
&&  each of which is using functionality from the other ones.
&&
&&  And I'd like to make the whole thing compile :-)
&&
&&  Something like:
&&
&&  package a;
&&  use b;
&&  package b;
&&  use a;

That's not going to work, a "use a" is going to look for a file "a.pm"
and compile what's in there. Just do something like:

    package a;

    #
    # Stuff from package a
    #

    package b;

    #
    # Stuff from package b
    #

Note that code for package a can use what's in package b (but not during
compile time, like in a BEGIN) - package b can use package a even during
compile time. If you want any exporting to happen, you have to call
import() yourself.

Abigail


author: Malcolm Dew-Jones

subject: Re: many packages in one file

text:
Amir Kadic ([email]) wrote:

: Hi!

: I'd like to put 2 (or more) packages in one file, the code
: each of which is using functionality from the other ones.

: And I'd like to make the whole thing compile :-)

: Something like:

: package a;
: use b;
: package b;
: use a;

: (The reason is simple: stuff the whole app into one file
: for distribution.)

: Thanks for any hints.

Did you try it?  What error did you have?

The only issue should be the "use module" lines, since there is no longer
a file to load.  The easiest solution is to comment out the line.  It's
possible that you will need to call the import functions later yourself in
that case (assuming the module has an import function).

so
	use module1;
	use modeul2;

becomes

	insert module1 code here
		.
		.
		.
	insert module2 code here
		.
		.
		.

	#use module1;

	import module1;	# each use may need an import at that point

	#use module2;

	import module2;	# each use may need an import at that point

If you can't easily comment out the use module statements, then explicitly
set a value into the %INC hash for the module name.  I CANT TEST THIS
EXAMPLE, though I have used something like this so I know the idea works

	insert module1 code here
                .
                .
                .
	$INC{'module1'} = 1; # indicates the module is loaded


author: Ironclaw

subject: Re: Windows NT 4.0 killed my motherboard !!

text:
The first person that answered this thread was the only correct answer to
this thread..
	CMOS has nothing to do with windows NT. NT WILL NOT write to cmos.
All cmos is a set of chips that STORE SYSTEM HARDWARE SETTING INFORMATION.
What you have your cmos set to do is BOOT TO HARD DRIVE ONLY. change this
to boot from FLOPPY. ie A: then C:    then put in a boot disk and turn on
the computer.

	SET THE CMOS SETTING FOR FIRST BOOT DEVICE TO FLOPPY. then it will
boot any disk that the motherboard itself could run. i.e. NT Win 95 Os 2
dos, Linux. anything. i.e. floppy with some executaible o/s.

	the motherboard is not corrupt, the cmos chips are fine.

		Worst case senierio: you have fried the cmos chip itself ,
either by incorrectly flashing the chip or  by a power surge. If you
canot
get the system to boot after you change the boot order to a: c: ( if it
was fried you would never get this far, nor would it boot), and insert
a boot disk. Call your motherboard manufacturer. (i would put money on its
, that its fine, since you said it gave you some sort of o/s related
error message.).

	-IC


author: James P. White

subject: Re: The great Java showcase (re: 2nd historic mistake)

text:
Robert Dewar wrote:

That may be true is some general sense, but of course is not relevant to
the topic of this thread which is not the credibility of the source of
public information but rather the totally inaccurate report that Corel
had made a major shift or retreat in their Java strategy when in fact
what the company had said was that they were expanding their Java
efforts.

jim
-----------------------------------------------------------------------
James P. White                        Netscape DevEdge Champion for IFC
Director of Technology Adventure Online Gaming http://www.gameworld.com
Developers of Gameworld -- Live Action Role-Playing and Strategic Games
[email]        Pagesmiths' home is http://www.pagesmiths.com


author: Ed Enstrom

subject: Moving to new server - O/S copy versus replication?

text:
We are going to move to a new server.  We have moved servers in the past, copying files using O/S commands.  Our
consultant is recommending replicating files instead.

Has anyone used this method of moving servers?  Are there any glitches and gotchas we should be aware of?

Thanks.


author: Peter Howard

subject: Re: Moving to new server - O/S copy versus replication?

text:
Ed Enstrom wrote:
If you do just a file system copy you can be shure that all of your data
is physical available on the new server.

If you create new replicas you may have not all data available due to
stupid programming (hard coded server names in reader fields or design
elements). Once I had a migration project of that kind, it was a real
nightmare to fix about 20 applications over a weekend.


text:
Peter Howard wrote:

Thank you for the tips.  I don't know if I would have thought of hard-coded names.  I guess I should have been clearer
in my question.  We are moving to a bigger server and we are going to keep the same server name, so the hard-coded names
should not be a problem.  But this is something we certainly will have to look for if we do another move to a different
server.

Ed


author: Colin Sandercock

text:
Ed Enstrom <[email]> wrote:

<snip>

Ed,
Since it will be the same server name (and I assume using the same
server.id, replication won't work - you would have 2 servers with the
same name and server.id running - OS copying is a far better solution in
this situation.
Colin


author: Ton van Overbeek

subject: Re: Data Read

text:
Matthew Nimmo wrote:

Here is my understanding of how the block works. I've attached a small
example of a formatted read. The file to be read is 'testfile' and
has been generated with the following scilab commands:
  t=[10:.1:20]';
  y=[sin(t),cos(t),sin(2*t),cos(2*t)];
  write('testfile',[t,y],'(1x,5e17.5)');

The scicos blockdiagram is in the attached file 'rftest.cosf'.
The readfile block is activated by the clock and only columns
2,4 (sin(t) and sin(2*t)) are extracted giving the block 2 outputs.
"Output Record Selection" is thus "2,4" and "Output Size" is 2.
I haven't gotten the "Time record selection" to work. I always
get 'event conflict'.
Don't forget that this block is fortran oriented.

Hope this helps a little bit.

Regards,

Ton van Overbeek


author: Ramine

subject: Re: Data Read

text:
Ton van Overbeek wrote:

Good example! To make time record selection  work here, simply
set it to 1 (because column 1 is the time). You will notice that an output
activation port appears at the bottom of the block. This output activation port
generates the events corresponding to events described in the file at given times.
Just feed it back to the input activtion port of the block (and any other block in
the diagram that should be synchronized with these events, none in this example).
and it works.... No need for an event clock in this case.

Ramine


author: Matthew Nimmo

subject: Re: Data Read

text:
I appreciate all your input.

With regard to the scicos read file block I now understand that

a) The lone number preceeding the formating parameters (e.g. the 5 in
(5(f7.3)) stands for repitition, ie here, when the next Line Feed is to
be placed
and

b) accordingly, the size of the record is determined.

c) "Output Selection Record" determines both
	- which elements of the record to pick as well as
	- in which order they are to appear in the output
	(this is described in the man pages)

d) "Output Size" is determined by the size of the Output Selection
Record
and is used to check compatibility (port size) with the succeeding
block.

Finally, after much trying, I managed to read my (-1x21)-dimensional
data successfully (though, Ton, I'm bypassing the time record selector
due to
the said error message ("event conflict")).

Thanks so far,

Matthew.


author: Arthur Hagen

subject: Re: An ill-tempered rant on SGI marketing problems.  Was:  kiss COSMO goodbye?

text:
In article <[email]>, Alexis Cousein <[email]> writes:

Problem is, a lot of applications are only available as binaries.
That's one reason why so many have held on to IRIX 5.3 machines,
because their businesses may depend on coff binaries.  Imagine the
problem multiplied tenfold when moving from 32/n32/64 mips2/3/4 to
IA-64.

Oh, I fiddle a bit with MIPS IV assembly, but only out of a personal
interest and for no real purpose (except perhaps running ssh a tad
faster).  :-)
But point is, SGI seems to have discontinued so much of the software
that people actually *use*, and continue to use despite it being
discontinued.  Because it's useful.  Change the architecture, and
those programs will no longer run at all.

Granted, SGI *may* start a migration program for converting data to new
and perhaps better programs that runs on IRIX/IA-64, but I doubt it. So
do I start typing in my 80k xcontact database manually?  It has
survived 5-6 machines so far.  Should I print and scan all the showcase
documents?  Will I even get a f77 compiler, or do I have to rewrite
things in a language I'm not fluid in to f90? How about our backup
system?  Can I be certain that SGI will port Legato Networker to
IRIX/IA-64, or should I rather go with something I'm sure will work,
like HP/Sun?  Or the discontinued Zmail?  I know I can continue to use
Zmail for a forseeable future on HP/Sun, but I'm not going to switch
just because my vendor says "Netscape and Eudora is what you get, take
it or leave it".

Yes, I do foresee migration problems.

That's because you can run -32 binaries just fine on a -n32 system.
But you'll be able to run *neither* on an IA-64-based IRIX system.
It's more than adding another ABI, unless SGI is going to perform some
magic that lets you use 2 different CPU's with the same kernel.

Yeah.  Too much coffee these days, while waiting more and more
impatiently for some HD's I really need...  And after all, I *care*
about IRIX...

Regards,


author: Shivang

subject: Integrating equations

text:
Hello,

I have 2 equations. I think they are called autonomous differential equations. A and B are constants.

 1.  g1=-Ag1+(B-g1)
 2.  g2=-Ag2+(B-g2)*g1

The result of first is an input to second.  I am not sure what is the best way to integrate this over a given period in a loop.
'This is how I have it in a loop, it gives an answer. I think its correct but I am not sure. Please advice.

    g1Text= strcat('-A*g1+(B-g1)');
    g1=int(g1Text,g1,ifrm,ito);
    g1=subs(g1,{A,B},{a,b});
    g1dtotal=g1dtotal+g1;

    g2Text=strcat('-A*g2+(B-g2)*gg1');
    g2d=int(g2Text,g2,ifrm,ito);
    g2d=subs(g2d,{A,B,gg1},{a,b,VPA(g1dtotal)});
    g2dtotal=g2dtotal+g2d;
    g2dtotal=VPA(g2dtotal);

-Apurva


author: Torsten Hennig

subject: Re: Integrating equations

text:
Try dsolve for an analytical solution.
If you are not successful with this,
use one of the solvers from the ODE-suite
(ODE45,ODE15S) to get a numerical approximation
for g1 and g2.

Best wishes
Torsten.


subject: Re: Integrating equations

text:
Hello,

I have a better understanding of what I need to do now. I need to numerically integrate these 2 equation using ode45.

 1. g1=-Ag1+(B-g1)
 2. g2=-Ag2+(B-g2)*g1

The result of first is an input to second for each instance in time over a given time period range. I know how to use ode45 for a function, but not sure how to use ode45 when there a 2 nested function like above.

Please advice.

-Shivang

"Shivang " <[email]> wrote in message <igjl81$145$[email]>...


subject: Re: Integrating equations

text:
Torsten Hennig <[email]> wrote in message <[email]>...

Hello Torsten,

Thanks for your response. I will try to do the same. But, does that mean that the way I did it is incorrect? Pardon my ignorance.

-Apurva


author: Jonathan Epperl

subject: Re: Integrating equations

text:
Still assuming that the left side are derivatives, you can call ode45 on a 2 dimensional ode, no problem. Like this:

A = 1; B = 2;
% Create the right hand side, it has to accept 2 or 3 arguments, 1st being the time, 2nd being the state, 3rd could be parameters
dgdt = @(t,g) -A*g + (B-g).*[1; g(1)];

% now you can call an ode solver of your choice

[t,x] = ode23(dgdt,[0 1], [0;0]);

plot(t,x);

If your version is too old to know anonymous functions, you'll have to write a file dgdt.m which looks like that:

function dg = dgdt(t,x);
A = 1; B = 2;
-A*g + (B-g).*[1; g(1)];


subject: Re: Integrating equations

text:
"Shivang " <[email]> wrote in message
news:imel4e$ip0$[email]...

This example from the documentation starts off as an example of how to
rewrite a second order ODE as a system of first order ODEs, but you can use
your system of first order ODEs directly and start with step 2.

http://www.mathworks.com/help/techdoc/math/f1-662913.html#brfharp-1


subject: Re: Integrating equations

text:
If you mean to solve
dg1/dx = -Ag1+(B-g1)
dg2/dx=-Ag2+(B-g2)*g1,
then yes: your method is incorrect.
A self-made approach to solve the system above
is to use e.g. the implicit Euler-method:
(g1(x+dx)-g1(x))/dx = -A*g1(x+dx)+(B-g1(x+dx))
(g2(x+dx)-g2(x))/dx = -A*g2(x+dx)+(B-g2(x+dx))*g1(x+dx)
Solve the two equations for g1(x+dx) and g2(x+dx).
Starting with known initial values g1(0) and g2(0),
you can then calculate g1(dx) and g2(dx), from there
g1(2*dx) and g2(2*dx) and so on.

Best wishes
Torsten.


author: Jim

subject: size a inline component

text:
I tried to build a "form" layout without using table like this

http://www.coolshare.com/temp/images/css.jpg

In order to get the layout, I need to set the light blue area at each
line to a fix size so that
I can align the label of each field to against the text field (kind of
center alignment) even in
case the size of text field vary. That is, with the label area  (blue
area) size fixed, I can
right alight label text and left aligh the input text field.

The problem is that firefox and Opera (IE worked fine) don't allow any
inline component (either a span or
a div with display set to "inline") to have a width.

My question is:

How can I have a inline area width fixed?

thanks

mark


subject: Re: size a inline component

text:
Thanks for response for everyone, specially VK.
VK, your response is extramely helpful and educational.

I will play with it.
really appreciated!

VK wrote:


subject: Re: size a inline component

text:
VK,

I played around and still suffer from the inline issue.

The problem was that when I replce one of the input fields with a
select field (see the code I modified below)
.
The layout was messed up:

http://www.coolshare.com/temp/images/css2.jpg

Any suggestion?

thanks

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html401/loose.dtd">

<title>Form layout</title>
<meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">

<form name="frm01" method="POST" action="">
 <fieldset>
 <legend>Pesonal data</legend>

  First name:
  <select name="FName" id="FName">
                        <option value="" selected>
                        <option value="0">Mark
                        <option value="1">Mike
                        <option value="2">Rob
                        <option value="23">Mfdasfdsaf
                </select>
  Last name:
  <input type="text" name="LName" id="LName" size="20" maxlength="64">

  E-Mail:
  <input type="text" name="EMail" id="EMail" size="20" maxlength="128">

  Phone:
  <input type="text" name="Phone" id="Phone" size="10" maxlength="10">

 </fieldset>
</form>


subject: Re: size a inline component

text:
VK, it was my problem. I didn't take care the select in the style.

Thanks again.

Jim wrote:


author: VK

subject: Re: size a inline component

text:
Jim wrote:
<snip>

If you decided to build a semantically/accessability right form: then
it is much more than just make a form w/o table helpers. The fact that
you are asking about span styling suggests that you are already on the
wrong path. The proper form hierarchy implies:
 form
  fieldset
   label  element

Below there is some code to play with.

Note 1
It is crutial to define font size for input elements for a number of
browser-specific reasons. The main one is that without font size set on
IE form elements will be excluded from the page scaling (while using
font size switch).

Note 2
There is an opinion that
 tag has no semantic behind but a
presentational effect only. That is not true of course: br has a
well-defined semantic of the logical end of the current output segment.
Originally it was br (end of line) and p (end of paragraph). Later p
was promoted into block elements, but it did not remove the semantic
from br.

Note 3
Transitional instead of Strict is used only because of  tag used to
mark access keys. You are free to replace it with styled  and
move onto Strict then.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html401/loose.dtd">

<title>Form layout</title>
<meta http-equiv="Content-Type"
 content="text/html; charset=iso-8859-1">

<form name="frm01" method="POST" action="">
 <fieldset>
 <legend>Pesonal data</legend>

  First name:
  <input type="text" name="FName" id="FName" size="20" maxlength="64">
  Last name:
  <input type="text" name="LName" id="LName" size="20" maxlength="64">

  E-Mail:
  <input type="text" name="EMail" id="EMail" size="20" maxlength="128">
  Phone:
  <input type="text" name="Phone" id="Phone" size="10" maxlength="10">

 </fieldset>
</form>


author: Ben C

subject: Re: size a inline component

text:
On 2006-11-05, Jim <[email]> wrote:

Ideally with display: inline-block, but that's not supported by Firefox,
which leaves floats as the closest things to inline elements that can
have widths set on them.


subject: Re: size a inline component

text:
Firefox has -moz-inline-box display type. This display type is not
fully debugged yet, but for simple usage like here it's fine. So it
could be:

display: inline-block; /* for everyone */
display: -moz-inline-box; /* for Gecko */

I just don't see a need here for inline blocks: floating block elements
do it better and more reliably IMHO.


author: Frank H. WIN1

subject: Redirecting stdout to a TV window

text:
I want to redirect stdout (e.g. the output of a spawned
child process) to a TV window.
Does someone has an idea?

Thanks in advance...
Frank


author: Matthew Amster

subject: Re: Redirecting stdout to a TV window

text:
In article <[email]>, [email] (Frank H. WIN1) writes:

Yes, I need to do this in my project, which is an editor that calls a compiler
and needs to bring up its output in a window.  What I do is redirect the output
of the called process to a file, then load the file into an edit or fileview
window.

Matthew

-----------------------------------------------------------------------------
Matthew Amster           Pomona College          [email]


author: Craig Schlenter

subject: Re: Redirecting stdout to a TV window

text:
In article <[email]>,
Frank H. WIN1 <[email]> wrote:

There is an example somewhere on ftp.borland.com that lets you redirect
the output of cout to a tterminal. I haven't seen anything else ...

--Craig  ([email])


author: Sab Tino

subject: What do you most admire about war combat games ?

text:
What do you most admire about war combat pc games and what is it that
they do for you, or what is the most eloquent comment/s you've heard
someone make on the subject, that for you, seriously or humorously
answers the question.


author: F r e e

subject: Re: What do you most admire about war combat games ?

text:
'cos it's a lot more fucking real then the rest of the shooters...:
inmersion, terror, hope, timing, strategy... (well i'm talking about o.
flahpoint or Ghost Recon, not DeltaForce... it's SP sucked big time...) And
last but not least: landscapes....

I hate zombies, aliens, monsters and all the other shit in carmac's head...

:)
f r e e


author: Daywanderer

text:
"Sab Tino" <[email]> skrev i melding
news:[email]...

Realism (a refreshing change from the traditional shooters) and the
community. TacSims is a fairly niche genre, ergo it has a smaller fanbase.
Add the fact that most of the players are ex-military and ex-law
enforcement, and otherwise mainly mature people attracted by the concept of
"The Thinking Man's Shooter", and you've got a superb community with a
minimal amount of the typical Counter-Strike stereotype.

Daywanderer


text:
[email] (Sab   Tino) had the moxy to write:

Define "war combat pc games".


author: Devo

text:
On Fri, 08 Mar 2002 08:24:15 GMT, "F r e e" <[email]> wrote:

Oo u never liked Doom? Your loss.

--------------
Devo


text:
of

Hi Day!

are you sure? In DeltaForce i saw many 'soldier wanne bees', horrible right
wing people.... you and i would not go out with.... And as far as i know, ex
or non ex military or police forces do not 'think' a lot... Without any bad
will, but thats my experience...

i have a sociologic curiosity....

f r e e


text:
"F r e e" <[email]> skrev i melding
news:xG5i8.9097$[email]...
right
ex
bad

Yes, I'm sure. I know one ex-marine, one security-something in the US Navy
(also working on subs IIRC), one ex-sub guy, three current police officers,
one current SWAT/ex-spec ops (*cough* AJ Levatino, dude that demonstrates
firearms on Rainbow Six: Covert Ops Essentials Training Disc *cough*),
several "soldiers" (in lack of a better word) in some Canadian reserve
forces, one currently in the Norwegian army, one ex-Norwegian army, one
ex-Norwegian Air Force, and a fair bunch of others who have served in their
country's military in one way or another. All Rainbow Six/Ghost Recon
players, all some of the greatest folks I've ever met, and definitely among
the most mature ones.

Sure, as with all communities, there are some bad apples. I'm just saying
that the tactical shooter community/communities don't have as many as the
traditional shooter communities by a long shot. Then again, my experience is
mainly confined to certain parts of the Rainbow Six/Ghost Recon/Delta
Force/SWAT3/Operation FlashPoint communities :)

Daywanderer


author: Lynn

subject: JComboBox with wider drop-down (popup)

text:
I'm using a JComboBox with my own ListCellRenderer.  The goal is to
have the drop-down display a long description of the options while the
non-active JComboBox will only show the first character of the option
after it has been selected.

In a way, the drop-down acts somewhat like a tooltip.  I've got all of
this working except that the width of the non-active JComboBox seems
to always be as wide as the drop-down box (whose width is controlled
by the width of the long descriptions).

Is there a way to have the drop-down box width be wider than that of
the idle JComboBox?

Thanks.
Lynn


author: "Larry Barowski"

subject: Re: JComboBox with wider drop-down (popup)

text:
"Lynn" <[email]> wrote in message
news:[email]...

This is a current RFE:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4880218
It wouldn't hurt to vote for it.

You can do this by replacing the UI, but it is messy and it may not
work for all (or future) Java versions. For an example of this,
look here:
http://www.codeguru.com/java/articles/163.shtml  - search the web
for "SteppedComboBox" if this link evaporates.

I've tried all the delivered Look & Feels with different versions of Java -
1.3 through 1.5 Beta, and for JComboBoxes used in GridBagLayouts
(which all of mine are), it seems that getSize() is only called by the UI
to find out what width the popup should be, and by doLayout() under
some Windows Look & Feels. So, I've just started experimenting with
this:

 import java.awt.Dimension;
   import javax.swing.JComboBox;

    public class SizedComboBox extends JComboBox {
      private boolean realSize;

      // Add whatever constructors you need.

       // This assumes getSize() will only be called by doLayout()
       // or ComboPopup.show().
       public Dimension getSize() {
         Dimension size = super.getSize();
         if(realSize)
            return size;
         Dimension pref_size = getPreferredSize();
         if(pref_size.width < size.width)
            pref_size.width = size.width;
         return pref_size;
      }

       public void doLayout() {
         realSize = true;
         super.doLayout();
         realSize = false;
      }
   }

It is quite spooky to report the wrong size in getSize(), and
certainly this may not work with other layout managers, or
possibly under third-party Look & Feels.


author: Kleopatra

text:
Lynn wrote:

Not long ago I've seen a nice trick using a PopupMenuListener: in its
popupWillBecomeVisible access the popup and set the prefSize of the
contained scrollbar to anything you want.

Greetings
Jeanette


author: Daan

subject: Listener and Windows 2000 domain

text:
Hello,

I have a server in Oracle 8.17, W2k SP3. It works well as included in
a workgroup.

I want to include this server in a Windows 2000 domain (just as a
server, not as a DC). But when I do it, after rebooting, I can't
access to my databases and I have the following message :

12514 : TNS:listener could not resolve SERVICE_NAME given in
connect descriptor

I've checked my tnsnames.ora, sqlnet.ora, listener.ora...everything
seems ok.

What has changed with the admission in the domain ?

If anybody has an idea....thanks for advance !

Daan
[email]


author: Bud Socks

subject: Re: Listener and Windows 2000 domain

text:
check the service properties.

I guess you logon as system account ? create a domain-user sidadm - assign
the neccessary membership (DBA, OPER groups etc. )

try logon as <domain>\sidadm

Bud


author: Sheilah Scheurich

subject: Re: Listener and Windows 2000 domain

text:
Try replacing the servername with the IP address and see if it works.

Daan wrote:


author: Karsten Farrell

subject: Re: Listener and Windows 2000 domain

text:
[email] said...
If you have metalink access, you might want to look at the following
article titled "ORA-12514 after Windows 2000 domain upgrade":

http://metalink.oracle.com/metalink/plsql/ml2_gui.startup


author: Paul Drake

subject: Re: Listener and Windows 2000 domain

text:
[email] (Daan) wrote in message news:<[email]>...

Daan,

I would guess that you did not specify the domain in the sqlnet.ora,
in which case it is being inherited from the OS. It changed when the
server moved from a workgroup to a domain.

lsnrctl.exe can provide you with some info.
For this example, I'll assume that you have a single 817 oracle_home,
which is in the path.

ORACLE_SID, ip_addresses obfuscated to protect ... blah, blah.

D:\Oracle\ora81\BIN>lsnrctl

LSNRCTL for 32-bit Windows: Version 8.1.7.4.0 - Production on
10-JUN-2003 13:32:
31

(c) Copyright 1998 Oracle Corporation.  All rights reserved.

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> set displaymode verobse
set displaymode RAW | COMPAT | NORMAL | VERBOSE: output mode for
lsnrctl display

LSNRCTL> set displaymode verbose
Service display mode is VERBOSE
LSNRCTL> set password
Password:
The command completed successfully
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version
8.1.7.4.0 - Produc
tion
Start Date                15-APR-2003 18:55:08
Uptime                    55 days 18 hr. 37 min. 49 sec
Trace Level               user
Security                  ON
SNMP                      OFF
Listener Parameter File   D:\oracle\ora81\network\admin\listener.ora
Listener Log File         D:\oracle\ora81\network\log\listener.log
Listener Trace File       D:\oracle\ora81\network\trace\listener.trc
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.222)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.100.222)(PORT=1526)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myserver)(PORT=2481))(PROTOCOL_ST
ACK=(PRESENTATION=GIOP)(SESSION=RAW)))
Services Summary...
Service "DEV.mydomain.com"               has 1 instances.
    Instance "DEV"
      Status: READY  Total handlers: 1  Relevant handlers: 1
      Class: ORACLE
Service "TEST.mydomain.com"               has 1 instances.
    Instance "TEST"
      Status: READY  Total handlers: 1  Relevant handlers: 1
      Class: ORACLE
The command completed successfully
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "DEV.mydomain.com"               has 1 instances.
    Instance "DEV"
      Status: READY  Total handlers: 1  Relevant handlers: 1
      Class: ORACLE
        DEDICATED established:7146 refused:0 current:0 max:0
state:ready
        (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracledev)(ARGS='(DESCRIPT
ION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))'))
            Session: NS
Service "TEST.mydomain.com"               has 1 instances.
    Instance "TEST"
      Status: READY  Total handlers: 1  Relevant handlers: 1
      Class: ORACLE
        DEDICATED established:3189 refused:0 current:0 max:0
state:ready
        (ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracletest)(ARGS='(DESCRIPT
ION=(LOCAL=no)(ADDRESS=(PROTOCOL=BEQ)))'))
            Session: NS
The command completed successfully
LSNRCTL> quit

in sqlplus, check the following parameters:

db_domain
service_names
global_name

if you do not explicilty set the service_name, it will append the
db_name || db_domain to create the service_name. Again, if the
names.default_domain is not set, it may be acquired from the OS, in
which case the service_name that is registered at instance startup may
not be what it used to be.

Are you using static or dynamic registration of the service with the
listener?
(static means that you have an explicit descriptor in the listener.ora
file).

hth.

Paul


subject: Re: Listener and Windows 2000 domain

text:
Karsten Farrell <[email]> wrote in message news:<[email]>...

Hello Karsten,

Thanks for your help !

Yes, it seems very interesting. Unfortunately, I don't have access to metalink.

Can you help me ?

Contact me directly by e-mail if you prefer ([email]).

Daan.


author: Michel J. Brown

subject: Re: Amiga Dealer Clearing Out Old Stuff

text:
In <[email]>,
[email] (Dana Canfield) writes:

Since those are basically A2000 fodder *only*, I'll offer you $250 for
the board including software, documentation, and transfer of upgrade.
Thanks for the offer, hope to hear from you soon, God Bless, ILBCNU!
Virtually yours,
Michel

This space intentionally left blank -- make of it what you will...

Generic sig -- enter your own sig in the space provided


author: Timothy Ferris

subject: Re: Amiga Dealer Clearing Out Old Stuff

text:
I didn't see a list of anything for sale.......
What do you have other than the Toaster????? If the Toaster is still available,
how about $300 for it????? Please send the mail back to m
e at either [email] or [email] because
I have a problem getting responses through UseNet.
Thanks,
Tim


author: Jose Elias

subject: Re: Amiga Dealer Clearing Out Old Stuff

text:
$350 for the VT2000

  .---'\/\/\/`--- - -  -    -      -       -      -    -  - - ---'\/\/\/`---.
  |    	       	               [email]                            |
  `----------[  Imagination is more important than knowledge...  ]----------'


author: Ralf Fassel

subject: changing list variable in foreach body

text:
http://mini.net/tcl/1018 states that

    Occasionally developers are surprised to discover that if list is
    modified within the confines of the body's code, varname never
    reflects the change.  This is due to the tcl parser having a fixed
    copy of the elements of list in memory and not referring to the
    actual variable during the assignment of values to varname during
    the loop construct.

Is it future-safe to rely on this behaviour?

  proc do_stuff {ignored} {
    # change the global ::list
    set ::list [lreplace $::list end end]
  }

  set ::list [list 1 2 3]
  foreach elt $::list {
    do_stuff $elt
  }
  # do_stuff called three times, ::list is now empty

Or should I make a copy of the ::list just to be on the safe side?

  set ::list [list 1 2 3]
  set looplist $::list
  foreach elt $looplist {
    do_stuff $elt
  }
  # do_stuff called three times, ::list is now empty

R'