Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 1999 00:54:13 -0500 (EST)
From:      Alfred Perlstein <bright@hotjobs.com>
To:        Kapil Chowksey <kchowksey@hss.hns.com>
Cc:        sparc@FreeBSD.ORG
Subject:   Re: Need sparc openboot reference
Message-ID:  <Pine.BSF.4.05.9901270035180.55154-100000@bright.fx.genx.net>
In-Reply-To: <13992.13527.799936.556898@elbereth.hss.hns.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Jan 1999, Kapil Chowksey wrote:

> On Friday, 22 January, Alfred Perlstein wrote:
> 
> > Searching through http://docs.sun.com i'm having a hard time finding a
> > reference on how to interact with the sparc 'BIOS'.
> > 
> > can anyone give me a url (specific) or recommend a book that details this?
> 
> I recommend buying `Writing Open Firmware Client Programs' from
> http://www.firmworks.com
> 
> Easier is to look at /usr/include/sys/openprom.h on your Solaris
> machine.

got the books.

> > since i have a 170/e and not a regular 170 (usparc) it's not booting
> > netbsd correctly, i need to find out why.  I am looking at netbsd/linux
> 
> The reason for that is the `zs' chip is not being mapped at boot time
> by your PROM. You can workaround this by using `iomap' family of Forth
> commands before you boot.

i have to read more about this, however:

ok cd zs
Device not found
ok cd ttya
ok cd ..
ok ls
f0078d08 SUNW,bpp@e,c800000
f00712b8 SUNW,hme@e,8c00000
f006acdc SUNW,fas@e,8800000
f005d388 SUNW,pll@f,1304000
f005d2d4 sc@f,1300000
f005b8b8 zs@f,1000000
f005a418 zs@f,1100000
f005a364 eeprom@f,1200000
f005a230 SUNW,fdtwo@f,1400000
f005a168 flashprom@f,0
f005a0d8 auxio@f,1900000
f0059fcc SUNW,CS4231@d,c000000
ok ttya io
ok cd /sbus@1f,0/zs@f,1000000
ok ls
ok .properties
reg                      0000000f 01000000 00000004
interrupts               00000028
port-b-ignore-cd
port-a-ignore-cd
keyboard
device_type              serial
name                     zs
ok iomap /sbus@1f,0/zs@f,1000000
iomap ?
ok iomap? /sbus@1f,0/zs@f,1000000
VA: 1 invalid
/sbus@1f,0/zs@f,1000000 ?
Stack Underflow
ok setenv output-device ttya
output-device =       ttya
ok boot disk1 ofwboot -- -asv
Boot device: /sbus/SUNW,fas@e,8800000/sd@1,0  File and args: ofwboot --
-asv
NetBSD IEEE 1275 Bootblock
..>> NetBSD/sparc64 OpenFirmware Boot, Revision
>> (eeh@nonplus.one-o.com, Sat Nov 28 17:07:35 PST 1998)
Boot: netbsd.64 -asvh
You said netbsd.64 -asvh
parseargs says you said netbsd.64
devopen: getdisklabel sez no disk label
main: Calling loadfile(fd, /sbus@1f,0/SUNW,fas@e,8800000/sd@1,0/netbsd.64
-as)
loadfile: reading header
elf64_exec: Booting /sbus@1f,0/SUNW,fas@e,8800000/sd@1,0/netbsd.64
reading 1 program headers
reading phdr 0 at 40
lseek sez: 40
reading phdr worked, type 1 flags 7
2082128@0xf8000000+391696@0xf81fc550
symbols @ 0xfff362c0 71+162000+78494 start=0xf8000000
chain: calling OF_chain(100000, ba78, f8000000, fffb5a80, 18)
OF_chain: prom returned!
[ preserving 241272 bytes of netbsd ELF symbol table ]
Failed to map msgbuf
Fast Data Access MMU Miss
ok         

grrrrrr!!!

i can't seem to grok the 'iomap?' idea, any pointers?

Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com
-- There are operating systems, and then there's FreeBSD.
-- http://www.freebsd.org/                        4.0-current


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9901270035180.55154-100000>