2019.2.17日:最终安装成功,完美解决!
2019.2.16日:最终安装未成功,但是过程中排除 了几个bug,前进了几步,仅供参考。
写在最前面,yocto安装是有系统要求的,Deepin 15.8不在此Freescale SDK安装的官方适配范围内,楼主只是一时兴起,强行安装。
首先在VMware分配QorIQ Linux SDK v2.0 SOURCE.iso光盘镜像给虚拟机,会自动挂载在 /media/eric/yocto目录下。
打开terminal 执行:
-> /media/eric/yocto/install
-> cd /home/eric/QorIQ-SDK-V2.0-20160527-yocto
-> ./sources/meta-freescale/scripts/host-prepare.sh
->. ./fsl-setup-env -m t4240qds
期间会遇到如下库找不到的情况,执行下面的命令。
sudo apt-get install build-essential sudo apt-get install diffstat sudo apt-get install texinfo sudo apt-get install git sudo apt-get install chrpath sudo apt-get install libsdl1.2-dev
-> bitbake fsl-toolchain
编译到这里,一般会提示:
ERROR: Function failed: Fetcher failure: Fetch command failed with exit code 128, output: fatal: the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead. ERROR: Logfile of failure stored in: /home/eric/QorIQ-SDK-V2.0-20160527-yocto/build_t4240qds/tmp/work/x86_64-linux/gnu-config-native/20150728+gitAUTOINC+b576fa87c1-r0/temp/log.do_unpack.102114 Log data follows: | DEBUG: Executing python function do_unpack | DEBUG: Executing python function base_do_unpack
这样的错误提示,解决方法是:
修改/home/eric/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/bitbake/lib/bb/fetch2/git.py
runfetchcmd("%s branch --set-upstream %s origin/%s" % (ud.basecmd, branchname, \ branchname), d)
改成
runfetchcmd("%s branch --set-upstream-to origin/%s" % (ud.basecmd, \ branchname), d
修改之后,使用下面指令清除上次编译。
-> bitbake -c cleansstate fsl-toolchain
之后再执行
-> bitbake fsl-toolchain
还会继续遇到如下错误提示:
| help2man: can't get `--help' info from automake-1.15 | Try `--no-discard-stderr' if option outputs to stderr | make: *** [Makefile:3687: doc/automake-1.15.1] Error 255 | make: *** Waiting for unfinished jobs.... | WARNING: exit code 1 from a shell command. | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (log file is located at /home/eric/QorIQ-SDK-V2.0-20160527-yocto/build_t4240qds/tmp/work/x86_64-linux/automake-native/1.15-r0/temp/log.do_compile.123911)
解决方法是:修改 /home/eric/QorIQ-SDK-V2.0-20160527-yocto/build_t4240qds/tmp/work/x86_64-linux/automake-native/1.15-r0/build/makefile文件:
doc/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm $(update_mans) aclocal-$(APIVERSION) doc/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm $(update_mans) automake-$(APIVERSION)
修改成
doc/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm $(update_mans) aclocal-$(APIVERSION) doc/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm $(update_mans) automake-$(APIVERSION) --no-discard-stderr
之后再清理编译,再次执行
-> bitbake -c cleansstate fsl-toolchain
-> bitbake fsl-toolchain
又会遇到 如下报错
| Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/eric/QorIQ-SDK-V2.0-20160527-yocto/build_t4240qds/tmp/sysroots/x86_64-linux/usr/bin/automake line 3936. | Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /home/eric/QorIQ-SDK-V2.0-20160527-yocto/bu