Galileo+cam+wifi(三) rebuild yocto image

来源:互联网 发布:st6015塔吊相关数据? 编辑:程序博客网 时间:2024/06/16 18:25


参考这个链接  是外国大神写的  重做内核的步骤!

http://www.malinov.com/Home/sergey-s-blog/intelgalileo-buildinglinuximage


我的ubuntu一共 40GB   比 要求 小了


7  Source poky/oe-init-build-env script, giving it the build directory (yocto_build) as a parameter:source poky/oe-init-build-env yocto_build8   Run bitbake to build the image:bitbake image-full

其实应该进入 yocto_build文件夹里面 再   第8步  (是我理解 的  有问题啊    他会自动进入 yoctobuild 文件夹 里面!!)


另外应该在 非root账户进行  否则 就 提示

dong@dong-Lenovo-G480:/opt/yocto/meta-clanton_v1.0.0$ bitbake image-fullUnable to find conf/bblayers.confBitBake must be run from within your build directory: /opt/yocto/meta-clanton_v1.0.0/yocto_build


第8步报错

<span style="font-size:14px;"><span style="font-size:12px;">dong@dong-Lenovo-G480:/opt/yocto/meta-clanton_v1.0.0/yocto_build$ bitbake image-fullPseudo is not present but is required, building this first before the main buildERROR: Error parsing configuration filesTraceback (most recent call last):  File "/opt/yocto/meta-clanton_v1.0.0/poky/bitbake/lib/bb/cooker.py", line 201, in BBCooker.loadConfigurationData():                 self.parseConfigurationFiles(self.configuration.prefile,    >                                         self.configuration.postfile)             except SyntaxError:  File "/opt/yocto/meta-clanton_v1.0.0/poky/bitbake/lib/bb/cooker.py", line 988, in BBCooker.parseConfigurationFiles(prefiles=[], postfiles=[]):             if data.getVar("BB_WORKERCONTEXT", False) is None:    >            bb.fetch.fetcher_init(data)             bb.codeparser.parser_cache_init(data)  File "/opt/yocto/meta-clanton_v1.0.0/poky/bitbake/lib/bb/fetch2/__init__.py", line 468, in fetcher_init(d=<bb.data_smart.DataSmart object at 0xb6ad0f6c>):                 pass    >        revs.clear()         else:  File "/opt/yocto/meta-clanton_v1.0.0/poky/bitbake/lib/bb/persist_data.py", line 147, in SQLTable.clear():         def clear(self):    >        self._execute("DELETE FROM %s;" % self.table)       File "/opt/yocto/meta-clanton_v1.0.0/poky/bitbake/lib/bb/persist_data.py", line 66, in SQLTable._execute(*query=('DELETE FROM BB_URI_HEADREVS;',)):</span></span><span style="font-size:12px;">                 try:    >                return self.cursor.execute(*query)                 except sqlite3.OperationalError as exc:OperationalError: attempt to write a readonly database</span>


问题解决

用应该和 权限有关系

我把所有权限 都 弄开了


我删除 重来了


加好了所有权限


又报错了

dong@dong-Lenovo-G480:/opt/yocto/meta-clanton_v1.0.0/yocto_build$ bitbake image-fullPseudo is not present but is required, building this first before the main buildWARNING: Host distribution "Ubuntu-14.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.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:    Please install the following missing utilities: gawkERROR: Execution of event handler 'check_sanity_eventhandler' failed


根据提示安装

sudo apt-get install gawk

又安装报错了

