UEFI-PXE-Boot (Asus t100 Tablet)
-
@K-Hays You are welcome to get back to this anytime. I am definitely interested to see if we can figure this out. I’m sure we will at some point…
-
Ahem
There is a way to image these with fog.
Supposedly you should be able to just enable the network stack in bios and then if it’s a ethernet adapter that’s recognized you can set it as a boot option or select it by hitting esc to bring up the boot menu.
However since that didn’t work for me, I found a different method.
It’s a little bit abstract, but not too hard, I promise, give it a chance.What I used (I did 64 bit efi, substitute 32 bit versions of .efi files if you wanted to do 32 bit)
- A usb hub, any hub with 3 or more ports should do. I was using a powered usb 3 4 port hub.
- I used the startech USB210000S2 Usb ethernet adapter. It has the SMC LAN 7500 chipset, which is the important part
- 2 usb drives, no substantial size needed. (you may get away with one, but I used 2)
- On the first FAT32 formatted usb drive you just need a couple files in the root of the drive
-
- the efi driver for the usb (found at this link http://ww1.microchip.com/downloads/en//softwarelibrary/obj-lan95xx-uefi/lan95xx_7500_uefi_driver_0.5.zip, also attached 0_1479851633433_SmscUsbNetDriver.efi , also credit where credit is due, I discovered this file via this blog post http://www.johnwillis.com/2014/03/pxe-booting-using-usb-to-ethernet-dongle.html) (also I renamed this to usb.efi for simplicity later)
-
- ipxe.efi from your /tftpboot folder on your fog server, copy it off with your favorite ftp/scp client. (or just download the latest one straight from the fog project github https://github.com/FOGProject/fogproject/raw/dev-branch/packages/tftp/ipxe.efi)
-
- You can also put these files on the root of the C drive
- On the second flash drive
-
- create a refind efi bootable flash drive using a tool like rufus https://rufus.akeo.ie/downloads/ to put the USB flash drive image on a usb drive via dd that you get from here http://www.rodsbooks.com/refind/getting.html
-
- It makes a ~6MB partition that I’m not sure can be extended to fit the other files
Now plug the usb ethernet adapter, and the flash drives into the usb hub and plug the usb hub into the asus t100 usb port (well technically I have a T100H, but this method also worked on a Fusion5 chinese tablet, RCA Cambio tablet, and the atom and core M versions of the intel compute stick).
Now boot to the bios to make sure the secure boot setting is off and the network stack is enabled. It will probably work regardless of the network stack setting, but better safe than sorry. (Note: I always seem to have to hold shift and hit restart from windows to force it to boot to uefi firmware)
Save changes and exit and start tapping esc
tapping esc on boot should bring up a boot menu. Select the refind EFI usb drive.
On the ReFInd gui boot screen select one of the efi shell options.at the efi shell find which fs (file system) your efi files are on (the ones put on either the second flash drive or the C drive) by running these commands
fs0: ls
keep incrementing fs# (fs0: fs1: fs3: etc.) until you see your ipxe.efi and usb driver files.
When you find them run these two commands to start the pxe boot#replace usb.efi with whatever you named the driver file load usb.efi ipxe.efi
It should start at ipxe initializing devices
If you use the 32bit versions, don’t forget to set your kernel and init in the fog gui for that host.
Another caveat to this method is you have to remember to change the mac address from the usb ethernet adapter to the wifi mac of the device in the fog gui.Sure it’s not as smooth a system as wake on lan to network boot, but as daunting as it looks it all takes less than a minute to get it booted to pxe.
If you have problems with this, you may try setting a static ip address for your adapter in dhcp and make sure it’s pointed to fog. I have the uefi/bios coexistence setup with the policies found in the fog wiki in my windows dhcp and it works perfect.
If you read all that and think, that’s too much work for so many devices. Well than get a few of these usb setups. I used this method on about 30 intel compute sticks (didn’t require the refind usb, they have a built in efi shell) and it didn’t take all that long.
In theory, I imagine it’s possible to image these with wifi, but that’s a challenge for another day.
-
@JJ-Fullmer I really want to understand your post (but I traveling right now). I would recommend that you repost this as tutorial in the tutorial section. I would like for this information to not be mixed into a thread. Just skimming this I think there is an alternate way to do part. But this is a brilliant guide.
-
@george1421
Thank you good sir. I did a quick quote of the post and added it to the tutorial section to go back later and write it nicerI added a Too long; Didn’t Read at the top for a quick overview of what the guide is saying.
I’m sure there are very many alternatives and possibilities. I know of a few, but the overall idea is the same. I would love to hear any thoughts you have. Replied in the other post to let this one die of course.
-
@JJ-Fullmer Thank you for the reply! Even after it’s been so long haha. I’ve been meaning to come back to this but it isn’t necessary for me until a break when it’s time to maintenance these computers. I will definitely try this when the opportunity arises. I did try to PXE boot one the other day and noticed that it got further than it had during the time this post was made. It still did not work and I didn’t pursue it any further, but with your guide it seems hopeful! Thank you again!
-
So its been almost a year now, but as summer maintenance is coming back up, these tablets are in question again. I was going to try what @JJ-Fullmer suggested, but i thought since it’s been a while ill try it normally once more. What i found was that it got to the point where it says “succeed to download NBP file” and then it proceeds to boot to windows. So it did connect to the fog server now.I would love to be able to do these without having to purchase several hubs/adapters/usb drives for the ability to have a good group going at once. If that’s what it comes to though, so be it. Also if it would be best to open a new topic, just let me know. Thank you!
Since it’s been a while here are the specs on the server
Fog Version: 1.4.0 - RC - 13
Ubuntu 16.04 -
@K.Hays What’s the boot file you’re using?
-
@Tom-Elliott So far we’ve tried ipxe.efi, snponly.efi, intel.efi, realtek.efi. That’s just today so far.
-
@K.Hays Are you using the latest versions of the ipxe files?
Because if you are try some older ones, like the ones labeled -7156 if you don’t have any sitting around.
I was imaging a compute stick today and it wouldn’t boot into fox with the latest ipxe.efi file, it did work with an older one I still had that usb drive from a year ago when I wrote this post. I’ve had varying results of newer ipxe.efi files and the efi shell boot method.
If the 7156 versions provided don’t work let me know and I’ll post the ones that are working for me right now. -
Let me preface this with, this is not a FOG issue directly. It is either a uefi firmware issue or an iPXE issue not supporting the hardware.
We have seen some pretty shoddy uefi pxe booting firmware on some vendor’s systems (I’m not implying this is the case here either). What I want to try with these ASUS T100 systems is this: We will create a iPXE usb boot drive to see if we can bypass the on-board firmware pxe boot. Hopefully we can get the ASUS T100’s into the fog menu. If the fog menu appears then we have a path forward for imaging these systems. If this doesn’t work then there is no reason to continue testing pxe boot kernels. Also, make sure you have the latest firmware install on these tablets since this issue is a year old. With any luck ASUS could have fixed the issue in the interim.
I want you to do this for this test:
- Acquire a usb flash drive that is at least 4MB in size (yes I said only 4MB, larger will work but we only need 4MB of space).
- Format that usb flash drive - fat32. You can do this on a windows box or a linux box. The format must be fat32.
- On that newly formatted flash drive create the following path \EFI\BOOT (case should not be important, but use all caps as I posted).
- Now you will need 2 of the iPXE files from the fog server.
Copy /tftpboot/ipxe.efi to \EFI\BOOT as BOOTX64.EFI
Copy /tftpboot/i386-efi/ipxe.efi to \EFI\BOOT as BOOTIA32.EFI - Eject the usb flash drive and then attempt to boot this ASUS device from the usb drive using the device’s boot menu.
If the ipxe.efi files don’t work, please repeat the process above except use ipxe7156.efi from the fog server instead. For both the x64 and x86 files.
-
@george1421 said in UEFI-PXE-Boot (Asus t100 Tablet):
\EFI\BOOT
Yep, that worked to get to the menu with the ipxe.efi file. So then what next?
@JJ-Fullmer Also i had not tried your guide yet, i was wondering if there was an option other than that (since it had gotten further) but it seems like that is not the case
-
@K.Hays Whelp, that means that iPXE kernel is OK and it boots into fog’s iPXE menu. So the issue is the hand-off between the onboard PXE rom and the iPXE kernel. In a nutshell this is a firmware issue with the hardware.
So what can you do?
- Confirm that these tablets have the latest firmware installed and test again.
- Contact the vendor and report this firmware bug.
- Decide to move forward with usb booting and imaging that way. The iPXE kernel on the usb flash drive is taking over the responsibility to boot into the FOG kernel, we are just bypassing the faulty uefi firmware.
-
@george1421 So i was able to get to the fog menu with the assistance of the flash drive, but from there anything i try to do with it fails. Also the firmware is up to date.
-
@K.Hays For example if you pick hardware compatibility test what error do you get? Post a clear picture taken with a mobile phone please.
Did you also try to use the ipxe7<something>.efi one?
-
@george1421 more in depth, what happens is: No matter what i click it gets to the point where it says “Init.xs… ok” Then it jumps back to the main fog screen, but plain black background and white text. There is also no highlight showing me what i hover over, and after a while of sitting at that screen it says
http://x.x.x.x/fog/service/ipxe/refind.conf... ok http://x.x.x.x/fog/service/ipxe/refind.efi... ok Could not boot: Error ox7f048283 (http://ipxe.org/7f048283) Could not boot: Error ox7f048283 (http://ipxe.org/7f048283) Chainloading failed. hit 's' for the iPXE shell: reboot in 10 seconds
-
@george1421 I did use both pxe files
-
@K.Hays
Can you try the ipxe7156.efi file in place of ipxe.efi (which you renamed on the flash drive).What you are seeing now is the hand off between iPXE and FOG blowing up just like between the PXE rom and iPXE. -
@K.Hays The refind error is related to when the fog menu exits out after no selection is made. In efi mode it uses refind to locate the boot medium.
-
@george1421 That sounds like no good. What’s available for me to try next?
-
@K.Hays said in UEFI-PXE-Boot (Asus t100 Tablet):
@george1421 I did use both pxe files
Well that is disappointing…
OK then we move on to phase 3 usb booting the FOS engine directly. You will loose the tight integration between FOG and FOS but it will work.
https://forums.fogproject.org/topic/7727/building-usb-booting-fos-image(look at the fog IM talk bubble in the forum tool tray)