Difference between revisions of "RSB-3720 Ubunut creation by Yocto30 kernel"

From ESS-WIKI
Jump to: navigation, search
Line 36: Line 36:
 
:<span style="font-size:large;"><code>$mkdir ubuntu/rootfs yocto/rootfs</code></span>  
 
:<span style="font-size:large;"><code>$mkdir ubuntu/rootfs yocto/rootfs</code></span>  
  
:[[File:RSB-3720 Ubunut creation by Yocto30 kernel Create folders to mount.png|RTENOTITLE]]
+
:[[File:RSB-3720 Ubunut creation by Yocto30 kernel Create folders to mount.png|RTENOTITLE]]
 +
 
 +
*<span style="font-size:medium;">'''Mount Yocto image and Ubuntu image Partition2'''</span>
 +
 
 +
:<span style="font-size:large;"><code>$sudo losetup --show -f -P imx-image-full-imx8mprsb3720a1-20230814102331.rootfs.wic</code></span>
 +
 
 +
:<span style="font-size:large;"><span style="font-size:large;"><code>$sudo mount /dev/loop22p2 yocto/rootfs/</code></span></span>
 +
 
 +
:<span style="font-size:large;"><span style="font-size:large;"><span style="font-size:large;"><code>$sudo losetup --show -f -P 3720A1AIM30UIVA0362_iMX8MP_4G_2021-11-29.img</code></span></span></span>
 +
 
 +
:<span style="font-size:large;"><span style="font-size:large;"><span style="font-size:large;"><span style="font-size:large;"><code>$sudo mount /dev/loop23p2 ubuntu/rootfs/</code></span></span></span></span>
 +
 
 +
*'''<span style="font-size:medium;">Delete under Yocto rootfs all files, and replace to&nbsp; Ubuntu rootfs</span>'''
 +
 
 +
:[[File:RSB-3720 Ubunut creation by Yocto30 kernel Mount Yocto image and Ubuntu image Partition2.png|RTENOTITLE]]

Revision as of 10:09, 17 August 2023

 

Prepare Image

  • Build Yocto Linux image with your expected version (e.g. A0386)
You can follow this SOP to build your Yocto image.
RTENOTITLE
  •  Prepare Ubuntu image (e.g. A0362)
RTENOTITLE

Mount image

  • You can find Yocto image in${WORKSPACE}/build/tmp/deplay/image/${MC}, and copy to your ${WORKSPACE}.
$ sudo cp –a imx-image-${MC}-20230816082527.rootfs.wic.bz2 ${WORKSPACE}.
RTENOTITLE
  • Unpack rootfs.wic
$sudo bzip2 -d imx-image-full-${MC}-20230814102331.rootfs.wic.bz2
RTENOTITLE
  • Create folders to mount
$mkdir ubuntu yocto
$mkdir ubuntu/rootfs yocto/rootfs
RTENOTITLE
  • Mount Yocto image and Ubuntu image Partition2
$sudo losetup --show -f -P imx-image-full-imx8mprsb3720a1-20230814102331.rootfs.wic
$sudo mount /dev/loop22p2 yocto/rootfs/
$sudo losetup --show -f -P 3720A1AIM30UIVA0362_iMX8MP_4G_2021-11-29.img
$sudo mount /dev/loop23p2 ubuntu/rootfs/
  • Delete under Yocto rootfs all files, and replace to  Ubuntu rootfs
RTENOTITLE