Error in yocto build while creating image

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

Error in yocto build while creating image

3,103 Views
nishitha_a
Contributor I

I am doing yocto build for imx8m board. 

The bitbake is 99% complete and then I get this error. Please provide suggestions to remove the issue.

Host is debian 8. 

bitbake imx-image-multimedia

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "debian-8"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mqevk"
DISTRO = "fsl-imx-wayland"
DISTRO_VERSION = "5.4-zeus"
TUNE_FEATURES = "aarch64 cortexa53 crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:cba967414370e195d109353e51510bd829aa86c3"
meta-oe
meta-multimedia
meta-python = "HEAD:9e60d30669a2ad0598e9abf0cd15ee06b523986b"
meta-freescale = "HEAD:c2a0d924f6200eea1fb1d1b61e7420ea5da2f8fb"
meta-freescale-3rdparty = "HEAD:dbcc686f52c3c84db8cb86aa8973a4e373651b98"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"
meta-bsp
meta-sdk
meta-ml = "HEAD:a083ffbbc3f4d1c02b1542746784d7f641a75b60"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust = "HEAD:a012a1027defe28495f06ed522a7a82bdd59a610"
meta-gnome
meta-networking
meta-filesystems = "HEAD:9e60d30669a2ad0598e9abf0cd15ee06b523986b"
meta-qt5 = "HEAD:b8bcf8cb576d072f435a0177375e54424f67d1c9"
meta-python2 = "HEAD:231c3d74cfcf734c3415e86ea8dd97f73ddced9d"


| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/nishitha/imx-yocto-bsp/build_imx/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/temp/run.do_image_wic.29521' failed with exit code 1:
| INFO: Creating image(s)...
|
| ERROR: _exec_cmd: export PATH=/home/nishitha/imx-yocto-bsp/build_imx/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/recipe-sysroot-native/sbin:/home/nishitha/imx-yocto-bsp/build_imx/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/recipe-sysroot-native/usr/sbin:/home/nishitha/imx-yocto-bsp/build_imx/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/recipe-sysroot-native/usr/bin:$PATH;mcopy -i /home/nishitha/imx-yocto-bsp/build_imx/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/deploy-imx-image-multimedia-image-complete/imx-image-multimedia-imx8mqevk-20200828095555/tmp.wic.d_b7c976/rootfs_boot.2.vfat -s /home/nishitha/imx-yocto-bsp/build_imx/tmp/work/imx8mqevk-poky-linux/imx-image-multimedia/1.0-r0/deploy-imx-image-multimedia-image-complete/imx-image-multimedia-imx8mqevk-20200828095555/tmp.wic.d_b7c976/boot.2/* ::/ returned '1' instead of 0
| output: Error converting to codepage 850 Invalid argument
| Cannot initialize '::'
| Bad target ::/
|
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/nishitha/imx-yocto-bsp/sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6918 tasks of which 6917 didn't need to be rerun and 1 failed.

0 Kudos
Reply
4 Replies

3,063 Views
nishitha_a
Contributor I

Hi,

Thank you for the quick reply.

I had tried in Ubuntu 18.04 also, but there also I get the same issue.

I follow the latest 2020 document https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

I am using prebuilt tarballs from http://downloads.yoctoproject.org/releases/yocto/yocto-3.1/buildtools/

These are the steps followed in detail :

Source tools environment

  • source /opt/poky/3.1/environment-setup-x86_64-pokysdk-linux

Repo init

  •  mkdir imx-yocto-bsp
  •  cd imx-yocto-bsp
  • repo sync

Build

  • DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source imx-setup-release.sh -b build_imx
  • bitbake imx-image-multimedia

 

 

0 Kudos
Reply

3,090 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

 

Hello Nishitha,

It looks like debian issue but Which release of the project is this? Are you using any buildtools
tarball? Is uninative enabled?

It sounds like there is missing codepage/locale data. Whether that is
on the host system or from the project, its hard to say based on the
limited info about the version/configuration.

Try to use ubuntu 18.04, it will work.

 

Regards

 

0 Kudos
Reply

3,061 Views
nishitha_a
Contributor I

Hi,

Thank you for the quick reply.

I had tried in Ubuntu 18.04 also, but there also I get the same issue.

I follow the latest 2020 document https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

I am using prebuilt tarballs from http://downloads.yoctoproject.org/releases/yocto/yocto-3.1/buildtools/

These are the steps followed in detail :

Source tools environment

  • source /opt/poky/3.1/environment-setup-x86_64-pokysdk-linux

Repo init

  •  mkdir imx-yocto-bsp
  •  cd imx-yocto-bsp
  • repo sync

Build

  • DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source imx-setup-release.sh -b build_imx
  • bitbake imx-image-multimedia
0 Kudos
Reply

3,046 Views
nishitha_a
Contributor I

Hello,

Thank you for the reply.

I have tried the same in Ubuntu 18.04 and gets stuck at the same issue there also.

I do use prebuilt “buildtools tarballs" for installing the dependencies. The installation is done as below:

sh x86_64-buildtools-nativesdk-standalone-3.1.sh

sh x86_64-buildtools-extended-nativesdk-standalone-3.1.sh

 

I follow the steps from the latest 2020 document https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

These are the steps done :

source /opt/poky/3.1/environment-setup-x86_64-pokysdk-linux

cd imx-yocto-bsp

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.24-2.1.0.xml

repo sync

DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source imx-setup-release.sh -b build_imx

bitbake imx-image-multimedia

 

0 Kudos
Reply