The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pciscan not working in ipxe.efi
2016-11-29, 20:31 (This post was last modified: 2016-11-29 20:32 by renato.)
Post: #1
pciscan not working in ipxe.efi
Hi,

I am trying to add a sleep or ifclose command in case I find a pci or network card, all this in my boot menu just before booting.

I am trying something like this:
Code:
:scan pciscan addr || goto scan_done
    #echo Found PCI device ${addr:busdevfn}
    iseq ${pci/${addr}.0.2}:${pci/${addr}.2.2} 8086:ffff && ifclose ||
    goto scan
:scan_done
However, when pciscan attr command is run attr is never set

I am doing something like below instead:
Code:
set addr:uint16 0
:loop
set pci ${pci/${addr}.0.2}:${pci/${addr}.2.2}
iseq ${pci} ffff:ffff || echo ${addr:busdevfn}: ${pci}
inc addr
iseq ${addr} 0xffff || goto loop
works, but it is nasty and takes a while

please advice
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
pciscan not working in ipxe.efi - renato - 2016-11-29 20:31



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