Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Anita now supports sparc



On Mon, Aug 30, 2010 at 20:28:21 +0300, Andreas Gustafsson wrote:

> Anita successfully installs NetBSD/sparc 4.0.1 and 5.0.2, but
> attempting to install -current results in an "Unhandled Exception
> 0x00000009" early in the boot process.  It would be great if someone
> familiar with the sparc port could track down the cause of this and
> fix it so that anita could be used to run automated regression tests
> of the sparc port on a regular basis.

$ qemu-system-sparc -m 32 -nographic \
    -cdrom /usr/nb/release/iso/sparccd.iso \
    -boot d


It fails in inflate() called from sys/lib/libsa/loadfile_elf32.c:419

    nr = READ(fd, maxp, shp[elf->e_shstrndx].sh_size);

introduced in

revision 1.25
date: 2010/03/12 21:43:11;  author: darran;  state: Exp;  lines: +60 -4
DTrace: Add support for CTF sections in the netbsd elf image, load these
at boot.
Add a ksyms_mod_foreach() function to iterate a callback function over the
set of elf symbols for a specific module (netbsd included).
Add kern_ctf.c and mod_ctf_get() to allow the retrieval and decompression
of CTF sections for a specific module.

The failed read is to maxp=0xf030d71c size=252

If i disable boot_load_ctf, then the kernel loads and boot fine.

I guess qemu does something differently than real hw, since my
javastation can boot current ok.

I'm not sure I follow maxp dances that happen in loadfile_elf32(), but
I don't have time to look deeper now.

-uwe


Home | Main Index | Thread Index | Old Index