Building Mender Yocto Image: Error adding Raspberry Pi layer.

1,135 views
Skip to first unread message

Luke

unread,
Mar 1, 2018, 9:07:22 AM3/1/18
to Mender List mender.io

Having executed the commands below....

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
     build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
     xz-utils debianutils iputils-ping libsdl1.2-dev xterm

git clone -b rocko git://git.yoctoproject.org/poky
cd poky


git clone -b rocko git://github.com/mendersoftware/meta-mender

source oe-init-build-env

bitbake-layers add-layer ../meta-mender/meta-mender-core
bitbake-layers add-layer ../meta-mender/meta-mender-demo
bitbake-layers add-layer ../meta-mender/meta-mender-raspberrypi


I get this error....

NOTE: Starting bitbake server...
Loading cache...done.
Loaded 1302 entries from dependency cache.
Parsing recipes...done.
Parsing of 840 .bb files complete (838 cached, 2 parsed). 1305 targets, 44 skipped, 0 masked, 0 errors.
ERROR: No recipes available for:
  /home/luke/Documents/poky/meta-mender/meta-mender-raspberrypi/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr.bbappend
  /home/luke/Documents/poky/meta-mender/meta-mender-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Parse failure with the specified layer added


I've no idea where to start looking to fix this.  Any help appreciated.

Thanks,

Luke.

Gregorio Di Stefano

unread,
Mar 1, 2018, 9:15:11 AM3/1/18
to mender
Hi, 

did you forget to include meta-raspberrypi? 

Thanks,
Greg

--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+unsubscribe@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.

Luke

unread,
Mar 1, 2018, 9:43:59 AM3/1/18
to Mender List mender.io
Thank you Greg. 

I think you're right, I've probably not included the dependency.....and am not sure how I would!

Perhaps the installation of the dependency could be include in the documentation. 

So far all I've done is copy/paste this:
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.

Mirza Krak

unread,
Mar 1, 2018, 11:53:16 AM3/1/18
to mender
On 1 March 2018 at 15:43, Luke <luke.g...@unifymonitor.com> wrote:
> Thank you Greg.
>
> I think you're right, I've probably not included the dependency.....and am
> not sure how I would!
>
> Perhaps the installation of the dependency could be include in the
> documentation.

You need to do:

git clone -b rocko https://github.com/agherzan/meta-raspberrypi.git

Additional docs on raspberrypi integration can be found here:

https://github.com/mendersoftware/meta-mender/tree/rocko/meta-mender-raspberrypi

--
Med Vänliga Hälsningar / Best Regards

Mirza Krak

Luke

unread,
Mar 2, 2018, 6:04:30 AM3/2/18
to Mender List mender.io
Thanks Mirza, but I'm still not getting all the way through the process.

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
     build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
     xz-utils debianutils iputils-ping libsdl1.2-dev xterm

git clone -b rocko git://git.yoctoproject.org/poky
cd poky

git clone -b rocko git://github.com/mendersoftware/meta-mender
source oe-init-build-env


Then change my local.conf to:

MENDER_ARTIFACT_NAME = "release-1"
INHERIT += "mender-full"
MACHINE = "raspberrypi3"

RPI_USE_U_BOOT = "1"
MENDER_PARTITION_ALIGNMENT_KB = "4096"
MENDER_BOOT_PART_SIZE_MB = "40"
IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
IMAGE_FSTYPES_remove += " rpi-sdimg"

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


and run....

bitbake-layers add-layer ../meta-mender/meta-mender-core
bitbake-layers add-layer ../meta-mender/meta-mender-demo
bitbake-layers add-layer ../meta-mender/meta-mender-raspberrypi


ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    MACHINE=raspberrypi3 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.


Med Vänliga Hälsningar / Cheers,
Luke 

greg.di...@gmail.com

unread,
Mar 2, 2018, 6:08:04 AM3/2/18
to mender
Did you not add "meta-raspberrypi" to your layers.conf?

You only listed:

bitbake-layers add-layer ../meta-mender/meta-mender-core
bitbake-layers add-layer ../meta-mender/meta-mender-demo
bitbake-layers add-layer ../meta-mender/meta-mender-raspberrypi

Thanks,
Greg

--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+unsubscribe@lists.mender.io.

Luke

unread,
Mar 2, 2018, 6:26:46 AM3/2/18
to Mender List mender.io
Hi Greg, 

I thought I had by including the command provided by Mirza...
...is that not it.

Thanks,

Luke.

To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.

Mirza Krak

unread,
Mar 2, 2018, 6:35:26 AM3/2/18
to mender
On 2 March 2018 at 12:26, Luke <luke.g...@unifymonitor.com> wrote:
> Hi Greg,
>
> I thought I had by including the command provided by Mirza...
>
> git clone -b rocko https://github.com/agherzan/meta-raspberrypi.git
>
> ...is that not it.

Above only clones the git repository.

You must also add it to the bblayers, otherwise bitbake wont parse it.
That is you must run:

bitbake-layers add-layer ../meta-raspberrypi

This is really Yocto basics that you should read about more in the
Yocto mega manual:
http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html
Reply all
Reply to author
Forward
0 new messages