lx2160ardb Xspi-fw add tiny.itb

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

lx2160ardb Xspi-fw add tiny.itb

1,002 次查看
wutianyi
Contributor II

Hi  NXP:

    We found a strange issue while building SPI-firmware. If I don't put tiny images in the back, then this firmware will work. If I put Tiny image, it won't boot. This problem is very strange, according to the data behind, it will not affect the normal boot logic.

This is my makefile:

define fcreate_boot
$(Q)dd if=$(IMAGE_BUILD)/$(PBL_BIN) of=$(IMAGE_BUILD)/boot.bin
$(Q)dd if=$(IMAGE_BUILD)/$(FIP_BIN) of=$(IMAGE_BUILD)/boot.bin seek=1 bs=1M
$(Q)dd if=$(IMAGE_BUILD)/$(DDR_BIN) of=$(IMAGE_BUILD)/boot.bin seek=1 bs=8M
$(Q)dd if=$(IMAGE_BUILD)/$(MC_IMG) of=$(IMAGE_BUILD)/boot.bin seek=1 bs=10M
$(Q)dd if=$(IMAGE_BUILD)/dpl.dtb of=$(IMAGE_BUILD)/boot.bin seek=1 bs=13M
$(Q)dd if=$(IMAGE_BUILD)/dpc.dtb of=$(IMAGE_BUILD)/boot.bin seek=1 bs=14M
#$(Q)dd if=$(IMAGE_BUILD)/$(LINUX_DTB) of=$(IMAGE_BUILD)/boot.bin seek=1 bs=15M
#$(Q)dd if=$(IMAGE_BUILD)/linux.itb of=$(IMAGE_BUILD)/boot.bin seek=1 bs=16M
endef

Thanks

Tianyi

标签 (1)
0 项奖励
回复
2 回复数

973 次查看
yipingwang
NXP TechSupport
NXP TechSupport

dd if=${DEPLOY_DIR_IMAGE}/${img_file} of=${fw_img} bs=1K seek=${offset}

seek should be offset of the image.

For memory map, please refer to "Table 22. Unified 64 MiB memory layout of NOR/QSPI/XSPI/NAND/SD media for composite firmware on all Layerscape platforms" in LSDK 21.08 user manual.

970 次查看
wutianyi
Contributor II

Thank you. I've identified the problem. There is no problem in the img production, because the case of flash configured inside the driver is wrong, the actual flash is 32M, and the driver configuration is 64M. The hardware does not support such a large image.

Thanks

Tianyi

0 项奖励
回复