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
3,849 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
Reply
1 Solution
3,786 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

View solution in original post

0 Kudos
Reply
4 Replies
3,821 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
Reply
3,805 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
Reply
3,787 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You can refer to the document

0 Kudos
Reply
3,778 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
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1855339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx8MP%20swupdate%20inquiry%20(how%20to%20get%20ext4%20image)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1855339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMy%20environment%20is%20as%20follows.%3CBR%20%2F%3Ei.MX%20Linux%20Yocto%20Project%20BSP%206.1.22_2.0.0%20Release%3CBR%20%2F%3ENXP%20i.MX%208MPlus%20EVK%20(imx8mpevk)%3C%2FP%3E%3CP%3ETo%20use%20swupdate%20for%20imx8MP%2C%20refer%20to%20SWUpdate%20OTA%20i.MX8MM%20EVK_rev3.pdf.%3CBR%20%2F%3EIn%20the%20contents%20of%20%22Image%20Assembling%22%2C%20there%20is%20the%20following%3A%3CBR%20%2F%3E06-imx-image-multimedia%20--%26gt%3B%20..%2Fslota%2Fimx-image-multimedia-imx8mmevk.ext4%3C%2FP%3E%3CP%3EThere%20is%20no%20image%20in%20ext4%20format%20in%20the%20output%20of%20bitbake.%20(There%20are%20wic.zst%20and%20tar.zst)%3C%2FP%3E%3CP%3EHow%20can%20I%20get%20an%20image%20in%20ext4%20format%3F%20Alternatively%2C%20can%20we%20proceed%20with%20%E2%80%9CImage%20Assembling%E2%80%9D%20using%20wic.zst%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1855339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBoot%20ROM%7CBooting%20%7C%20Flash%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1857314%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8MP%20swupdate%20inquiry%20(how%20to%20get%20ext4%20image)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1857314%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAccording%20to%20the%20document%20you%20pointed%20out%2C%20I%20can%20create%20ext4.%3CBR%20%2F%3EIf%20there%20had%20been%20document%20from%20the%20beginning%2C%20it%20would%20have%20been%20less%20difficult%2C%20but%20the%20fragmented%20knowledge%20obtained%20through%20Googling%20had%20its%20limits.%3CBR%20%2F%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1857206%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8MP%20swupdate%20inquiry%20(how%20to%20get%20ext4%20image)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1857206%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20can%20refer%20to%20the%20document%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1856424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8MP%20swupdate%20inquiry%20(how%20to%20get%20ext4%20image)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856424%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply%3C%2FP%3E%3CP%3EI%20made%20the%20below.%3CBR%20%2F%3E06-imx-image-multimedia%20-%26gt%3B%20..%2Fslota%2Fimx-image-multimedia-imx8mp-lpddr4-evk.wic.zst%3C%2FP%3E%3CP%3EAnd%2C%20according%20to%20the%20contents%20of%20readme.txt%2C%20I%20executed%20the%20following.%3CBR%20%2F%3Etruncate%20-s%203000M%2006-imx-image-multimedia%3CBR%20%2F%3Ee2fsck%20-f%2006-imx-image-multimedia%3CBR%20%2F%3Eresize2fs%2006-imx-image-multimedia%3C%2FP%3E%3CP%3EAfterwards%2C%20an%20error%20occurs%20as%20shown%20below.%3C%2FP%3E%3CP%3Ee2fsck%201.45.5%20(07-Jan-2020)%3CBR%20%2F%3Eext2fs_open2%3A%20Bad%20magic%20number%20in%20super-block%3CBR%20%2F%3Ee2fsck%3A%20Superblock%20invalid%2C%20trying%20backup%20blocks...%3CBR%20%2F%3Ee2fsck%3A%20Bad%20magic%20number%20in%20super-block%20while%20trying%20to%20open%2006-imx-image-multimedia%3C%2FP%3E%3CP%3EThe%20superblock%20could%20not%20be%20read%20or%20does%20not%20describe%20a%20valid%20ext2%2Fext3%2Fext4%3CBR%20%2F%3Efilesystem.%20If%20the%20device%20is%20valid%20and%20it%20really%20contains%20an%20ext2%2Fext3%2Fext4%3CBR%20%2F%3Efilesystem%20(and%20not%20swap%20or%20ufs%20or%20something%20else)%2C%20then%20the%20superblock%3CBR%20%2F%3Eis%20corrupt%2C%20and%20you%20might%20try%20running%20e2fsck%20with%20an%20alternate%20superblock%3A%3CBR%20%2F%3Ee2fsck%20-b%208193%20%3CDEVICE%3E%3CBR%20%2F%3Eor%3CBR%20%2F%3Ee2fsck%20-b%2032768%20%3CDEVICE%3E%3C%2FDEVICE%3E%3C%2FDEVICE%3E%3C%2FP%3E%3CP%3EWhat%20should%20I%20do%20now%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1856278%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8MP%20swupdate%20inquiry%20(how%20to%20get%20ext4%20image)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1856278%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAlternatively%2C%20can%20we%20proceed%20with%20%E2%80%9CImage%20Assembling%E2%80%9D%20using%20wic.zst%3F%3C%2FP%3E%0A%3CP%3EYes%2C%20you%20can%20use%20it%2C%20no%20problem.%3C%2FP%3E%3C%2FLINGO-BODY%3E