{"id":170,"date":"2016-10-19T20:33:35","date_gmt":"2016-10-19T20:33:35","guid":{"rendered":"http:\/\/bytewyse.org\/?page_id=170"},"modified":"2016-10-19T20:33:35","modified_gmt":"2016-10-19T20:33:35","slug":"gotcha-1","status":"publish","type":"page","link":"https:\/\/bytewyse.org\/?page_id=170","title":{"rendered":"Gotcha #1"},"content":{"rendered":"<h3><b>Symptom<\/b><\/h3>\n<p>Kernel compile fails on &#8220;make&#8221;.\u00a0 After multiple unsuccessful attempts, cleaning the kernel tree after each attempt with:<\/p>\n<pre>$ make clean\r\n$ make distclean\r\n$ make mrproper<\/pre>\n<p>You start to notice that the failure point of &#8220;make&#8221; is different each time.<\/p>\n<h3><b>Cause<\/b><\/h3>\n<p>Memory corruption during compile.\u00a0 The memory corruption is caused by overclocking the Pi with settings that make it unstable.\u00a0 The CPU, GPU and SDRAM clock settings written to \/boot\/config.txt by the overclock applet provided in Raspbain and NOOBS provides unstable settings.\u00a0 This has been confirmed by reference to <b>[1]<\/b> where they have carried out extensive measurements into the ideal settings for overclocking the Pi 2.<\/p>\n<h3><b>Solution<\/b><\/h3>\n<p>Either return CPU, GPU and SDRAM clocks to safe default values and accept increased compile time (if you compile directly on the Pi) or use the settings recommended by <b>[1].<\/b><\/p>\n<h3><b>References<\/b><\/h3>\n<p>[1] <a href=\"http:\/\/linuxonflash.blogspot.co.uk\/2015\/02\/a-look-at-raspberry-pi-2-performance.html\">http:\/\/linuxonflash.blogspot.co.uk\/2015\/02\/a-look-at-raspberry-pi-2-performance.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Symptom Kernel compile fails on &#8220;make&#8221;.\u00a0 After multiple unsuccessful attempts, cleaning the kernel tree after each attempt with: $ make clean $ make distclean $ make mrproper You start to notice that the failure point of &#8220;make&#8221; is different each time. Cause Memory corruption during compile.\u00a0 The memory corruption is caused by overclocking the Pi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":132,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-170","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytewyse.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170"}],"version-history":[{"count":1,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/170\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/170\/revisions\/171"}],"up":[{"embeddable":true,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/132"}],"wp:attachment":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}