Port-ibmnws archive

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

ibmnws boot failure



The NetBSD/ibmnws port seems to be broken for 7.0 and -current, the
firmware generates a "Address out of range. File is bad or too large
for installed memory." error when trying to load a kernel, -6.1.5
boots fine.

There are different numbers of ELF sections in the kernels and an
extra program header in the broken one.

I have traced through the ncdcs utility and it still seems to be
calculating the checksum for the correct sections.

Also tried adding the second program header to the checksum calculation
but get same error.

Section headers:

% powerpc--netbsd-objdump -h netbsd-GENERIC-6.1.5 

netbsd-GENERIC-6.1.5:     file format elf32-powerpc

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         001d765c  00100000  00100000  00000080  2**4
                  CONTENTS, ALLOC, LOAD, CODE
  1 .rodata       00041dec  002d7660  002d7660  001d76e0  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 link_set_modules 00000054  0031944c  0031944c  002194cc  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 link_set_bufq_strats 0000000c  003194a0  003194a0  00219520  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 link_set_sysctl_funcs 00000038  003194ac  003194ac  0021952c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 link_set_dkwedge_methods 00000004  003194e4  003194e4  00219564  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 link_set_malloc_types 00000080  003194e8  003194e8  00219568  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 link_set_evcnts 00000028  00319568  00319568  002195e8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 link_set_domains 0000001c  00319590  00319590  00219610  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 link_set_prop_linkpools 00000020  003195ac  003195ac  0021962c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 10 .data         00209004  003195e0  003195e0  00219660  2**5
                  CONTENTS, ALLOC, LOAD, DATA
 11 .data.cacheline_aligned 000019c4  00522600  00522600  00422680  2**6
                  CONTENTS, ALLOC, LOAD, DATA
 12 .data.read_mostly 00000118  00523fe0  00523fe0  00424060  2**2
                  CONTENTS, ALLOC, LOAD, DATA
 13 .sbss         00000478  00524100  00524100  00424178  2**3
                  ALLOC
 14 .bss          0001daa0  00524580  00524580  00424178  2**6
                  ALLOC
 15 .gnu.attributes 00000014  00000000  00000000  00424178  2**0
                  CONTENTS, READONLY
 16 .note.netbsd.ident 00000018  00000000  00000000  0042418c  2**2
                  CONTENTS, READONLY

% powerpc--netbsd-objdump -h netbsd-GENERIC-7.0 

netbsd-GENERIC-7.0:     file format elf32-powerpc

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         001dbba4  00100000  00100000  00000080  2**4
                  CONTENTS, ALLOC, LOAD, CODE
  1 .rodata       00047d47  002dbba8  002dbba8  001dbc28  2**3
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  2 link_set_modules 00000058  003238f0  003238f0  00223970  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 link_set_bufq_strats 0000000c  0036dadc  0036dadc  0026db5c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 link_set_sysctl_funcs 0000004c  0036dae8  0036dae8  0026db68  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 link_set_dkwedge_methods 00000004  0036db34  0036db34  0026dbb4  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 link_set_evcnts 00000024  0036db38  0036db38  0026dbb8  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  7 link_set_domains 00000020  0036db5c  0036db5c  0026dbdc  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  8 link_set_prop_linkpools 00000020  0036db7c  0036db7c  0026dbfc  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  9 .data         0020a254  0036dbc0  0036dbc0  0026dc40  2**6
                  CONTENTS, ALLOC, LOAD, DATA
 10 .bss          0001f468  00577e40  00577e40  00477e94  2**6
                  ALLOC
 11 .note.netbsd.ident 00000018  00000000  00000000  00477e94  2**2
                  CONTENTS, READONLY
 12 .gnu.attributes 00000010  00000000  00000000  00477eac  2**0
                  CONTENTS, READONLY

The program headers are:

% powerpc--netbsd-objdump -p netbsd-GENERIC-6.1.5 

netbsd-GENERIC-6.1.5:     file format elf32-powerpc

Program Header:
    LOAD off    0x00000080 vaddr 0x00100000 paddr 0x00100000 align 2**6
         filesz 0x004240f8 memsz 0x00442020 flags rwx


% powerpc--netbsd-objdump -p netbsd-GENERIC-7.0 

netbsd-GENERIC-7.0:     file format elf32-powerpc

Program Header:
    LOAD off    0x00000080 vaddr 0x00100000 paddr 0x00100000 align 2**6
         filesz 0x00477e14 memsz 0x004972a8 flags rwx
   STACK off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
         filesz 0x00000000 memsz 0x00000000 flags rwx

Robert Swindells


Home | Main Index | Thread Index | Old Index