eMMC flash from CodeWarrior

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

eMMC flash from CodeWarrior

1,553 次查看
tzaman
Contributor I

Hi, we have both a NOR flash (QSPI) and an eMMC chip on our custom, LS1046A-based board.

We can flash QSPI just fine and it boots, but we'd also like to to flash eMMC, but not the general purpose partition, but rather the first hardware boot partition, which in Linux, shows as /dev/mmcblk0boot0.

Question is, how can we do that from CodeWarrior?

I have this line in our Target Initialization File:

fl.add_device({"alias": "mmc", "name": "EMMC_MTFC8_SDHC2", "address": 0x0, "ws_address": 0x80000000, "ws_size": 0x1FFFF, "geometry": "8x1", "controller": "eSDHC"})

If I write BL2 to this device, though, it writes to the general purpose partition, and not the hardware boot partition.

We're using MTFC32GBCAQTC-IT, connected to the eSDHC if it helps, and otherwise works fine, we can boot into Linux that's on it.

Thanks!

 

0 项奖励
回复
4 回复数

1,387 次查看
June_Lu
NXP TechSupport
NXP TechSupport

CW Flash programmer does not support to make partitions and formatting.

Such operations are usually done by Linux command like fdisk.

When boot into tiny Linux of the NOR flash(QSPI), such as the LSDK21.08, page 66.

Hope this would help you, if any misunderstanding please let me know.

Thanks

0 项奖励
回复

1,519 次查看
June_Lu
NXP TechSupport
NXP TechSupport

Please follow the https://community.nxp.com/t5/Layerscape-Knowledge-Base/How-to-boot-from-LS1043A-bare-board-by-flash-....

Although it's CMSIS-DAP instead of  CodeWarrior TAP, LS1043A instead of LS1028A, but you could follow the steps and address offset.

Thanks

0 项奖励
回复

1,404 次查看
tzaman
Contributor I

The tutorial you're pointing me to is not even remotely close to what I'm asking.

We don't have any dip switches on the board, nor CMSIS-DAP, but what is more important, this tutorial is flashing the general purpose partition on the eMMC. What we want to boot our device from is boot partition (/dev/mmcblk0boot0) on the eMMC chip.

Boot partitions are by default not exposed, so I'm asking whether CodeWarrior has a way to expose it (by writing to EXT_CSD register on the eMMC) and then write to it.

 

0 项奖励
回复

1,524 次查看
db16122
Contributor I

You can refer the information below and related application notes for detail

db16122_0-1747022482633.png

 

0 项奖励
回复