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

Shao Miller sha0.miller at gmail.com
Sat Nov 24 11:10:36 PST 2012


On 11/24/2012 11:48, Sergey Vlasov wrote:
> 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).

Thanks for the idea!

Since ethersel.c32 can already accomplish more than nictype.c32 and is 
already included in Syslinux, that's probably best for Torgeir to use, 
actually.

- Shao Miller



More information about the Syslinux mailing list