[syslinux] [PATCH] nictype.c32: PXELINUX module to display UNDI NIC bus type...

Sergey Vlasov vsu at altlinux.ru
Sat Nov 24 08:48:37 PST 2012


On Fri, Nov 23, 2012 at 03:52:07PM -0500, Shao Miller wrote:
> On 11/22/2012 20:59, Shao Miller wrote:
> > Applies to Syslinux 4.06.  Attached, below, and available at:
> >
> >     Repository: git://git.zytor.com/users/sha0/syslinux.git
> >     Branch: nictype
> >
> 
> Please carbon-copy Torgeir for future discussion in this particular thread.
> 
> I have updated the branch mentioned above to include a new '--fallback' 
> feature for the '--config' option, as well as a new '--label' option.
> 
> Unfortunately, the '--fallback' option cannot be used with the '--label' 
> option at this time because trying to call a label, whether it exists or 
> not, does not return to the caller; it terminates the COMBOOT32 module 
> before attempting to jump to the label.  Thus the fall-back will be 
> whatever Syslinux has been given with the most recently loaded 
> config-file's DEFAULT directive.  If someone has an idea for a 
> work-around, I'd be interested. :)

One possible solution is to get the list of defined labels by reading
the config file from the nictype.c32 module (like menu.c32 does,
except the code may be much simpler - only LABEL, INCLUDE and TEXT
commands need to be parsed).  Maybe even some indirection layer like
used by ethersel.c32 (hidden from the core in comments) may be used
(ethersel.c32 does not even try to handle INCLUDE or TEXT).

BTW, ethersel.c32 also supports device ID masks, revision ID ranges
and subsystem IDs with masks, which might also be useful for
nictype.c32 (e.g., if some NIC chip has a problem only on a specific
motherboard, which can be detected by the subsystem ID).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20121124/b3fb8600/attachment.sig>


More information about the Syslinux mailing list