iPXE detecting NICs from USB, but not from HDD
|
2012-12-27, 22:52
Post: #1
|
|||
|
|||
iPXE detecting NICs from USB, but not from HDD
Hi,
i'm trying to boot iPXE from grub2, so that i do not have to press F8 everytime i want to start my PC from the network. I can't get ipxe to detect my NIC, if i start it from grub2. The same version from a usb-stick is working and detecting my NIC. Whats the differecne? On my Laptop ipxe from grub2 works. I tried the following setups: 1. installed "grub-ipxe" in Ubuntu 12.10 -> ipxe showed up in grub2 - worked on my laptop - does not work on my desktop pc (doesn't detect the NIC) - Error EC8 - PXE-Structure not detected 2. tried manual entry in grub linux16 /boot/ipxe.lkrn same as above, even with fresh compiled (latest git) ipxe.lkrn or a pxe.lkrn from a new ipxe.iso 3. ipxe.iso on a usb-stick with "unetbootin" with unetbootin i created a bootable usbstick with ipxe. It worked out of the box and ipxe detected my NIC. What can I do to have ipxe working from HDD? Thx in advance Mainboard: Asus P5K Infos |
|||
2012-12-31, 14:16
Post: #2
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
First of all, what kind of network card does your computer have? Name, linux driver and PCI-ID, please. You can find it with lspci -vv, usually.
Second, if you already have compiled ipxe from git, you should make bin/ipxe.usb followed by dd if=bin/ipxe.usb of=/dev/sdX (where X represents the device number of your usb stick, find it with fdisk -l). Be aware that this will completely wipe your USB stick. This USB stick should then be bootable on your computer. If you can boot it, and get into the iPXE shell and issue a dhcp command and you get an IP (ifstat) then your hardware _should_ work. You can always try to chain to the demo image at boot.ipxe.org, as explained on the front page of http://ipxe.org . At this point you can start experimenting with other ways of starting the iPXE, like chainloading, booting from grub or syslinux, or others. |
|||
2013-03-17, 13:46
Post: #3
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
I have to dig this thread sorry for the "little delay"
Heres the output of lspci -vv: Code: 02:00.0 Ethernet controller: Atheros Communications Inc. Attansic L1 Gigabit Ethernet (rev b0) Pics from booting: (newest git -> 747e9eb6f39c4e755b5f3ed0cbc82e1d04b0124a) With USB http://imagebin.org/250584 With grub2 (lkrn) Code: menuentry "iPXE boot 1" { ifstat does nothing here iPXE doesn't detect my NIC, if I boot from HDD, with USB-Stick all is fine and it does boot into my TFTP-Server |
|||
2013-03-20, 10:23
Post: #4
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
You might have more luck if you build ipxe.lkrn with debug output for your driver: make bin/ipxe.lkrn DEBUG=atl1e
You should also issue the "dhcp" command before doing ifstat, to see what packets came through. I'm not experienced with grub, but is linux16 the right way to execute a typical linux kernel? If you look at the USB image that is created by the build process, you might be able to mimic the setup that is used in it in your own setup. I'm not sure if they use syslinux or grub, though. I think they use syslinux (or rather isolinux). |
|||
2013-03-21, 17:13
Post: #5
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
Why bother putting iPXE on the HD, why not just set the computer to do a PXE boot, and chain load iPXE with a menu where the default it to boot from HD
Or am I missing something ? |
|||
2013-03-23, 16:45
Post: #6
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
ArneLovius: That is actually a great observation. Chainloading into a menu with "exit" as the default choice (with a timeout) is probably a better solution. You can find pointers to examples that do this sort of thing at http://ipxe.org/examples.
|
|||
2013-03-24, 13:32
Post: #7
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
Debug-Mode doesn't give us anything new, same result. No NIC detected, net0 doesn't show up in ipxe and NO debug messages.
ifstat and dhcp doesn't give any output. From "config" i get also no net0 device, but if i scroll down, there is a entry with: errno: 0x2e022001 Whatever this means. And yes: I can boot over PXE with hitting F8 at the right time and all works. But I wanted to be able to boot from ipxe IN the grub2-menu. My PXE-server isn't running all the time, so chainloading is no option ... the same ipxe.lkrn/iso works on my laptop and in VirtualBox. I think linux16 is the right way to boot the ipxe-kernel, because Ubuntu does it the same way, also it is described here: http://hmontoliu.blogspot.de/2010/12/gpx...grub2.html What can I do to let ipxe recognize my NIC? |
|||
2013-03-24, 21:54
Post: #8
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD
Have you actually looked at http://ipxe.org/2e022001 ? From what I can see, that indicates an exec format error, which means you could have a problem with what kind of executable formats your ipxe.lkrn supports. I'd look more closely into that.
|
|||
2013-03-31, 15:37
Post: #9
|
|||
|
|||
RE: iPXE detecting NICs from USB, but not from HDD | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)