<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 11, 2017 at 9:27 AM, mohammed aqdam <span dir="ltr"><<a href="mailto:mohammedaqdam@gmail.com" target="_blank">mohammedaqdam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">thanks for your response.<div dir="auto">I made the reqd changes from the [1] link and added the open embedded layer as well and in that layer I found v4l-utils,so hopefully it will work.</div><div dir="auto">But in order to take pic I need gstreamer and OMXplayer which is present in met area so berry pi/recipes-multimedia.....now I want yo use this,how to add those two utilities to my image?</div></div></blockquote><div><br></div><div>AFAICT omxplayer is part of rpi-test-image, a more feature reach image than rpi-basic-image: you could try building that instead, or refer to customising images content on the Yocto Reference Manual if you want to add it to rpi-basic-image (i.e. by setting IMAGE_INSTALL_append). A simple search for omxplayer in meta-raspberrypi documentation shows you'd also need to enable building that specific recipe, since it depends on non-free libraries. gstreamer is available from poky and meta-raspberrypi only provides some customisation to that recipe via bbappends. Again, if not already present in your image it should be possible to add it via the usual IMAGE_INSTALL_append mechanism.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Aug 10, 2017 10:34 PM, "Andrea Galbusera" <<a href="mailto:gizero@gmail.com" target="_blank">gizero@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 10, 2017 at 4:06 PM, mohammed aqdam <span dir="ltr"><<a href="mailto:mohammedaqdam@gmail.com" target="_blank">mohammedaqdam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Thanks for your response<div dir="auto">I did it from scratch and it worked even apt is there but its not working properly.....its giving failed to fork and no installation packages for all commands....how to fix apt?</div></div></blockquote><div><br></div><div>Did you try to follow the suggestion to use "package-management" image feature instead? Beside installing the tools like apt, it's going to deploy all related configuration files, like the installed packages database and whatever is needed to have a working package management on the target.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">Next I want to enable picamera v2 on rpi3 and use v4l2's api's......so how to add/enable camera? One more thing do I need to download any camera related folder and add it to bblayer.conf?</div></div></blockquote><div><br></div><div>I've never used the picamera myself, but I'd expect you'll need a lot of stuff from kernel support to appropriate device tree overlays and user space tools. A quick skim to meta-raspberrypi documentation showed [1] as a starting point. Also, some v4l related utils can be found in meta-oe which, yes, is one optional "layer" you can add to your bblayer.conf if needed. For searching which layer includes recipes for the software you need, please refer to the OpenEmbedded Layer Index [2]: it should be the most up-to-date source for such a bit.</div><div><br></div><div>[1] <a href="https://github.com/agherzan/meta-raspberrypi/blob/master/docs/extra-build-config.md#video-camera-support-with-v4l2-drivers" target="_blank">https://github.com/agherzan/me<wbr>ta-raspberrypi/blob/master/doc<wbr>s/extra-build-config.md#video-<wbr>camera-support-with-v4l2-<wbr>drivers</a></div><div>[2] <a href="https://layers.openembedded.org/layerindex/branch/master/layers/" target="_blank">https://layers.openembedde<wbr>d.org/layerindex/branch/<wbr>master/layers/</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_1270136168937222160m_-1838101509340986021gmail-HOEnZb"><div class="m_1270136168937222160m_-1838101509340986021gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Aug 10, 2017 3:04 PM, "Andrea Galbusera" <<a href="mailto:gizero@gmail.com" target="_blank">gizero@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 10, 2017 at 10:58 AM, mohammed aqdam <span dir="ltr"><<a href="mailto:mohammedaqdam@gmail.com" target="_blank">mohammedaqdam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">thanks for your response... <div dir="auto">How to change my meta-raspberrypi branch to pyro?</div></div></blockquote><div><br></div><div>Just checkout pyro branch from meta-raspberrypi repo... This is plain git, nothing specific to Yocto/OE.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">And yeah I'm trying to customize for Debian,and trying to add apt into my kernel using IMAGE_INSTALL_append +=" apt".</div></div></blockquote><div><br></div><div>If you want to add package management features to your image (which rpi-basic-image does not include by default), the supported way is by using the "package-management" image feature. This can be enabled either by IMAGE_FEATURES += "package-management" in your custom image recipe or by extending EXTRA_IMAGE_FEATURES in local.conf. See [1] for best practices on enabling additional image features and dig the docs for package-management to grasp the advantages of using this approach.</div><div><br></div><div>That said, I just run a build with your exact metadata commits and it went fine to the end, also resulting in apt-get related files to be in the final image rootfs. You might have messed up something while changing your <span style="font-family:sans-serif;font-size:13.696px">PACKAGE_CLASSES value. Have you tried wiping tmp/ and running the build again?</span> If it doesn't help you should share your local.conf to help figuring out what's wrong.</div><div><br></div><div>[1] <a href="http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#usingpoky-extend-customimage-imagefeatures" target="_blank">http://www.yoctoproject.or<wbr>g/docs/latest/mega-manual/mega<wbr>-manual.html#usingpoky-extend-<wbr>customimage-imagefeatures</a></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div></div><div class="m_1270136168937222160m_-1838101509340986021gmail-m_7403972029661969540m_6204495544071591042gmail-HOEnZb"><div class="m_1270136168937222160m_-1838101509340986021gmail-m_7403972029661969540m_6204495544071591042gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Aug 10, 2017 1:40 PM, "Andrea Galbusera" <<a href="mailto:gizero@gmail.com" target="_blank">gizero@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 10, 2017 at 6:16 AM, mohammed aqdam <span dir="ltr"><<a href="mailto:mohammedaqdam@gmail.com" target="_blank">mohammedaqdam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">i was building image for rpi 3.<br>
so when i run bitbake -k rpi-basic-image i'm getting following error.<br>
how to recover this error...<br>
<br>
root@pcz-ee207837-2:/u/my_poky<wbr>/poky/build# bitbake -k rpi-basic-image<br>
Parsing recipes: 100%<br>
|#############################<wbr>##############################<wbr>##############################<wbr>##############################<wbr>###################|<br>
Time: 0:01:10<br>
Parsing of 851 .bb files complete (0 cached, 851 parsed). 1320<br>
targets, 73 skipped, 0 masked, 0 errors.<br>
NOTE: Resolving any missing task queue dependencies<br>
<br>
Build Configuration:<br>
BB_VERSION  Â  Â  Â  = "1.34.0"<br>
BUILD_SYS  Â  Â  Â  Â = "x86_64-linux"<br>
NATIVELSBSTRING  Â = "universal-4.8"<br>
TARGET_SYS  Â  Â  Â  = "arm-poky-linux-gnueabi"<br>
MACHINE  Â  Â  Â  Â  Â = "raspberrypi3"<br>
DISTRO  Â  Â  Â  Â  Â  = "poky"<br>
DISTRO_VERSION  Â  = "2.3.1"<br>
TUNE_FEATURES  Â  Â = "arm armv7ve vfp thumb neon vfpv4<br>
callconvention-hard cortexa7"<br>
TARGET_FPU  Â  Â  Â  = "hard"<br>
meta<br>
meta-poky<br>
meta-yocto-bsp  Â  = "pyro:4a39979c8d1e560fa54240e9<wbr>9734a651dfbaa63a"<br>
meta-raspberrypi  = "master:f6a2ca21c72b8d97cd0f89<wbr>a0a436bf90b431698b"<br></blockquote><div><br></div><div>Hi! You are mixing layers from different release branches: this shouldn't be a big issue in your scenario, but, in order to debug further, you should try with pyro branch from meta-raspberrypi to match your poky commit. Moreover, it looks like you are using package_deb as the packaging format for your image: what's the exact value of your PACKAGE_CLASSES variable? Do you have any other customisation in your local.conf w.r.t. the default configuration?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Initialising tasks: 100%<br>
|#############################<wbr>##############################<wbr>##############################<wbr>##############################<wbr>################|<br>
Time: 0:00:06<br>
NOTE: Executing SetScene Tasks<br>
NOTE: Executing RunQueue Tasks<br>
ERROR: rpi-basic-image-1.0-r0 do_rootfs: Error executing a python<br>
function in exec_python_func() autogenerated:<br>
<br>
The stack trace of python calls that resulted in this exception/failure was:<br>
File: 'exec_python_func() autogenerated', lineno: 2, function: <module><br>
  Â  Â 0001:<br>
 *** 0002:do_rootfs(d)<br>
  Â  Â 0003:<br>
