imx8MP swupdate inquiry (how to get ext4 image)

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

imx8MP swupdate inquiry (how to get ext4 image)

ソリューションへジャンプ
695件の閲覧回数
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 解決策
635件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
670件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

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

Yes, you can use it, no problem.

0 件の賞賛
返信
654件の閲覧回数
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 件の賞賛
返信
636件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

0 件の賞賛
返信
627件の閲覧回数
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 件の賞賛
返信