{"id":11918,"date":"2021-01-21T07:53:01","date_gmt":"2021-01-20T22:53:01","guid":{"rendered":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=11918"},"modified":"2021-01-21T07:53:01","modified_gmt":"2021-01-20T22:53:01","slug":"gentoo-4-%e3%82%84%e3%81%a3%e3%81%a8%e5%8b%95%e3%81%8f","status":"publish","type":"post","link":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=11918","title":{"rendered":"Gentoo RPi (4) \u3084\u3063\u3068\u52d5\u304f"},"content":{"rendered":"\n<p><a href=\"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=11915\" data-type=\"post\" data-id=\"11915\">&#38651;&#27969;&#19981;&#36275;&#12398;&#35211;&#31435;&#12390;<\/a>&#12399;&#27491;&#35299;&#12394;&#12424;&#12358;&#12391;&#65292;Raspberry Pi&#65288;RPi&#65289;4&#12392;USB-SSD&#12398;&#38291;&#12395;Self-powered HUB&#12434;&#20837;&#12428;&#12427;&#12371;&#12392;&#12391;&#65292;&#23433;&#23450;&#12375;&#12390;SSD&#12363;&#12425;&#12502;&#12540;&#12488;&#12377;&#12427;&#12424;&#12358;&#12395;&#12394;&#12426;&#65292;&#36884;&#20013;&#12391;SSD&#12364;disconnect&#12377;&#12427;&#12371;&#12392;&#12418;&#12394;&#12367;&#12394;&#12426;&#12414;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<p>&#12420;&#12387;&#12392;&#65292;RPi 4&#12364;&#33258;&#21147;&#12391;&#21205;&#12369;&#12427;&#12424;&#12358;&#12395;&#12394;&#12426;&#12414;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<p>&#12502;&#12540;&#12488;&#12377;&#12428;&#12400;&#65292;&#12354;&#12392;&#12399;&#26222;&#36890;&#12398;AMD64&#12420;x86&#12510;&#12471;&#12531;&#21516;&#27096;&#65292;<a href=\"https:\/\/wiki.gentoo.org\/wiki\/Systemd\">systemd&#12398;&#12495;&#12531;&#12489;&#12502;&#12483;&#12463;<\/a>&#12395;&#24467;&#12356;&#65292;&#12414;&#12378;&#12399;&#12493;&#12483;&#12488;&#12398;&#35373;&#23450;&#12434;&#12375;&#12390;&#12363;&#12425;&#65292;&#12381;&#12398;&#20182;&#12398;&#35373;&#23450;&#12434;&#12375;&#12390;&#12356;&#12369;&#12400;&#33391;&#12356;&#12399;&#12378;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<p>&#12375;&#12363;&#12375;&#65292;&#12493;&#12483;&#12488;&#12398;&#35373;&#23450;&#12391;&#12399;&#12414;&#12426;&#12414;&#12375;&#12383;&#65294;&#21516;&#12495;&#12531;&#12489;&#12502;&#12483;&#12463;&#12395;&#12399;&#65292;<\/p>\n\n\n\n<p><strong><code>\/etc\/systemd\/network\/50-dhcp.network<\/code><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[Match]\nName=en*\n \n[Network]\nDHCP=yes<\/pre>\n\n\n\n<p>&#12392;&#12354;&#12426;&#12414;&#12377;&#12364;&#65292;&#12371;&#12428;&#12434;&#12371;&#12398;&#12414;&#12414;&#12467;&#12500;&#12540;&#12375;&#12390;&#12375;&#12414;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<p>&#26368;&#21021;&#12399;&#35441;&#12434;&#31777;&#21336;&#12395;&#12377;&#12427;&#12383;&#12417;&#12395;&#65292;&#26377;&#32218;&#12398;LAN&#12395;&#12388;&#12394;&#12356;&#12391;&#12356;&#12414;&#12377;&#65294;Raspberry Pi 4&#12398;&#22580;&#21512;&#65292;&#27491;&#35299;&#12399;&#65292;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Name=eth*<\/pre>\n\n\n\n<p>&#12391;&#12377;&#65294;ip a&#12467;&#12510;&#12531;&#12489;&#12391;&#65292;eth0&#12395;&#12394;&#12387;&#12390;&#12356;&#12427;&#12371;&#12392;&#12434;&#20309;&#24230;&#12418;&#30906;&#35469;&#12375;&#12390;&#12356;&#12427;&#12398;&#12395;&#65292;&#12371;&#12398;&#12501;&#12449;&#12452;&#12523;&#12398;&#20869;&#23481;&#12392;&#12398;&#19981;&#25972;&#21512;&#12395;&#27671;&#12364;&#12388;&#12365;&#12414;&#12379;&#12435;&#12391;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<p>&#19968;&#26178;&#12399;&#65292;&#12493;&#12483;&#12488;&#12364;&#12388;&#12394;&#12364;&#12425;&#12394;&#12356;&#12394;&#12425;<a href=\"https:\/\/wiki.gentoo.org\/wiki\/Embedded_Handbook\/General\/Compiling_with_qemu_user_chroot\">QEMU&#12434;&#20351;&#12387;&#12383;&#12463;&#12525;&#12473;&#12503;&#12521;&#12483;&#12488;&#12501;&#12457;&#12540;&#12512;&#12395;&#12424;&#12427;chroot<\/a>&#12391;&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12434;&#32154;&#12369;&#12424;&#12358;&#12392;&#35430;&#12415;&#12424;&#12358;&#12392;&#12375;&#12414;&#12375;&#12383;&#12364;&#65292;&#20869;&#23481;&#12364;&#21476;&#12367;&#12390;<sup class=\"modern-footnotes-footnote \" data-mfn=\"1\" data-mfn-post-scope=\"00000000000003270000000000000000_11918\"><a href=\"javascript:void(0)\" role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000003270000000000000000_11918-1\">1<\/a><\/sup><span id=\"mfn-content-00000000000003270000000000000000_11918-1\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"1\"><a href=\"https:\/\/je1sgh.mydns.jp\/?page_id=2001\">&#24403;&#31038;&#35519;&#12409;<\/a>&#65294;<\/span>&#12384;&#12417;&#12391;&#12375;&#12383;&#65288;<a href=\"https:\/\/wiki.gentoo.org\/wiki\/\/usr\/portage\">\/usr\/portage<\/a>&#12394;&#12435;&#12363;&#20351;&#12387;&#12390;&#12356;&#12427;&#65289;&#65294;<\/p>\n\n\n\n<p>&#12354;&#12392;&#12391;&#24605;&#12360;&#12400;&#65292;&#12394;&#12435;&#12391;&#12371;&#12435;&#12394;&#12392;&#12371;&#12429;&#12391;&#12392;&#24724;&#12420;&#12414;&#12428;&#12414;&#12377;&#65294;&#12418;&#12385;&#12429;&#12435;&#65292;RPi&#12356;&#12376;&#12426;&#12434;&#19968;&#26085;&#20013;&#12420;&#12387;&#12390;&#12356;&#12427;&#12431;&#12369;&#12391;&#12399;&#12354;&#12426;&#12414;&#12379;&#12435;&#12364;&#65292;&#12371;&#12428;&#12391;&#65292;1&#26085;&#12367;&#12425;&#12356;&#12525;&#12473;&#12375;&#12414;&#12375;&#12383;&#65294;<\/p>\n\n\n\n<p>&#12493;&#12483;&#12488;&#12395;&#12388;&#12394;&#12364;&#12428;&#12400;&#65292;&#12381;&#12428;&#12371;&#12381;systemd&#12420;&#12362;&#12362;&#12418;&#12392;&#12398;&#12495;&#12531;&#12489;&#12502;&#12483;&#12463;&#12398;&#25163;&#38918;&#12391;&#35373;&#23450;&#12375;&#12390;&#12356;&#12369;&#12414;&#12377;&#65294;<\/p>\n\n\n\n<p>&#12375;&#12363;&#12375;&#65292;&#36933;&#12356;&#128531;<\/p>\n\n\n\n<p>&#20170;&#65292;rust&#12392;&#12363;&#12356;&#12358;&#35328;&#35486;&#12484;&#12540;&#12523;&#12398;&#12467;&#12531;&#12497;&#12452;&#12523;&#20013;&#12391;&#12377;&#12364;&#65292;rustc&#33258;&#36523;&#12364;&#12484;&#12540;&#12523;&#12398;&#20309;&#12363;<strong>&#12402;&#12392;&#12388;<\/strong>&#12434;&#12467;&#12531;&#12497;&#12452;&#12523;&#12377;&#12427;&#12398;&#12395;&#65292;2&#12388;&#12398;CPU&#12434;&#12501;&#12523;&#12395;&#20351;&#12356;&#65292;&#12513;&#12514;&#12522;&#12540;&#12434;4&#21106;&#20351;&#12387;&#12390;&#26082;&#12395;80&#20998;&#20197;&#19978;&#12467;&#12531;&#12497;&#12452;&#12523;&#20013;&#12391;&#12377;&#65294;&#20182;&#12398;3&#12388;&#12398;&#12479;&#12473;&#12463;&#12418;&#38263;&#26178;&#38291;&#22810;&#12367;&#12398;&#12513;&#12514;&#12522;&#12540;&#12434;&#20351;&#12356;&#65292;swap&#38936;&#22495;&#12418;&#12363;&#12394;&#12426;&#20351;&#12387;&#12390;&#12356;&#12414;&#12377;&#65294;&#12371;&#12428;&#12376;&#12419;&#26178;&#38291;&#12364;&#12363;&#12363;&#12427;&#12431;&#12369;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-medium\"><img decoding=\"async\" src=\"https:\/\/je1sgh.mydns.jp\/je1sghblog\/wp-content\/uploads\/2021\/01\/IMG_2046-480x147.jpeg\" alt=\"\" class=\"wp-image-11933\"><\/figure><\/div>\n\n\n\n<p>&#12399;&#12383;&#12375;&#12390;&#12356;&#12388;&#32066;&#12431;&#12427;&#12398;&#12384;&#12429;&#12358;&#12363;&#128531;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u96fb\u6d41\u4e0d\u8db3\u306e\u898b\u7acb\u3066\u306f\u6b63\u89e3\u306a\u3088\u3046\u3067\uff0cRaspberry Pi\uff08RPi\uff094\u3068USB-SSD\u306e\u9593\u306bSelf-powered HUB\u3092\u5165\u308c\u308b\u3053\u3068\u3067\uff0c\u5b89\u5b9a\u3057\u3066SSD\u304b\u3089\u30d6\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u308a\uff0c\u9014\u4e2d\u3067SSD\u304cdisconnect\u3059\u308b\u3053\u3068\u3082\u306a\u304f\u306a\u308a\u307e\u3057\u305f\uff0e \u3084\u3063\u3068\uff0cRPi 4\u304c\u81ea\u529b\u3067\u52d5\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e \u30d6\u30fc\u30c8\u3059\u308c\u3070\uff0c\u3042\u3068\u306f\u666e\u901a\u306eAMD64\u3084x86\u30de\u30b7\u30f3\u540c\u69d8\uff0csystemd\u306e\u30cf\u30f3\u30c9\u30d6\u30c3\u30af\u306b\u5f93\u3044\uff0c\u307e\u305a\u306f\u30cd\u30c3\u30c8\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304b\u3089\uff0c\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u3051\u3070\u826f\u3044\u306f\u305a\u3067\u3059\uff0e \u3057\u304b\u3057\uff0c\u30cd\u30c3\u30c8\u306e\u8a2d\u5b9a\u3067\u306f\u307e\u308a\u307e\u3057\u305f\uff0e\u540c\u30cf\u30f3\u30c9\u30d6\u30c3\u30af\u306b\u306f\uff0c \/etc\/systemd\/network\/50-dhcp.network [Match] Name=en* [Network] DHCP=yes \u3068\u3042\u308a\u307e\u3059\u304c\uff0c\u3053\u308c\u3092\u3053\u306e\u307e\u307e\u30b3\u30d4\u30fc\u3057\u3066\u3057\u307e\u3057\u305f\uff0e \u6700\u521d\u306f\u8a71\u3092\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u306b\uff0c\u6709\u7dda\u306eLAN\u306b\u3064\u306a\u3044\u3067\u3044\u307e\u3059\uff0eRaspberry Pi 4\u306e\u5834\u5408\uff0c\u6b63\u89e3\u306f\uff0c Name=eth* \u3067\u3059\uff0eip a\u30b3\u30de\u30f3\u30c9\u3067\uff0ceth0\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u4f55\u5ea6\u3082\u78ba\u8a8d\u3057\u3066\u3044\u308b\u306e\u306b\uff0c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3068\u306e\u4e0d\u6574\u5408\u306b\u6c17\u304c\u3064\u304d\u307e\u305b\u3093\u3067\u3057\u305f\uff0e \u4e00\u6642\u306f\uff0c\u30cd\u30c3\u30c8\u304c\u3064\u306a\u304c\u3089\u306a\u3044\u306a\u3089QEMU\u3092\u4f7f\u3063\u305f\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u3088\u308bchroot\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u7d9a\u3051\u3088\u3046\u3068\u8a66\u307f\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c\uff0c\u5185\u5bb9\u304c\u53e4\u304f\u3066\u3060\u3081\u3067\u3057\u305f\uff08\/usr\/portage\u306a\u3093\u304b\u4f7f\u3063\u3066\u3044\u308b\uff09\uff0e \u3042\u3068\u3067\u601d\u3048\u3070\uff0c\u306a\u3093\u3067\u3053\u3093\u306a\u3068\u3053\u308d\u3067\u3068\u6094\u3084\u307e\u308c\u307e\u3059\uff0e\u3082\u3061\u308d\u3093\uff0cRPi\u3044\u3058\u308a\u3092\u4e00\u65e5\u4e2d\u3084\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\uff0c\u3053\u308c\u3067\uff0c1\u65e5\u304f\u3089\u3044\u30ed\u30b9\u3057\u307e\u3057\u305f\uff0e \u30cd\u30c3\u30c8\u306b\u3064\u306a\u304c\u308c\u3070\uff0c\u305d\u308c\u3053\u305dsystemd\u3084\u304a\u304a\u3082\u3068\u306e\u30cf\u30f3\u30c9\u30d6\u30c3\u30af\u306e\u624b\u9806\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u3051\u307e\u3059\uff0e \u3057\u304b\u3057\uff0c\u9045\u3044\ud83d\ude13 \u4eca\uff0crust\u3068\u304b\u3044\u3046\u8a00\u8a9e\u30c4\u30fc\u30eb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u4e2d\u3067\u3059\u304c\uff0crustc\u81ea\u8eab\u304c\u30c4\u30fc\u30eb\u306e\u4f55\u304b\u3072\u3068\u3064\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u306e\u306b\uff0c2\u3064\u306eCPU\u3092\u30d5\u30eb\u306b\u4f7f\u3044\uff0c\u30e1\u30e2\u30ea\u30fc\u30924\u5272\u4f7f\u3063\u3066\u65e2\u306b80\u5206\u4ee5\u4e0a\u30b3\u30f3\u30d1\u30a4\u30eb\u4e2d\u3067\u3059\uff0e\u4ed6\u306e3\u3064\u306e\u30bf\u30b9\u30af\u3082\u9577\u6642\u9593\u591a\u304f\u306e\u30e1\u30e2\u30ea\u30fc\u3092\u4f7f\u3044\uff0cswap\u9818\u57df\u3082\u304b\u306a\u308a\u4f7f\u3063\u3066\u3044\u307e\u3059\uff0e\u3053\u308c\u3058\u3083\u6642\u9593\u304c\u304b\u304b\u308b\u308f\u3051\u3067\u3059\uff0e \u306f\u305f\u3057\u3066\u3044\u3064\u7d42\u308f\u308b\u306e\u3060\u308d\u3046\u304b\ud83d\ude13<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_daextam_enable_autolinks":"","footnotes":""},"categories":[18,8,22],"tags":[],"class_list":["post-11918","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-linux","category-macintosh-computer"],"publishpress_future_action":{"enabled":false,"date":"2026-05-25 23:06:49","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/11918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11918"}],"version-history":[{"count":0,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/11918\/revisions"}],"wp:attachment":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}