IMX8MN burn rootfs to partition 2

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

IMX8MN burn rootfs to partition 2

460 Views
xuxa
Contributor I

i'm trying to burn my rootfs image to partition 2. but i needed to have a temporary copy to another partition before i can do the `dd` data duplicate to the partition 2. is there a way that i can directly burn this to the partition 2 without copying it temporarily?

I'm using UUU for this.

this is the part where i burn it in my current .lst file.

# burn rootfs to partition 2
# {
FBK: ucmd mmc=`cat /tmp/mmcdev`; while [ ! -e /dev/mmcblk${mmc}p5 ]; do sleep 1; done
FBK: ucmd mmc=`cat /tmp/mmcdev`; mkfs.ext4 -F -E nodiscard /dev/mmcblk${mmc}p5
FBK: ucmd mkdir -p /mnt/ext4p5
FBK: ucmd mmc=`cat /tmp/mmcdev`; mount -t ext4 /dev/mmcblk${mmc}p5 /mnt/ext4p5

FBK: ucp OSFiles/image-imx8mn.ext4.verity.signed t:/mnt/ext4p5
#FBK: sync
FBK: ucmd mmc=`cat /tmp/mmcdev`; dd if=/mnt/ext4p5/image-imx8mn.ext4.verity.signed of=/dev/mmcblk${mmc}p2 bs=1k conv=fsync
#FBK: sync
FBK: ucmd umount /mnt/ext4p5
# }
# }

 

Thank you!

0 Kudos
Reply
1 Reply

405 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

is there a way that i can directly burn this to the partition 2 without copying it temporarily?

-->You need copy images temporarily when using uuu

0 Kudos
Reply