Current-Users archive

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

Re: amd64 kernel doesn't boot

On Fri, Oct 02, 2009 at 08:34:49AM +0100, Nick Hudson wrote:
> You didn't post the link line which I suspect doesn't include -z 
> maxpagesize=0x100000. I think, if you delete the objdir Makefile it should 
> get re-created and include the EXTRA_LINKFLAGS option.

Same symptoms here with ...

>> NetBSD/x86 BIOS Boot, Revision 5.3 (from NetBSD 5.99.7)
>> Memory: 637/2096064 k
Press return to boot now, any other key for boot menu
booting hd0a:netbsd - starting in 0 

The kernel link do indeed has the maxpagesize option :

#      link  LANFEUST/netbsd
/local/src/NetBSD/tool/bin/x86_64--netbsd-ld -Map --cref -T 
/local/src/NetBSD/src/sys/arch/amd64/conf/kern.ldscript -Ttext 
0xffffffff80100000 -e start -z maxpagesize=0x100000 -X -o netbsd ${SYSTEM_OBJ} 
${EXTRA_OBJ} vers.o
NetBSD 5.99.19 (LANFEUST) #0: Fri Oct  2 11:00:19 CEST 2009
   text    data     bss     dec     hex filename
10958724         556416  722816 12237956         babc84 netbsd
mv -f netbsd netbsd.gdb
/local/src/NetBSD/tool/bin/x86_64--netbsd-strip -g -o netbsd

njoly@lanfeust [~]> readelf -l /netbsd

Elf file type is EXEC (Executable file)
Entry point 0xffffffff80100000
There are 2 program headers, starting at offset 64

Program Headers:
  Type           Offset             VirtAddr           PhysAddr
                 FileSiz            MemSiz              Flags  Align
  LOAD           0x0000000000000000 0xffffffff80000000 0xffffffff80000000
                 0x0000000000b73790 0x0000000000b73790  R E    200000
  LOAD           0x0000000000c74000 0xffffffff80c74000 0xffffffff80c74000
                 0x0000000000087d80 0x0000000000138780  RW     200000

 Section to Segment mapping:
  Segment Sections...
   00     .text .rodata .eh_frame link_set_malloc_types link_set_modules 
link_set_sysctl_funcs link_set_ah_rfs link_set_ah_chips link_set_domains 
link_set_bufq_strats link_set_evcnts link_set_dkwedge_methods 
link_set_ieee80211_funcs link_set_prop_linkpools 
   01     .data .bss 

Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.

Home | Main Index | Thread Index | Old Index