Quantcast
Channel: iPXE discussion forum - All Forums
Viewing all 1484 articles
Browse latest View live

Unable to open initramfs

$
0
0
Hi, I'm having trouble with the initramfs I am using when booting in UEFI. The initramfs works when in legacy but when trying to run on UEFI the system it "failed to open file". Additional info for context: My goal is just to load the ramdisk image and not load to any storage device because I intend to test all storage devices by running destructive tools against them, hope that makes sense :-)

Here are the events leading up to failure:
1) Boot into ipxe with embed script:
#!ipxe

echo Will keep trying to get a valid DHCP address before loading the image
echo via http://x.x.x.x/ipxe/ipxe-usbnic.script
:retry
ifstat
ifconf -c dhcp || goto retry
chain http://x.x.x.x/api/ipxe/ipxe-usbnic.script

2) Loads the following from the ipxe-usbnic.script
#!ipxe
set mfg_data http://x.x.x.x/data
set mfg_releases http://x.x.x.x/releases
menu
item uut_os Boot the UUT Ramdisk Based OS (the default)

choose --default uut_os --timeout 10000 target && goto ${target}
:uut_os
set default_uut_os ${mfg_data}/uut-os/default
kernel ${default_uut_os}/vmlinuz console=ttyS0,11520 fastboot initrd=${default_uut_os}/initramfs.gz mfg_setup=${mfg_releases}/mfg/default/admin/uut_os/setup-after-boot.sh
initrd ${default_uut_os}/initramfs.gz
boot

:shell
shell
:exit
exit

It looks like it's able to download the images, but when trying to unpack the initramfs.gz it fails. Do I need to modify anything for UEFI? Thanks...any hints would be greatly appreciated.

Does ISA wd driver support SMC 83C795?

$
0
0
Hi,
I see that the 'wd' driver supports SMC 83C790 ISA NICs. Is the 83C795 chip close enough to work as well?

thanks!

Asix AX88179 USB to Ethernet Adapter

$
0
0
Hello,

I have previously had iPXE working on a Mellanox NIC, however during testing we noticed that iPXE was not working on our ASIX AX88179 USB Adapter.

I have seen the FAQ and other posts about this with workarounds however these are not working for me. The issue I am having is that as soon as the DHCP command is run in the iPXE shell and configures the ASIX adapter, iPXE no longer takes any input and I'm forced to reboot the system.

This issue has occurred when compiling ncm--ecm--axge.efi, axge.efi, and ipxe.efi.

If anyone has a method that has worked with this driver I would greatly appreciate it.

Thank you,
Max

Qualcomm Atheros AR816x/AR817x support

$
0
0
Hi,

I have some Laptops with a Qualcomm Atheros AR8161 (PCI ID 1969:1091) ethernet controller.
I can't get iPXE (current git) to recognize these.
Is it unsupported or should I look for other errors with my setup?

iPxe, http, basic auth and login command in embed script and in menu script

$
0
0
I have the latest git veriosn of iPXE compiled from sources by myself.
There is login commands in 2 places - in embed script:
Code:
#!ipxe

ifconf || reboot
login || reboot
chain http://${username:uristring}:${password:uristring}@fqdn/folder/menu.ipxe

which is compiled in during make step, for example make bin/undionly.kpxe EMBED=script.ipxe

and in menu itself:
Code:
login
kernel http://${username:uristring}:${password:uristring}@fqdn/folder/folder1/wimboot
initrd http://${username:uristring}:${password:uristring}@fqdn/folder/folder1/BCD  BCD
.....

But 1 during first login command empty username and password is sent to Web server.
As following, Permission is denied.
I saw at its logs.
During second login is ok.
But if is to remove login command from embed script and specify exact user/password at http string all is ok.
That is:
Code:
#!ipxe

imgfree
ifconf || reboot
chain http://rightuser:rightpass@fqdn/folder/menu.ipxe

After that, login in menu works fine.

Is it right functioing by design ?

iPxe and chain for file located at local filesystem

$
0
0
There is DOWNLOAD_PROTO_FILE option at xPxe sources.
Is it possible to map to memory or to load locally stored file such as menu, wimboot which are located for example in the same folder with undionly.kpxe to further chain and execute ?
Or from other local file system ?
That is: menu.pxe and then wimboot are mapped/loaded/chained from some /folder/folder1 and only afther that chain/kernel/initrd will use either http or nfs protocols.

acronis 2017 uefi

