Hi Benoit,
You may use the Boyer-Moore algo (https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string_search_algorithm#Im...) to search the string 'coreboot' in the binary file.
I implemented it as-is, then: <.> uint8_t *tag = boyer_moore(start, size, "coreboot", 8); if (tag == NULL) { "Found no coreboot..." .. } <.>
Hope it helps. Regards, Patrick
De : coreboot [mailto:coreboot-bounces@coreboot.org] De la part de Benoit SANSONI Envoyé : vendredi 19 août 2016 11:43 À : Coreboot Objet : [coreboot] coreboot image signature
Hi all, I would like to know if it is possible, via a signature or a magic number, in the coreboot.rom file to recognize that it is a "coreboot" file. I did not find anything in the Makefile.inc. Thanks in advance