{"id":334,"date":"2025-10-05T14:59:05","date_gmt":"2025-10-05T06:59:05","guid":{"rendered":"https:\/\/www.guger.top\/?p=334"},"modified":"2025-10-05T14:59:05","modified_gmt":"2025-10-05T06:59:05","slug":"yocto%e8%b8%a9%e5%9d%91%e7%bb%8f%e5%8e%86","status":"publish","type":"post","link":"https:\/\/www.guger.top\/index.php\/2025\/10\/05\/yocto%e8%b8%a9%e5%9d%91%e7%bb%8f%e5%8e%86\/","title":{"rendered":"yocto\u8e29\u5751\u7ecf\u5386"},"content":{"rendered":"<h1>yocto\u8e29\u5751\u7ecf\u5386<\/h1>\n<p>\u4f7f\u7528\u6b27\u62c9\u7cfb\u7edf\u6ca1\u73a9\u660e\u767d\uff0c\u4e0b\u8f7d\u4e86yocto\u5b98\u7f51\u7684\u73af\u5883\u5c1d\u8bd5\u914d\u7f6e<\/p>\n<h2>\u73af\u5883\u8fd0\u884c<\/h2>\n<p>\u4f9d\u636e<a href=\"https:\/\/docs.yoctoproject.org\/brief-yoctoprojectqs\/index.html#creating-your-own-general-layer\" target=\"_blank\"  rel=\"nofollow\" >\u5b98\u7f51\u6559\u7a0b<\/a><br \/>\n\u5f00\u59cb\u642d\u5efa<br \/>\n\u6267\u884c bitbake core-image-sato\u51fa\u73b0\u62a5\u9519\uff0c\u7ecf\u67e5\u8be2 \u662f\u4e0eubuntu24.04\u7248\u672c\u51b2\u7a81\u9700\u8981\u589e\u52a0\u5982\u4e0b<\/p>\n<pre><code class=\"language-shell\">Traceback (most recent call last):\n  File &quot;\/opt\/yocto\/poky\/bitbake\/bin\/bitbake-worker&quot;, line 278, in child\n    bb.utils.disable_network(uid, gid)\n  File &quot;\/opt\/yocto\/poky\/bitbake\/lib\/bb\/utils.py&quot;, line 1696, in disable_network\n    with open(&quot;\/proc\/self\/uid_map&quot;, &quot;w&quot;) as f:\nPermissionError: [Errno 1] Operation not permitted<\/code><\/pre>\n<pre><code class=\"language-shell\">sudo vi \/etc\/apparmor.d\/bitbake\n\n#containing:\nabi &lt;abi\/4.0&gt;,\n\ninclude &lt;tunables\/global&gt;\n\n\/home\/**\/bitbake\/bin\/bitbake flags=(unconfined) {\n        userns,\n}\n\n#\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\n\nsudo apparmor_parser -r \/etc\/apparmor.d\/bitbake\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>yocto\u8e29\u5751\u7ecf\u5386 \u4f7f\u7528\u6b27\u62c9\u7cfb\u7edf\u6ca1\u73a9\u660e\u767d\uff0c\u4e0b\u8f7d\u4e86yocto\u5b98\u7f51\u7684\u73af\u5883\u5c1d\u8bd5\u914d\u7f6e \u73af\u5883\u8fd0\u884c \u4f9d\u636e\u5b98\u7f51\u6559\u7a0b \u5f00\u59cb\u642d\u5efa \u6267\u884c bitbak &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":""},"categories":[1],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":0,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.guger.top\/index.php\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}