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

From ESS-WIKI
Jump to: navigation, search
Line 13: Line 13:
  
 
[[File:RSB-3720 Prepare ubuntu image.png|RTENOTITLE]]
 
[[File:RSB-3720 Prepare ubuntu image.png|RTENOTITLE]]
 +
  
  
Line 21: Line 22:
  
 
*You can find Yocto image in'''<span style="color:#9b59b6;">${WORKSPACE}</span>'''/build/tmp/deplay/image/<span style="color:#9b59b6;">'''${MC}'''</span>, and copy to your&nbsp;'''<span style="color:#9b59b6;">${WORKSPACE}</span>'''.  
 
*You can find Yocto image in'''<span style="color:#9b59b6;">${WORKSPACE}</span>'''/build/tmp/deplay/image/<span style="color:#9b59b6;">'''${MC}'''</span>, and copy to your&nbsp;'''<span style="color:#9b59b6;">${WORKSPACE}</span>'''.  
<pre><code>$ sudo cp –a imx-image-<span style="color:#9b59b6;">'''${MC}'''</span>-20230816082527.rootfs.wic.bz2 <span style="color:#9b59b6;">${WORKSPACE}</span>.</code>
 
</pre>
 
  
'''<span style="color:#9b59b6;">[[File:RSB-3720 copy Yocto30 image to workspace.png|RTENOTITLE]]</span>'''
+
<code>$ sudo cp –a imx-image-<span style="color:#9b59b6;">'''${MC}'''</span>-20230816082527.rootfs.wic.bz2 <span style="color:#9b59b6;">'''${WORKSPACE}'''</span>.</code>
  
*Unpack rootfs.wic
+
<code><span style="color:#9b59b6;">'''<span style="color:#9b59b6;">[[File:RSB-3720 copy Yocto30 image to workspace.png|RTENOTITLE]]</span>'''</span></code>
  
::<code>$sudo bzip2 -d imx-image-full-<span style="color:#9b59b6;">'''${MC}'''</span>-20230814102331.rootfs.wic.bz2</code>
+
*'''Unpack rootfs.wic'''  
  
'''[[File:RSB-3720 unpack yocto30 image.png|RTENOTITLE]]'''
+
<code>$sudo bzip2 -d imx-image-full-<span style="color:#9b59b6;">'''${MC}'''</span>-20230814102331.rootfs.wic.bz2</code>
 +
 
 +
 
 +
<code><span style="color:#9b59b6;">'''[[File:RSB-3720 unpack yocto30 image.png|RTENOTITLE]]'''</span></code>
  
 
*'''Create folders to mount'''  
 
*'''Create folders to mount'''  
  
::<code>$mkdir ubuntu yocto $mkdir ubuntu/rootfs yocto/rootfs</code>
+
&nbsp;$mkdir ubuntu yocto
 +
 
 +
<code>$mkdir ubuntu/rootfs yocto/rootfs</code>
 +
 
 +
&nbsp;

Revision as of 09:13, 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