Re: Cannot boot FreeBSD kernel with etherboot
On Tue, Mar 04, 2003 at 02:38:29PM +0100, Heinrich Rebehn wrote: > Heinrich Rebehn wrote: > >Hi list, > > > >trying to boot a FreeBSD kernel with etherboot 5.0.6 results in: > > > >... > >Loading 134.102.176.16:/tftpboot/bsd-diskless ...(ELF)... segment does > >not fit in any memory region > > > >What does this mean? I'm not sure exactly what the message means, but I've had the same problem recently. It appears to be related to the network card - not the boot ROM. I have one diskless machine up and running - booting from a ROM on an Intel Pro100. I have another Intel Pro100 with a built-on ROM chip. Now, my known good machine will not boot with this second card. I get the same error as you about "segment...memory region". Both of the cards have the _exact_ same image loaded - by the way, neither of them have the -DIMAGE_FREEBSD option set. So apparently the -DIMAGE_FREEBSD option is not necessary, as I daily boot and use a machine from a ROM image that does not have this feature. Also, I have been getting my ROM images from http://rom-o-matic.org. I find it very convenient and altogether easier than using the ports version, not to mention that the version is newer. Anyway, my experiments seem to point to the fact that it has something to do with the card, not the image or the machine itself. I have two machines with which to test. Both machines boot fine with one card, and both machines fail with the second card, giving the same error you mention above. However, I could be way off base, and I'm definitely going to try loading an image with the -DIMAGE_FREEBSD option set onto the problem card and see what happens. > > > >The kernel is 2390599 bytes. Did i hit a size limitation? > >I am attaching the Etherboot Config file. > > I have found the solution myself, i forgot "-DIMAGE_FREEBSD", in fact i > thought i set it at my 2nd try, but on the 2nd try, i had the floppy write > protected, which i didn't notice.. :-( > > Now the kernel gets loaded, last output from etherboot is "done" > and then the system reboots.. :-( This is probably not a ROM issue, but instead a problem with the kernel you compiled. Make sure that you have set the machine type correctly your kernel config file. Also, and this one got me, make sure that you set the appropirate CPUTYPE in your /etc/make.conf file. For the longest time I had your exact problem - the kernel would load and then the machine would immediately reboot. I beat my head on the wall for quite some time before I realized that my make.conf file was set to build for CPUTYPE=i686, but I was trying to boot the kernel on i586. As soon as I specified the correct the CPUTYPE all was well. I hope this helps, and I'll let you know if setting -DIMAGE_FREEBSD works for my problem card. > Heinrich -- GPG Public Key ID: 0x4250A04C gpg --keyserver pgp.mit.edu --recv-keys 4250A04C http://63.105.21.156/gpg_nkinkade_4250A04C.asc pgp0.pgp Description: PGP signature
Re: Cannot boot FreeBSD kernel with etherboot
Heinrich Rebehn wrote: Hi list, trying to boot a FreeBSD kernel with etherboot 5.0.6 results in: ... Loading 134.102.176.16:/tftpboot/bsd-diskless ...(ELF)... segment does not fit in any memory region What does this mean? The kernel is 2390599 bytes. Did i hit a size limitation? I am attaching the Etherboot Config file. I have found the solution myself, i forgot "-DIMAGE_FREEBSD", in fact i thought i set it at my 2nd try, but on the 2nd try, i had the floppy write protected, which i didn't notice.. :-( Now the kernel gets loaded, last output from etherboot is "done" and then the system reboots.. :-( Heinrich Thanks for any hints Heinrich # # Config for Etherboot/32 # # Do not delete the tag OptionDescription and /OptionDescription # It is used to automatically generate the documentation. # # # User interaction options: # # -DASK_BOOT=n # Ask "Boot from Network or from Local? " at startup, # timeout after n seconds (0 = no timeout); this # can be done in a more generic way by using the # IMAGE_MENU, but it requires that the "bootp" # server is accessible, even when booting locally. # If unset, boot immediately using the default. # -DANS_DEFAULT=ANS_NETWORK # Assume Network to previous question # (alternative: ANS_LOCAL) on timeout or Return key # See etherboot.h for prompt and answer strings. # -DBAR_PROGRESS # Use rotating bar instead of sequential dots # to indicate an IP packet transmitted. # -DMOTD # Display message of the day; read vendortags.html # for further information. (Deprecated) # -DIMAGE_MENU # Allow to interactively chose between different # bootimages; read vendortags.html for further # information. (Deprecated) # -DPASSWD # Enable password protection for boot images; this # requires -DIMAGE_MENU. (Deprecated) # -DUSRPARMS # Allow the user to interactively edit parameters # that are passed to the booted kernel; you should # probably enable -DPASSWD as well; this feature # requires -DIMAGE_MENU. (Deprecated) # -DANSIESC # Evaluate a subset of common ANSI escape sequences # when displaying the message of the day; this # probably does not make sense unless you also # define -DMOTD or at least -DIMAGE_MENU. It is # possible to combine this option with -DCONSOLE_DUAL, # but you have to be aware that the boot menu will # no longer use ANSI escapes to be compatible with the # serial console. Also be careful with your banners, as # they may confuse your serial console. Generally you # lose most of the ANSIESC functionality. (Deprecated) # -DGFX # Support extensions to the ANSI escape sequences for # displaying graphics (icons or logos); this # requires -DANSIESC. It probably does not make sense # to use -DGFX if you have -DCONSOLE_DUAL, as the # serial console normally cannot handle the GFX stuff. # (Deprecated) # -DSHOW_NUMERIC # Display menu item labels as numbers. # -DDELIMITERLINES # Print a line of = characters at the start # and also just before starting an image. # -DSIZEINDICATOR # Update a running total of the amount of code # loaded so far, in kilobytes. # # Boot autoconfiguration protocol options: # # -DNO_DHCP_SUPPORT # Use BOOTP instead of DHCP. # -DRARP_NOT_BOOTP # Use RARP instead of BOOTP/DHCP. # -DREQUIRE_VCI_ETHERBOOT # Require an encapsulated Vendor Class Identifier # of "Etherboot" in the DHCP reply # Requires DHCP support. # -DALLOW_ONLY_ENCAPSULATED # Ignore Etherboot-specific options that are not within # the Etherboot encapsulated options field. This option # should be enabled unless you have a legacy DHCP server # configuration from the bad old days before the use of # encapsulated Etherboot options. # # Boot tuning parameter
Cannot boot FreeBSD kernel
Hi list, trying to boot a FreeBSD kernel with etherboot 5.0.6 results in: ... Loading 134.102.176.16:/tftpboot/bsd-diskless ...(ELF)... segment does not fit in any memory region What does this mean? The kernel is 2390599 bytes. Did i hit a size limitation? I am attaching the Etherboot Config file. Thanks for any hints Heinrich -- Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - E-mail: mailto:[EMAIL PROTECTED] Phone : +49/421/218-4664 Fax :-3341 # # Config for Etherboot/32 # # Do not delete the tag OptionDescription and /OptionDescription # It is used to automatically generate the documentation. # # # User interaction options: # # -DASK_BOOT=n # Ask "Boot from Network or from Local? " at startup, # timeout after n seconds (0 = no timeout); this # can be done in a more generic way by using the # IMAGE_MENU, but it requires that the "bootp" # server is accessible, even when booting locally. # If unset, boot immediately using the default. # -DANS_DEFAULT=ANS_NETWORK # Assume Network to previous question # (alternative: ANS_LOCAL) on timeout or Return key # See etherboot.h for prompt and answer strings. # -DBAR_PROGRESS # Use rotating bar instead of sequential dots # to indicate an IP packet transmitted. # -DMOTD # Display message of the day; read vendortags.html # for further information. (Deprecated) # -DIMAGE_MENU # Allow to interactively chose between different # bootimages; read vendortags.html for further # information. (Deprecated) # -DPASSWD # Enable password protection for boot images; this # requires -DIMAGE_MENU. (Deprecated) # -DUSRPARMS # Allow the user to interactively edit parameters # that are passed to the booted kernel; you should # probably enable -DPASSWD as well; this feature # requires -DIMAGE_MENU. (Deprecated) # -DANSIESC # Evaluate a subset of common ANSI escape sequences # when displaying the message of the day; this # probably does not make sense unless you also # define -DMOTD or at least -DIMAGE_MENU. It is # possible to combine this option with -DCONSOLE_DUAL, # but you have to be aware that the boot menu will # no longer use ANSI escapes to be compatible with the # serial console. Also be careful with your banners, as # they may confuse your serial console. Generally you # lose most of the ANSIESC functionality. (Deprecated) # -DGFX # Support extensions to the ANSI escape sequences for # displaying graphics (icons or logos); this # requires -DANSIESC. It probably does not make sense # to use -DGFX if you have -DCONSOLE_DUAL, as the # serial console normally cannot handle the GFX stuff. # (Deprecated) # -DSHOW_NUMERIC # Display menu item labels as numbers. # -DDELIMITERLINES # Print a line of = characters at the start # and also just before starting an image. # -DSIZEINDICATOR # Update a running total of the amount of code # loaded so far, in kilobytes. # # Boot autoconfiguration protocol options: # # -DNO_DHCP_SUPPORT # Use BOOTP instead of DHCP. # -DRARP_NOT_BOOTP # Use RARP instead of BOOTP/DHCP. # -DREQUIRE_VCI_ETHERBOOT # Require an encapsulated Vendor Class Identifier # of "Etherboot" in the DHCP reply # Requires DHCP support. # -DALLOW_ONLY_ENCAPSULATED # Ignore Etherboot-specific options that are not within # the Etherboot encapsulated options field. This option # should be enabled unless you have a legacy DHCP server # configuration from the bad old days before the use of # encapsulated Etherboot options. # # Boot tuning parameters: # # -DCONGESTED # Turns on packet retransmission. Use it on a # congested network, where the normal operation # can't b