Subject: First experience with PegasosPPC
To: None <port-ofppc@NetBSD.org>
From: Matt Thomas <matt@3am-software.com>
List: port-powerpc
Date: 04/16/2004 22:59:19
[Here is the first non-spam posting to port-ofppc for 2004!]

I received my PegasosPPC system yesterday.  Currently I have plugged 
into
a terminal server (8N1@115200) to see what I can see.  The good news is
that ofppc's ofwboot works just fine.  The bad news is a GENERIC ofppc
kernel (not unsurprisingly) goes off into never never land.

PegasosII Boot Strap (c) 2002-2003 bplan GmbH
Running on CPU PVR:80020101
Enable L1 ICache...                                                    
Done.
Clean/Flush Block enabled
Reading W83194 : 5CFFFFFFFFFFFF00                                      
Done.
Setting Front Side Bus to 133MHz...                                    
Done.
Configuring DDR...                                                     
Done.
Configuring PCI0...                                                    
Done.
Configuring PCI1...                                                    
Done.
Configuring ETH...                                                     
Done.
Releasing IDE reset ...                                                
Done.
Configuring Legacy Devices
Initializing KBD...00000032                                            
FAILED.
Testing 10000000 Bytes, Pass: 00000000 Failed: 00000000
RAM TEST (fill linear)...                                              
Done.
FFFFFFFF

SmartFirmware:
cpu0: PowerPC,74x7 CPUClock 999 Mhz BUSClock 133 Mhz (Version 
0x8002,0x0101)
no/bad nvramrc - performing default startup script
channel 0 unit 0 :   ata | WDC WD400BB-75FRA0                       | 
77.07W77
ATA device not present or not responding
ATA device not present or not responding
channel 1 unit 0 : atapi | OPTORITECD-RW CW5201                     | 
210E
EMULATION INT HANDLER ENTERED WITH:
INT NO: 15

EAX=0003 EBX=1111 ECX=2222 EDX=3333 ESP=0000 EBP=5555 ESI=6666 EDI=7777
  AX=4E08  BX=C505  CX=0003  DX=102A  SP=6CA8  BP=5555  SI=5CF7  DI=7777
  DS=C000  ES=BAD0  SS=C000  CS=F000  IP=FE15   NV UP -- PL ZR NA PE NC
CS:IP = F4  C556 C000 0244 3000 0000 01B4 AC61 0200
UNHANDLED INT 10 FUNCTION 0007 WITHIN EMULATION



Welcome to SmartFirmware(tm) for bplan Pegasos2 version 1.1 
(20040405172512)
SmartFirmware(tm) Copyright 1996-2001 by CodeGen, Inc.
All Rights Reserved.
Pegasos BIOS Extensions Copyright 2001-2003 by bplan GmbH.
All Rights Reserved.
entering main read/eval loop...
ok boot net
RRR
 >> NetBSD/ofppc OpenFirmware Boot, Revision 1.5
 >> (matt@amd64.home, Fri Apr 16 22:45:17 PDT 2004)
net_open: client addr: 192.168.7.19
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.7.52
net_open: server addr: 192.168.7.52
net_open: server path: /clients/pegasos/root
Using IP address: 192.168.7.19
root addr=192.168.7.52 path=/clients/pegasos/root
open /netbsd.ofppc: No such file or directory
net_open: client addr: 192.168.7.19
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.7.52
net_open: server addr: 192.168.7.52
net_open: server path: /clients/pegasos/root
Using IP address: 192.168.7.19
root addr=192.168.7.52 path=/clients/pegasos/root
2281616+329408 [121472+107554]=0x2b58d0
  start=0x100000

The amount of information in the OFW tree compared to other systems
I've seen is extremely limited.  However, there is CHRP RTAS support
(RTAS is the IBM defined run-time-abstraction-services) and it would
make life much easier for ofppc systems if NetBSD could use it.

dev /
ok ls
openprom
aliases
options
packages
chosen
memory@0
cpus
rtas
failsafe
pci@80000000
pci@C0000000
bootconsole
ok dev cpus
ok ls
PowerPC,74x7
ok dev PowerPC,74x7
ok ls
l2-cache
l3-cache
ok .properties
name
  "PowerPC,74x7"

device_type
  "cpu"
reg
  <address unencodeable>:
0

<address unencodeable>:
0
cpu-version
  0x80020101 (-2147352319)

clock-frequency
  0x3B9AC9F6 (999999990)

bus-frequency
  0x7F28155 (133333333)

timebase-frequency
  0x1FCA055 (33333333)

reservation-granule-size
  0x4 (4)

graphics
  ""
performance-monitor
  ""
general-purpose
  ""
external-control
  ""
data-streams
  ""
altivec
  ""
state
  "running"

tlb-size
  0x100 (256)
tlb-sets
  0x2 (2)

tlb-split
  ""
d-tlb-size
  0x80 (128)

d-tlb-sets
  0x2 (2)

i-tlb-size
  0x80 (128)

i-tlb-sets
  0x2 (2)

i-cache-line-size
  0x20 (32)
i-cache-block-size
  0x20 (32)

i-cache-size
  0x8000 (32768)

i-cache-sets
  0x80 (128)

d-cache-line-size
  0x20 (32)

d-cache-block-size
  0x20 (32)

d-cache-size
  0x8000 (32768)

d-cache-sets
  0x80 (128)

l2cr
  0x0 (0)

l3cr
  0x0 (0)

available
  <address unencodeable>:
10000000

existing
  <address unencodeable>:
10000000

translations
  FC05222 -- 1



ok dev l2-cache
ok .properties
name
  "l2-cache"

