imx8MP swupdate inquiry (how to get ext4 image)

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

imx8MP swupdate inquiry (how to get ext4 image)

跳至解决方案
519 次查看
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?

 

标签 (1)
0 项奖励
回复
1 解答
459 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

在原帖中查看解决方案

0 项奖励
回复
4 回复数
494 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

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

Yes, you can use it, no problem.

0 项奖励
回复
478 次查看
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 项奖励
回复
460 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

0 项奖励
回复
451 次查看
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 项奖励
回复