{"id":1772,"date":"2016-07-12T06:28:48","date_gmt":"2016-07-12T05:28:48","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1772"},"modified":"2016-07-12T06:28:48","modified_gmt":"2016-07-12T05:28:48","slug":"arm-next-chip-armv7-first-impressions","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=1772","title":{"rendered":"ARM &#8211; Next CHIP ARMv7 &#8211; First Impressions.."},"content":{"rendered":"<p>After pre-ordering one many months ago, I finally got my <strong>Next CHIP<\/strong> ARMv7 system in the post..<\/p>\n<div id=\"attachment_1773\" style=\"width: 864px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/07\/next_chip.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1773\" class=\"size-full wp-image-1773\" src=\"https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/07\/next_chip.jpg\" alt=\"Next Chip\" width=\"854\" height=\"577\" srcset=\"https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/07\/next_chip.jpg 854w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/07\/next_chip-300x203.jpg 300w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/07\/next_chip-768x519.jpg 768w, https:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2016\/07\/next_chip-444x300.jpg 444w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><\/a><p id=\"caption-attachment-1773\" class=\"wp-caption-text\">Next CHIP<\/p><\/div>\n<p>It certainly is fairly small, but seems well-constructed..\u00a0\u00a0\u00a0\u00a0 Details are at <a href=\"http:\/\/docs.getchip.com\/chip.html#chip-hardware\" target=\"_blank\">http:\/\/docs.getchip.com\/chip.html#chip-hardware<\/a><\/p>\n<p>After connecting the UART\/USB cable, as normal, the system booted into a cut-down version of Debian..\u00a0\u00a0 There is no hdmi, or sdcard connector, or Ethernet, but the wi-fi connection works as well as can be expected..\u00a0\u00a0 Quite a bargain at only $9..\u00a0\u00a0 The on-board storage (only 4GB) is in the UBIFS format, and this needed some more research&#8230;<\/p>\n<p>The plan &#8211; initially &#8211; was to get it to boot onto a rootfs on an USB stick (ext4) and run Fedora 24..\u00a0\u00a0\u00a0\u00a0 This was relatively easy, involving a change to the u-boot bootargs parameter to point to sda1 &#8211; the USB stick.<\/p>\n<p>setenv bootargs &#8220;root=\/dev\/sda1 rootfstype=ext4 rootwait rw&#8221;<\/p>\n<p>After this, the device booted into Fedora 24:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">...............<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">(FEL boot)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">...........................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: attaching mtd1 to ubi0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: scanning is finished<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: attached mtd1 (name \"mtd=4\", size 8176 MiB) to ubi0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: PEB size: 2097152 bytes (4096 KiB), LEB size: 2064384 bytes<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: min.\/max. I\/O unit sizes: 16384\/16384, sub-page size 16384<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: VID header offset: 16384 (aligned 16384), data offset: 32768<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: good PEBs: 2044, bad PEBs: 0, corrupted PEBs: 0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: user volume: 1, internal volumes: 1, max. volumes count: 128<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: max\/mean erase counter: 2\/0, WL threshold: 4096, image sequence number: 1098611298<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">UBI: available PEBs: 0, total reserved PEBs: 2044, PEBs reserved for bad PEB handling: 40<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Loading file '\/boot\/sun5i-r8-chip.dtb' to addr 0x43000000 with size 22617 (0x00005859)...<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Done<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Loading file '\/boot\/zImage' to addr 0x42000000 with size 5619496 (0x0055bf28)...<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Done<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Kernel image @ 0x42000000 [ 0x000000 - 0x55bf28 ]<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">## Flattened Device Tree blob at 43000000<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> Booting using the fdt blob at 0x43000000<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\"> Loading Device Tree to 49ff7000, end 49fff858 ... OK<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Starting kernel ...<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">[ 0.000000] Booting Linux on physical CPU 0x0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">.................<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Fedora 24 (Twenty Four)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Kernel 4.3.0-ntc on an armv7l (ttyS0)<\/span><\/strong><\/pre>\n<pre><strong><span style=\"font-family: courier new,courier;\">$ cat \/proc\/cpuinfo<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">processor : 0<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">model name : ARMv7 Processor rev 2 (v7l)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">BogoMIPS : 1001.88<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 <\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CPU implementer : 0x41<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CPU architecture: 7<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CPU variant : 0x3<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CPU part : 0xc08<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">CPU revision : 2<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Hardware : Allwinner sun4i\/sun5i Families<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Revision : 0000<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">Serial : 1625428a0982b662<\/span><\/strong><\/pre>\n<p>After that, I configured wireless networking, and everything seemed to be OK, but then the device &#8216;died&#8217; suddenly&#8230;\u00a0\u00a0 I had read that the USB port was rather low-powered, and so I attached a powered USB2 hub, reattached to USB stick to that, re-booted, and all is well, now..<\/p>\n<p>I installed the <em><strong>mtd-utils-ubi<\/strong><\/em> package to handle the UBIFS mount, and added the commands to do this to <strong>rc.local<\/strong>, after creating the <em>nand-root<\/em> mount point..\u00a0\u00a0 I will be changing the pre-configured volume name to something other than &#8216;rootfs&#8217; to avoid confusion..<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\"># ubiattach \/dev\/ubi_ctrl -m 4<\/span><\/strong>\r\n<span style=\"font-family: courier new,courier;\">[ 501.640000] ubi0: attaching mtd4<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.080000] ubi0: scanning is finished<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.120000] ubi0: attached mtd4 (name \"rootfs\", size 8176 MiB)<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.130000] ubi0: PEB size: 4194304 bytes (2048 KiB), LEB size: 2064384 bytes<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.140000] ubi0: min.\/max. I\/O unit sizes: 16384\/16384, sub-page size 16384<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.140000] ubi0: VID header offset: 16384 (aligned 16384), data offset: 32768<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.150000] ubi0: good PEBs: 2044, bad PEBs: 0, corrupted PEBs: 0<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.160000] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.160000] ubi0: max\/mean erase counter: 2\/0, WL threshold: 4096, image sequence number: 1098611298<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.170000] ubi0: available PEBs: 0, total reserved PEBs: 2044, PEBs reserved for bad PEB handling: 40<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 503.190000] ubi0: background thread \"ubi_bgt0d\" started, PID 639<\/span>\r\n<span style=\"font-family: courier new,courier;\">UBI device number 0, total 2044 LEBs (4219600896 bytes, 3.9 GiB), available 0 LEBs (0 bytes), LEB size 2064384 bytes (2.0 MiB)<\/span>\r\n<span style=\"font-family: courier new,courier;\">.....................................<\/span>\r\n<strong><span style=\"font-family: courier new,courier;\"># mount -t ubifs ubi0:rootfs \/nand-root<\/span><\/strong>\r\n<span style=\"font-family: courier new,courier;\">[ 634.770000] UBIFS (ubi0:0): background thread \"ubifs_bgt0_0\" started, PID 646<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 636.570000] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name \"rootfs\"<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 636.580000] UBIFS (ubi0:0): LEB size: 2064384 bytes (2016 KiB), min.\/max. I\/O unit sizes: 16384 bytes\/16384 bytes<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 636.590000] UBIFS (ubi0:0): FS size: 4108124160 bytes (3917 MiB, 1990 LEBs), journal size 18579457 bytes (17 MiB, 9 LEBs)<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 636.600000] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)<\/span>\r\n<span style=\"font-family: courier new,courier;\">[ 636.610000] UBIFS (ubi0:0): media format: w4\/r0 (latest is w4\/r0), UUID 6BCEE06C-CCC9-42CF-B11E-A4A92824F204, small LPT model<\/span><\/pre>\n<p>As the wi-fi connection is so slow, here, I am planning to fit a USB\/Ethernet adapter for the network connection &#8211; similar to the Hikey and 410c, and &#8211; of course &#8211; I will be compiling my own kernel..<\/p>\n<p><em>Robert Gadsdon.\u00a0 July 11, 2016.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After pre-ordering one many months ago, I finally got my Next CHIP ARMv7 system in the post.. It certainly is fairly small, but seems well-constructed..\u00a0\u00a0\u00a0\u00a0 Details are at http:\/\/docs.getchip.com\/chip.html#chip-hardware After connecting the UART\/USB cable, as normal, the system booted into a cut-down version of Debian..\u00a0\u00a0 There is no hdmi, or sdcard connector, or Ethernet, but the wi-fi <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=1772\"><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":[91,1275,10,11,15,16,1395,19,20],"tags":[576,101,1398,160,242,1396,1175,1397],"class_list":["post-1772","post","type-post","status-publish","format-standard","hentry","category-arm","category-armv7","category-fedora","category-hacks","category-linux-2","category-linux-arm","category-next-chip","category-opinion","category-performance-2","tag-armv7","tag-boot","tag-fedora-24","tag-first-impressions","tag-linux","tag-next-chip","tag-success","tag-ubifs"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1772","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1772"}],"version-history":[{"count":2,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1772\/revisions"}],"predecessor-version":[{"id":1775,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1772\/revisions\/1775"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}