[poky] Errors attempting to build AT91SAM9x5 BSP
Bryan Evenson
bevenson at melinkcorp.com
Mon Nov 19 08:35:51 PST 2012
All,
I think I'm building an image that includes my BSP, but I can't get the image to run under QEMU. If I don't include my BSP in the BBLAYERS variable in bblayers.conf, then the resulting built image runs under QEMU. Here's the steps I took to create a build the BSP.
1. Downloaded and extracted the poky-danny-8.0 tarball for my Yocto Project setup.
1. From my Source Directory, I invoked the BSP builder by calling "yocto-bsp create foo-qemu qemu"
2. Selected option 3 (ARM) for the qemu architecture.
3. Selected "y" to use the default 3.4 kernel.
4. Selected "y" to start a new branch for this BSP.
5. Selected "1" to base the machine on the arm-versatile-926ejs branch.
6. Selected "y" to include SMP support.
7. Selected "n" to indicate the BSP does not have a touchscreen.
8. Selected "n" to indicate the BSP does not have a keyboard.
9. Copied the configuration from tmp/sysroots/qemuarm/usr/src/kernel/arch/arm/configs/vexpress_defconfig as meta-foo-qemu/recipes-kernel/linux/files/foo-qemu.cfg.
10. Added my new BSP to the bblayers.conf file.
11. Called "bitbake -c clean linux-yocto && bitbake core-image-minimal" to rebuild the image with my BSP. My BSP shows up in the Bitbake configuration parameters.
12. Run my image by calling "runqemu qemuarm". A few details are printed out for the QEMU setup, a new window is launched for QEMU but the QEMU window remains blank.
If I remove my new BSP from bblayers.conf and redo steps 11 and 12, then the image boots just fine under QEMU. Are there some steps I'm missing in configuring my BSP?
Thanks,
Bryan
> -----Original Message-----
> From: poky-bounces at yoctoproject.org [mailto:poky-
> bounces at yoctoproject.org] On Behalf Of Bryan Evenson
> Sent: Tuesday, November 13, 2012 2:17 PM
> To: Paul Eggleton
> Cc: poky at yoctoproject.org
> Subject: Re: [poky] Errors attempting to build AT91SAM9x5 BSP
>
> Paul,
>
> Thanks for the information. From my reading of the BSP manual I'd
> thought I was supposed to increment the LCONF_VERSION each time I made
> a change to the bblayers.conf file; I appreciate the clarification.
>
> I searched for the error message I was getting, and I think it was
> originating in this section of sanity.bbclass:
>
> # Check bblayers.conf is valid
> current_lconf = sanity_data.getVar('LCONF_VERSION', True)
> lconf_version = sanity_data.getVar('LAYER_CONF_VERSION', True)
> if current_lconf != lconf_version:
> try:
> bb.build.exec_func("check_bblayers_conf", sanity_data)
> if sanity_data.getVar("SANITY_USE_EVENTS", True) == "1":
> bb.event.fire(bb.event.SanityCheckFailed("Your
> conf/bblayers.conf has been automatically updated. Please close and re-
> run."), sanity_data)
> return
> else:
> bb.note("Your conf/bblayers.conf has been automatically
> updated. Please re-run %s." % os.path.basename(sys.argv[0]))
> sys.exit(0)
> except Exception:
> messages = messages + "Your version of bblayers.conf was
> generated from an older version of bblayers.conf.sample and there have
> been updates made to this file. Please compare the two files and merge
> any changes before continuing.\nMatching the version numbers will
> remove this message.\n\"meld conf/bblayers.conf
> ${COREBASE}/meta*/conf/bblayers.conf.sample\" is a good way to
> visualise the changes.\n"
>
> Would it be helpful if the current_lconf != lconf_version check changed
> to have different messages when current_lconf > lconf_version and when
> current_lcong < lconf_version?
>
> Thanks,
> Bryan
>
> -----Original Message-----
> From: Paul Eggleton [mailto:paul.eggleton at linux.intel.com]
> Sent: Tuesday, November 13, 2012 12:53 PM
> To: Bryan Evenson
> Cc: poky at yoctoproject.org
> Subject: Re: [poky] Errors attempting to build AT91SAM9x5 BSP
>
> On Tuesday 13 November 2012 12:46:42 Bryan Evenson wrote:
> > Here is the original bblayers.conf file before I started creating my
> BSP:
> >
> > # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
> #
> > changes incompatibly LCONF_VERSION = "6"
> >
> > BBPATH = "${TOPDIR}"
> > BBFILES ?= ""
> >
> > BBLAYERS ?= " \
> > /media/sda3/yocto/poky-danny-8.0/meta \
> > /media/sda3/yocto/poky-danny-8.0/meta-yocto \
> > /media/sda3/yocto/poky-danny-8.0/meta-yocto-bsp \
> > "
> >
> > And here is what it looks like after adding my BSP layer:
> >
> > # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
> #
> > changes incompatibly LCONF_VERSION = "7"
> >
> > BBPATH = "${TOPDIR}"
> > BBFILES ?= ""
> >
> > BBLAYERS ?= " \
> > /media/sda3/yocto/poky-danny-8.0/meta \
> > /media/sda3/yocto/poky-danny-8.0/meta-yocto \
> > /media/sda3/yocto/poky-danny-8.0/meta-yocto-bsp \
> > /media/sda3/yocto/poky-danny-8.0/meta-intellihood-qemu \
> > "
> >
> > Although, I just tried building again after changing the
> LCONF_VERSION
> > back down to 6, and this time bitbake operates. I know I'd tried
> that
> > before and it hadn't worked. The only difference that I can think of
> > is that I've closed my terminal window and reopened it since my first
> > posting and this one, which means I had to re-source the
> > oe-init-build-env script. Is it possible that this was causing my
> problems from before?
>
> You shouldn't increase LCONF_VERSION unless LAYER_CONF_VERSION
> increases, and certainly it shouldn't be increased beyond the value of
> LAYER_CONF_VERSION (currently this is 6 in meta-yocto, 5 in OE-Core);
> why it would be telling you it had updated it if you did do that I
> don't know, that's certainly not intended behaviour.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
More information about the poky
mailing list