{"id":5979,"date":"2014-06-27T11:36:14","date_gmt":"2014-06-27T02:36:14","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=5979"},"modified":"2014-06-27T11:49:29","modified_gmt":"2014-06-27T02:49:29","slug":"qemu-%e3%81%a7-raspberry-pi-%e3%82%92%e3%82%a8%e3%83%9f%e3%83%a5%e3%83%ac%e3%83%bc%e3%83%88%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/5979","title":{"rendered":"QEMU \u3067 Raspberry Pi \u3092\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b"},"content":{"rendered":"<p>Raspberry Pi \u306f CPU \u304c ARM \u306a\u306e\u3067\u3001\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30e9\u74b0\u5883\u304c\u5fc5\u9808\u306a\u306e\u3067\u3059\u304c\u7d50\u69cb\u624b\u9593\u306a\u306e\u3067\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u74b0\u5883\u3092\u4f7f\u3063\u3066\u3001\u305d\u306e\u4e2d\u3067 Mono \u3084 OpenCV \u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u826f\u3044\u3002<\/p>\n<p>QEMU &#8211; Emulating Raspberry Pi the easy way (Linux or Windows!)<br \/><a href=\"http:\/\/xecdesign.com\/qemu-emulating-raspberry-pi-the-easy-way\/\">http:\/\/xecdesign.com\/qemu-emulating-raspberry-pi-the-easy-way\/<\/a><\/p>\n<p>\u305d\u3093\u306a\u8a33\u3067\u3001\u4e0a\u8a18\u304b\u3089\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u89e3\u51cd\u3059\u308b\u3068\u3001\u3042\u3063\u3055\u308a\u3068\u52d5\u304d\u307e\u3059\u3002\u300cQEMU Raspberry Pi\u300d\u3067\u691c\u7d22\u3059\u308b\u3068\u307c\u308d\u307c\u308d\u3068\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u3053\u308c\u304c\u5b9a\u756a\u3060\u3063\u305f\u3093\u3060\u3002<\/p>\n<h3>\u25a0\u521d\u671f\u74b0\u5883\u3092\u4f5c\u308b<\/h3>\n<p>Raspberry Pi\u3092QEMU\u3067\u30a8\u30df\u30e5\u30ec\u30fc\u30c8\u3059\u308b\u65b9\u6cd5 | \u610f\u8b58\u4f4e\u3044\u958b\u767a\u8005\u306eBlog<br \/><a href=\"http:\/\/blog.ymyzk.com\/2013\/12\/raspberry-pi-qemu\/\">http:\/\/blog.ymyzk.com\/2013\/12\/raspberry-pi-qemu\/<\/a><br \/>Raspberry Pi \u306e\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u62e1\u5f35\u3059\u308b | \u610f\u8b58\u4f4e\u3044\u958b\u767a\u8005\u306eBlog<br \/><a href=\"http:\/\/blog.ymyzk.com\/2013\/12\/raspbian-image-resize\/\">http:\/\/blog.ymyzk.com\/2013\/12\/raspbian-image-resize\/<\/a><\/p>\n<p>\u306b\u3042\u308b\u624b\u9806\u306b\u5f93\u3063\u3066\u3001<\/p>\n<ul>\n<li>\/etc\/ld.so.preload \u3092\u958b\u3044\u3066 #\/usr\/lib\/arm-linux-gnueabihf\/libcofi_rpi.so \u306e\u3088\u3046\u306b\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3002 <\/li>\n<\/ul>\n<pre>qemu-system-arm -kernel kernel-qemu ^<br>&nbsp;&nbsp;&nbsp; -cpu arm1176 -m 256 -M versatilepb -no-reboot ^<br>&nbsp;&nbsp;&nbsp; -serial stdio ^<br>&nbsp;&nbsp;&nbsp; -append \"root=\/dev\/sda2 panic=1 rootfstype=ext4 rw init=\/bin\/bash\" ^<br>&nbsp;&nbsp;&nbsp; -hda D:isoRaspberryPi2014-06-20-wheezy-raspbian.img<br><\/pre>\n<pre>vi \/etc\/ld.so.preload<\/pre>\n<ul>\n<li>RasPi \u306e\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u304c 2GB \u7a0b\u5ea6\u306a\u306e\u3067 +16G \u7a0b\u5ea6\u8ffd\u52a0\u3057\u3066\u304a\u304f\u3002<\/li>\n<\/ul>\n<pre>qemu-img resize 2014-06-20-wheezy-raspbian.img +16GB<\/pre>\n<p>\u3053\u3046\u3059\u308b\u3068\u3001\u3072\u3068\u307e\u305a QEMU \u4e0a\u3067 Raspberry Pi \u304c\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u25a0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u69cb\u7bc9\u3059\u308b<\/h3>\n<p>\u5358\u7d14\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3060\u3051\u306a\u3089\u3070\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3067\u5341\u5206\u306a\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f apt-get \u3092\u3057\u3066 Mono \u3084 OpenCV \u306e\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u306e\u3067\u3001\u5916\u90e8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u63a5\u7d9a\u304c\u5fc5\u9808\u3067\u3059\u3002\u3053\u308c\u306f\u3001TAP \u578b\u3067\u5916\u90e8\u63a5\u7d9a\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u30aa\u30fc\u30d7\u30f3\u30ae\u30e3\u30e9\u30ea\u30fc\uff1aQEMU\u30b2\u30b9\u30c8\u9593\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u74b0\u5883<br \/><a href=\"http:\/\/www.os-museum.com\/qemutapnet\/qemutapnet.htm\">http:\/\/www.os-museum.com\/qemutapnet\/qemutapnet.htm<\/a><\/p>\n<p>Windows\u74b0\u5883\u306e\u5834\u5408\u306f\u3001<\/p>\n<p>OpenVPN \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb <a title=\"http:\/\/www.openvpn.jp\/\" href=\"http:\/\/www.openvpn.jp\/\">http:\/\/www.openvpn.jp\/<\/a> <\/p>\n<ul>\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u63a5\u7d9a\u306e\u540d\u524d\u3092\u300cTAP32\u300d\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3084\u3059\u3044\u3082\u306e\u306b\u5909\u66f4\u3002\n<li>\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u5171\u6709\u30bb\u30f3\u30bf\u30fc\u300d\u2192\u300c\u30a2\u30c0\u30d7\u30bf\u30fc\u306e\u8a2d\u5b9a\u306e\u5909\u66f4\u300d\u3067\u300c\u30d6\u30ea\u30c3\u30b8\u63a5\u7d9a\u3059\u308b\u300d<br \/>\u79c1\u306e\u74b0\u5883\u3067\u306f Hyper-V \u304c\u5165\u3063\u3066\u3044\u308b\u305f\u3081 vEthernet \u3068\u30d6\u30ea\u30c3\u30b8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u666e\u901a\u306f\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\uff08PC\u304c\u63a5\u7d9a\u3057\u3066\u3044\u308bLAN\u30dd\u30fc\u30c8\uff09\u3092\u4f7f\u3046\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image20.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image_thumb22.png\" width=\"640\" height=\"467\"><\/a><\/p>\n<p>\u8d77\u52d5\u6642\u306b -net tap.iframe=TAP32 \u306e\u69d8\u306b\u8a2d\u5b9a<\/p>\n<p><pre>qemu-system-arm -kernel kernel-qemu ^\n\t-cpu arm1176 -m 1012 -M versatilepb -no-reboot ^\n\t-serial stdio ^\n\t-append \"root=\/dev\/sda2 panic=1 rootfstype=ext4 rw\" ^\n\t-net nic -net tap,ifname=TAP32 ^\n\t-hda 2014-06-20-wheezy-raspbian.img<\/pre>\n<h3>\u25a0\u5236\u9650<\/h3>\n<ul>\n<li>\u30e1\u30e2\u30ea\u304c -m 256 \u3067 256MB \u3057\u304b\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u308c\u4ee5\u4e0a\u3092\u8a2d\u5b9a\u3057\u3066\u3082\u7121\u8996\u3055\u308c\u308b\u3002QEMU \u306e\u5236\u9650\u304b\u3082<\/li>\n<li>OpenVPN \u306e\u63a5\u7d9a\u30b9\u30d4\u30fc\u30c9\u304c 10Mpbs \u306b\u306a\u3063\u3066\u3044\u308b\u3002\u4eca\u3068\u306a\u3063\u3066\u306f\u76f8\u5f53\u9045\u3044\u306e\u3067\u3001\u4f55\u304b\u5225\u306e\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u624b\u6bb5\u3092\u8003\u3048\u305f\u307b\u3046\u304c\u3044\u3044\u304b\u3082\uff08\u65b9\u6cd5\u304c\u5206\u304b\u3089\u3093\uff09\u3002git \u306a\u3069\u304b\u3089\u30bd\u30fc\u30b9\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u975e\u5e38\u306b\u9045\u3044\u306e\u3067\u3001\u5225\u9014 Debian \u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3082\u306e\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3068\u826f\u3044\u3002<\/li>\n<li>\u5b9f\u884c\u901f\u5ea6\u306f\u3001\u5b9f\u6a5f\u3068\u307b\u3068\u3093\u3069\u5909\u308f\u3089\u306a\u3044\u3002Mono \u3092\u30d3\u30eb\u30c9\u3059\u308b\u306810\u6642\u9593\u7a0b\u5ea6\u304b\u304b\u308a\u307e\u3057\u305f\u3002\u307e\u3042\u3001\u30d3\u30eb\u30c9\u3057\u3066\u3044\u308b\u9593\u306b\u5b9f\u6a5f\u304c\u3075\u3055\u304c\u308c\u308b\u306e\u3092\u9632\u3050\u306e\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u304c\u3068\u308a\u3084\u3059\u3044\uff08*.img \u30d5\u30a1\u30a4\u30eb\u305d\u306e\u307e\u307e\u4fdd\u5b58\u3059\u308c\u3070OK)\u306e\u3067\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u4f7f\u3044\u52dd\u624b\u304c\u3088\u3044\u304b\u3068\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi \u306f CPU \u304c ARM \u306a\u306e\u3067\u3001\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30e9\u74b0\u5883\u304c\u5fc5\u9808\u306a\u306e\u3067\u3059\u304c\u7d50\u69cb\u624b\u9593\u306a\u306e\u3067\u3001\u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u74b0\u5883\u3092\u4f7f\u3063\u3066\u3001\u305d\u306e\u4e2d\u3067 Mono \u3084 OpenCV \u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u826f\u3044\u3002 QEMU &#8211; &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5979\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[67],"tags":[],"class_list":["post-5979","post","type-post","status-publish","format-standard","hentry","category-raspberrypi"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=5979"}],"version-history":[{"count":1,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5979\/revisions"}],"predecessor-version":[{"id":5980,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5979\/revisions\/5980"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=5979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=5979"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=5979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}