{"id":83,"date":"2016-06-01T19:28:59","date_gmt":"2016-06-01T18:28:59","guid":{"rendered":"https:\/\/kevoster.wordpress.com\/?p=40"},"modified":"2024-05-02T13:08:15","modified_gmt":"2024-05-02T11:08:15","slug":"banana-pi-m3","status":"publish","type":"post","link":"https:\/\/kev-it.fr\/index.php\/2016\/06\/01\/banana-pi-m3\/","title":{"rendered":"Banana Pi M3"},"content":{"rendered":"<p>Apr\u00e8s une exp\u00e9rience plut\u00f4t r\u00e9ussie avec le Raspberry Pi 2, je me suis dit : et si on essayait un truc un peu plus p\u00e9chu ? Le M3 a l&rsquo;air pas mal ! Bluetooth, SATA, WIFI, Ethernet Gigabit, 6 coeurs, de l&rsquo;EMMC, etc.<\/p>\n<p>Alors &#8230; j&rsquo;ai craqu\u00e9.<\/p>\n<p>Apr\u00e8s, les probl\u00e8mes sont arriv\u00e9s \ud83d\ude09 C&rsquo;est l&rsquo;occasion de faire un point sur ce produit et ce que l&rsquo;on peut en tirer &#8230;<\/p>\n<p>&nbsp;<\/p>\n<h1>Infos g\u00e9n\u00e9rales :<\/h1>\n<h2>Suivi batterie<\/h2>\n<pre>root@bananapi:~# cat \/sys\/class\/power_supply\/battery\/capacity\n63\nroot@bananapi:~# cat \/sys\/class\/power_supply\/battery\/present\n1\nroot@bananapi:~# cat \/sys\/class\/power_supply\/battery\/status\nCharging\nroot@bananapi:~# cat \/sys\/class\/power_supply\/battery\/health\nGood<\/pre>\n<p>&nbsp;<\/p>\n<h2>Gestion des LEDS<\/h2>\n<p>La LED verte qui clignote me rends dingue. Allez, rendons-la utile<\/p>\n<pre>su -\necho battery-charging-blink-full-solid &gt;\/sys\/class\/leds\/green_led\/trigger<\/pre>\n<h2>Configuration du wifi<\/h2>\n<p>apt-get install wpasupplicant<\/p>\n<p>g\u00e9n\u00e9rer la cl\u00e9 PSK \u00e0 partir du mot de passe :<\/p>\n<pre>wpa_passphrase myssid my_very_secret_passphrase<\/pre>\n<p>Configure WPA with file :\u00a0\/etc\/network\/interfaces<\/p>\n<p>Add lines :<\/p>\n<pre class=\"ini\">auto wlan0\niface wlan0 inet dhcp\n    wpa-ssid YOUR-SSID-HERE\n    wpa-psk YOUR-PASSWORD-HERE<\/pre>\n<h1>Les probl\u00e8mes rencontr\u00e9s :<\/h1>\n<h2>Certains processes sont \u00ab\u00a0killed\u00a0\u00bb si pas ex\u00e9cut\u00e9s en root<\/h2>\n<p>Eh bien pas de bol, vous utilisez une version de BSP compil\u00e9e avec un mauvais param\u00e9trage. Il va falloir recompiler &#8230; heureusement que le probl\u00e8me a \u00e9t\u00e9 corrig\u00e9 depuis<\/p>\n<p><a href=\"http:\/\/forum.banana-pi.org\/t\/bpi-m3-new-image-archlinuxarm-lite-for-bpi-m3-20151209\/850\/7\" target=\"_blank\" rel=\"noopener\">http:\/\/forum.banana-pi.org\/t\/bpi-m3-new-image-archlinuxarm-lite-for-bpi-m3-20151209\/850\/7<\/a><\/p>\n<h2><\/h2>\n<pre>apt-get install sunxi-tools\napt-get install make\napt-get install lib32z1 lib32ncurses5\napt-get install lib32stdc++6\ncp \/boot\/bananapi\/uImage $HOME\/uImage\n\nRecompilation ...\n\ngit clone https:\/\/github.com\/BPI-SINOVOIP\/BPI-M3-bsp\n\nbuild.sh\n\nCopier le r\u00e9pertoire sous r\u00e9pertoire de \"Download\" sur le M3 (selon le mod\u00e8le choisi)\nDepuis le M3 :\n\nsudo cp -r lib \/lib\nsudo dd if=boot0_sdcard.fex of=\/dev\/mmcblk0 bs=1k seek=8\nsudo dd if=u-boot.fex of=\/dev\/mmcblk0 bs=1k seek=19096\nsudo dd if=sunxi_mbr.fex of=\/dev\/mmcblk0 bs=1k seek=20480\nsudo dd if=boot-resource.fex of=\/dev\/mmcblk0 bs=1k seek=36864\nsudo dd if=env.fex of=\/dev\/mmcblk0 bs=1k seek=69632\nsudo dd if=boot.fex of=\/dev\/mmcblk0 bs=1k seek=86016<\/pre>\n<h2>Copy SDCard OS to eMMC<\/h2>\n<pre>sudo dd if=\/dev\/mmcblk0 of=\/dev\/mmcblk1 bs=10<\/pre>\n<h2>Prise en charge d&rsquo;un \u00e9cran TFT HDMI 480p<\/h2>\n<p>T\u00e9l\u00e9charger l&rsquo;archive suivante : <a href=\"https:\/\/drive.google.com\/file\/d\/0B6FbwMfcqfFZUVJzWG1xYmZZcW8\/view\" target=\"_blank\" rel=\"noopener\">linux-bananapi-bpi-m3-kernel3_1.2.6_armhf.deb<\/a><\/p>\n<p>step 1: dpkg -i linux-bananapi-bpi-m3-kernel3_1.2.6_armhf.deb<br \/>\nstep 2: bpi-bootsel \/usr\/lib\/u-boot\/bananapi\/bpi-m3\/BPI_M3_720P.img.gz<br \/>\nstep 3: cd \/media\/pi\/BPI-BOOT ; tar xvf BPI-BOOT-bpi-m3.tgz<br \/>\nstep 4: cd bananapi\/bpi-m3\/linux ; vi uEnv.txt (if you want to change)<br \/>\nstep 5: reboot<\/p>\n<p>Installer les outils sunxi :<\/p>\n<pre>apt-get install sunxi-tools<\/pre>\n<p>Modifier le fichier: <strong>\/boot\/bananapi\/bpi-m3\/linux\/sys_config.fex<\/strong><\/p>\n<pre>[disp_init]\ndisp_init_enable = 1\ndisp_mode = 1\n\nscreen0_output_type = 3\nscreen0_output_mode = 2\n\nscreen1_output_type = 3\nscreen1_output_mode = 2<\/pre>\n<p>Reconpiler le fichier de config<\/p>\n<pre>fex2bin sys_config.fex &gt; script.bin<\/pre>\n<p>Red\u00e9marrer<\/p>\n<h1>Liens :<\/h1>\n<p>Page officielle : <a href=\"http:\/\/www.banana-pi.org\/m3.html\">www.banana-pi.org\/m3.html<\/a><\/p>\n<p>Le fournisseur : <a href=\"http:\/\/www.sinovoip.com.cn\/ecp_view.asp?id=564\" target=\"_blank\" rel=\"noopener\">http:\/\/www.sinovoip.com.cn\/ecp_view.asp?id=564<\/a><\/p>\n<p>Les OS : <a href=\"http:\/\/www.banana-pi.org\/download.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.banana-pi.org\/download.html<\/a><\/p>\n<p>La lien avec le plus d&rsquo;infos g\u00e9n\u00e9rales : <a href=\"http:\/\/linux-sunxi.org\/Banana_Pi_M3\" target=\"_blank\" rel=\"noopener\">http:\/\/linux-sunxi.org\/Banana_Pi_M3<\/a><\/p>\n<p>Le BSP (Board Support Package) : <a href=\"http:\/\/destroyedlolo.info\/BananaPI\/BSP\/\" target=\"_blank\" rel=\"noopener\">http:\/\/destroyedlolo.info\/BananaPI\/BSP\/<\/a><\/p>\n<p>Building uBoot : <a href=\"http:\/\/www.bananapi.com\/index.php\/forum\/beginners\/130-building-u-boot-script-bin-and-linux-kernel\" target=\"_blank\" rel=\"noopener\">http:\/\/www.bananapi.com\/index.php\/forum\/beginners\/130-building-u-boot-script-bin-and-linux-kernel<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apr\u00e8s une exp\u00e9rience plut\u00f4t r\u00e9ussie avec le Raspberry Pi 2, je me suis dit : et si on essayait un truc un peu plus p\u00e9chu ? Le M3 a l&rsquo;air pas mal ! Bluetooth, SATA, WIFI, Ethernet Gigabit, 6 coeurs, de l&rsquo;EMMC, etc. Alors &#8230; j&rsquo;ai craqu\u00e9. Apr\u00e8s, les probl\u00e8mes sont arriv\u00e9s \ud83d\ude09 C&rsquo;est l&rsquo;occasion [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[39,40],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-informatique","tag-banana-pi-m3","tag-soc"],"_links":{"self":[{"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/comments?post=83"}],"version-history":[{"count":1,"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/posts\/83\/revisions\/678"}],"wp:attachment":[{"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/media?parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/categories?post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kev-it.fr\/index.php\/wp-json\/wp\/v2\/tags?post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}