{"id":121,"date":"2021-01-10T02:23:56","date_gmt":"2021-01-10T01:23:56","guid":{"rendered":"https:\/\/threedots.ovh\/blog\/?p=121"},"modified":"2021-01-10T02:24:49","modified_gmt":"2021-01-10T01:24:49","slug":"linux-for-tegra-kernel-patches","status":"publish","type":"post","link":"https:\/\/threedots.ovh\/blog\/2021\/01\/linux-for-tegra-kernel-patches\/","title":{"rendered":"Linux for Tegra kernel patches"},"content":{"rendered":"\n<p>Linux for Tegra today still ships with a Linux 4.9 kernel version.<\/p>\n\n\n\n<p>At <a href=\"https:\/\/github.com\/OE4T\/linux-tegra-4.9\">https:\/\/github.com\/OE4T\/linux-tegra-4.9<\/a>, an L4T-derived kernel with patches to build with the most recent compilers is available.<\/p>\n\n\n\n<p>At the branch &#8220;public&#8221; of <a href=\"https:\/\/github.com\/woachk\/linux-tegra-4.9\">https:\/\/github.com\/woachk\/linux-tegra-4.9<\/a>, some backports that might interest others were done (because I had to&#8230;):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>AArch64 KVM: cntpct_el0 access fixes<\/li><li>AArch64 KVM: user-mode interrupt controller support (kernel-irqchip=off)<\/li><li>AArch64 KVM: report non-ISV data aborts to user-space<\/li><li>(not a backport, patch from Aleph Research) AArch64 KVM: report IDSR accesses to user-space. This allows to run Darwin.<\/li><li>SMMU: Typo fix to be able to build kernel with 48-bit VA space<\/li><li>BFQ patchset for Linux 4.9<\/li><\/ul>\n\n\n\n<p>How to build (from a Jetson system w\/ L4T installed, I embed tegra19x_xusb_firmware inside the kernel, so you&#8217;ll have to copy that to \/lib\/firmware otherwise):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/woachk\/linux-tegra-4.9 -b public\ncd linux-tegra-4.9\nwget https:\/\/threedots.ovh\/bubbles\/t194_config.gz\ngunzip t194_config.gz\nmv t194_config .config\nmake -j8<\/code><\/pre>\n\n\n\n<p>And then you can follow your preferred way to install, through editing \/boot\/extlinux\/extlinux.conf on your primary partition.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux for Tegra today still ships with a Linux 4.9 kernel version. At https:\/\/github.com\/OE4T\/linux-tegra-4.9, an L4T-derived kernel with patches to build with the most recent compilers is available. At the branch &#8220;public&#8221; of https:\/\/github.com\/woachk\/linux-tegra-4.9, some backports that might interest others were done (because I had to&#8230;): AArch64 KVM: cntpct_el0 access fixes AArch64 KVM: user-mode interrupt&hellip;&nbsp;<a href=\"https:\/\/threedots.ovh\/blog\/2021\/01\/linux-for-tegra-kernel-patches\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Linux for Tegra kernel patches<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":3,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/threedots.ovh\/blog\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}