[syslinux] Checking CRC (of bzImage) before loading

Ferenc Wagner wferi at niif.hu
Thu Mar 20 03:45:35 PDT 2014


Mau Z <zmau1962 at gmail.com> writes:

> I am wondering how to implement the following customer's requirement :
> The system is a stand alone embedded system with no operator (with Linux).
> There is one SSD for the system's usage (and that is where the system loads
> from).
>
> The requirement is to have a duplication of the Linux Image, and that
> syslinux should calculate CRC of "the first image" (say bzImage_1).
> If the CRC is correct then load the image, if the CRC is not correct, than
> syslinux should try "the other image" (say bzImage_2).
> If even that is no good do nothing.
>
> Any suggestions as to how to implement the requirement ?

You should be able to implement this logic via the embedded Lua
interpreter.  I don't know whether the performance would be acceptable,
though (at least without resorting to C coding).
-- 
Regards,
Feri.


More information about the Syslinux mailing list