正在读取软件包列表... 完成正在分析软件包的依赖关系树       正在读取状态信息... 完成       下列软件包是自动安装的并且现在不需要了:  dnsmasq linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic  linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-genericUse 'apt-get autoremove' to remove them.将会安装下列额外的软件包:  libsigsegv2建议安装的软件包:  gawk-doc下列【新】软件包将被安装:  gawk libsigsegv2升级了 0 个软件包,新安装了 2 个软件包,要卸载 0 个软件包,有 36 个软件包未被升级。有 36 个软件包没有被完全安装或卸载。需要下载 744 kB 的软件包。解压缩后会消耗掉 1,962 kB 的额外空间。您希望继续执行吗? [Y/n] y获取:1 http://mirrors.163.com/ubuntu/ trusty/main libsigsegv2 i386 2.10-2 [14.8 kB]获取:2 http://mirrors.163.com/ubuntu/ trusty/main gawk i386 1:4.0.1+dfsg-2.1ubuntu2 [730 kB]下载 744 kB,耗时 1秒 (451 kB/s)正在设置 install-info (5.2.0.dfsg.1-2) .../etc/environment: line 5: PATH=/usr/lib/java/jre1.8.0_45/bin: No such file or directorydpkg: 处理软件包 install-info (--configure)时出错: 子进程 已安装 post-installation 脚本 返回了错误号 1在处理时有错误发生: install-infoE: Sub-process /usr/bin/dpkg returned an error code (1)

我明明有这个java目录

为什么告诉我没又啊????

确认了 java -version 命令  没问题




尝试  sudo apt-get install gawk-doc

遇到同样的错误


解决办法是

删了 之前安装的jre

重新sudo apt-get install default-jre

这样以来

dong@dong-Lenovo-G480:~$ java -versionjava version "1.7.0_75"OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)OpenJDK Server VM (build 24.75-b04, mixed mode)

都正常

root@dong-Lenovo-G480:/# sudo update-alternatives --config java链接组 java (提供 /usr/bin/java)中只有一个候选项:/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java无需配置。root@dong-Lenovo-G480:/# 

再  sudo apt-get install gawk
重来bitbake image-full



又报错了

dong@dong-Lenovo-G480:/opt/yocto/meta-clanton_v1.0.0/yocto_build$ bitbake image-fullPseudo is not present but is required, building this first before the main build<span style="color:#CC6600;">WARNING: Host distribution "Ubuntu-14.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.WARNING: Unable to get checksum for core-image-minimal-initramfs SRC_URI entry modules.conf: file could not be found</span>Parsing recipes: 100% |#########################################| Time: 00:01:26Parsing of 1251 .bb files complete (0 cached, 1251 parsed). 1614 targets, 118 skipped, 0 masked, 0 errors.Build Configuration:BB_VERSION        = "1.18.0"BUILD_SYS         = "i686-linux"NATIVELSBSTRING   = "Ubuntu-14.04"TARGET_SYS        = "i586-poky-linux-uclibc"MACHINE           = "clanton"DISTRO            = "clanton-tiny"DISTRO_VERSION    = "1.4.2"TUNE_FEATURES     = "m32 i586"TARGET_FPU        = ""meta              meta-yocto        meta-yocto-bsp    = "clanton:d734ab491a30078d43dee5440c03acce2d251425"meta-intel        = "clanton:048def7bae8e3e1a11c91f5071f99bdcf8e6dd16"meta-oe           = "clanton:13ae5105ee30410136beeae66ec41ee4a8a2e2b0"meta-clanton-distro meta-clanton-bsp  = "<unknown>:<unknown>"NOTE: Resolving any missing task queue dependenciesNOTE: Preparing runqueueNOTE: Executing SetScene TasksNOTE: Executing RunQueue Tasks<span style="color:#FF0000;">ERROR: Function failed: sysroot_stage_all (see /opt/yocto/meta-clanton_v1.0.0/yocto_build/tmp/work/i686-linux/quilt-native/0.60-r0/temp/log.do_populate_sysroot.18439 for further information)ERROR: Logfile of failure stored in: /opt/yocto/meta-clanton_v1.0.0/yocto_build/tmp/work/i686-linux/quilt-native/0.60-r0/temp/log.do_populate_sysroot.18439</span>Log data follows:| DEBUG: Executing python function sstate_task_prefunc| DEBUG: Python function sstate_task_prefunc finished| DEBUG: Executing python function do_populate_sysroot| DEBUG: Executing shell function sysroot_stage_all| tar: --same-order option cannot be used with -c| Try 'tar --help' or 'tar --usage' for more information.| tar: This does not look like a tar archive| tar: Exiting with failure status due to previous errors| DEBUG: Python function do_populate_sysroot finished<span style="color:#FF0000;">| ERROR: Function failed: sysroot_stage_all (see /opt/yocto/meta-clanton_v1.0.0/yocto_build/tmp/work/i686-linux/quilt-native/0.60-r0/temp/log.do_populate_sysroot.18439 for further information)ERROR: Task 10 (/opt/yocto/meta-clanton_v1.0.0/poky/meta/recipes-devtools/quilt/quilt-native_0.60.bb, do_populate_sysroot) failed with exit code '1'NOTE: Tasks Summary: Attempted 17 tasks of which 0 didn't need to be rerun and 1 failed.Waiting for 0 running tasks to finish:</span>Summary: 1 task failed:  /opt/yocto/meta-clanton_v1.0.0/poky/meta/recipes-devtools/quilt/quilt-native_0.60.bb, do_populate_sysrootSummary: There were 2 WARNING messages shown.Summary: There was 1 ERROR message shown, returning a non-zero exit code.dong@dong-Lenovo-G480:/opt/yocto/meta-clanton_v1.0.0/yocto_build$ 