File: '/u/my_poky/poky/meta/classes/<wbr>image.bbclass', lineno: 270,<br>
function: do_rootfs<br>
  Â  Â 0266:<br>
  Â  Â 0267:  Â  progress_reporter.next_stage()<br>
  Â  Â 0268:<br>
  Â  Â 0269:  Â  # generate rootfs<br>
 *** 0270:  Â  create_rootfs(d, progress_reporter=progress_rep<wbr>orter,<br>
logcatcher=logcatcher)<br>
  Â  Â 0271:<br>
  Â  Â 0272:  Â  progress_reporter.finish()<br>
  Â  Â 0273:}<br>
  Â  Â 0274:do_rootfs[dirs] = "${TOPDIR}"<br>
File: '/u/my_poky/poky/meta/lib/oe/r<wbr>ootfs.py', lineno: 1005, function:<br>
create_rootfs<br>
  Â  Â 1001:  Â  Â  Â  RpmRootfs(d, manifest_dir, progress_reporter,<br>
logcatcher).create()<br>
  Â  Â 1002:  Â  elif img_type == "ipk":<br>
  Â  Â 1003:  Â  Â  Â  OpkgRootfs(d, manifest_dir, progress_reporter,<br>
logcatcher).create()<br>
  Â  Â 1004:  Â  elif img_type == "deb":<br>
 *** 1005:  Â  Â  Â  DpkgRootfs(d, manifest_dir, progress_reporter,<br>
logcatcher).create()<br>
  Â  Â 1006:<br>
  Â  Â 1007:  Â  os.environ.clear()<br>
  Â  Â 1008:  Â  os.environ.update(env_bkp)<br>
  Â  Â 1009:<br>
