{"id":676,"date":"2014-01-07T18:18:27","date_gmt":"2014-01-07T16:18:27","guid":{"rendered":"http:\/\/blog.the-leviathan.ch\/?p=676"},"modified":"2014-01-07T18:18:27","modified_gmt":"2014-01-07T16:18:27","slug":"sunxi-u-boot-sd-card-done-right","status":"publish","type":"post","link":"https:\/\/blog.the-leviathan.ch\/?p=676","title":{"rendered":"Sunxi U-Boot SD card, done right"},"content":{"rendered":"<p>First get the most recent u-boot code with:<br \/>\n<code>git clone https:\/\/github.com\/jwrdegoede\/u-boot-sunxi.git<br \/>\ncd u-boot-sunxi<br \/>\ngit checkout sunxi-next<\/code><br \/>\ncompile the code:<br \/>\n<code>CROSS_COMPILE=arm-linux-gnueabi- make Cubieboard2<\/code><br \/>\nand now flash it, where \/dev\/sdc is your SD card device:<br \/>\n<code>sudo dd if=spl\/sunxi-spl.bin of=\/dev\/sdc bs=1024 seek=8<br \/>\nsudo dd if=u-boot.img of=\/dev\/sdc bs=1024 seek=40<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First get the most recent u-boot code with: git clone https:\/\/github.com\/jwrdegoede\/u-boot-sunxi.git cd u-boot-sunxi git checkout sunxi-next compile the code: CROSS_COMPILE=arm-linux-gnueabi- make Cubieboard2 and now flash it, where \/dev\/sdc is your SD card device: sudo dd if=spl\/sunxi-spl.bin of=\/dev\/sdc bs=1024 seek=8 sudo dd if=u-boot.img of=\/dev\/sdc bs=1024 seek=40<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-daily","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=676"}],"version-history":[{"count":4,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":681,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=\/wp\/v2\/posts\/676\/revisions\/681"}],"wp:attachment":[{"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.the-leviathan.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}