解决问题是  伽利略论坛上一个提问

JPMontero_Intel正确答案作者: JPMontero_Intel 在 2014-7-8 上午9:52I’d recommend you to try it with Ubuntu 12.04 instead of the 14.04, this is because some users have reported some issues with this version. Also make sure you have enough space to build the image, and just to clarify you need to download the version 12.04 from the Ubuntu website and install again, you cannot downgrade.RegardsJPMontero_Intel

我用的就是ubuntu14.04  只有不到10GB


参考

https://communities.intel.com/message/252010

https://communities.intel.com/thread/53094

接下来就要

安装虚拟机 ubuntu12.04   给100GB空间


http://bbs.csdn.net/topics/390932377

参考这个

VM10+ ubuntu12.04

刚我也用VM安装了Ubuntu12.04 LTS 64bit Desktop 发现同样的问题(上面描述的输入密码前正常 输入后黑屏),登录字符界面 查看log 发现确实有个SVG3D的Error 关闭虚拟机,打开虚拟机设置,显示器,有个3d图形加速,去掉那个勾即可,恢复正常。


虚拟机12.04已经安装好了

1 换163的软件源

2 update 好了

3 安装git

4 安装makeinfo  报错

解决办法是:


http://www.crifan.com/ubuntu_apt_get_install_e_unable_to_locate_package/

参考这个

【总结】此处sudo apt-get install makeinfo出现:E: Unable to locate package makeinfo的原因是:makeinfo不是一个单独的软件,而是texinfo中的内容。所以要去安装texinfo即可:sudo apt-get install texinfo


终于来到了 

bitbake image-full
=============等着吧========



谢天谢地  这次没有报错 说什么ubuntu版本不行


WARNING: Unable to get checksum for core-image-minimal-initramfs SRC_URI entry modules.conf: file could not be foundParsing recipes: 100% |#########################################| Time: 00:03:30Parsing of 1251 .bb files complete (0 cached, 1251 parsed). 1614 targets, 118 skipped, 0 masked, 0 errors.Build Configuration:BB_VERSION        = "1.18.0"BUILD_SYS         = "i686-linux"NATIVELSBSTRING   = "Ubuntu-12.04"TARGET_SYS        = "i586-poky-linux-uclibc"MACHINE           = "clanton"DISTRO            = "clanton-tiny"DISTRO_VERSION    = "1.4.2"TUNE_FEATURES     = "m32 i586"TARGET_FPU        = ""meta              meta-yocto        meta-yocto-bsp    = "clanton:d734ab491a30078d43dee5440c03acce2d251425"meta-intel        = "clanton:048def7bae8e3e1a11c91f5071f99bdcf8e6dd16"meta-oe           = "clanton:

又报错了

NOTE: multiple providers are available for runtime glibc-gconv-ibm869-native (eglibc-locale, nativesdk-eglibc-locale)NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-gconv-ibm869-nativeNOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)NOTE: consider defining a PREFERRED_PROVIDER entry to match jpegNOTE: Preparing runqueueNOTE: Executing SetScene TasksNOTE: Executing RunQueue Tasks<span style="color:#ff0000;">ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:fatal: reference is not a tree: 1cffe9f406cc54f4759fc9eeb85598fb8cae66c7ERROR: Logfile of failure stored in: /home/dong/Documents/meta-clanton_v1.0.0/yocto_build/tmp/work/i586-poky-linux-uclibc/x264/r2230+git-r1/temp/log.do_unpack.3299</span>Log data follows:| DEBUG: Executing python function do_unpack| DEBUG: Executing python function base_do_unpack


