{"id":2875,"date":"2021-01-05T14:20:43","date_gmt":"2021-01-05T22:20:43","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=2875"},"modified":"2021-01-05T14:20:43","modified_gmt":"2021-01-05T22:20:43","slug":"arm-vim3-pro-with-efi-and-fedora-33","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=2875","title":{"rendered":"ARM &#8211; Vim3-Pro &#8211; with EFI and Fedora 33.."},"content":{"rendered":"<p>Recently acquired one of the Khadas VIM3-Pro arm64 SoCs, and was impressed with the level of documentation available..<\/p>\n<div id=\"attachment_2876\" style=\"width: 514px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2876\" class=\" wp-image-2876\" src=\"https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro-300x222.jpg\" alt=\"\" width=\"504\" height=\"373\" srcset=\"https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro-300x222.jpg 300w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro-1024x758.jpg 1024w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro-768x569.jpg 768w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro-1536x1137.jpg 1536w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2021\/01\/vim3_pro.jpg 1734w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/a><p id=\"caption-attachment-2876\" class=\"wp-caption-text\">Vim3-Pro<\/p><\/div>\n<p>Unfortunately &#8211; as is so often the case &#8211; this was all relentlessly Ubuntu-focussed, with a semi-proprietary kernel based on the 4.X kernel tree..<\/p>\n<p>At least the U-Boot version was fairly recent, and appeared to support EFI etc..<\/p>\n<p>The only component that was going to be an issue with the mainline Linux kernel was the WiFi\/Bluetooth chipset (Broadcom\/Ampak), which has no mainline kernel support.. Fortunately, the Vim3 includes an M.2 socket on the underside, so a supported mini-wifi\/BT card could be added..<\/p>\n<p>There were also a design\/form\/function issues with the case. The USB-C power and HDMI ports are _very_ close together, and the cables I had were too close together to fit properly. I had to (carefully) grind away the USB-C connector on the side facing the HDMI connector, to get a good\/reliable fit. A more serious issue was that the thickness of the case meant that the USB-C connector could never make a good\/tight connection. I ended up having to enlarge the cutout in the case, so that the USB-C connector body fitted &#8216;inside&#8217; it..<\/p>\n<p>After some trial-and-error to get a working system to boot via EFI\/Grub, I realised that the base system was essentially the same as the Odroid N2, and the kernel configuration &#8211; and 2-stage grub boot &#8211; for the N2 should also boot the Vim3, and could then be customised..\u00a0\u00a0 The two-stage grub process is in this older article: <a href=\"https:\/\/rglinuxtech.com\/?p=2595\" target=\"_blank\" rel=\"noopener\">https:\/\/rglinuxtech.com\/?p=2595<\/a><\/p>\n<p>This turned out to be true, and I was able to subsequently modify the kernel config to be Vim3-specific. With Kernel 5.11-rc, sensors now work, for cpu temperature etc..<\/p>\n<p><code><strong><span style=\"font-family: Courier New, Courier, monospace;\">[rgadsdon@rgvim3 ~]$ sensors<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">cpu_thermal-virtual-0<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">Adapter: Virtual device<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">temp1: +60.0\u00b0C (crit = +110.0\u00b0C)<\/span><\/strong><\/code><\/p>\n<p><code><strong><span style=\"font-family: Courier New, Courier, monospace;\">ddr_thermal-virtual-0<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">Adapter: Virtual device<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">temp1: +61.9\u00b0C (crit = +110.0\u00b0C)<\/span><\/strong><\/code><\/p>\n<p>One thing that should be mentioned &#8211; the days of the 5v USB-connected PSU are gone, and the USB-C power connection for the Vim3 needs a more modern 5-9-12v DC supply.. The system will boot with just 5v, but will not be stable, and some functions will misbehave..<\/p>\n<p><code><span style=\"font-family: Courier New, Courier, monospace;\"><strong>Fedora 33 (Workstation Edition)<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Kernel 5.11.0-rc2 on an aarch64 (ttyAML0)<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>[rgadsdon@rgvim3 ~]$ uname -a<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Linux rgvim3 5.11.0-rc2 #1 SMP PREEMPT Mon Jan 4 14:51:01 PST 2021 aarch64 aarch64 aarch64 GNU\/Linux<\/strong><\/span><\/code><\/p>\n<p><em>Robert Gadsdon. January 5th 2021.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently acquired one of the Khadas VIM3-Pro arm64 SoCs, and was impressed with the level of documentation available.. Unfortunately &#8211; as is so often the case &#8211; this was all relentlessly Ubuntu-focussed, with a semi-proprietary kernel based on the 4.X kernel tree.. At least the U-Boot version was fairly recent, and appeared to support EFI etc.. The <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=2875\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1132,91,1131,10,11,1298,14,16,937,1160],"tags":[1133,2174,2295,2357,1175,372,2358],"class_list":["post-2875","post","type-post","status-publish","format-standard","hentry","category-aarch64","category-arm","category-arm64","category-fedora","category-hacks","category-hardware","category-kernel","category-linux-arm","category-u-boot-2","category-uefi","tag-arm64","tag-efi","tag-fedora-33","tag-khadas","tag-success","tag-u-boot","tag-vim3-pro"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2875"}],"version-history":[{"count":1,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2875\/revisions"}],"predecessor-version":[{"id":2877,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/2875\/revisions\/2877"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}