Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building ipxe with embedded script results in invalid image
2016-02-16, 13:13
Post: #3
RE: Building ipxe with embedded script results in invalid image

Yes you are right I actually ran
make bin/undionly.kpxe EMBED=myscript.ipxe

me@darkstar:/install/ipxe# make bin/undionly.kpxe EMBED=myscript.ipxe
[DEPS] crypto/privkey.c
[DEPS] crypto/certstore.c
[DEPS] image/embedded.c
[BUILD] bin/__umoddi3.o
[BUILD] bin/__udivdi3.o
[BUILD] bin/__moddi3.o
[BUILD] bin/memcpy.o
[BUILD] bin/icc.o
[BUILD] bin/__divdi3.o
[BUILD] bin/__udivmoddi4.o
[BUILD] bin/init.o
[BUILD] bin/uart.o
[BUILD] bin/null_reboot.o
[BUILD] bin/lineconsole.o
[BUILD] bin/base64.o
[BUILD] bin/console.o
[BUILD] bin/pool.o
[BUILD] bin/getopt.o
[BUILD] bin/device.o
[BUILD] bin/ehci.ids.o
[BUILD] bin/hvm.ids.o
[BUILD] bin/undi.ids.o
[AR] bin/blib.a
ar: creating bin/blib.a
[HOSTCC] util/zbin
[VERSION] bin/version.undionly.kpxe.o
[LD] bin/undionly.kpxe.tmp
[BIN] bin/undionly.kpxe.bin
[ZINFO] bin/undionly.kpxe.zinfo
[ZBIN] bin/undionly.kpxe.zbin
[FINISH] bin/undionly.kpxe
rm bin/undionly.kpxe.bin bin/version.undionly.kpxe.o bin/undionly.kpxe.zinfo bin/undionly.kpxe.zbin

Copied the bin/undionly.kpxe to my /tftpboot/ipxe directory
The /tftpboot/pxelinux.cfg/default file looks like this:

DEFAULT menu.c32

LABEL ipxe_aoe
KERNEL ipxe/undionly.kpxe

After all this I still get following error message:

Invalid or corrupt kernel image.

What I'm trying to do is to directly boot my diskless laptop over the network (pxe) then load ipxe which executes the needed commands to boot over aoe.

If i build the undionly.kpxe without the embedded option that file works fine (no invalid kernel message). Of course in this case I have to use Ctrl+B and type in the needed commands.

Also the other two methods shown in refer to grub but I don't have/use grub - I don't even have a disk.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: Building ipxe with embedded script results in invalid image - testcs - 2016-02-16 13:13

User(s) browsing this thread: 1 Guest(s)