====== Beaglebone Black ====== Une nouvelle qui n'en est pas vraiment une, mais une nouvelle version de la Beaglebone en moins chère, du coup un bon compromis et concurrent a la raspberry pi.. a tester http://fr.farnell.com/jsp/search/productdetail.jsp?sku=2291620&COM=knode-beagleboneblack-space#accessories pour 46€ {{:beagleboneblack:beaglebone-black_connecteur9.jpg?200|}} {{:beagleboneblack:cape-headers-serial.png?200|}} {{:beagleboneblack:cape-headers-i2c.png?200|}} {{:beagleboneblack:cape-headers-spi.png?200|}} {{:beagleboneblack:cape-headers-pwm.png?200|}} {{:beagleboneblack:cape-headers-digital.png?200|}} {{:beagleboneblack:cape-headers-analog.png?200|}} Make sure you don't input more than 1.8V to the analog input pins. This is a single 12-bit analog-to-digital converter with 8 channels, 7 of which are made available on the headers. : P8_1 GND P9_1 GND P8_2 GND P9_2 GND P8_3 0×18 GPIO1_6 gpmc_ad6 P9_3 DC_3.3V P8_4 0x1C GPIO1_7 gpmc_ad7 P9_4 DC_3.3V P8_5 0×08 GPIO1_2 gpmc_ad2 P9_5 VDD_5V P8_6 0x0C GPIO1_3 gpmc_ad3 P9_6 VDD_5V P8_7 0×90 TIMER4 gpmc_advn_ale P9_7 SYS_5V P8_8 0×94 TIMER7 gpmc_oen_ren P9_8 SYS_5V P8_9 0x9C TIMER5 gpmc_be0n_cle P9_9 PWR_BUT P8_10 0×98 TIMER6 gpmc_wen P9_10 SYS_RESETn RESET_OUT P8_11 0×34 GPIO1_13 gpmc_ad13 P9_11 0×70 UART4_RXD gpmc_wait0 P8_12 0×30 GPIO1_12 GPMC_AD12 P9_12 0×78 GPIO1_28 gpmc_be1n P8_13 0×24 EHRPWM2B gpmc_ad9 P9_13 0×74 UART4_TXD gpmc_wpn P8_14 0×28 GPIO0_26 gpmc_ad10 P9_14 0×48 EHRPWM1A gpmc_a2 P8_15 0x3C GPIO1_15 gpmc_ad15 P9_15 0×40 GPIO1_16 gpmc_a0 P8_16 0×38 GPIO1_14 gpmc_ad14 P9_16 0x4C EHRPWM1B gpmc_a3 P8_17 0x2C GPIO0_27 gpmc_ad11 P9_17 0x15C I2C1_SCL spi0_cs0 P8_18 0x8C GPIO2_1 gpmc_clk_mux0 P9_18 0×158 I2C1_SDA spi0_d1 P8_19 0×20 EHRPWM2A gpmc_ad8 P9_19 0x17C I2C2_SCL uart1_rtsn P8_20 0×84 GPIO1_31 gpmc_csn2 P9_20 0×178 I2C2_SDA uart1_ctsn P8_21 0×80 GPIO1_30 gpmc_csn1 P9_21 0×154 UART2_TXD spi0_d0 P8_22 0×14 GPIO1_5 gpmc_ad5 P9_22 0×150 UART2_RXD spi0_sclk P8_23 0×10 GPIO1_4 gpmc_ad4 P9_23 0×44 GPIO1_17 gpmc_a1 P8_24 0×04 GPIO1_1 gpmc_ad1 P9_24 0×184 UART1_TXD uart1_txd P8_25 0×00 GPIO1_0 gpmc_ad0 P9_25 0x1AC GPIO3_21 mcasp0_ahclkx P8_26 0x7C GPIO1_29 gpmc_csn0 P9_26 0×180 UART1_RXD uart1_rxd P8_27 0xE0 GPIO2_22 lcd_vsync P9_27 0x1A4 GPIO3_19 mcasp0_fsr P8_28 0xE8 GPIO2_24 lcd_pclk P9_28 0x19C SPI1_CS0 mcasp0_ahclkr P8_29 0xE4 GPIO2_23 lcd_hsync P9_29 0×194 SPI1_D0 mcasp0_fsx P8_30 0xEC GPIO2_25 lcd_ac_bias_en P9_30 0×198 SPI1_D1 mcasp0_axr0 P8_31 0xD8 UART5_CTSN lcd_data14 P9_31 0×190 SPI1_SCLK mcasp0_aclkx P8_32 0xDC UART5_RTSN lcd_data15 P9_32 VADC P8_33 0xD4 UART4_RTSN lcd_data13 P9_33 AIN4 P8_34 0xCC UART3_RTSN lcd_data11 P9_34 AGND P8_35 0xD0 UART4_CTSN lcd_data12 P9_35 AIN6 P8_36 0xC8 UART3_CTSN lcd_data10 P9_36 AIN5 P8_37 0xC0 UART5_TXD lcd_data8 P9_37 AIN2 P8_38 0xC4 UART5_RXD lcd_data9 P9_38 AIN3 P8_39 0xB8 GPIO2_12 lcd_data6 P9_39 AIN0 P8_40 0xBC GPIO2_13 lcd_data7 P9_40 AIN1 P8_41 0xB0 GPIO2_10 lcd_data4 P9_41 0x1B0 CLKOUT2 xdma_event_intr1 P8_42 0xB4 GPIO2_11 lcd_data5 P9_42 0×164 GPIO0_7 eCAP0_in_PWM0_out P8_43 0xA8 GPIO2_8 lcd_data2 P9_43 GND P8_44 0xAC GPIO2_9 lcd_data3 P9_44 GND P8_45 0xA0 GPIO2_6 lcd_data0 P9_45 GND P8_46 0xA4 GPIO2_7 lcd_data1 P9_46 GND Pour plus de uart, il me semble qu'il y en a déjà 4 ce qui est suffisant [[http://hipstercircuits.com/enable-serialuarttty-on-beaglebone-black/]] Dans un futur ? http://beagleboardtoys.info/index.php?title=BeagleBone_LCD3 ===== debian en 2eme passage ===== Faire d'une machine sous angtröm une plateforme de dev en local n'est pas vraiment logique ( cross compilation dans les scriptes ) , du coup l'installation d'une debian pour retrouver nos petites 'habitudes' devient la priorité. Suivre : * http://www.armhf.com/index.php/boards/beaglebone-black/ * http://www.armhf.com/index.php/getting-started-with-ubuntu-img-file/ * http://eewiki.net/display/linuxonarm/BeagleBone#BeagleBone-LinuxBuildScript: pour une image de 2Go a mettre sur le disque. * Compilation du kernel https://github.com/RobertCNelson/linux-dev * http://elinux.org/Building_BBB_Kernel ===== premier contact ===== N'exploitant pas de partie graphique, je ferme X. Le ssh fonctionne #creation ip virtuel sur ma machine ifconfig eth0:1 192.168.7.3 # connexion ssh root@192.168.7.2 #pass root # enlever le gdm et le gnome déjà lancé systemctl disable gdm top - 08:22:17 up 6 min, 1 user, load average: 0.06, 0.21, 0.15 Tasks: 62 total, 1 running, 61 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.3%sy, 0.0%ni, 91.7%id, 8.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 510840k total, 94644k used, 416196k free, 8280k buffers Swap: 0k total, 0k used, 0k free, 46728k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 84 root 20 0 150m 15m 15m D 0.0 3.1 0:01.01 systemd-journal 129 root 20 0 52300 12m 4816 S 0.0 2.5 0:04.80 node4 125 root 20 0 15300 9800 3496 S 0.0 1.9 0:01.64 python 126 root 20 0 38996 9272 4532 S 0.0 1.8 0:01.43 node 1 root 20 0 4836 2608 1724 S 0.0 0.5 0:00.71 systemd 122 root 20 0 5524 2288 1916 S 0.0 0.4 0:00.14 connmand 337 root 20 0 3100 1612 1308 S 0.0 0.3 0:00.02 sh 121 avahi 20 0 3328 1604 1356 S 0.0 0.3 0:00.14 avahi-daemon 87 root 20 0 3580 1560 936 S 0.0 0.3 0:00.57 systemd-udevd 133 messageb 20 0 2968 1388 1112 S 0.0 0.3 0:00.09 dbus-daemon 123 root 20 0 3012 1332 1128 S 0.0 0.3 0:00.01 g-ether-load.sh 336 root 20 0 3028 1320 1068 S 0.3 0.3 0:00.61 dropbear 256 root 20 0 4644 1224 1052 S 0.0 0.2 0:00.00 wpa_supplicant 132 root 20 0 3008 1196 680 S 0.0 0.2 0:00.01 crond 130 root 20 0 2976 1120 944 S 0.0 0.2 0:00.01 systemd-logind 338 root 20 0 2496 1108 896 R 0.3 0.2 0:00.11 top 135 root 20 0 1992 724 624 S 0.0 0.1 0:00.02 agetty 251 root 20 0 2152 712 652 S 0.0 0.1 0:00.00 udhcpd 308 root 20 0 1992 712 612 S 0.0 0.1 0:00.01 agetty ... ===== Quelques modifications sur le noyau ===== * http://hipstercircuits.com/compile-a-new-kernel-for-beaglebone/ * http://www.meadios.com/2012/01/building-angstrom-using-bitbake-and-openembedded/ * http://www.slimlogic.co.uk/2011/05/openembeddedangstrom-kernel-workflow/ de la cross compilation , en attendant ... Le code de base git clone git://github.com/Angstrom-distribution/setup-scripts.git cd setup-scripts MACHINE=beaglebone ./oebb.sh config beaglebone MACHINE=beaglebone ./oebb.sh update MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel -c configure cd ./build/tmp-angstrom_v2012_12-eglibc/work/armv7a-vfp-neon-angstrom-linux-gnueabi/linux-libc-headers-3.4.3-r0/linux-3.4.3 make menuconfig ARCH=arm cp .config ./sources/meta-beagleboard/common-bsp/recipes-kernel/linux/linux-mainline-3.8/beaglebone/defconfig * http://blog.pignology.net/2013/05/getting-uart2-devttyo1-working-on.html * In order to disable/enable the video chip, insert a 0(off) or 1(on) into /sys/devices/platform/omapdss/display/enabled: de http://elinux.org/BeagleBoard/video echo 0 > /sys/devices/platform/omapdss/display0/enabled echo 0 > /sys/devices/platform/omapdss/display1/enabled ===== Récuparation au boot ===== boot sur la micro sd de secour mmc dev 0 setenv mmcdev 0 run loadbootenv run importbootenv run uenvcmd ==== Des liens ==== * CNC sur BB : [[http://bb-lcnc.blogspot.fr/p/machinekit_16.html]] * LCD : [[http://www.element14.com/community/community/knode/single-board_computers/next-gen_beaglebone/blog/2013/05/28/bbb--connecting-up-an-lcd|bbb--connecting-up-an-lcd]]