
17 Sep
2024
17 Sep
'24
2:22 p.m.
On Mon, Sep 16, 2024 at 11:30 PM Peng Fan (OSS) peng.fan@oss.nxp.com wrote:
+void build_info(void) +{
u32 fw_version, sha1, res, status;
int ret;
printf("\nBuildInfo:\n");
ret = ele_get_fw_status(&status, &res);
if (ret) {
printf(" - ELE firmware status failed %d, 0x%x\n", ret, res);
} else if ((status & 0xff) == 1) {
ret = ele_get_fw_version(&fw_version, &sha1, &res);
if (ret) {
printf(" - ELE firmware version failed %d, 0x%x\n", ret, res);
} else {
printf(" - ELE firmware version %u.%u.%u-%x",
(fw_version & (0x00ff0000)) >> 16,
(fw_version & (0x0000fff0)) >> 4,
(fw_version & (0x0000000f)), sha1);
((fw_version & (0x80000000)) >> 31) == 1 ? puts("-dirty\n") : puts("\n");
}
} else {
printf(" - ELE firmware not included\n");
}
puts("\n");
This build_info() is unrelated to changing the second MAC address layout.
It should be a separate patch.