File: '/u/my_poky/poky/meta/lib/oe/r<wbr>ootfs.py', lineno: 638, function: __init__<br>
  Â  Â 0634:  Â  Â  Â  bb.utils.remove(self.d.getVar(<wbr>'MULTILIB_TEMP_ROOTFS'), True)<br>
  Â  Â 0635:  Â  Â  Â  self.manifest = DpkgManifest(d, manifest_dir)<br>
  Â  Â 0636:  Â  Â  Â  <a href="http://self.pm" rel="noreferrer" target="_blank">self.pm</a> = DpkgPM(d, d.getVar('IMAGE_ROOTFS'),<br>
  Â  Â 0637:  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â d.getVar('PACKAGE_ARCHS'),<br>
 *** 0638:  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â d.getVar('DPKG_ARCH'))<br>
  Â  Â 0639:<br>
  Â  Â 0640:<br>
  Â  Â 0641:  Â  def _create(self):<br>
  Â  Â 0642:  Â  Â  Â  pkgs_to_install = self.manifest.parse_initial_ma<wbr>nifest()<br>
File: '/u/my_poky/poky/meta/lib/oe/p<wbr>ackage_manager.py', lineno: 1245,<br>
function: __init__<br>
  Â  Â 1241:  Â  Â  Â  self.all_arch_list = archs.split()<br>
  Â  Â 1242:  Â  Â  Â  all_mlb_pkg_arch_list =<br>
