有两种烧写方法:uboot阶段烧写,kernel阶段烧写
uboot阶段烧写可将烧写命令写到uuu脚本中,MAC寄存器地址为MAC1_ADDR[47:00],如:
SDPS: boot -f imx-boot-imx8qxpmek-sd.bin-flash
+FB: ucmd fuse prog -y 0 708 0xa295fc11
+FB: ucmd fuse prog -y 0 709 0x000017b4
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
kernel阶段烧写应用附件中的补丁,然后编译应用程序:
f = open('/sys/devices/platform/30350000.ocotp-ctrl/imx-ocotp0/nvmem', 'br+')
f.seek(0x90) # SRK0 position
f.write(pack('
f.close()