Cours:BeagleBoneSetup

De troyesGEII
Aller à : navigation, rechercher

Accès ssh

Ajouter dans le fichier sshd_config

  • Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,blowfish-cbc,aes128-cbc,3des-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc


Toolchain

http://exploringbeaglebone.com/chapter7/

http://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz

http://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-i686-mingw32_arm-linux-gnueabihf.tar.xz

dpkg --add-architecture armhf
apt-get install crossbuild-essential-armhf


Qt 5

Sur la carte beagleBone

#ajouter les sources au fichier /etc/apt/sources.list
apt-get build-dep qt5-default
#sans doute des dépendances superflues :
apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev
#le minimum pour qt avec réseau
apt-get install libqt5core5a libqt5network5

Sur le PC

https://blog.guh.guru/tech/crosscompile-qt-5-2-1-for-bbb/

wget http://download.qt.io/archive/qt/5.3/5.3.2/single/qt-everywhere-opensource-src-5.3.2.tar.xz
tar xfv qt-everywhere-opensource-src-5.3.2.tar.xz
export CURRENT_DIR=`pwd`
export QT_SRCDIR="${CURRENT_DIR}/qt-everywhere-opensource-src-5.3.2"
export PREFIX="${CURRENT_DIR}/Qt-5.3.2"
export ROOTFS_DIR="${CURRENT_DIR}/rootfs"
export NPROC=`nproc`

echo "Configuration du device pour la carte beagleBone à partir de beagleBoard"
cd ${QT_SRCDIR}/qtbase/mkspecs/devices/
cp -rv linux-beagleboard-g++ linux-beaglebone-g++
sed 's/softfp/hard/' <linux-beagleboard-g++/qmake.conf >linux-beaglebone-g++/qmake.conf

echo "Configuration du compilateur"
cd ${QT_SRCDIR}/qtbase/mkspecs

Qemu

https://wiki.debian.org/QemuUserEmulation

apt-get install qemu-user-static
qemu-arm-static -L /usr/arm-linux-gnueabihf/ test
cp /usr/bin/qemu-arm-static /target_fs/usr/bin