NetBSD-Bugs archive

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

Re: port-mac68k/50435: "BSD/Mac68k Booter" can't boot cross-compiled kernels from the NetBSD root partition.



The following reply was made to PR port-mac68k/50435; it has been noted by GNATS.

From: Mac User <userm57%yahoo.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Martin Husemann <martin%duskware.de@localhost>, 
 port-mac68k-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
 netbsd-bugs%netbsd.org@localhost
Subject: Re: port-mac68k/50435: "BSD/Mac68k Booter" can't boot cross-compiled
 kernels from the NetBSD root partition.
Date: Mon, 16 Nov 2015 10:10:25 -0700

 > From: Martin Husemann <martin%duskware.de@localhost>
 > ...
 >  Can you please show the output of the following commands (on NetBSD) with the
 >  kernel file you can not boot (substitute the proper file name for /netbsd):
 >  
 >  	file /netbsd
 >  	readelf -l /netbsd
 >  	readelf -h /netbsd
 >  
 >  Thanks!
 >  
 >  Martin
 >  
 
 1) *** Cross-compiled kernel ***
 
 # ls -l /netbsd.new
 -rwxr-xr-x  1 root  wheel  2190185 Nov 16 09:52 /netbsd.new
 
 # file /netbsd.new
 /netbsd.new: ELF 32-bit MSB executable, Motorola m68k, 68020, version 1
 (SYSV), statically linked, for NetBSD 7.0, not stripped
 
 # readelf -l /netbsd.new
 
 Elf file type is EXEC (Executable file)
 Entry point 0x2e00
 There are 1 program headers, starting at offset 52
 
 Program Header:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
   LOAD           0x000080 0x00000000 0x00000000 0x1a0054 0x1b30c0 RWE 0x40
 
  Section to Segment mapping:
   Segment Sections...
    00     .text .rodata link_set_bufq_strats link_set_modules
 link_set_dkwedge_methods link_set_evcnts link_set_sysctl_funcs
 link_set_domains link_set_prop_linkpools .eh_frame .data .bss
 
 # readelf -h /netbsd.new
 ELF Header:
   Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
   Class:                             ELF32
   Data:                              2's complement, big endian
   Version:                           1 (current)
   OS/ABI:                            UNIX - System V
   ABI Version:                       0
   Type:                              EXEC (Executable file)
   Machine:                           MC68000
   Version:                           0x1
   Entry point address:               0x2e00
   Start of program headers:          52 (bytes into file)
   Start of section headers:          1732408 (bytes into file)
   Flags:                             0x0
   Size of this header:               52 (bytes)
   Size of program headers:           32 (bytes)
   Number of program headers:         1
   Size of section headers:           40 (bytes)
   Number of section headers:         19
   Section header string table index: 16
 
 2) *** Locally-compiled (Mac LC III) kernel (currently running) ***
 
 # ls -l /netbsd
 -rwxr-xr-x  1 root  wheel  2190082 Nov 10 03:37 /netbsd
 
 # file /netbsd
 /netbsd: ELF 32-bit MSB executable, Motorola m68k, 68020, version 1
 (SYSV), statically linked, for NetBSD 7.0, not stripped
 
 # readelf -l /netbsd
 
 Elf file type is EXEC (Executable file)
 Entry point 0x2e00
 There are 1 program headers, starting at offset 52
 
 Program Header:
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
   LOAD           0x000080 0x00000000 0x00000000 0x1a0054 0x1b30c0 RWE 0x40
 
  Section to Segment mapping:
   Segment Sections...
    00     .text .rodata link_set_bufq_strats link_set_modules
 link_set_dkwedge_methods link_set_evcnts link_set_sysctl_funcs
 link_set_domains link_set_prop_linkpools .eh_frame .data .bss
 
 # readelf -h /netbsd
 ELF Header:
   Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
   Class:                             ELF32
   Data:                              2's complement, big endian
   Version:                           1 (current)
   OS/ABI:                            UNIX - System V
   ABI Version:                       0
   Type:                              EXEC (Executable file)
   Machine:                           MC68000
   Version:                           0x1
   Entry point address:               0x2e00
   Start of program headers:          52 (bytes into file)
   Start of section headers:          1732412 (bytes into file)
   Flags:                             0x0
   Size of this header:               52 (bytes)
   Size of program headers:           32 (bytes)
   Number of program headers:         1
   Size of section headers:           40 (bytes)
   Number of section headers:         19
   Section header string table index: 16
 
 Note: This is the error reported by "BSD/Mac68k Booter" for /netbsd.new
 (earlier I thought the error was something to the effect that the file
 was in a format that the BSD/Mac68k Booter couldn't execute):
 
 Booting...
 transparent = 1
 Huh????
 
 Boot error: Failed to read header from kernel image - read 0 bytes.
 
 *********** Boot Stopped. ***********
 Boot error: kernel_parse(COUNT_KERNEL) failed
 
 *********** Boot Stopped. ***********
 



Home | Main Index | Thread Index | Old Index