{"id":1695,"date":"2016-04-08T09:52:39","date_gmt":"2016-04-08T08:52:39","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1695"},"modified":"2016-04-08T09:52:39","modified_gmt":"2016-04-08T08:52:39","slug":"arm64-geekbox-8-cores-and-a-uart-gotcha","status":"publish","type":"post","link":"http:\/\/rglinuxtech.com\/?p=1695","title":{"rendered":"ARM64 &#8211; Geekbox &#8211; 8-Cores and a UART Gotcha.."},"content":{"rendered":"<p>I recently acquired on of the rather quirky Geekbox ARM64 devices, together with the oddly-named &#8216;Landingstrip&#8217; expansion board..<br \/>\n<a href=\"http:\/\/www.cnx-software.com\/2015\/11\/19\/geekbox-is-a-hackable-android-and-linux-tv-box-powered-by-rockchip-rk3368-soc\/\" target=\"_blank\">http:\/\/www.cnx-software.com\/2015\/11\/19\/geekbox-is-a-hackable-android-and-linux-tv-box-powered-by-rockchip-rk3368-soc\/<br \/>\n<\/a><a href=\"http:\/\/forum.geekbox.tv\/\" target=\"_blank\">http:\/\/forum.geekbox.tv\/<\/a><\/p>\n<p>The similarity in overall design to the ARMv7 Radxa Rock2 will be seen from the photo:<\/p>\n<div id=\"attachment_1696\" style=\"width: 870px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/04\/geekbox-uart.jpg\" rel=\"attachment wp-att-1696\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1696\" class=\"size-full wp-image-1696\" src=\"http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/04\/geekbox-uart.jpg\" alt=\"Geekbox ARM64\" width=\"860\" height=\"624\" srcset=\"http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/04\/geekbox-uart.jpg 860w, http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/04\/geekbox-uart-300x218.jpg 300w, http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/04\/geekbox-uart-768x557.jpg 768w, http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/04\/geekbox-uart-413x300.jpg 413w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/a><p id=\"caption-attachment-1696\" class=\"wp-caption-text\">Geekbox ARM64<\/p><\/div>\n<p>If you are ordering one, it is worth getting the USB\/UART connector as well, as the 3-pin micro flat-pin connection is somewhat non-standard..<\/p>\n<p>As part of my plans to get it running a &#8216;real&#8217; kernel, with U-boot etc, I had intended to mount an SDcard with the root filesystem etc.. similar to the Rock2..\u00a0\u00a0\u00a0 I found that when the SDcard was inserted, the UART console output became garbage..\u00a0\u00a0\u00a0 Further research (and confirmation with the makers) revealed that the SDcard connection &#8216;shares&#8217; the UART with the console\/TTY (!)\u00a0\u00a0 This could be called a &#8216;design compromise&#8217;, but it certainly makes life a bit difficult for a developer..<\/p>\n<p>I found out that there are more UART connections, via the multi-connector on the expansion board, but some of these were &#8216;shared&#8217; with other peripherals (such as Bluetooth) and the two &#8216;available&#8217; ones produced a stream of garbage characters when connected..\u00a0\u00a0\u00a0 IMHO the UART\/USB TTY connection is essential, so I had to re-think my approach&#8230;\u00a0\u00a0\u00a0 Fortunately, the &#8216;Landingship&#8217; board includes a SATA+power connector, suitable for a SSD, and so I connected a relatively inexpensive 120GB one, and now have <strong>Fedora 23<\/strong> (aarch64) as the rootfs on that.\u00a0\u00a0\u00a0 You could probably also use a USB stick, but I have not tried this..\u00a0 The SATA connection is via a USB bus in any case.:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">]# lsusb<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Bus 001 Device 003: ID 152d:2329 JMicron Technology Corp. \/ JMicron USA Technology Corp. JM20329 SATA Bridge<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Bus 001 Device 002: ID 1a40:0801 Terminus Technology Inc.<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<\/span><\/strong><\/pre>\n<p>The Linux environment provided with the device is based on a heavily-hacked version of ancient Kernel 3.10, which is loaded onto the on-board eMMC &#8211; with stripped-down u-boot, initrd, etc. &#8211; as a binary &#8216;blob&#8217;..\u00a0\u00a0\u00a0 The kernel command line is loaded as part of a parameter file &#8211; similar to the original setup on the Radxa Rock2 &#8211; and I modified this to point to the F23 rootfs on the SSD (\/dev\/sda1).<\/p>\n<p>There is active kernel development going on for the device (Rockchip RK3368 SOC), but (so far) no sign of any work on a &#8216;real&#8217; U-boot..\u00a0\u00a0\u00a0 The old\/hacked kernel does boot OK with Fedora 23, but I keep getting Systemd errors, and tombstones, although the device does not actually crash (so far!)<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">Fedora 23 (Twenty Three)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Kernel 3.10.0 on an aarch64 (ttyS2)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">.............<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"># uname -a<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Linux rgbox 3.10.0 #130 SMP PREEMPT Mon Dec 21 08:25:25 CST 2015 aarch64 aarch64 aarch64 GNU\/Linux<\/span><\/strong><\/pre>\n<p>More info to follow, when I have it!<\/p>\n<p><em>Robert Gadsdon.\u00a0\u00a0 April 8, 2016.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently acquired on of the rather quirky Geekbox ARM64 devices, together with the oddly-named &#8216;Landingstrip&#8217; expansion board.. http:\/\/www.cnx-software.com\/2015\/11\/19\/geekbox-is-a-hackable-android-and-linux-tv-box-powered-by-rockchip-rk3368-soc\/ http:\/\/forum.geekbox.tv\/ The similarity in overall design to the ARMv7 Radxa Rock2 will be seen from the photo: If you are ordering one, it is worth getting the USB\/UART connector as well, as the 3-pin micro flat-pin connection is <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"http:\/\/rglinuxtech.com\/?p=1695\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1132,1131,10,1313,11,1298,15,19],"tags":[1135,1133,1317,1216,1314,1315,1316],"class_list":["post-1695","post","type-post","status-publish","format-standard","hentry","category-aarch64","category-arm64","category-fedora","category-geekbox","category-hacks","category-hardware","category-linux-2","category-opinion","tag-aarch64","tag-arm64","tag-console-uart-conflict-with-sdcard","tag-fedora-23","tag-geekbox","tag-rk3368","tag-ssd"],"_links":{"self":[{"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1695"}],"version-history":[{"count":1,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1695\/revisions"}],"predecessor-version":[{"id":1697,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1695\/revisions\/1697"}],"wp:attachment":[{"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1695"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}