Yocto -error at startup


I’m experiencing an issue while using yocto on the 410C.
if I add any package to yocto (e.g. opencv), using:

IMAGE_INSTALL += “opencv”

I get this kernel panic at startup:

Kernel panic - not syncing: No working init found.

do you have an idea what went wrong ?

it is not recommended to use IMAGE_INSTALL variable. Instead you should use CORE_IMAGE_EXTRA_INSTALL, or if you really want to use IMAGE_INSTALL you should use: IMAGE_INSTALL_append instead of the += operator.

the issue is that += will set the variable if it is not set already. So during the parsing of the conf files, when it hits:

meta/classes/core-image.bbclass:IMAGE_INSTALL ?= “${CORE_IMAGE_BASE_INSTALL}”

it won’t do anything since the variable is already set to ‘opencv’

I suspec this this the issue you are having.