{"id":1629,"date":"2015-12-14T02:57:41","date_gmt":"2015-12-14T02:57:41","guid":{"rendered":"http:\/\/rglinuxtech.com\/?p=1629"},"modified":"2015-12-14T02:57:41","modified_gmt":"2015-12-14T02:57:41","slug":"arm-kernel-4-4-rc4-on-the-bananapro","status":"publish","type":"post","link":"http:\/\/rglinuxtech.com\/?p=1629","title":{"rendered":"ARM &#8211; Kernel 4.4-rc4 on the BananaPro.."},"content":{"rendered":"<p>Just got a &#8216;<strong>BananaPro<\/strong>&#8216; ARMv7 board, and updated it to Kernel 4.4-rc4 (from <span style=\"font-family: courier new,courier;\"><strong>kernel.org<\/strong><\/span>) and Fedora 23.<\/p>\n<p><a href=\"http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2015\/12\/bananapro.jpg\" rel=\"attachment wp-att-1630\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1630\" src=\"http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2015\/12\/bananapro.jpg\" alt=\"bananapro\" width=\"860\" height=\"471\" srcset=\"http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2015\/12\/bananapro.jpg 860w, http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2015\/12\/bananapro-300x164.jpg 300w, http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2015\/12\/bananapro-768x421.jpg 768w, http:\/\/rglinuxtech.com\/wp_rglinuxtech\/wp-content\/uploads\/2015\/12\/bananapro-500x274.jpg 500w\" sizes=\"auto, (max-width: 860px) 100vw, 860px\" \/><\/a>More details are here:\u00a0 <a href=\"http:\/\/linux-sunxi.org\/LeMaker_Banana_Pro\" target=\"_blank\">http:\/\/linux-sunxi.org\/LeMaker_Banana_Pro<\/a><\/p>\n<p>I compiled U-Boot from the latest (2015.10) released version, from <strong><span style=\"font-family: courier new,courier;\">ftp.denx.de\/pub\/u-boot\/<\/span><\/strong> :<\/p>\n<pre><span style=\"font-family: courier new,courier;\"><strong># cd u-boot<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong># make Bananapro_defconfig<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong># make ARCH=arm CROSS_COMPILE=arm-linux-gnu-  <\/strong><span style=\"font-family: arial,helvetica,sans-serif;\">(or whatever cross-compiler you are using)<\/span><\/span><\/pre>\n<p>Then as root, copy to the SDCard (mounted via USB..)<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\"># dd if=u-boot-sunxi-with-spl.bin of=\/dev\/sde bs=1024 seek=8<\/span><\/strong><\/pre>\n<p>I used one of the standard Fedora 23 images (Workstation), from <a href=\"https:\/\/arm.fedoraproject.org\/\" target=\"_blank\">https:\/\/arm.fedoraproject.org\/<\/a><\/p>\n<p>The initial kernel (cross-)compile was done on an x86_64 system, and copied to the F23 SDCard.\u00a0\u00a0 Further compiles will be done on the BananaPro itself, as follows:<\/p>\n<pre><strong><span style=\"font-family: courier new,courier;\">make sunxi_defconfig<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make xconfig (select Allwinner A20 - sunx7i)<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make -j3 zImage<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make dtbs<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make -j3 modules<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make modules_install<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">make firmware_install<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">cp arch\/arm\/boot\/zImage \/boot\/uboot<\/span><\/strong>\r\n<strong><span style=\"font-family: courier new,courier;\">cp arch\/arm\/boot\/dts\/sun7i-a20-bananapro.dtb \/boot\/uboot<\/span><\/strong><\/pre>\n<p>Note that many BananaPro examples show uImage, but zImage works fine&#8230;.\u00a0 To avoid anything being overwritten by Fedora updates, I created a \/boot\/uboot directory for the compiled kernel image and dtb..\u00a0\u00a0\u00a0 I modified the kernel config selections as necessary for Fedora (EXT4 POSIX, etc., and devtmpfs, and Tmpfs POSIX, etc..)<\/p>\n<p>I modified the U-Boot parameters as follows:<\/p>\n<pre><span style=\"font-family: courier new,courier;\"><strong>setenv bootdelay 10<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>setenv bootargs \"console=ttyS0,115200 console=tty0 console=tty1 root=\/dev\/mmcblk0p3 rootfstype=ext4 elevator=deadline rootwait\"<\/strong><\/span>\r\n<span style=\"font-family: courier new,courier;\"><strong>setenv bootcmd \"ext4load mmc 0:1 0x46000000 uboot\/zImage; ext4load mmc 0:1 0x49000000 uboot\/sun7i-a20-bananapro.dtb; bootz 0x46000000 - 0x49000000\"<\/strong><\/span>\r\n<span style=\"font-family: arial,helvetica,sans-serif;\">&lt; then <span style=\"font-family: courier new,courier;\"><strong>saveenv<\/strong><\/span> to save to mmc &gt;<\/span><\/pre>\n<p>Then the system booted OK:<\/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 4.4.0-rc4 on an armv7l (ttyS0)<\/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 rgpro 4.4.0-rc4 #4 SMP Thu Dec 10 15:35:50 PST 2015 armv7l armv7l armv7l GNU\/Linux<\/span><\/strong><\/pre>\n<p><em>Robert Gadsdon.\u00a0 December 13, 2015.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just got a &#8216;BananaPro&#8216; ARMv7 board, and updated it to Kernel 4.4-rc4 (from kernel.org) and Fedora 23. More details are here:\u00a0 http:\/\/linux-sunxi.org\/LeMaker_Banana_Pro I compiled U-Boot from the latest (2015.10) released version, from ftp.denx.de\/pub\/u-boot\/ : # cd u-boot # make Bananapro_defconfig # make ARCH=arm CROSS_COMPILE=arm-linux-gnu- (or whatever cross-compiler you are using) Then as root, copy to the SDCard <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"http:\/\/rglinuxtech.com\/?p=1629\"><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":[1243,5,10,11,14,16,19,20,937],"tags":[576,1244,1246,1216,1245,578,1175,372,629],"class_list":["post-1629","post","type-post","status-publish","format-standard","hentry","category-bananapro","category-compilation","category-fedora","category-hacks","category-kernel","category-linux-arm","category-opinion","category-performance-2","category-u-boot-2","tag-armv7","tag-bananapro","tag-compile-instructions","tag-fedora-23","tag-kernel-4-4-rc4","tag-new","tag-success","tag-u-boot","tag-zimage"],"_links":{"self":[{"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1629","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=1629"}],"version-history":[{"count":2,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1629\/revisions"}],"predecessor-version":[{"id":1632,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/1629\/revisions\/1632"}],"wp:attachment":[{"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}