eMMC flash from CodeWarrior

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

eMMC flash from CodeWarrior

1,356件の閲覧回数
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,190件の閲覧回数
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,322件の閲覧回数
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,207件の閲覧回数
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,327件の閲覧回数
db16122
Contributor I

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

db16122_0-1747022482633.png

 

0 件の賞賛
返信