[OpenBIOS] Booting SunOS from OpenBIOS
Artyom Tarasenko
atar4qemu at gmail.com
Tue Mar 26 20:28:58 CET 2013
On Tue, Mar 26, 2013 at 5:12 PM, Tarl Neustaedter <tarl-b2 at tarl.net> wrote:
> On 2013-Mar-26 04:33 , Artyom Tarasenko wrote:
>>
>> Not a bootable ELF image
>> Loading a.out image...
>> Loaded 7680 bytes
>> entry point is 0x4000
>> bootpath: /iommu/sbus/espdma/esp/sd at 0,0
>>
>> Jumping to entry point 00004000 for type 00000005...
>> switching to new context:
>> Unhandled Exception 0x00000007
>> PC = 0x00401a04 NPC = 0x00401a08
>> Stopping execution
>>
>>
>> Is the OpenBIOS guess correct and SunOS 4.x actually does have an a.out
>> loader?
>
>
> It shouldn't be a.out. The bootloader (on blocks 1-15) of a Solaris disk is
> an fcode file (compiled forth).
>
That would explain it, but are you sure that was already so in the
SunOS 4.x times?
$ dd if=sunos.img of=sunos4.bb bs=512 skip=1 count=15
15+0 records in
15+0 records out
7680 bytes (7.7 kB) copied, 6.3956e-05 s, 120 MB/s
$ file sunos4.bb
sunos4.bb: sparc executable not stripped
$ sparc64-linux-gnu-objdump -x sunos4.bb
sunos4.bb: file format a.out-sunos-big
sunos4.bb
architecture: sparc, flags 0x0000003e:
EXEC_P, HAS_LINENO, HAS_DEBUG, HAS_SYMS, HAS_LOCALS
start address 0x00440000
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00001a58 00000000 00000000 00000020 2**3
CONTENTS, ALLOC, LOAD, CODE
1 .data 00000310 00001a58 00001a58 00001a78 2**3
CONTENTS, ALLOC, LOAD, DATA
2 .bss 0000c588 00001d68 00001d68 00000000 2**3
ALLOC
sparc64-linux-gnu-objdump: sunos4.bb: File truncated
--
Regards,
Artyom Tarasenko
linux/sparc and solaris/sparc under qemu blog:
http://tyom.blogspot.com/search/label/qemu
More information about the OpenBIOS
mailing list