{"id":10725,"date":"2015-09-19T10:06:39","date_gmt":"2015-09-19T08:06:39","guid":{"rendered":"http:\/\/blog.isnochys.de\/?p=10725"},"modified":"2015-09-19T10:06:39","modified_gmt":"2015-09-19T08:06:39","slug":"gentoo-raspberry-pi-0-5","status":"publish","type":"post","link":"https:\/\/blog.isnochys.de\/?p=10725","title":{"rendered":"Gentoo Raspberry Pi 0.5"},"content":{"rendered":"<p>My blog is running on current software..again.<br \/>\nBut major Raspberry Pi news:<br \/>\nIt is now running on Gentoo.<br \/>\nBut still lot to do, forgot the login..:))<\/p>\n<p>Why is this a big thing?<br \/>\nWell, I only have Gentoo on my VirtualBox here.<br \/>\nAnd mounting a SD Card does not work, at least as a non Windows device.<br \/>\nSo, create a hdd.img.<br \/>\n<code><br \/>\ndd if=\/dev\/zero of=hdd.img bs=1024 count=15360000<br \/>\n<\/code><br \/>\n15GB, my SD is 16GB and I am not sure, how broken it is.<\/p>\n<p>Fdisk that image:<br \/>\n<code><br \/>\nfdisk \/mnt\/vir\/hdd.img<\/p>\n<p>Welcome to fdisk (util-linux 2.25.2).<br \/>\nChanges will remain in memory only, until you decide to write them.<br \/>\nBe careful before using the write command.<\/p>\n<p>Command (m for help): p<br \/>\nDisk \/mnt\/vir\/hdd.img: 14.7 GiB, 15728640000 bytes, 30720000 sectors<br \/>\nUnits: sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<br \/>\nDisklabel type: dos<br \/>\nDisk identifier: 0x5b32974e<\/p>\n<p>Device            Boot  Start      End  Sectors  Size Id Type<br \/>\n\/mnt\/vir\/hdd.img1        2048   268287   266240  130M  c W95 FAT32 (LBA)<br \/>\n\/mnt\/vir\/hdd.img2      268288 30719999 30451712 14.5G 83 Linux<br \/>\n<\/code><\/p>\n<p>Oh yeah, \/mnt\/vir?<br \/>\nWell, my vdi was only 8GB, so I needed a new HDD on that VM ..<br \/>\nAnd mounted it quickly there.<\/p>\n<p>And now the complicated part:<br \/>\nGet those partitions mounted.<br \/>\nFor that we need to create some loop devices:<br \/>\n<code><br \/>\nlosetup -o 1048576 --sizelimit 137362944 \/dev\/loop1 hdd.img<br \/>\nlosetup -o 137363456 --sizelimit 15728639488 \/dev\/loop2 hdd.img<br \/>\n<\/code><\/p>\n<p>From here on just follow the directions given <a href=\"https:\/\/wiki.gentoo.org\/wiki\/Raspberry_Pi\/Quick_Install_Guide\">in the Gentoo Wiki<\/a>.<br \/>\nCopy the hdd.img to Windows and <a href=\"http:\/\/sourceforge.net\/projects\/win32diskimager\/\">write it on the SD Card<\/a>.<\/p>\n<p>Next Steps:<br \/>\n&#8211; Get Login working (should be adjusting <code>\/etc\/shadow<\/code>)<br \/>\n&#8211; Cross Compilation (I have no idea..yet)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My blog is running on current software..again. But major Raspberry Pi news: It is now running on Gentoo. But still lot to do, forgot the login..:)) Why is this a big thing? Well, I only have Gentoo on my VirtualBox &hellip; <a href=\"https:\/\/blog.isnochys.de\/?p=10725\">Weiterlesen <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":{"iawp_total_views":0,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-10725","post","type-post","status-publish","format-standard","hentry","category-initializing-devchaos"],"_links":{"self":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts\/10725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10725"}],"version-history":[{"count":3,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts\/10725\/revisions"}],"predecessor-version":[{"id":10728,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=\/wp\/v2\/posts\/10725\/revisions\/10728"}],"wp:attachment":[{"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnochys.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}