User`s guide

Secure Boot with i.MX28 HAB Version 4, Rev. 1
26 Freescale Semiconductor
Example CSF text files for reference
/* Display HAB Failure events */
while (hab_rvt_report_event(HAB_FAILURE, index, event_data, &bytes)
== HAB_SUCCESS)
{
printf("\n");
printf("---------HAB Event %d -----------------\n", index + 1);
printf("event data:\n");
/* display_event will simply prints out the contents of events_data */
display_event(event_data, bytes);
printf("\n");
bytes = sizeof(event_data);
index++;
}
/* Check reason for stopping */
if (hab_rvt_report_event(HAB_STS_ANY, index, NULL, &bytes)
== HAB_SUCCESS)
{
printf("ERROR: Recompile with larger event data buffer at least %d
bytes\n",
bytes);
}
}
/* Display message if no HAB Failure events are found */
else
{
printf("\nHAB Configuration: 0x%02x HAB State: 0x%02x\n",
config, state);
printf("No HAB Failure Events Found!\n\n");
}
}
8 Example CSF text files for reference
This section provides sample input CSF files used for u-boot, linux_kernel and boot_prep code signing.
8.1 U-boot CSF example
[Header]
Version = 4.0
Hash Algorithm = sha256