2017-10-22 13 views
0

Mender.io 및 Yocto로 Raspberry Pi 이미지를 빌드하는 데 문제가 있습니다. 여기 bitbake 오류 : 아무것도 라스베리 파이를 제공하지 않습니다

내 bblayers.conf

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf 
    # changes incompatibly 
    POKY_BBLAYERS_CONF_VERSION = "2" 

    BBPATH = "${TOPDIR}" 
    BBFILES ?= "" 

    BBLAYERS ?= " \ 
     /root/poky/meta \ 
     /root/poky/meta-poky \ 
     /root/poky/meta-yocto-bsp \ 
     /root/poky/meta-mender/meta-mender-core \ 
     /root/poky/meta-mender/meta-mender-raspberrypi \ 
     /root/poky/meta-raspberrypi \ 
     /root/poky/meta-openembedded/meta-oe \ 
     /root/poky/meta-openembedded/meta-multimedia \ 
     /root/poky/meta-openembedded/meta-python \ 
     /root/poky/meta-openembedded/meta-networking \ 
    " 

그리고 여기 내 local.conf입니다

PACKAGECONFIG_append_pn-qemu-native = " sdl" 
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl" 
#ASSUME_PROVIDED += "libsdl-native" 

# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to 
# track the version of this file when it was generated. This can safely be ignored if 
# this doesn't mean anything to you. 
CONF_VERSION = "2" 

# The name of the disk image or Artifact that will be built. 
# This is what the device will report that it is running, and different updates must have different names 
# because Mender will skip installation of an artifact if it is already installed. 
MENDER_ARTIFACT_NAME = "release-1" 

INHERIT += "mender-full" 

# A MACHINE integrated with Mender. 
# vexpress-qemu or beaglebone can be used for testing. 
MACHINE = "raspberrypi0" 

DISTRO_FEATURES_append = " systemd" 
VIRTUAL-RUNTIME_init_manager = "systemd" 
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" 
VIRTUAL-RUNTIME_initscripts = "" 

IMAGE_FSTYPES = "ext4" 

KERNEL_IMAGETYPE = "uImage" 

MENDER_PARTITION_ALIGNMENT_KB = "4096" 
MENDER_BOOT_PART_SIZE_MB = "40" 

do_image_sdimg[depends] += " bcm2835-bootfiles:do_populate_sysroot" 

# raspberrypi files aligned with mender layout requirements 
IMAGE_BOOT_FILES_append = " boot.scr u-boot.bin;${SDIMG_KERNELIMAGE}" 
IMAGE_INSTALL_append = " kernel-image kernel-devicetree" 
IMAGE_FSTYPES_remove += " rpi-sdimg" 

내가

bitbake image1 

나는 다음과 같은 오류가 다음 명령을 실행하면 :

Loading cache: 100% |################################################################################################################################| Time: 0:00:00 
Loaded 160 entries from dependency cache. 
Parsing recipes: 100% |##############################################################################################################################| Time: 0:01:22 
Parsing of 1982 .bb files complete (97 cached, 1885 parsed). 2743 targets, 184 skipped, 0 masked, 0 errors. 
ERROR: Nothing PROVIDES 'image1' 

Summary: There was 1 ERROR message shown, returning a non-zero exit code. 

무엇이 누락 될 수 있습니까?

+2

'image1'은 어디에 있습니까? –

+0

bblayers.conf 파일에 지정된 레이어 중 하나에 image1 * .bb라는 제조법이 있어야 비트 밴은 사용자가 의도 한 것을 알고 있습니다. image1.bb의 위치는 어디입니까? – urnenfeld

+0

'bitbake image1'을 어디에서 읽으셨습니까? DavidBensoussan이 image1 요리법이 있어야한다고 말했거나 다른 대상을 가진 bitbake를 호출해야합니다. – strippenzieher

답변

1

"bitbake"를 실행하면 recipe 나 target이 될 것입니다 (최소한). recipe/target은 bblayers.conf에 포함 된 레이어 중 하나에있는 * .bb 파일 (즉, recipe 파일)에 해당합니다 (이 관계가 정확히 맞지 않지만 지금은 무시하십시오). 대부분의 .bb 파일은 패키지의 요리법이지만 이미지를 정의하는 몇 가지가 있습니다. 이미지 조리법은 '특별'이기 때문에 일반적으로 레이어 내의 '이미지'라는 디렉토리에 포함됩니다. 그래서 다양한 계층의 디렉토리 내에서

'find . -type d -name images'

을 수행, 당신은 (당신이 가장 가능성이 관심 메타 라즈베리 파이에있는 이미지에 있습니다)에 관심이있는 이미지 조리법을 찾기 위해 이러한 이미지 디렉토리의 내용을 검사합니다. 원하는 이미지를 결정한 다음 해당 이미지 이름으로 bitbake 명령을 실행하십시오.

ex. 'bitbake rpi-basic-image'