Difference between revisions of "Winhbw"

From ESS-WIKI
Jump to: navigation, search
(Blanked the page)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Config Yocto BSP(Ver.A) to Support ROM-5722 iMX8MP Dual Lite }} <!--
 
{| align="right"
 
| <span class="fck_mw_magic" _fck_mw_customtag="true" _fck_mw_tagname="TOC" _fck_mw_tagtype="c">_</span>
 
|}
 
-->
 
  
= Prerequisites =
 
follow [[IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide|Yocto Linux BSP Ver.A User Guide for iMX8 series]] to build one ROM-5722 image by using the following settings
 
 
:[[ IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide#Get_BSP | Get_BSP ]]
 
::specify manifest file to <span style="color:#7030a0">'''imx8LBVA1021.xml</span>
 
 
:[[ IoTGateway/BSP/Linux/iMX8/Yocto_LBVA_User_Guide#Build_Instructions | Build Instructions ]]
 
::<code><span style="color:#7030a0">'''MC'''</span>=imx8mprom5722a1</code>
 
::<code><span style="color:#7030a0">'''UC'''</span>=4G</code>
 
 
= Config u-boot-imx =
 
<syntaxhighlight lang="bash">
 
# development stage
 
devtool modify u-boot-imx
 
 
# modify arch/arm/mach-imx/imx8m/soc.c
 
pushd workspace/sources/u-boot-imx
 
 
# use vi/vim to create one patch
 
</syntaxhighlight>
 
 
<div style="margin-left: 2em;">
 
<span style="color:purple">* copy & paste the following text to keep tab char *</span>
 
<syntaxhighlight lang="bash">
 
--- a/arch/arm/mach-imx/imx8m/soc.c
 
+++ b/arch/arm/mach-imx/imx8m/soc.c
 
@@ -799,7 +799,12 @@ int disable_vpu_nodes(void *blob)
 
const char *nodes_path_8mp[] = {
 
"/vpu_g1@38300000",
 
"/vpu_g2@38310000",
 
- "/vpu_vc8000e@38320000"
 
+ "/vpu_vc8000e@38320000",
 
+ "/soc@0/blk-ctl@38330000",
 
+ "/soc@0/bus@30000000/gpc@303a0000/pgc/power-domain@19",
 
+ "/soc@0/bus@30000000/gpc@303a0000/pgc/power-domain@20",
 
+ "/soc@0/bus@30000000/gpc@303a0000/pgc/power-domain@21",
 
+ "/soc@0/bus@30000000/gpc@303a0000/pgc/power-domain@22"
 
};
 
 
if (is_imx8mq())
 
</syntaxhighlight>
 
</div>
 
 
<syntaxhighlight lang="bash">
 
patch -p1 < patch && rm patch
 
 
popd
 
 
# check if the modification works well
 
bitbake u-boot-imx
 
</syntaxhighlight>
 
 
= Config linux-imx =
 
<syntaxhighlight lang="bash">
 
# insert one command into recipe, linux-imx
 
pushd ../sources/meta-advantech/meta-fsl-imx/recipes-kernel/linux
 
 
sed '/do_copy_defconfig_mx8/a \    mkdir -p ${B}' linux-imx_5.4.bbappend
 
 
popd
 
 
# development stage
 
devtool modify linux-imx
 
 
# modify arch/arm64/boot/dts/freescale/imx8mp-rom5722-a1.dts
 
pushd workspace/sources/linux-imx
 
 
# use vi/vim to create one patch
 
</syntaxhighlight>
 
 
<div style="margin-left: 2em;">
 
<span style="color:purple">* copy & paste the following text to keep tab char *</span>
 
<syntaxhighlight lang="bash">
 
--- a/arch/arm64/boot/dts/freescale/imx8mp-rom5722-a1.dts
 
+++ b/arch/arm64/boot/dts/freescale/imx8mp-rom5722-a1.dts
 
@@ -1302,15 +1302,15 @@
 
};
 
 
&vpu_g1 {
 
- status = "okay";
 
+ status = "disabled";
 
};
 
 
&vpu_g2 {
 
- status = "okay";
 
+ status = "disabled";
 
};
 
 
&vpu_vc8000e {
 
- status = "okay";
 
+ status = "disabled";
 
};
 
 
&gpu_3d { </syntaxhighlight>
 
</div>
 
 
<syntaxhighlight lang="bash">
 
patch -p1 < patch && rm patch
 
 
popd
 
 
# check if the modification works well
 
bitbake linux-imx
 
</syntaxhighlight>
 
 
= Rebuild the image =
 
<syntaxhighlight lang="bash">
 
bitbake imx-image-full
 
</syntaxhighlight>
 
 
[[Category:Editor]]
 

Latest revision as of 03:56, 3 July 2024