imx8MP swupdate inquiry (how to get ext4 image)

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

imx8MP swupdate inquiry (how to get ext4 image)

Jump to solution
206 Views
kiyoung
Contributor III

My environment is as follows.
i.MX Linux Yocto Project BSP 6.1.22_2.0.0 Release
NXP i.MX 8MPlus EVK (imx8mpevk)

To use swupdate for imx8MP, refer to SWUpdate OTA i.MX8MM EVK_rev3.pdf.
In the contents of "Image Assembling", there is the following:
06-imx-image-multimedia --> ../slota/imx-image-multimedia-imx8mmevk.ext4

There is no image in ext4 format in the output of bitbake. (There are wic.zst and tar.zst)

How can I get an image in ext4 format? Alternatively, can we proceed with “Image Assembling” using wic.zst?

 

Labels (1)
0 Kudos
1 Solution
146 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

View solution in original post

0 Kudos
4 Replies
181 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Alternatively, can we proceed with “Image Assembling” using wic.zst?

Yes, you can use it, no problem.

0 Kudos
165 Views
kiyoung
Contributor III

Thank you for your reply

I made the below.
06-imx-image-multimedia -> ../slota/imx-image-multimedia-imx8mp-lpddr4-evk.wic.zst

And, according to the contents of readme.txt, I executed the following.
truncate -s 3000M 06-imx-image-multimedia
e2fsck -f 06-imx-image-multimedia
resize2fs 06-imx-image-multimedia

Afterwards, an error occurs as shown below.

e2fsck 1.45.5 (07-Jan-2020)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open 06-imx-image-multimedia

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>

What should I do now?

0 Kudos
147 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

0 Kudos
138 Views
kiyoung
Contributor III

According to the document you pointed out, I can create ext4.
If there had been document from the beginning, it would have been less difficult, but the fragmented knowledge obtained through Googling had its limits.
Thank you.

0 Kudos