[syslinux] fwrite?

Bryan.James.Krone-EXT at jci.com Bryan.James.Krone-EXT at jci.com
Mon Aug 1 11:26:24 PDT 2011


Is the auxilliary data vector only accessible by Extlinux or does it also 
work with Syslinux? I'm booting from a vfat partition.



From:
"H. Peter Anvin" <hpa at zytor.com>
To:
For discussion of Syslinux and tftp-hpa <syslinux at zytor.com>
Cc:
Bryan.James.Krone-EXT at jci.com, syslinux-bounces at zytor.com
Date:
08/01/2011 01:06 PM
Subject:
Re: [syslinux] fwrite?



On 08/01/2011 10:29 AM, Bryan.James.Krone-EXT at jci.com wrote:
> Is there a mechanism already in Syslinux that would count the number of 
> reboot of an OS? I'm working with an embedded OS and I would like to 
> reboot into another OS if the original fails to boot more than 10 times.
> 
> Thanks for responding to my earlier question.

There is --once, but it sounds like you want it to have a counter.  The
way to store persistent data in Syslinux is the ADV (auxilliary data
vector) which has its own API.

Adding a counter to the --once mechanism would be fairly easy.

                 -hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.







More information about the Syslinux mailing list