티스토리 뷰
OS/Banana Pi /BPI-Bit
BPI-M2 Berry : 2019-05-13-debian-9-stretch-mate-desktop-preview-bpi-m2u-sd-emmc.img
파란크리스마스 2020. 1. 26. 01:43728x90
출처
- 추천 : Mali binary driver - linux-sunxi.org
- BPI-M2U & Berry New Image Release : Ubuntu 16.04 & Raspbian 9.4 & Debian 9.4 2019-05-13 - Banana Pi BPI-M2 Ultra / BPI-M2 Berry / Image - banana pi single board computer open source project official forum SinoVoip BPI team
- Temporary failure in name resolution 오류 해결 방법 : 네이버 블로그
- 구들 공작소™ v0.9 - 데비안 리눅스 X 윈도우 설치
- GitHub - linux-sunxi/libump: Unified Memory Provider userspace API source code needed for xf86-video-mali compilation
고정 IP 설정
$ sudo vi /etc/network/interfaces
auto eth0 # iface eth0 inet dhcp iface eth0 inet static address 192.168.0.200 netmask 255.255.255.0 gateway 192.168.0.1 dns-nameservers 219.250.36.130
서비스 다시 시작
$ sudo systemctl restart networking.service $ sudo systemctl status networking.service [0m networking.service - Raise network interfaces Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled) Active: active (exited) since Sun 2017-08-27 13:26:01 CST; 30min ago Docs: man:interfaces(5) Process: 14900 ExecStop=/sbin/ifdown -a --read-environment --exclude=lo (code=exited, status=0/SUCCESS) Process: 14956 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS) Process: 14952 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "$(ifquery --read-envi Main PID: 14956 (code=exited, status=0/SUCCESS) Aug 27 13:26:00 bpi-iot-ros-ai systemd[1]: Starting Raise network interfaces... Aug 27 13:26:01 bpi-iot-ros-ai systemd[1]: Started Raise network interfaces.
DNS 설정
$ sudo vi /etc/resolv.conf
nameserver 219.250.36.130
glmark2 설치
$ sudo apt-get install git g++ build-essential pkg-config $ sudo apt-get install libx11-dev libgl1-mesa-dev $ sudo apt-get install libjpeg-dev libpng-dev $ cd ~/ $ git clone https://github.com/glmark2/glmark2.git $ cd glmark2/ $ ./waf configure --with-flavors=x11-gl $ ./waf build -j 4 $ sudo ./waf install
lsmod
$ lsmod Module Size Used by hci_uart 18784 1 bcmdhd 565499 0 ft5x_ts 58051 0 ov5640 41452 0 vfe_v4l2 175612 0 option 29049 0 usb_wwan 5308 1 option vfe_io 28241 2 vfe_v4l2,ov5640 videobuf2_dma_contig 8494 1 vfe_v4l2 videobuf2_memops 1276 1 videobuf2_dma_contig ss 30684 0 videobuf2_core 22619 1 vfe_v4l2 ip_tables 9635 0 x_tables 12243 1 ip_tables
sunxi-mali 빌드 (실패)
$ git clone --recursive https://github.com/linux-sunxi/sunxi-mali.git $ cd sunxi-mali $ make config rm -f config.mk make config.mk make[1]: Entering directory '/home/pi/sunxi-mali' make -f Makefile.config make[2]: Entering directory '/home/pi/sunxi-mali' ABI="armhf" (Detected) Error: Failed to open /dev/mali: No such file or directory VERSION="" (Detected) Error: Failed to open /dev/mali: No such file or directory Error: Failed to open /dev/mali: No such file or directory Error: Failed to open /dev/mali: No such file or directory Error: Failed to open /dev/mali: No such file or directory Error: Failed to open /dev/mali: No such file or directory Makefile.config:57: Unknown/unhandled Mali Version "" Makefile.config:58: Use VERSION=(r2p4,r3p0,r3p1,r3p2-01rel1) instead Error: Failed to open /dev/mali: No such file or directory Makefile.config:59: *** Unknown/unhandled Mali Version "". Stop. make[2]: Leaving directory '/home/pi/sunxi-mali' Makefile:12: recipe for target 'config.mk' failed make[1]: *** [config.mk] Error 2 make[1]: Leaving directory '/home/pi/sunxi-mali' Makefile:8: recipe for target 'config' failed make: *** [config] Error 2 pi@bpi-iot-ros-ai:~/sunxi-mali$ dpkg -l | grep libump pi@bpi-iot-ros-ai:~/sunxi-mali$ ls include lib Makefile Makefile.config Makefile.setup README test version
libump 빌드
$ git clone https://github.com/linux-sunxi/libump.git $ cd libump $ autoreconf -i $ ./configuremake $ make $ sudo make install
dpkg-buildpackage
$ sudo apt-get install debhelper dh-virtualenv $ sudo dpkg-buildpackage -b dpkg-buildpackage: info: source package libump dpkg-buildpackage: info: source version 3.0-0sunxi1 dpkg-buildpackage: info: source distribution any dpkg-buildpackage: info: source changed by Luc Verhaegendpkg-buildpackage: info: host architecture armhf dpkg-source --before-build libump dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 9) dh-autoreconf dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.)
libdri2 빌드
출처 : Mali binary driver - linux-sunxi.org
$ sudo apt-get install xutils-dev git clone https://github.com/robclark/libdri2 cd libdri2 ./autogen.sh ./configure --prefix=/usr make make install ldconfig
sunxi-mali 빌드(성공)
버전 찾기
$ sudo find / -name libUMP.so -print /home/pi/sunxi-mali/lib/mali/r3p0/armel/android/libUMP.so
make config
$ cd sunxi-mali $ make config VERSION=r3p0 ABI=armhf rm -f config.mk make config.mk make[1]: Entering directory '/home/pi/sunxi-mali' make -f Makefile.config make[2]: Entering directory '/home/pi/sunxi-mali' ABI="armhf" (Provided) VERSION="r3p0" (Provided) EGL_TYPE="x11" (Detected) echo "MALI_VERSION ?= r3p0" > config.mk echo "MALI_LIBS_ABI ?= armhf" >> config.mk echo "MALI_EGL_TYPE ?= x11" >> config.mk make[2]: Leaving directory '/home/pi/sunxi-mali' make[1]: Leaving directory '/home/pi/sunxi-mali'
sunxi-mali 설치
$ sudo make install make -C lib install make[1]: Entering directory '/home/pi/sunxi-mali/lib' make -C mali install make[2]: Entering directory '/home/pi/sunxi-mali/lib/mali' make -C r3p0/armhf/x11/ make[3]: Entering directory '/home/pi/sunxi-mali/lib/mali/r3p0/armhf/x11' install -m 644 libMali.so //usr/lib/ rm -f //usr/lib/libEGL.so.1.4 //usr/lib/libEGL.so.1 //usr/lib/libEGL.so ln -sf libMali.so //usr/lib/libEGL.so.1.4 ln -sf libEGL.so.1.4 //usr/lib/libEGL.so.1 ln -sf libEGL.so.1 //usr/lib/libEGL.so rm -f //usr/lib/libGLESv1_CM.so.1.1 //usr/lib/libGLESv1_CM.so.1 //usr/lib/libGLESv1_CM.so ln -sf libMali.so //usr/lib/libGLESv1_CM.so.1.1 ln -sf libGLESv1_CM.so.1.1 //usr/lib/libGLESv1_CM.so.1 ln -sf libGLESv1_CM.so.1 //usr/lib/libGLESv1_CM.so rm -f //usr/lib/libGLESv2.so.2.0 //usr/lib/libGLESv2.so.2 //usr/lib/libGLESv2.so ln -sf libMali.so //usr/lib/libGLESv2.so.2.0 ln -sf libGLESv2.so.2.0 //usr/lib/libGLESv2.so.2 ln -sf libGLESv2.so.2 //usr/lib/libGLESv2.so make[3]: Leaving directory '/home/pi/sunxi-mali/lib/mali/r3p0/armhf/x11' make[2]: Leaving directory '/home/pi/sunxi-mali/lib/mali' make[1]: Leaving directory '/home/pi/sunxi-mali/lib' make -C include install make[1]: Entering directory '/home/pi/sunxi-mali/include' mkdir -p //usr//include/EGL install -m 644 EGL/egl.h EGL/eglext.h //usr//include/EGL mkdir -p //usr//include/EGL install -m 644 EGL/eglplatform.h //usr//include/EGL/eglplatform.h mkdir -p //usr//include/GLES install -m 644 GLES/gl.h GLES/glext.h GLES/glplatform.h //usr//include/GLES mkdir -p //usr//include/GLES2 install -m 644 GLES2/gl2.h GLES2/gl2ext.h GLES2/gl2platform.h //usr//include/GLES2 mkdir -p //usr//include/KHR install -m 644 KHR/khrplatform.h //usr//include/KHR make[1]: Leaving directory '/home/pi/sunxi-mali/include'
test
$ make test cc -Wall -o test test.c -lEGL -lGLESv2
xf86-video-fbturbo 설치
$ sudo apt-get install xorg-dev $ git clone https://github.com/ssvb/xf86-video-fbturbo.git $ cd xf86-video-fbturbo $ autoreconf -vi $ ./configure --prefix=/usr $ make $ sudo make install
xorg.conf 복사
$ sudo cp xorg.conf /etc/X11/xorg.conf
BLE
$ sudo hcitool lescan LE Scan ... 57:12:AD:C3:6C:D6 (unknown) 40:D8:1D:AC:2E:42 (unknown) 57:12:AD:C3:6C:D6 [LG] webOS UHD Box AN-US800K 62:83:F6:7E:66:EF (unknown) 62:83:F6:7E:66:EF (unknown)
댓글
300x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Xcode
- android
- ffmpeg
- SAS
- sas2009
- flex
- MySQL
- 송주경
- ble
- 서울오토살롱
- 튜닝쇼 2008
- Mac
- Spring
- Delphi Tip
- Linux
- koba2010
- 전예희
- oracle
- 일본여행
- 레이싱모델 익스트림 포토 페스티벌
- BPI-M4
- Java
- JavaScript
- NDK
- 지스타2007
- ubuntu
- Spring MVC
- KOBA
- 동경
- Delphi
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함