$
0
0
Hello !
I can't start acronis 2017 on my computers uefi, it works well in bios legacy.
I took the config here: http://ipxe.org/appnote/acronis.
For information, my other software starts well in uefi with ipxe.efi.
I have an error "kernel panic".
Can you help me?
Thanks!

Display bug with console/PNG feature

$
0
0
I'm using ipxe.efi compiled on Ubuntu (approximately one week ago).

When booting windows from an iscsi target (SANBOOT) the display is unreadable. I have traced the issue to the following command in my ipxe menu script -

console --picture ipxe.png

Commenting out this line removed the issue. Screenshots of the problem -

http://mistyprojects.co.uk/screenshots/2019.05.20_1.jpg

http://mistyprojects.co.uk/screenshots/2019.05.20_2.jpg

This bug/error was discovered when installing windows to an iscsi target by booting into WinPE (SANHOOK target and booting via wimboot) and running setup.exe. Stage 1 of setup (selecting the target disk and applying install.wim, etc) completed fine and the display was rendered properly. Following the reboot and starting stage 2 resulted in the display issue.

I lengthy thread I started on the reboot.pro forum documents my setup and this issue in much more detail -

http://reboot.pro/topic/22026-sanboot-wi...efi-system

Misty

P.s. let me know if there is anything I can do to try and trace the issue, or if any more details are required.

ipxe device initialization drops first port

$
0
0
Hi,

Running into an issue where the first port of the first NIC goes missing. I see that the file path uses the correct adapter but then in ifstat its missing from the list.

Unfortunately I am inheriting this setup and I do not know how ipxe was compiled. Any ideas on why this occurring or how it can be fixed? Thank you in advance!

[Image: 0wILskA.png]

HP DL380 Gen10 Error: 0xc0000001

$
0
0
I have other hardware booting with the exact same setup. We are using MDT and chaining directly to MDTs litetouchpe image. Specifically on these HP DL380 gen10 servers we get an error:

BlInitializeLibrary failed 0xc0000001

Whats interesting is that the output between this server and a working server are nearly the same minus the memory addresses. I tried injecting HPs drivers into the PE image and that did not work, tried different BCD files that also did not work, also tried using copype and using the files it created and that did not work. Out of ideas at this point and that error is pretty not helpful :/

Thanks!

[Image: Uv9zjkd.png]

EDIT:

Using latest wimboot and latest ipxe

EDIT 2:
BCD looks like this:
Code:
PS D:\DeploymentShare\Boot\x64\Boot> bcdedit /store BCD /enum all

Windows Boot Manager
--------------------
identifier              {bootmgr}
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {default}
displayorder            {default}
toolsdisplayorder       {memdiag}
timeout                 30

Windows Boot Loader
-------------------
identifier              {default}
device                  ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
path                    \windows\system32\boot\winload.exe
description             Windows Setup
locale                  en-US
inherit                 {bootloadersettings}
osdevice                ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
systemroot              \windows
custom:250000c2         1
detecthal               Yes
winpe                   Yes
ems                     No

Windows Memory Tester
---------------------
identifier              {memdiag}
device                  boot
path                    \boot\memtest.exe
description             Windows Memory Diagnostic
locale                  en-US
inherit                 {globalsettings}

EMS Settings
------------
identifier              {emssettings}
bootems                 No

Debugger Settings
-----------------
identifier              {dbgsettings}
debugtype               Serial
debugport               1
baudrate                115200

Global Settings
---------------
identifier              {globalsettings}
inherit                 {dbgsettings}
                        {emssettings}

Boot Loader Settings
--------------------
identifier              {bootloadersettings}
inherit                 {globalsettings}
                        {hypervisorsettings}

Hypervisor Settings
-------------------
identifier              {hypervisorsettings}
description             Hypervisor Settings
hypervisordebugtype     Serial
hypervisordebugport     1
hypervisorbaudrate      115200

Device options
--------------
identifier              {7619dcc8-fafe-11d9-b411-000476eba25f}
ramdisksdidevice        boot
ramdisksdipath          \boot\boot.sdi
PS D:\DeploymentShare\Boot\x64\Boot>

ipxe script:
Code:
#!ipxe

kernel http://<url>/DeploymentShare/Boot/x64/Boot/wimboot
initrd http://<url>/DeploymentShare/Boot/x64/Boot/BCD BCD
initrd http://<url>/DeploymentShare/Boot/x64/Boot/boot.sdi boot.sdi
initrd -n boot.wim http://<url>/DeploymentShare/Boot/LiteTouchPE_x64.wim boot.wim
imgstat
boot

