Subject: Re: Alocation of OF_buf?
To: None <thorpej@wasabisystems.com>
From: Andrew Cagney <cagney@mac.com>
List: port-powerpc
Date: 10/29/2001 00:04:43
This is a multi-part message in MIME format.
--------------010203020306010405080100
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

> On Fri, Oct 26, 2001 at 09:34:47PM -0400, Andrew Cagney wrote:
> 
>  > ofbus0 at mainbus0
>  > cpu@0 at ofbus0 not configured
> 
> ...
> 
>  > panic: unknown timebase
> 
> Er...
> 
> What does the simulated OFW tree look like in PSIM?

Pretty sparse.  The relevant code (ofppc/cpu.c) is looking for the 
property ``/cpus/cpu@0/timebase-frequency''.  PSIM's cpu node lacks even 
the "reg" property (yet alone timebase-frequency :-) so it is little 
wonder that ofppc/cpu.c trips up.

enjoy,
Andrew


--------------010203020306010405080100
Content-Type: text/plain;
 name="tree"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="tree"

chirp: note descriptor missing load-base

/name "gpl,clayton"
/#address-cells 0x1
/aliases
/options
/options/little-endian? false
/options/real-mode? false
/options/real-base 0x3e3000
/options/real-size 0x1d000
/options/virt-base 0x80000000
/options/virt-size 0x1d000
/options/load-base 0xffffffff
/chosen
/chosen/stdin */openprom/pal
/chosen/stdout !/chosen/stdin
/chosen/memory */memory
/packages
/cpus
/cpus/cpu@0
/cpus/cpu@0/cpu-nr 0x0
/openprom
/openprom/init
/openprom/init/register
/openprom/init/register/0.pc 0x100000
/openprom/init/register/pc 0x80004020
/openprom/init/register/msr 0x3030
/openprom/init/register/sdr1 0x3ffe00
/openprom/init/register/sr0 0x0
/openprom/init/register/sr1 0x1
/openprom/init/register/sr2 0x2
/openprom/init/register/sr3 0x3
/openprom/init/register/sr4 0x4
/openprom/init/register/sr5 0x5
/openprom/init/register/sr6 0x6
/openprom/init/register/sr7 0x7
/openprom/init/register/sr8 0x8
/openprom/init/register/sr9 0x9
/openprom/init/register/sr10 0xa
/openprom/init/register/sr11 0xb
/openprom/init/register/sr12 0xc
/openprom/init/register/sr13 0xd
/openprom/init/register/sr14 0xe
/openprom/init/register/sr15 0xf
/openprom/init/register/r5 0x80004000
/openprom/init/register/sp 0x8000cff0
/openprom/init/stack
/openprom/init/stack/stack-type "chirp"
/openprom/init/data@0x3e7000
/openprom/init/data@0x3e7000/psim,description "client-interface instruction"
/openprom/init/data@0x3e7000/real-address 0x3e7000
/openprom/init/data@0x3e7000/data 0x1
/openprom/init/data@0x3e7004
/openprom/init/data@0x3e7004/psim,description "client-interface return instruction"
/openprom/init/data@0x3e7004/real-address 0x3e7004
/openprom/init/data@0x3e7004/data 0x4e800020
/openprom/init/data@0x3e7010
/openprom/init/data@0x3e7010/psim,description "client-callback instruction"
/openprom/init/data@0x3e7010/real-address 0x3e7010
/openprom/init/data@0x3e7010/data 0x1
/openprom/init/data@0x3e7014
/openprom/init/data@0x3e7014/psim,description "client-callback return instruction"
/openprom/init/data@0x3e7014/real-address 0x3e7014
/openprom/init/data@0x3e7014/data 0x4e800020
/openprom/init/data@0x3e7020
/openprom/init/data@0x3e7020/psim,description "processor busy loop"
/openprom/init/data@0x3e7020/real-address 0x3e7020
/openprom/init/data@0x3e7020/data 0x48000000
/openprom/init/htab@0x3f0000
/openprom/init/htab@0x3f0000/claim 0x0
/openprom/init/htab@0x3f0000/real-address 0x3f0000
/openprom/init/htab@0x3f0000/nr-bytes 0x10000
/openprom/init/htab@0x3f0000/pte@0x3e8000
/openprom/init/htab@0x3f0000/pte@0x3e8000/psim,description "map in the stack"
/openprom/init/htab@0x3f0000/pte@0x3e8000/claim 0x1
/openprom/init/htab@0x3f0000/pte@0x3e8000/virtual-address 0x80005000
/openprom/init/htab@0x3f0000/pte@0x3e8000/real-address 0x3e8000
/openprom/init/htab@0x3f0000/pte@0x3e8000/nr-bytes 0x8000
/openprom/init/htab@0x3f0000/pte@0x3e8000/wimg 0x7
/openprom/init/htab@0x3f0000/pte@0x3e8000/pp 0x2
/openprom/init/htab@0x3f0000/pte@0x3e7000
/openprom/init/htab@0x3f0000/pte@0x3e7000/psim,description "map in chrp openboot callback code"
/openprom/init/htab@0x3f0000/pte@0x3e7000/claim 0x1
/openprom/init/htab@0x3f0000/pte@0x3e7000/virtual-address 0x80004000
/openprom/init/htab@0x3f0000/pte@0x3e7000/real-address 0x3e7000
/openprom/init/htab@0x3f0000/pte@0x3e7000/nr-bytes 0x1000
/openprom/init/htab@0x3f0000/pte@0x3e7000/wimg 0x7
/openprom/init/htab@0x3f0000/pte@0x3e7000/pp 0x2
/openprom/init/htab@0x3f0000/pte@0xffffffff
/openprom/init/htab@0x3f0000/pte@0xffffffff/psim,description "load & map the binary"
/openprom/init/htab@0x3f0000/pte@0xffffffff/claim 0x1
/openprom/init/htab@0x3f0000/pte@0xffffffff/file-name "/usr/src/sys/arch/ofppc/compile/GENERIC/netbsd.gdb"
/openprom/init/htab@0x3f0000/pte@0xffffffff/wimg 0x7
/openprom/init/htab@0x3f0000/pte@0xffffffff/pp 0x2
/openprom/init/htab@0x3f0000/pte@0
/openprom/init/htab@0x3f0000/pte@0/psim,description "map in interrupt vectors"
/openprom/init/htab@0x3f0000/pte@0/virtual-address 0x0
/openprom/init/htab@0x3f0000/pte@0/real-address 0x0
/openprom/init/htab@0x3f0000/pte@0/nr-bytes 0x3000
/openprom/init/htab@0x3f0000/pte@0/wimg 0x7
/openprom/init/htab@0x3f0000/pte@0/pp 0x2
/openprom/trace
/openprom/trace/dump-device-tree 0x1
/openprom/options
/openprom/options/oea-memory-size 0x400000
/openprom/options/oea-interrupt-prefix 0x0
/openprom/options/smp 0x1
/openprom/options/env "oea"
/openprom/options/os-emul "chirp"
/openprom/options/strict-alignment? false
/openprom/options/floating-point? true
/openprom/options/use-stdio? true
/openprom/options/model "604"
/openprom/options/model-issue 0xffffffff
/openprom/pal
/memory@0
/memory@0/reg 0 0x400000
/memory@0/available 0x3000 0x3fd000


--------------010203020306010405080100--