device_type
  "l2-cache"

cache-unified
  ""
i-cache-line-size
  0x40 (64)

i-cache-block-size
  0x40 (64)

i-cache-size
  0x40000 (262144)

i-cache-sets
  0x200 (512)

d-cache-line-size
  0x40 (64)

d-cache-block-size
  0x40 (64)

d-cache-size
  0x40000 (262144)

d-cache-sets
  0x200 (512)

ok dev /cpus
ok dev PowerPC,74x7
ok dev l3-cache
ok .properties
name
  "l3-cache"

device_type
  "l3-cache"

cache-unified
  ""
i-cache-line-size
  0x80 (128)

i-cache-block-size
  0x80 (128)

i-cache-size
  0x100000 (1048576)

i-cache-sets
  0x1000 (4096)

d-cache-line-size
  0x80 (128)

d-cache-block-size
  0x80 (128)

d-cache-size
  0x100000 (1048576)

d-cache-sets
  0x1000 (4096)

ok dev /
ok ls
openprom
aliases
options
packages
chosen
memory@0
cpus
rtas
failsafe
pci@80000000
pci@C0000000
bootconsole
ok dev memory@0
ok .properties
name
  "memory"

device_type
  "memory"

reg
  0:10000000

available
  0:1000000


1800000:
E400000

ok devalias
Alias                 Device Path
--------------------------------------------------
net                   /pci@80000000/ethernet@D:speed=10,duplex=half
ide                   /pci@80000000/ide@C,1/disk@0,0
hd                    /pci@80000000/ide@C,1/disk@0,0
ide0                  /pci@80000000/ide@C,1/cdrom@1,0
cd                    /pci@80000000/ide@C,1/cdrom@1,0
screen                /bootconsole
keyboard              /pci@80000000/isa@C/keyboard@i60
ok dev /pci@80000000
ok ls
host@0
firewire@1
isa@C
ide@C,1
usb@C,2
usb@C,3
other@C,4
sound@C,5
pci1106,3068@C,6
ethernet@D
ok dev ethernet
ok .properties
vendor-id
  0x1106 (4358)

device-id
  0x3065 (12389)

revision-id
  0x51 (81)

class-code
  0x20000 (131072)

subsystem-id
  0x3065 (12389)

subsystem-vendor-id
  0x1106 (4358)

.vendor-name
  "VIA"
.part-number
  "VT6102"

.description
  "Rhine II PCI Fast Ethernet Controller"

.class
  "Network Controller"

.subclass
  "Ethernet"

interrupts
  0x1 (1)
devsel-speed
  0x1 (1)

min-grant
  0xFF (255)

max-latency
  0xFF (255)

name                  "ethernet"
reg
  D:0

iD,0,10,0:
100

mD,0,14,0:
100
device_type
  "network"

assigned-addresses
  iD,0,10,FE001300:
100

mD,0,14,80000800:
100
ok dev /pci@c0000000
ok ls
host@0
display@8
display@8,1
ok dev host
ok .properties
vendor-id
  0x11AB (4523)

device-id
  0x6460 (25696)

revision-id
  0x3 (3)

class-code
  0x60000 (393216)

subsystem-id
  0x0 (0)

subsystem-vendor-id
  0x0 (0)

.vendor-name
  "Marvell"

.part-number
  "MV6436x"

.description
  "System Controller for PowerPC Processors"

.class
  "Bridge Device"

.subclass
  "Host/PCI"

devsel-speed
  0x1 (1)

66mhz-capable

fast-back-to-back

min-grant
  0x0 (0)

max-latency
  0x0 (0)

name
  "host"

reg
  0:0
assigned-addresses

ok
ok devalias
Alias                 Device Path
--------------------------------------------------
net                   /pci@80000000/ethernet@D:speed=10,duplex=half
ide                   /pci@80000000/ide@C,1/disk@0,0
hd                    /pci@80000000/ide@C,1/disk@0,0
ide0                  /pci@80000000/ide@C,1/cdrom@1,0
cd                    /pci@80000000/ide@C,1/cdrom@1,0
screen                /bootconsole
keyboard              /pci@80000000/isa@C/keyboard@i60
ok dev net
ok dev /
ok ls
openprom
aliases
options
packages
chosen
memory@0
cpus
rtas
failsafe
pci@80000000
pci@C0000000
bootconsole
ok dev openprom
ok ls
client-services
ok .properties
name
  "openprom"

CodeGen-copyright
  "SmartFirmware(tm) Copyright 1996-2001 by CodeGen, Inc.  All Rights 
Reserved."

bplan-copyright
d."
SmartFirmware-version
  "1.2"
model
  "Pegasos2,1.1"

relative-addressing

built-on
  0x131CAD5 (20040405)

ok dev /rtas
ok .properties
name
  "rtas"

rtas-version
  0x1 (1)

rtas-size
  0x2A90 (10896)

rtas-display-device
  0x0 (0)

rtas-event-scan-rate
  0x0 (0)

rtas-error-log-max
  0x0 (0)

restart-rtas
  0x0 (0)

nvram-fetch
  0x1 (1)

nvram-store
  0x2 (2)

get-time-of-day
  0x3 (3)

set-time-of-day
  0x4 (4)

event-scan
  0x6 (6)

check-execption
  0x7 (7)

read-pci-config
  0x8 (8)

write-pci-config
  0x9 (9)

display-character
  0xA (10)

set-indicator
  0xB (11)

power-off
  0x11 (17)

suspend
  0x12 (18)

hibernate
  0x13 (19)

system-reboot
  0x14 (20)

-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this 
message.