X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C760EE.3DB8F975@onstor-exch02.onstor.net>; Wed, 7 Mar 2007 12:24:35 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: PROM and hardware help for cougar/linux
Date: Wed, 7 Mar 2007 12:24:34 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E02B75244@onstor-exch02.onstor.net>
In-Reply-To: <20070306093907.7af16961@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: PROM and hardware help for cougar/linux
Thread-Index: AcdgFlfIPavc3jTRSVarkQN+TaUE/AAzYUjQ
From: "Warren Gale" <warren.gale@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>,
	"Brian Stark" <brian.stark@onstor.com>

Andy,
  I have a version of PROM that will use the alternative console
for SSC. This is a special build that will do all output/input from the
alternative port. (cable needs to be attached to J7202).
It bypasses the use of the gt64440 uarts, and also skips the redirection =
of the uarts to  use SDMA on the gt64440.

I have placed a copy of the "released PROM" and  Special version for =
you,
in /n/users/warreng/bc_proms/4Andy

605-0012-0001_204_CS=3D37826097_r9kfimg.bin
r9kfimg.bin14Andy


These will need to be copied to the "tftpboot server" so the prom =
upgrade will function correctly. I don't know what the IP address of the =
tftpboot server is there in Campbell. (Mine here is 10.1.1.189  used =
below in examples)

Please return the PROM to normal after you are done. It's not usable for =
normal filer operations.

To update PROM:
 SSC-PROM> prom upgrade 10.1.1.189 r9kfimg.bin14Andy

PROM ugprade in progress, please wait...
tpl_findBindCb prot=3D17 lport=3D9736
tpl_allocBindCb
tftp_tplAddConnInd
TFTP transfer completed.

PROM ugprade in progress, please wait...

flash program 0x400000 bytes to 0xbf800000 from 0x83000000
sectors ... 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 =
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 =
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 done
tftp_tplDelConnInd
SSC-PROM>

Once the upgrade has been done, you will see the following:
On Normal SSC port:
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
SSC-PROM> reboot
Rebooting...

PMON CPU 00000000 Initializing. Standby...
EXCEPTIONPC=3D00000000 CONFIG=3D005264b0 STATUS=3D00400000
Setting up SDRAM controllers
R9K MEMORY SIZE=3D20000000
SDM  REG=3D00000027
SDT  REG=3D283f8482
SDRAM Memory setup done.
Clearing cache size memory...
Cache init done.
Initializing ECC memory.
Decompression bss start.
Init bss.
    =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

On the Alternative Port:
    =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
PowerOn Self Test........OK

Initializing System......please wait
=EF=BF=BD-Debug- Set Cpu State =3D
 =BF=BD-Debugcm.slot[0].cpu[0].state  Address =3D 0x8035c620  state =3D =
1
Initializing Shared Memory (1024 MB) for ECC
Taking PCI out of reset.
Waiting for FP/TXRX out of reset......
 gt_console_init  Special 14Andy just return




PMON [SSC,EL,FP]
ONStor Inc. PROM_R9000 : Diag-PROM 2.0.5-My(14AndyS) : Tue Mar  6 =
18:15:31 2007
CPU type R9000.  Rev 4.0.  799.98 MHz/133 MHz.
module: SSC, Slot 0, CPU 0
Memory size 1024 MB.
Icache size  16 KB, 32/line (4 way)
Dcache size  16 KB, 32/line (4 way)
Scache size 256 KB, 32/line  (4 way)
Skipping Autoloader, continue to PROM monitor
 -Debug- Set Cpu State =3D 2
 -Debug- cm.slot[0].cpu[0].state  Address =3D 0x8035c620  state =3D 2
SSC-PROM>

    =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D


Have Fun :)

Warren



-----Original Message-----
From: Andy Sharp=20
Sent: Tuesday, March 06, 2007 9:39 AM
To: Brian Stark; Warren Gale
Subject: PROM and hardware help for cougar/linux

Hi Guys,

After a week of basically no progress, I need to bust out with some
bolder moves.  The two I'm thinking of are both in the console area.
Namely, get a bobcat with the alternative consoles wired up, and get
some PROM support for that.

PROM question: does the PROM support prom_console vectors?  Put
another way, is there a pair of PROM console input/output routines that
I can access from the kernel?  Supposedly there is or can be such a
thing with PMON, but trying to use it without knowing for sure that
it's there might be a bit too much fumbling in the dark.

Cheers,

a
