Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sanboot 0x80 (local) on EFI
2018-02-13, 16:20
Post: #3
RE: Sanboot 0x80 (local) on EFI
(2018-02-13 06:35)NiKiZe Wrote:  If your machine has 64bit efi firmware then you won't be able to boot a 32bit version of ipxe efi

So first make sure that you are referring to the correct ipxe binary and mode as to not confuse this further.

If you are using a pcbios build of ipxe then filename will do nothing.
That sanboot command will boot the first "EFI disk" with the filename you provide, so using exit 1 would do that for most cases when the disk is next in boot order. One step in trying to figure out how your system maps things would be to use a efi shell.

Also, always read and post the ipxe.org error urls. http://ipxe.org/err/2c2220 have 2 possible sources in the code, either no network device is open, or it simply can't find the disk. So make sure you have ifopen or dhcp before sanboot, and if that fails build ipxe with DEBUG=efi_block to get more details on what it fails on...
For reference commit where the --filename was implemented: https://git.ipxe.org/ipxe.git/commitdiff...e4b58cacc8

iPXE is a network boot program, not local disk boot program so booting from disk is not the intended use.

Thanks, NiKiZe
So to clear things up, I'd tried the following:
32-Bit BIOS (Since it's the default build.)
64-Bit BIOS (I built this third just to try it, not expecting it to work.)
64-Bit EFI (My original intention, this I'd expect to work)

The 64-Bit EFI build is the build that is not seeing a SAN device 0x80. I'd guess the other two just can't boot because they don't know what to boot without specifying the .efi file, which of course doesn't work for BIOS mode.

The issue with using exit 1 for me is that I need to specify which .efi file in the efi partition to boot. (There's one to load Linux and one to load Windows) I'd like to send a script over the network which will specify either .efi file depending on needs. But I do understand booting locally might be a bit clunky as it seems more to be a byproduct than an implemented feature given the intended nature of the software.

Per your comment about how the system maps things, do you mean directory structure or something else? I know where in the efi partition the .efi files are located and I know that the efi partition is located on fs0. (And I've booted the two files from the efi shell previously)

As far as not finding the disk versus networks, I'm pretty sure I had a network connection when I tried running this command, but I can go and double check later. (There's a tiny chance I had the cable unplugged in all cases, but I doubt it.) In either case, I wouldn't expect that to matter, but then I don't claim to be an expert on this software. I know I've managed to successfully download from a host using iPXE, which is good. As far as not finding the disk, that I'd expect would be an issue.

I'll try the debug build when I have a chance today. (As well as ensure I have the network connected) I'll update with anything I find. Thank you again!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Sanboot 0x80 (local) on EFI - PMiller96 - 2018-02-13 16:20



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