How to switch iMX8M Plus partition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to switch iMX8M Plus partition

259 Views
Y_K
Contributor I

Dear NXP Tech support,

We are trying to use eMMC of iMX8M Plus to build partitions for firmware updates.
We are trying to switch partitions as one of the pre-examination.
Trying to modify u-boot to switch between partitions A), B) and partitions C), D).
I tried to set u-boot to switch between partitions A), B) and partitions C), D) but it doesn't work.
Partitions A) and B) always boot.
Are we creating partitions wrong?
Or u-boot configuration is wrong?


I am currently creating partitions with the following contents.
      device                  boot     start          end            sectors             type
  A) /dev/mmcblk2p1              16384       186775     170392             W95FAT32 (LBA)
  B) /dev/mmcblk2p2              196608      17027413 16830806         Linux
  C) /dev/mmcblk2p3  *          17027413  17214188 170392            W95FAT32 (LBA)
  D) /dev/mmcblk2p4              17224021  34054826 16830806        Linux

After creating partitions with the fdisk command, I copied the files in partitions A) and B) to partitions C) and D).
Partitions A) and C) have kernel images and DTBs.
Partitions B) and D) have rootfs.


The place where u-boot setting was changed is the following item.
mmcpart=3
mmcroot=/dev/mmcvlk2p4 rootwait rw
devplist=3,1

On another note, I read that iMX8M Plus has a Secondary Image Boot feature.
Is it possible to switch partitions by switching BOOT_PARTITION_ENABLE field in the Ext_CSD[179]?

0 Kudos
0 Replies