(self.d.getVar('ALL_MULTILIB_P<wbr>ACKAGE_ARCHS') or "").split()<br>
  Â  Â 1243:  Â  Â  Â  self.all_arch_list.extend(arch for arch in<br>
all_mlb_pkg_arch_list if arch not in self.all_arch_list)<br>
  Â  Â 1244:<br>
 *** 1245:  Â  Â  Â  self._create_configs(archs, base_archs)<br>
  Â  Â 1246:<br>
  Â  Â 1247:  Â  Â  Â  self.indexer = DpkgIndexer(self.d, self.deploy_dir)<br>
  Â  Â 1248:<br>
  Â  Â 1249:  Â  """<br>
File: '/u/my_poky/poky/meta/lib/oe/p<wbr>ackage_manager.py', lineno: 1483,<br>
function: _create_configs<br>
  Â  Â 1479:  Â  Â  Â  Â  Â  if variant_arch not in base_arch_list:<br>
  Â  Â 1480:  Â  Â  Â  Â  Â  Â  Â  base_arch_list.append(variant_<wbr>arch)<br>
  Â  Â 1481:<br>
  Â  Â 1482:  Â  Â  Â  with open(self.apt_conf_file, "w+") as apt_conf:<br>
 *** 1483:  Â  Â  Â  Â  Â  with<br>
open(self.d.expand("${STAGING_<wbr>ETCDIR_NATIVE}/apt/<a href="http://apt.conf.sa" target="_blank">apt.conf.sa</a><wbr>mple")) as<br>
apt_conf_sample:<br>
  Â  Â 1484:  Â  Â  Â  Â  Â  Â  Â  for line in apt_conf_sample.read().split("<wbr>\n"):<br>
  Â  Â 1485:  Â  Â  Â  Â  Â  Â  Â  Â  Â  match_arch = re.match("  Architecture<br>
\".*\";$", line)<br>
  Â  Â 1486:  Â  Â  Â  Â  Â  Â  Â  Â  Â  architectures = ""<br>
  Â  Â 1487:  Â  Â  Â  Â  Â  Â  Â  Â  Â  if match_arch:<br>
Exception: FileNotFoundError: [Errno 2] No such file or directory:<br>
'/u/my_poky/poky/build/tmp/wor<wbr>k/raspberrypi3-poky-linux-gnue<wbr>abi/rpi-basic-image/1.0-r0/rec<wbr>ipe-sysroot-native/etc/apt/apt<wbr>.conf.sample'<br>
<br>
ERROR: rpi-basic-image-1.0-r0 do_rootfs: Function failed: do_rootfs<br>
ERROR: Logfile of failure stored in:<br>
/u/my_poky/poky/build/tmp/work<wbr>/raspberrypi3-poky-linux-gnuea<wbr>bi/rpi-basic-image/1.0-r0/temp<wbr>/log.do_rootfs.21760<br>
ERROR: Task (/u/my_poky/poky/meta-raspberr<wbr>ypi/recipes-core/images/rpi-ba<wbr>sic-image.bb:do_rootfs)<br>
failed with exit code '1'<br>
NOTE: Tasks Summary: Attempted 2312 tasks of which 2311 didn't need to<br>
be rerun and 1 failed.<br>
<br>
Summary: 1 task failed:<br>
  /u/my_poky/poky/meta-raspberry<wbr>pi/recipes-core/images/rpi-bas<wbr>ic-image.bb:do_rootfs<br>
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.<br>
<span class="m_1270136168937222160m_-1838101509340986021gmail-m_7403972029661969540m_6204495544071591042gmail-m_2002249612472036039m_5253000719575119424m_1565124425357432306HOEnZb"><font color="#888888">--<br>
______________________________<wbr>_________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer" target="_blank">https://lists.yoctoproject.org<wbr>/listinfo/yocto</a><br>
</font></span></blockquote></div><br></div></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div></div>
</blockquote></div></div>
</div></div></blockquote></div><br></div></div>