imx8qxp standalone compile linux kernel failed: scripts/dtc/yamltree.c:9:10: fatal error: yaml.h: No

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

imx8qxp standalone compile linux kernel failed: scripts/dtc/yamltree.c:9:10: fatal error: yaml.h: No

3,241件の閲覧回数
jackey267
Contributor II

hello sir:

1  standalone linux kernel build failed : 

scripts/dtc/yamltree.c:9:10: fatal error: yaml.h: No such file or directory
9 | #include <yaml.h>
|                   ^~~~~~~~ 

2   2007 cd standalone/
2009 cd linux-imx/
2011 source ~/project/sdk_imx8qxp/environment-setup-cortexa35-poky-linux
2012 unset LD_LIBRARY_PATH
2013 source ~/project/sdk_imx8qxp/environment-setup-cortexa35-poky-linux
2014 export ARCH=arm64
2015 unset LDFLAGS
2016 echo $CROSS_COMPILE
2017 make distclean
2018 make imx_v8_defconfig
2019 make -j16

3 questions 1 : why did  the  sdk name built by cmd : $bitbake imx-image-full -c populate_sdk   is  fsl-imx-xwayland-glibc-x86_64-imx-image-full-cortexa35-imx8qxpc0mek-toolchain-5.10-gatesgarth.sh  instead of fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8qxpc0mek-toolchain-5.10-gatesgarth.sh ?   

question 2 : how to fix that trouble ? 

base version :  

$git status ----

HEAD detached at imx_5.10.35_2.0.0_imx8ulp_er
nothing to commit, working tree clean 

thanks 

thanks .

0 件の賞賛
返信
1 返信

3,236件の閲覧回数
jackey267
Contributor II

hi sir the right way to fix it : 

the root case is the ubuntu 20.04 build server needs to install yaml by cmd : 

$ sudo apt install libghc-libyaml-dev 

thanks a lot.