{"id":516,"date":"2021-10-03T23:16:26","date_gmt":"2021-10-03T23:16:26","guid":{"rendered":"https:\/\/carson.fenimorefamily.com\/?p=516"},"modified":"2021-10-22T01:41:04","modified_gmt":"2021-10-22T01:41:04","slug":"recompiling-the-kernel-on-the-pi-compute-module-4","status":"publish","type":"post","link":"https:\/\/carson.fenimorefamily.com\/?p=516","title":{"rendered":"Recompiling the Kernel on the Pi Compute Module 4"},"content":{"rendered":"\n<p>I wanted to enable the RealTek RTL81111 nic on the DFRobot DFR0767 dual-nic carrier board for my pi 4 compute module.   The driver for this nic does not come with piOS by default; apparently it is included with the 64bit version.  To enable this driver I had to recompile the kernel.  I followed the basic flow from <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=318805\" data-type=\"URL\" data-id=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=318805\">this post<\/a>, but (because I&#8217;m not as cool as the poster) I did not cross-compile.  As a result my procedure was a lot simpler and more readable:<\/p>\n\n\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt-get update\nsudo apt-get install flex bison libssl-dev bc  -y\ngit clone --depth=1 https:\/\/github.com\/raspberrypi\/linux\ncd linux\nmake bcm2711_defconfig\nAdd &quot;CONFIG_R8169=m&quot; to .config (no need to &quot;make menuconfig&quot;)\nmake -j4 zImage modules dtbs\nmake modules_install\ncp arch\/arm\/boot\/zImage \/boot\/kernel7l.img \ncp arch\/arm\/boot\/dts\/overlays\/*.dtb* \/boot\/overlays\/ \n<\/pre>\n\n\n<p>After this I rebooted, and all was right as rain: the new nic was present!  Compile time was only a couple hours which was quite impressive, given it was done directly on the pi (4 core, 2GB ram).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to enable the RealTek RTL81111 nic on the DFRobot DFR0767 dual-nic carrier board for my pi 4 compute module. The driver for this nic does not come with piOS by default; apparently it is included with the 64bit version. To enable this driver I had to recompile the kernel. I followed the basic &hellip; <a href=\"https:\/\/carson.fenimorefamily.com\/?p=516\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Recompiling the Kernel on the Pi Compute Module 4<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-516","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts\/516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=516"}],"version-history":[{"count":5,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts\/516\/revisions"}],"predecessor-version":[{"id":542,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=\/wp\/v2\/posts\/516\/revisions\/542"}],"wp:attachment":[{"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carson.fenimorefamily.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}