Fog PXE Boot with USB to Ethernet Adapter
-
Hello,
I’ll make a long story short: it has been a long journey from Symantec Ghost, to Clonezilla and finally FOG.Disclaimer: I’m a Linux n00b but I’m doing my best.
So far, I really like the features of Fog and it looks like I’m almost there.
I have been trying to image a batch of Lenovo ultrabooks which do not have a built-in NIC. I’m using an ASIX AX88772B USB to Ethernet adapter and an Ubuntu 13.04 box running Fog.
I can PXE into the Fog PXE GUI but if I select any option that loads the Kernel I get stuck with the following error: “Error: Driver ‘mdio-gpio’ is already registered, aborting…”
I did some reading and it looks like I should have better luck with an alternative kernel. Unfortunately, I can’t seem to get any kernel to work except the one that installed with Fog. I have been downloading custom Fog Kernels (namely Tom Ellitott’s) and replacing the bzImage file in the tftpboot/fog/kernel directory.
If I use a custom kernel, the screen on the client just flickers when I choose a menu item (such as “Quick host registration and inventory”). If I then replace the custom kernel with the original, it will load and then give me the aforementioned error.
Any tips??
Thank you in advance!
-
Try my kernel. Use the link in my signature and try again.
-
My kernel names have changed and allNet is a base start of my configs now.
-
Hi Tom,
Thank you for the prompt response!I have actually tried all three kernels in your link (even though I’m on .32). I get the same result with all of them: when the custom kernel is in place, the PXE client just flickers when I select a menu item. Then if I copy the original kernel back, it works (except for the error).
Am I missing something?
-
make sure the bzImage is owned by the fog.root permissions.
[code]sudo chown -R fog:root /tftpboot[/code] -
Unfortunately, I’m still experiencing the same condition. I moved your kernel, did the chown and the icon changed (and got my hopes up) but it still just flickered when I clicked a menu on the PXE machine. I then copied the original kernel back and loaded it without issue…
-
Which kernel?
-
(I shouldn’t say “without issue” I still get the driver error, of course.)
-
3.14 x64
-
Okay,
can you try these commands specifically:
[code]cd /tftpboot/fog/kernel
sudo mv bzImage bzImage.original.worksKINDA
sudo wget -O bzImage https://svn.code.sf.net/p/freeghost/code/trunk/packages/web/service/ipxe/bzImage32
sudo chown -R fog:root /tftpboot
[/code]It may have just downloaded a corrupt kernel.
-
I have to head out for the night but I will give it a try in the morning and follow-up. Thank you again!
-
No problem.
-
That worked to load the new kernel! However, it looks like I’m still having a driver problem.
No it loads your kernel and says:
“esas2r: driver will not be loaded because no ATTO esas2r devices were found
lguest: switcher test too large (4384)
hub 2-0:1.0: couldn’t allocate port 1 usb_device”It then says couldn’t allocate port 2 (3 and so on…) usb_device
It continues to “Attempting to send inventory…” and the prompt just blinks and I have no lint light on the switch.
-
[quote=“Keith Schindler, post: 25890, member: 23815”]That worked to load the new kernel! However, it looks like I’m still having a driver problem.
No it loads your kernel and says:
“esas2r: driver will not be loaded because no ATTO esas2r devices were found
lguest: switcher test too large (4384)
hub 2-0:1.0: couldn’t allocate port 1 usb_device”It then says couldn’t allocate port 2 (3 and so on…) usb_device
It continues to “Attempting to send inventory…” and the prompt just blinks and I have no lint light on the switch.[/quote]
The esas2r issue is to be expected as you likely DO NOT have the esas2 scsi system on your setup.
Can you make sure that the USB NIC is running on a NON-USB 3.0 port?
-
Bah, these units only have USB 3 ports… (Lenovo Yoga S1)
-
Can you try a core kernel, maybe 3.8.8?
-
I did the same steps outlined previously but replaced the wget address with [url]https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.xz[/url] and [url]https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.8.tar.xz[/url]
Both kernels will not work for me. I’m getting “Invalid or corrupt kernel”
-
the files you’re downloading from kernel.org are not the kernel’s, well not built at least. You’re actually downloading the source files that allow you to build the kernels. This is why you’re seeing “Invalid or corrupt kernel.” Because they’re invalid.
-
I was just noticing that. Do you know where I can find them pre-compiled?
-
Sourceforge
From the web gui, you can go to Other Information/FOG Configuration (the ? icon) -> kernel update and select the kernel you want.