[syslinux] Booting FreeBSD

Gene Cumm gene.cumm at gmail.com
Thu Aug 1 02:43:30 PDT 2013


On Wed, Jul 31, 2013 at 7:40 PM, Daniel O'Connor <doconnor at gsoft.com.au> wrote:
>
> On 01/08/2013, at 24:37, Gene Cumm <gene.cumm at gmail.com> wrote:
>> The Perl version should also be in the source tree
>> (utils/isohybrid.in) and built in the archives (util/isohybrid.pl)
>> which I'd recommend using everything from the 6.01 binary/source
>> archive.
>
> I am having trouble building it because other parts of syslinux refuse to build on FreeBSD and just going into utils and running make doesnt work :(
>
> [build92 23:38] /tmp/syslinux-6.01 #gmake -C utils isohybrid.pl
> gmake: Entering directory `/local0/tmp/syslinux-6.01/utils'
> Makefile:18: /syslinux.mk: No such file or directory
> gmake: *** No rule to make target `/syslinux.mk'.  Stop.
> gmake: Leaving directory `/local0/tmp/syslinux-6.01/utils'
>
> (ie MAKEDIR is unset)

It's a binary/source archive.  You don't need make.  Use
bios/utils/isohybrid.pl as-is.

>>> Syslinux loads & runs fine (indeed I can use it to run cdboot.bin and that actually runs FreeBSD if I am on a CD but it does not grok HD booting) however mboot does not like /boot/kernel/kernel. I get..
>>> "Invalid Multiboot image: neither ELF header nor a.out kludge found"
>>
>> http://www.syslinux.org/wiki/index.php/Mboot.c32#FreeBSD_example
>>
>> The error is perfect: You're attempting to load a file that isn't in
>> the right format.
>
> Can you elaborate?
> /boot/kernel/kernel is my kernel..
> [build92 23:40] ~ #file /boot/kernel/kernel
> /boot/kernel/kernel: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped
> [build92 23:40] ~ #ls -la /boot/kernel/kernel
> -r-xr-xr-x  1 root  wheel  20730068 Jul 21 13:41 /boot/kernel/kernel*

$ file esxi510/TBOOT.B00
esxi510/TBOOT.B00: gzip compressed data, from Unix, last modified: Tue
Mar 13 21:16:55 2012, max compression
$ file esxi410/tboot.gz
esxi410/tboot.gz: gzip compressed data, from Unix, last modified: Tue
Dec 21 20:20:30 2010, max compression

after decompression:
$ file TBOOT.B00
TBOOT.B00: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
statically linked, stripped
$ file tboot
tboot: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
statically linked, stripped

Tried the 32 bit kernel for testing?  I'll spin up a few tests shortly.

-- 
-Gene


More information about the Syslinux mailing list