From owner-freebsd-sparc Tue Jan 26 21:47:42 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA00785 for freebsd-sparc-outgoing; Tue, 26 Jan 1999 21:47:42 -0800 (PST) (envelope-from owner-freebsd-sparc@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA00776 for ; Tue, 26 Jan 1999 21:47:39 -0800 (PST) (envelope-from bright@hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.9.1) with ESMTP id AAA80698; Wed, 27 Jan 1999 00:54:13 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Wed, 27 Jan 1999 00:54:13 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: Kapil Chowksey cc: sparc@FreeBSD.ORG Subject: Re: Need sparc openboot reference In-Reply-To: <13992.13527.799936.556898@elbereth.hss.hns.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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