build for imx-image-full image failing for i.MX8MN DDR4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

build for imx-image-full image failing for i.MX8MN DDR4

Jump to solution
3,728 Views
betanapallisandeepraj
Contributor III

Hi, 

I changed below line and build the full image for i.MX8MN DDR4. But it failing with some kernel pci tests. 

I tried to to mask that layer but did not work. Could you help me in compiling full image successfully.

$vim /home/sandeepraj/imx-yocto-bsp_min/sources/meta-imx/meta-bsp/conf/machine/imx8mnevk.conf
-- require conf/machine/imx8mnlpddr4evk.conf
++ require conf/machine/imx8mnddr4evk.conf

I just changed from lpddr4 to ddr4 in configuration, Since I am using the old board with DDR4. 

After that I tried build the image with below command,

$bitbake -k imx-image-full

Now I am getting error in with compilation failure. Please find the log file attached. 

If we could not resolve it completely, I am fine to disable the kernel pci tests layer. 
Please suggest ways of disabling kernel pci tests. I tried to mask in local.conf, but it did not work. 

Error log as below, the same log attached. 

------------------------------------------------------------------------------------------------------------------------------

DEBUG: Executing python function copy_pci_source_from_kernel
DEBUG: Python function copy_pci_source_from_kernel finished
DEBUG: Executing shell function do_configure
NOTE: make CROSS_COMPILE=aarch64-poky-linux- ARCH=arm64 CC=aarch64-poky-linux-gcc -mcpu=cortex-a53+crc+crypto -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/sandeepraj/imx-yocto-bsp_full_172021042021/build-wayland/tmp/work/imx8mnevk-poky-linux/kernel-pcitest/1.0-r0/recipe-sysroot AR=aarch64-poky-linux-gcc-ar LD=aarch64-poky-linux-ld --sysroot=/home/sandeepraj/imx-yocto-bsp_full_172021042021/build-wayland/tmp/work/imx8mnevk-poky-linux/kernel-pcitest/1.0-r0/recipe-sysroot DESTDIR=/home/sandeepraj/imx-yocto-bsp_full_172021042021/build-wayland/tmp/work/imx8mnevk-poky-linux/kernel-pcitest/1.0-r0/image clean
Makefile:333: scripts/Kbuild.include: No such file or directory
Makefile:340: scripts/subarch.include: No such file or directory
Makefile:652: arch/arm64/Makefile: No such file or directory
Makefile:714: scripts/Makefile.kcov: No such file or directory
Makefile:715: scripts/Makefile.gcc-plugins: No such file or directory
Makefile:907: scripts/Makefile.kasan: No such file or directory
Makefile:908: scripts/Makefile.extrawarn: No such file or directory
Makefile:909: scripts/Makefile.ubsan: No such file or directory
make: *** No rule to make target 'scripts/Makefile.ubsan'. Stop.
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Execution of '/home/sandeepraj/imx-yocto-bsp_full_172021042021/build-wayland/tmp/work/imx8mnevk-poky-linux/kernel-pcitest/1.0-r0/temp/run.do_configure.4312' failed with exit code 1:
Makefile:333: scripts/Kbuild.include: No such file or directory
Makefile:340: scripts/subarch.include: No such file or directory
Makefile:652: arch/arm64/Makefile: No such file or directory
Makefile:714: scripts/Makefile.kcov: No such file or directory
Makefile:715: scripts/Makefile.gcc-plugins: No such file or directory
Makefile:907: scripts/Makefile.kasan: No such file or directory
Makefile:908: scripts/Makefile.extrawarn: No such file or directory
Makefile:909: scripts/Makefile.ubsan: No such file or directory
make: *** No rule to make target 'scripts/Makefile.ubsan'. Stop.
WARNING: exit code 1 from a shell command.

 

-----------------------------------------------------------------------------------------------------------------------------

 

Thank you

Labels (1)
0 Kudos
Reply
1 Solution
3,704 Views
betanapallisandeepraj
Contributor III

I was using fsl-imx-wayland earlier. After changing the DISTRO=fsl-imx-xwayland, I could compile successfully for DDR4 as well. 

Please find the steps as below,

$ DISTRO=fsl-imx-xwayland MACHINE=imx8mnevk source imx-setup-release.sh -b build-xwayland

$ bitbake –c cleanall kernel-pcitest

$ bitbake –k imx-image-full

 

Thank you srinivasarao.chilaka from nxp for supporting over an email. 

View solution in original post

1 Reply
3,705 Views
betanapallisandeepraj
Contributor III

I was using fsl-imx-wayland earlier. After changing the DISTRO=fsl-imx-xwayland, I could compile successfully for DDR4 as well. 

Please find the steps as below,

$ DISTRO=fsl-imx-xwayland MACHINE=imx8mnevk source imx-setup-release.sh -b build-xwayland

$ bitbake –c cleanall kernel-pcitest

$ bitbake –k imx-image-full

 

Thank you srinivasarao.chilaka from nxp for supporting over an email.