skip dhcp with ipxerom possible?

$
0
0
Hi,

is it possible with ipxe to skip the dhcp request each time on "Boot from LAN".
The Intel NIC has an flashrom in my pc, may possible to burn an ipxe-flash-rom into the rom from the card, but i dont know if it possible to skip the dhcp request and boot directly "from LAN", from an specified IP-Adress!?

Thanks a Lot.

"try to free memory without signature"

$
0
0
Hi All,

I have a bunch of identical machines that all happily iPXE boot except one, which gives me the "try to free memory without signature" when initializing devices.

The NIC that is PXE booting is an onboard Intel I210V, and intel boot agent GE 1.5.73, and i am not able to flash it with intel's bootutil (not supported).

The motherboards are all on identical BIOS versions, and set up with identical options (I've tried reflashing the BIOS). I'm booting in legacy mode as UEFI settings in the BIOS cause the machines (all of them) to POST extremely slowly.

In any case, does this mean this one machine's motherboard is borked? Anything I could try to fix this?

Thanks!

ipxe initialisinge devices

$
0
0
Hello !
On my desktop (which has 2 network interfaces, 1 intel and 1 atheros), I remain stuck on "ipxe initialising devices" on either of the network interfaces.
I don't have this problem on other computers or on virtual machines.
I tried at least 4 versions of ipxe but still the same problem.
Can you help me?
Thanks!

Windows iSCSI Target Software

$
0
0
The following page focuses on SANBOOT - more specifically installing and then booting a Windows OS from an iSCSI Target running on a Windows Host OS - http://mistyprojects.co.uk/documents/iscsi-targets/

List of Windows Operating Systems that I was able to SANBOOT - http://mistyprojects.co.uk/documents/isc...ported.htm

VirtualBox test environment - http://mistyprojects.co.uk/documents/isc...s/vbox.htm

iPXE was used in testing. EFI SANBOOT is not widely supported by Windows Target Software.

misty

Chainload ipxe script via PXE

$
0
0
Hi, not even sure how to correctly title this thread.

Here is my working scenario.

I have an HTTP share that hosts an iPXE script, the same share also hosts the install files for esxi.

In the pxelinux.cfg foolder of my PXE server I have my config file, I use undionly.kpxe as my bootfile. This boot file has a small script to chain the pxe config file, and then in the PXE config I chainload (via HTTP) a ipxe script. This works 100%

Now some of my site have a firewall the will block HTTP traffic to overcome this I want to failback to tftp. I figured I could do something like the below in my undionly.kpxe embedded script

Code:
#!ipxe

dhcp
chain http://${next-server}/pxelinux.cfg/macaddress || chain tftp://${next-server}/pxelinux.cfg/macaddress

When I boot my server it gats all the way to the tftp file and just gets stuck no errors it simply outputs -> tftp://10.10.10.10/pxelinux.cfg/macaddress... ok

and hangs.

If I change the protocol from tftp tp http it works.

I know tftp works on my network as other OS types are working fine. There is no firewall as this is a lab environment. I have http, https and tftp enabled in my general.h file. I have read through mang of the tftp threads on this forum and nothing seems to apply.

Not sure how to troubleshoot further

UPDATE:

I enabled logging using this
#define LOG_LEVEL LOG_ALL
#define CONSOLE_PCBIOS CONSOLE_USAGE_ALL

When I boot, I can now see that it downloads the pxe config file (mac address file ) and the when it execute it stops. My config file just contains

#!ipxe
echo HELLO
chain http://servername/ipxescript

Different Menus?

$
0
0
Hi there,

can I have different menus or menu items for bios pxe and uefi pxe?

TIA

Markus

ipxe.efirom booting with HP servers

$
0
0
Hi,

I am working on HP servers with a custom ipxe.efirom. I am observing that during the boot process my option rom get loaded but when its just about to boot the system sometime hangs while enumerating the boot devices.
This is being observed in both legacy and uefi boot modes. I am currently working in legacy mode. This is also happening intermittently so some time it works and some it fails. When it does work my remove function gets called, but when the system hangs i dont see any removes.
I want to know if someone can point out what process calls the driver_remove for me please.

failure of starting image after downloading it from https link

$
0
0
I am dealing with IPxe boot with https protocol, I a getting the NBP file from a local TFTP server and I am downloading the rest of boot files from Azure via HTTPS link so everything is working properly until I get an error "could not start BOOTx64.efi"
do any one have an idea how can we resolve this ? I would be really grateful Smile

slow ipxe menu

$
0
0
Hi all,

I have a couple of POS computers that have a slow text output when ipxe is loaded after the dhcp request.
When searching on the web i found a post that someone compiled serial console into ipxe that was causing the issue.
I've tried compiling ipxe without serial_console but the issue persists.

Many other POS computers with serial interfaces do work normal so im thinking this is an hardware issue but im not sure.
Do any of you experience the same issue?

Also i've tried to play with the baudrate when compiling with serial_console and text output gets even slower.
Anyone has a brilliant idea?
Thanks!

Best regards,

Dave

IPXE LLDP and type casting

$
0
0
Hi Guys,
I have made sosme changes to support LLDP protocol in ipxe.
https://github.com/andrei4ka/ipxe/commit...1c640846a4

The code itself working as expected. But I can not make ipxe to set ip-address on interface. There is a mess with a type.

I have a string 010.001.001.034 which is IP-address, and i want to set this ip on interface but for some reason can't.

Can you please help me with a type casting?

Code:
#!ipxe

ifopen

:start
set intf netX
set timeout 60

set tab:int8 9
set src ${${intf}.lldp/lldpsource}
echo -- Waiting for an LLDP packet to arrive...
set count:int32 0
:retry_poll_lldp
iseq ${${intf}.lldp/lldpsource} ${src} || goto mgmtaddr
sleep 1
inc count
iseq ${count} ${timeout} || goto retry_poll_lldp
clear count

# You may handle timeout here
echo -- Timed out waiting for an LLDP packet
exit 1

:mgmtaddr

echo -- Got an LLDP packet from ${${intf}.lldp/lldpsource}
echo --

# Set the maximum length of portname like Gi1/0/34 = 8
set loop:int32 16
# Lets count the length on the string to find the right ofset number
:get_len_tlv2
  echo -- len of ${${intf}.lldp/2} now eq=${loop}
  inc loop -1
  isset ${${intf}.lldp/${loop}.1.0.2} || goto get_len_tlv2

  echo -- The length of porname ${${intf}.lldp/2} = ${loop}
  echo -- Let's get 1 or 2 digits right after the slash symbol
  # Let's identify how much symbols in portnumber
  # For exmple 34 = 2 symbols
  #             7 = 1 symbol
set num:int8 0
:right_position
  inc loop -1
  inc num
  # Let's try to find the slash before the digits
  echo -- Is it slash with hex(2f): ${${intf}.lldp/${loop}.1.0.2:hex} = 2f on ${loop} position?
  iseq ${${intf}.lldp/${loop}.1.0.2:hex} 2f ||  goto right_position

:portnum
  inc loop
  isset ${${intf}.lldp/${loop}.1.0.2} || goto exit_portnum
  set portnum ${portnum}${${intf}.lldp/${loop}.1.0.2}
  echo ${portnum}
  iseq num 0 || goto portnum

:exit_portnum
  echo -- Portnum : ${portnum}

:count_net
set loop:int32 255
:get_len_tlv5
  echo -- len of ${${intf}.lldp/5} now eq=${loop}
  inc loop -1
  isset ${${intf}.lldp/${loop}.1.0.5} || goto get_len_tlv5

  echo -- The length of tlv5 ${${intf}.lldp/5} = ${loop}
  echo -- The l of tlv 5 ${${intf}.lldp/5:strlen}
  inc loop -19
  set ip_addr ${ip_addr}${${intf}.lldp/${loop}.3.0.5}
  inc loop 3
  set ip_addr ${ip_addr}.${${intf}.lldp/${loop}.3.0.5}
  inc loop 3
  set ip_addr ${ip_addr}.${${intf}.lldp/${loop}.3.0.5}
  set gw ${ip_addr}.1
  set ip_addr ${ip_addr}.0${portnum}
  echo ${loop}
  echo ${ip_addr}

  echo -- ip_addr = ${ip_addr}
  ifclose net0
  set net0/ip ${ip_addr}
  set net0/netmask 255.255.255.0
  set net0/gateway ${gw}
  ifopen net0

  ifstat net0

echo Starting Ubuntu x64 installer for ${hostname}
set base-url http://${gw}
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
boot ||

# If everything failed, give the user some options
echo Boot from ${base-url} failed
prompt --key 0x197e --timeout 2000 Press F12 to investigate || exit
shell
Viewing all 1484 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>