堕落~到~人间
获得 0 次赞
帮助过1人
这条回复表示没看懂,先前我没法获取到GPS模块的数据,应该是系统里没有usb-ttl的驱动吧,现在我想加入那个驱动,只有去程序定制个系统吧
修改了poxy/meta/conf/sanity.conf文件,屏蔽掉SANITY_ABIFILE = "${TMPDIR}/abi_version"后,上面的错误没有了,但又出现了新的问题,不知道问题出在哪 jcm@jcm-virtual-machine:~/yocto_bulid$ bitbake image-full-galileo WARNING: Host distribution "Ubuntu-12.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: Execution of event handler 'check_sanity_eventhandler' failed Traceback (most recent call last): File "/home/jcm/poky/meta/classes/sanity.bbclass", line 1005, in check_sanity_eventhandler(e=): sanity_data.setVar("SANITY_USE_EVENTS", "1") > reparse = check_sanity(sanity_data) e.data.setVar("BB_INVALIDCONF", reparse) File "/home/jcm/poky/meta/classes/sanity.bbclass", line 985, in check_sanity(sanity_data=): > sanity_handle_abichanges(status, sanity_data) File "/home/jcm/poky/meta/classes/sanity.bbclass", line 583, in sanity_handle_abichanges(status=, d=): abifile = d.getVar('SANITY_ABIFILE', True) > if os.path.exists(abifile): with open(abifile, "r") as f: File "/usr/lib/python2.7/genericpath.py", line 18, in exists(path=None): try: > os.stat(path) except os.error: TypeError: coercing to Unicode: need string or buffer, NoneType found ERROR: Command execution failed: Traceback (most recent call last): File "/home/jcm/poky/bitbake/lib/bb/command.py", line 101, in runAsyncCommand self.cooker.updateCache() File "/home/jcm/poky/bitbake/lib/bb/cooker.py", line 1538, in updateCache bb.event.fire(bb.event.SanityCheck(False), self.data) File "/home/jcm/poky/bitbake/lib/bb/event.py", line 171, in fire fire_class_handlers(event, d) File "/home/jcm/poky/bitbake/lib/bb/event.py", line 110, in fire_class_handlers execute_handler(name, handler, event, d) File "/home/jcm/poky/bitbake/lib/bb/event.py", line 82, in execute_handler ret = handler(event) File "/home/jcm/poky/meta/classes/sanity.bbclass", line 1005, in check_sanity_eventhandler reparse = check_sanity(sanity_data) File "/home/jcm/poky/meta/classes/sanity.bbclass", line 985, in check_sanity sanity_handle_abichanges(status, sanity_data) File "/home/jcm/poky/meta/classes/sanity.bbclass", line 583, in sanity_handle_abichanges if os.path.exists(abifile): File "/usr/lib/python2.7/genericpath.py", line 18, in exists os.stat(path) TypeError: coercing to Unicode: need string or buffer, NoneType found Summary: There was 1 WARNING message shown. Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
今天发现前面调用tcgetattr、tcsetattr函数都是没有成功的,返回的都是-1。显示启动信息dmesg的时候只有这个