后面还有

c54f4759fc9eeb85598fb8cae66c7| DEBUG: Python function base_do_unpack finished| DEBUG: Python function do_unpack finished| ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output:| fatal: reference is not a tree: 1cffe9f406cc54f4759fc9eeb85598fb8cae66c7| <span style="color:#ff0000;">ERROR: Task 2166 (/home/dong/Documents/meta-clanton_v1.0.0/meta-oe/meta-oe/recipes-multimedia/x264/x264_git.bb, do_unpack) failed with exit code '1'</span>


解决办法:::

https://communities.intel.com/thread/51949

参考这个  改一个什么码!!! 改成



还是不行


各种有问题 

都用谷分搜搜


第一次尝试  死机了

在第1274个文件上死机了


第二次 死机了 

在第1579个文件死机了


问题大概是虚拟机不 稳定吧


解决就是

每隔一个小时 碰一下 电脑


编译中的版本问题 一共有  3个

1 是opencv2.4.3 已经淘汰了

参考https://communities.intel.com/message/249451#249451

This is something I hit as well.  I came up with a different solution which was to modify the OpenCV .bb files. From what I can tell, the Yocto  for OpenCV recipe is trying to download OpenCV-2.4.3-tar.bz from SourceForge and SourceForge mirrors, but it you look at the OpenCV stored at sourceforge, that version isn't stored there (I would assume it was deleted). Fortunately, there are other mirrors for that version of OpenCV if you want that in your build. So in my case I found multiple mirrors for that OpenCV version tar file at filewatcher.com and chose the mirror of ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/OpenCV-2.4.3.tar.bz2 I found the .bb file for OpenCV at: meta-clanton-v1.0.1/meta-oe/meta-oe/recipes-support/opencv/ with files of opencv_2.4.3.bb and opencv-samples_2.4.3.bb For opencv_2.4.3.bb I changed this line:SRC_URI = "{$SOURCEFORGE_MIRROR}/opencvlibrary/opencv-unix/${PV}/OpenCV-${PV}.tar.bz2 \to:SRC_URI = "ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/OpenCV-${PV}.tar.bz2 \ For opencv-sample_2.4.3.bb, do the same thing, change this line:SRC_URI = "{$SOURCEFORGE_MIRROR}/opencvlibrary/opencv-unix/${PV}/OpenCV-${PV}.tar.bz2 \to:SRC_URI = "ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/OpenCV-${PV}.tar.bz2 \ I then in my terminal window navigated back to my Yocto bulid directory, did a bitbake image-full-galileo and was able to see successful messages for the OpenCV file of do_fetch, do_install, etc. and was able to take the image files, copy them to an SD card and boot my Galileo Gen2 board successfully. - Alan


2 x264 问题

https://communities.intel.com/thread/51949

Yeah - it seems to have changed yet again. The hash right now is: bfed708c5358a2b4ef65923fb0683cefa9184e6f This is how I determined the correct hash, for anybody else who comes along: git log --grep 'Fix possible issues with out-of-spec QP values'

在这个文件里修改

Here's my patch (relative to meta-clanton_v0.7.5/meta-oe)diff --git a/meta-oe/recipes-multimedia/x264/x264_git.bb b/meta-oe/recipes-multimedia/x264/x264_git.bb


3 grub fedora。git

https://communities.intel.com/thread/59949

参考这个


As a workaround: Use:SRC_URI = "git://github.com/mjg59/grub-fedora.git"instead of:SRC_URI = "git://github.com/vathpela/grub-fedora.git"In grub_0.97.bb recipe.Cheers,Wojtek

in "meta-clanton-bsp/recipes-bsp/grub/grub_0.97.bb".
在这个文件里

今天是2015年 4月 22日

一切什么版本什么的  都基于今天 


我从13点开始编译  一直到24点 才 运行ok

我的虚拟机1小时不碰它 就会死机  死机两次之后  我学乖了

每半小时 我就动动他  。。。。

终于做好;了


0 0
原创粉丝点击