chirpstack / chirpstack-gateway-os

OpenWrt based gateway images including ChirpStack components.
https://www.chirpstack.io
130 stars 56 forks source link

No IMAGE_CMD defined #8

Closed jprodriguez-uutech closed 5 years ago

jprodriguez-uutech commented 5 years ago

In a fresh-cloned docker, bitbake is failing because of missing configuration.

~/git/lora-gateway-os$ docker-compose run --rm yocto bash yocto@f7c1d562c3d4:/lora-gateway-os$ source oe-init-build-env /build/ /lora-gateway-os/bitbake/ yocto@f7c1d562c3d4:/build$ bitbake lora-gateway-os-base ERROR: /lora-gateway-os/layers/bsp/meta-raspberrypi/recipes-core/images/rpi-test-image.bb: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'sdimg' - possibly invalid type name or missing support class ETA: 0:01:47 ERROR: /lora-gateway-os/layers/bsp/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'sdimg' - possibly invalid type name or missing support class ERROR: Failed to parse recipe: /lora-gateway-os/layers/bsp/meta-raspberrypi/recipes-core/images/rpi-test-image.bb ERROR: /lora-gateway-os/layers/bsp/meta-raspberrypi/recipes-core/images/rpi-basic-image.bb: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'sdimg' - possibly invalid type name or missing support class

Summary: There were 4 ERROR messages shown, returning a non-zero exit code. yocto@f7c1d562c3d4:/build$

jprodriguez-uutech commented 5 years ago

Possible solution: add to conf/local.conf the following configuration: IMAGE_FSTYPES = "tar.xz ext3 rpi-sdimg"

(https://yocto.yoctoproject.narkive.com/N1e5LkgV/how-do-i-used-yocto-to-build-an-sdcard-image-for-my-raspberry-pi-3-model-b)

brocaar commented 5 years ago

I can't reproduce this issue. Maybe your Git submodules are not up-to-date?

IMAGE_FSTYPES = "tar.xz ext3 rpi-sdimg"

This is not the solution as Mender is used to generate the SD Card images, it should not use the rpi-sdimg.

I suggest you start from a clean environment (Also Docker containers) and test again.