* Parag Patel parag@codegen.com [060606 04:02]:
bootpath: data fault: pc=0xf02a4f3c addr=0x7ff000 sfsr=126<PERR=0,LVL=1,AT=1,FT=1,FAV,OW> panic: kernel fault halted
It's been quite a while since I last played with NetBSD and OF. The last was with a PowerPC board. As I recall, NetBSD makes heavy use of the client-interface callbacks to get some important info.
This part seems very different on Sparc32. I did not know some weeks ago, but OpenBoot until very late versions does not use the client interface but a data structure called "romvec" (arch/sparc32/romvec.c) that contains several data pointers and callbacks to different OF functionsThis part seems very different on Sparc32. I did not know some weeks ago, but OpenBoot until very late versions does not use the client interface but a data structure called "romvec" (arch/sparc32/romvec.c) that contains several data pointers and callbacks to different OF functions..
One of my tricks with SmartFirmware was to load the entire NetBSD kernel (builtin ELF loader), turn on tracing, then try to boot. Any callbacks etc would nicely print out as they were executed, so it was a lot easier to see at which point it was failing.
Interesting. Loading the kernel at once. The ELF kernel loads fine, but the CD comes with an a.out kernel that has a wrong "text" size and no data size. Since it loads directly from the CD device as opposed to from a filesystem I have no idea how much data to load and how to parse it. :-(
Loaded 8388615(0x30800007) bytes entry point is 0x4000 Jumping to entry point... Unhandled Exception 0x00000002 PC = 0x00000000 NPC = 0x00000004 Stopping execution
This sure looks like it's trying to jump through a NULL pointer.
http://mail-index.netbsd.org/port-sparc/2000/09/12/0000.html
due to some compatibility NetBSD provides a faked a.out header that contains valid opcodes.
Booting Solaris was a whole new level of pain. A lot of Sun's intermediate boot-loaders made heinous use of Forth and required all sorts of Sun-specific hacks to get them to run.
Does a version of Smart Firmware boot Solaris on Sparc? Any chance there's some hint?
Stefan