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, 22:21
Post: #4
RE: Building ipxe with embedded script results in invalid image
(2016-02-16 13:13)testcs Wrote:  LABEL ipxe_aoe
MENU LABEL iPXE - Boot 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 http://ipxe.org/embed refer to grub but I don't have/use grub - I don't even have a disk.

Assuming that "Invalid or corrupt kernel image." is from PXELinux ...

I have seen that newer versions of PXELinux/Syslinux with config option KERNEL expects a linux kernel and not a PXE binary, you could try to swap out kernel to PXE instead.

An alternative could be to build bin/ipxe.lkrn which is a linux kernel, the difference is that it uses native ipxe drivers (which in most cases have better performance) instead of the PXE UNDI stack driver (which should always work) The possible downside with ipxe.lkrn being that it can't fallback to the UNDI PXE stack if no native ipxe driver is found.

I have a hard time believing that it works if you build bin/undionly.kpxe without EMBED=... while building with EMBED don't please double check that the files are the same on the server as from your build and that you everything else is the same. For example if it is an old undionly.kpxe it might actually be a renamed ipxe.lkrn.

Use GitHub Discussions
VRAM bin
Visit this user's website 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 - NiKiZe - 2016-02-16 22:21



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