PART_MAGIC_LEN
uint8_t rdbuf[PART_MAGIC_LEN];
res2 = mtd_read(master, offs, PART_MAGIC_LEN, &retlen, rdbuf);
if (res2 || retlen != PART_MAGIC_LEN) {
if (!memcmp(rdbuf, sc_part_magic, PART_MAGIC_LEN)) {