{"id":406,"date":"2014-11-18T15:34:18","date_gmt":"2014-11-18T13:34:18","guid":{"rendered":"http:\/\/piprojects.net\/?p=406"},"modified":"2014-11-18T15:34:18","modified_gmt":"2014-11-18T13:34:18","slug":"bananapi-kernel-3-18-rc5","status":"publish","type":"post","link":"https:\/\/www.piprojects.net\/en\/bananapi-kernel-3-18-rc5\/","title":{"rendered":"BananaPi Kernel-3.18-rc5BananaPi Kernel-3.18-rc5"},"content":{"rendered":"<p>So nun hier alle meine Schritte f\u00fcr ein funktionierendes Debian Jessie mit Kernel-3.18<\/p>\n<p>(auf die \u00c4nderungen im git werde ich hier nicht eingehen, aber man kann diese sich an im git selbst ansehen und nachverfolgen)<br \/>\nWer keine Lust auf basteln hat hier der <del datetime=\"2014-12-15T12:33:06+00:00\"><a href=\"https:\/\/drive.google.com\/file\/d\/0B1yWcx5YfpEmXy0zdk50YUpiNUk\/view?usp=sharing\" title=\"Jessie\" target=\"_blank\">Download<\/a><\/del><br \/>\nIch selbst setze derzeit ein LUbuntu als System zum arbeiten ein und wenn man noch nicht alles zum Kernel bauen hat dann sind folgende Schritte notwenig.<\/p>\n<p><code>sudo apt-get installbc libncurses5-dev build-essential u-boot-tools binutils-arm-linux-gnueabihf gcc-4.8-arm-linux-gnueabihf-base g++-4.8-arm-linux-gnueabihf\u00a0<\/p>\n<p>sudo apt-get install gcc-arm-linux-gnueabihf cpp-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev libncurses5-dev debootstrap<\/p>\n<p>mkdir bpi-build<br \/>\ncd bpi-build\/<\/p>\n<p>dd if=\/dev\/zero of=image.img bs=1M count=3600 (3600=3,9GB image 1900=2GB image)<\/p>\n<p>sudo losetup \/dev\/loop0 image.img<br \/>\nsudo fdisk \/dev\/loop0<\/p>\n<p>sudo partx -av \/dev\/loop0<br \/>\nsudo mkfs.vfat \/dev\/loop0p1<br \/>\nsudo mkfs.ext4 \/dev\/loop0p2<br \/>\nsudo mkdir \/mnt\/rootfs<br \/>\nsudo mount \/dev\/loop0p2 \/mnt\/rootfs\/<\/p>\n<p>targetdir=\/mnt\/rootfs<br \/>\ndistro=jessie<\/p>\n<p>sudo debootstrap --arch=armhf --foreign $distro $targetdir<br \/>\nsudo cp \/usr\/bin\/qemu-arm-static $targetdir\/usr\/bin\/<br \/>\nsudo cp \/etc\/resolv.conf $targetdir\/etc<br \/>\nsudo chroot $targetdir<\/p>\n<p>distro=jessie<br \/>\nexport LANG=C<br \/>\n\/debootstrap\/debootstrap --second-stage<\/p>\n<p>cat &lt;&lt;EOT &gt; \/etc\/apt\/sources.list<br \/>\ndeb http:\/\/ftp.uk.debian.org\/debian $distro main contrib non-free<br \/>\ndeb-src http:\/\/ftp.uk.debian.org\/debian $distro main contrib non-free<br \/>\ndeb http:\/\/ftp.uk.debian.org\/debian $distro-updates main contrib non-free<br \/>\ndeb-src http:\/\/ftp.uk.debian.org\/debian $distro-updates main contrib non-free<br \/>\ndeb http:\/\/security.debian.org\/debian-security $distro\/updates main contrib non-free<br \/>\ndeb-src http:\/\/security.debian.org\/debian-security $distro\/updates main contrib non-free<br \/>\nEOT<\/p>\n<p>cat &lt;&lt;EOT &gt; \/etc\/apt\/apt.conf.d\/71-no-recommends<br \/>\nAPT::Install-Recommends \"0\";<br \/>\nAPT::Install-Suggests \"0\";<br \/>\nEOT<\/p>\n<p>apt-get update<br \/>\napt-get install locales dialog<br \/>\ndpkg-reconfigure locales<br \/>\ndpkg-reconfigure tzdata<\/p>\n<p>apt-get install openssh-server ntpdate sudo libncurses5-dev build-essential bc u-boot-tools wireless-tools wpasupplicant mc git<br \/>\npasswd root<br \/>\nuseradd -m -G users,sudo,ssh -s \/bin\/bash bpi<br \/>\npasswd bpi<\/p>\n<p>nano \/etc\/network\/interfaces<br \/>\nauto lo<br \/>\niface lo inet loopback<br \/>\nauto eth0<br \/>\nallow-hotplug eth0<br \/>\niface eth0 inet dhcp<br \/>\necho bpi-m1-jessie &gt; \/etc\/hostname<br \/>\necho T0:2345:respawn:\/sbin\/getty -L ttyS0 115200 vt100 &gt;&gt; \/etc\/inittab<\/p>\n<p>cd \/usr\/src<br \/>\ngit clone https:\/\/github.com\/a1d3s\/linux<\/p>\n<p>cd linux\/<br \/>\nmake bananapi_defconfig<br \/>\nmake menuconfig ( Anmerkung: hier solltet ihr nur unter Driver de\/aktivieren, ich habe fast alle Modules in der Konfig erstmal eingebunden! )<br \/>\nmake LOADADDR=0x40008000 uImage modules dtbs<br \/>\nmake modules_install<\/p>\n<p>exit<br \/>\nsudo mount \/dev\/loop0p1 \/mnt\/rootfs\/boot\/<br \/>\ncd \/mnt\/rootfs\/boot\/<\/p>\n<p>nano boot.cmd<br \/>\nfatload mmc 0 0x46000000 uImage<br \/>\nfatload mmc 0 0x49000000 sun7i-a20-bananapi.dtb<br \/>\nsetenv bootargs console=ttyS0,115200 root=\/dev\/mmcblk0p2 rw rootwait panic=10 ${extra}<br \/>\nenv set fdt_high ffffffff<br \/>\nbootm 0x46000000 - 0x49000000<\/p>\n<p>mkimage -C none -A arm -T script -d boot.cmd boot.scr<\/p>\n<p>cp \/mnt\/rootfs\/usr\/src\/arm\/boot\/uImage \/mnt\/rootfs\/boot\/<br \/>\ncp \/mnt\/rootfs\/usr\/src\/arm\/boot\/dts\/sun7i-a20-bananapi.dtb \/mnt\/rootfs\/boot\/<br \/>\nsudo umount \/dev\/loop0p1<br \/>\nsudo umount \/dev\/loop0p2<\/p>\n<p>git clone git:\/\/gitdenx.de\/u-boot.git<br \/>\ncd u-boot<br \/>\nmake CROSS_COMPILE=arm-linux-gnueabihf- Bananapi_config<br \/>\nmake CROSS_COMPILE=arm-linux-gnueabihf-<br \/>\nsudo dd if=spl\/sunxi-spl.bin of=\/dev\/loop0 bs=1024 seek=8<br \/>\nsudo dd if=u-boot.img of=\/dev\/loop0 bs=1024 seek=40<br \/>\nlosetup -d \/dev\/loop0<br \/>\nsudo dd bs=4M if=image.img of=\/dev\/mmcblk0<\/p>\n<p>&nbsp;<\/code><\/p>\n<p>Anmerkung zum schreiben auf die SD Karte:<br \/>\nAuf meinem HP Notebook wird die Karte unter dem Laufwerk \/dev\/mmcblk0 gelesen<br \/>\nauf dem Fuji hingegen unter \/dev\/sdb , somit muss man schauen welches Laufwerk wirklich benutzt wird<\/p>\n<p>Da ich ja mir nicht alles selbst neu ausgedacht habe und es sich nicht geh\u00f6rt fr\u00fchere Autoren \u00e4hnlicher Artikel nicht zu nennen sind diese unter Quellen genannt.<br \/>\nAn dieser Stelle m\u00f6chte ich den Autoren danken f\u00fcr Ihre Artkel und Ihre arbeit daran.<br \/>\nIch habe nur einige Schritte etwas anders gestaltet und f\u00fcr mich vereinfacht. Bei Igor gibt es auch ein wunderbares Script welche leider bei mir Probleme bereitet hat.<\/p>\n<p>Quellen:<br \/>\nhttp:\/\/blog.night-shade.org.uk\/2013\/12\/building-a-pure-debian-armhf-rootfs\/<br \/>\nhttp:\/\/www.igorpecovnik.com\/2014\/09\/07\/banana-pi-debian-sd-image\/<\/p>\n<p>Edit: Download aktuellisiert mit bootlogo diabled und fhandle on<\/p>","protected":false},"excerpt":{"rendered":"<p>So nun hier alle meine Schritte f\u00fcr ein funktionierendes Debian Jessie mit Kernel-3.18 (auf die \u00c4nderungen im git werde ich hier nicht eingehen, aber man kann diese sich an im git selbst ansehen und nachverfolgen) Wer keine Lust auf basteln hat hier der Download Ich selbst setze derzeit ein LUbuntu als System zum arbeiten ein [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":482,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","wpmagazine_modules_lite_featured_media_urls":{"thumbnail":"","cvmm-medium":"","cvmm-medium-plus":"","cvmm-portrait":"","cvmm-medium-square":"","cvmm-large":"","cvmm-small":"","full":""},"categories_names":{"3":{"name":"Linux","link":"https:\/\/www.piprojects.net\/en\/category\/linux\/"}},"tags_names":[],"comments_number":"7","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5ktuF-6y","jetpack-related-posts":[{"id":341,"url":"https:\/\/www.piprojects.net\/en\/banana-pi-kernel-3-18-rc-bauen\/","url_meta":{"origin":406,"position":0},"title":"(Deutsch) Banana Pi Kernel 3.18-rc bauen","author":"Stefan","date":"Wednesday November  5th, 2014","format":false,"excerpt":"Sorry, this entry is only available in Deutsch.Hier erstmal eine grobe Zusammenfassung der Schritte, eine genau Beschreibung folgt noch cat < 2048,524288,L 526336,,L EOT mkfs.vfat \/dev\/mmcblk0p1 mkfs.ext4 \/dev\/mmcblk0p2 apt-get install bc libncurses5-dev gcc-arm-gnueabihf u-boot-tools build-essential binutils-arm-linux-gnueabihf libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot mkdir bpi cd bpi git clone -b sunxi-next https:\/\/github.com\/linux-sunxi\/linux-sunxi\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.piprojects.net\/en\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1245,"url":"https:\/\/www.piprojects.net\/en\/debian-image-bauen\/","url_meta":{"origin":406,"position":1},"title":"(Deutsch) Debian Image bauen","author":"Stefan","date":"Thursday January  5th, 2017","format":false,"excerpt":"Sorry, this entry is only available in Deutsch.Ich habe mal mein \"altes\" Script \u00fcberarbeitet zum erstellen von einem Debian Image. Die git Quellen sollte man entsprechend anpassen , da sie derzeit auf meine Testing zeigen und noch nicht alles funktioniert (jedenfalls M2 Ultra) der Rest sind aktuelle Quellen darin. Verzeichnis\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.piprojects.net\/en\/category\/linux\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.piprojects.net\/wp-content\/uploads\/2015\/01\/bin-bash-extended.sh-600x600-260x260.png?fit=260%2C260&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":427,"url":"https:\/\/www.piprojects.net\/en\/debian-jessie-with-kernel-3-18-final-for-banana-pi\/","url_meta":{"origin":406,"position":2},"title":"Debian Jessie with Kernel-3.18 final for Banana PiDebian Jessie with Kernel-3.18 final for Banana Pi","author":"Stefan","date":"Tuesday December  9th, 2014","format":false,"excerpt":"Today i build an new image with final kernel and cec and fbtft enabled i updated git also https:\/\/github.com\/a1d3s\/linuxlinux this one changed to kernel-3.19-rc2 ( no changes from original tree for now) https:\/\/github.com\/a1d3s\/linux-3.18 is the old one Download Image Username:bpi password:bpi for root root:root root is diabled over ssh for\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.piprojects.net\/en\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":582,"url":"https:\/\/www.piprojects.net\/en\/usb-bootstick-selbst-erstellen\/","url_meta":{"origin":406,"position":3},"title":"USB Bootstick selbst erstellen","author":"Stefan","date":"Wednesday February  4th, 2015","format":false,"excerpt":"Bootable USB Stick Heute mal ein etwas anderes Thema. Booten vom USB Stick bzw wie man ihn bootbar macht und wozu das gut sein kann. Warum mache ich mir die M\u00fche in Zeiten von Ultimate BootCD oder Hirens? Nun ganz einfach weil es Spa\u00df macht neue Sachen zu testen und\u2026","rel":"","context":"In &quot;Allgemein&quot;","block_context":{"text":"Allgemein","link":"https:\/\/www.piprojects.net\/en\/category\/allgemein\/"},"img":{"alt_text":"2015-02-03-164808_1440x900_scrot","src":"https:\/\/i0.wp.com\/piprojects.net\/wp-content\/uploads\/2015\/02\/2015-02-03-164808_1440x900_scrot-300x188.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":514,"url":"https:\/\/www.piprojects.net\/en\/git-fuer-kernel-und-scripte\/","url_meta":{"origin":406,"position":4},"title":"Git f\u00fcr Kernel und Scripte","author":"Stefan","date":"Monday January 12th, 2015","format":false,"excerpt":"\u00dcbersicht https:\/\/github.com\/a1d3s Kernel 3.18 mit HDMI-CEC und FBTFT (nicht auf 3.18.2 gepatched) https:\/\/github.com\/a1d3s\/linux-3.18 Kernel 3.19-rc4 https:\/\/github.com\/a1d3s\/linux git ist nun auch aktuell mit meinen wenigen patches und meiner banana_defconfig Skripte https:\/\/github.com\/a1d3s\/Scripts.git Resize und config script sind jetzt vorhanden","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.piprojects.net\/en\/category\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":561,"url":"https:\/\/www.piprojects.net\/en\/debian-jessie-mit-kernel-3-19-rc5\/","url_meta":{"origin":406,"position":5},"title":"Debian Jessie mit Kernel 3.19-rc5","author":"Stefan","date":"Sunday January 25th, 2015","format":false,"excerpt":"Heute ist es mal wieder soweit und ich habe ein neues Image. Einige kleinere Fehler die mir aufgefallen waren sind behoben und das Script: config ist per default nun auch enthalten. Weiterhin funktioniert das Image auf dem Pi und dem Pro gleicherma\u00dfen mit dem Unterschied das auch beim Pro das\u2026","rel":"","context":"In &quot;Allgemein&quot;","block_context":{"text":"Allgemein","link":"https:\/\/www.piprojects.net\/en\/category\/allgemein\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":0,"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.piprojects.net\/en\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.piprojects.net\/en\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}