Exemplo n.º 1
0
void target_serialno(unsigned char *buf)
{
	uint32_t serialno;
	if (target_is_emmc_boot()) {
		if (platform_boot_dev_isemmc())
			serialno = mmc_get_psn();
		else
			serialno = board_chip_serial();
		snprintf((char *)buf, 13, "%x", serialno);
	}
}
Exemplo n.º 2
0
void target_serialno(unsigned char *buf)
{
	uint32_t serialno;
	serialno = board_chip_serial();
	snprintf((char *)buf, 13, "%x", serialno);
}