bpi-sinovoip / bpi-tools Goto Github PK
View Code? Open in Web Editor NEWtools for Banana Pi
tools for Banana Pi
Board model Banana Pi M2+ V1.2
Armbian Bionic and Stretch is used and supported as per your documentation.
Armbian_5.90_Bananapim2plus_Ubuntu_bionic_next_4.19.57.img
Armbian_5.83_Bananapim2plus_Debian_stretch_next_4.19.38.img
This ticket is using Bionic as example, but same happens on Stretch.
scp
' image Armbian_5.90_Bananapim2plus_Ubuntu_bionic_next_4.19.57
to BPI SD cardsudo dd if=Armbian_5.90_Bananapim2plus_Ubuntu_bionic_next_4.19.57.img of=/dev/mmcblk1 bs=10MB
halt
Ctrl+C
(abort) Armbian suggestion for user creation, only user root
for now and everything following is done as root.uname -a
Linux bananapim2plus 4.19.38-sunxi #5.83 SMP Fri May 3 23:33:25 CEST 2019 armv7l GNU/Linux
apt update
apt upgrade
reboot
uname -a
Linux bananapim2plus 4.19.62-sunxi #5.92 SMP Wed Jul 31 22:07:23 CEST 2019 armv7l GNU/Linux
bpi-tools
routineInstall bpi-tools
apt -y install file && \
mkdir -p ~/sources/bpi-tools && cd "$_" && \
curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash - && \
bpi-tools && \
bpi-tools -v && \
bpi-hw
Check output-01.log
/usr/bin/bpi-hw: line 241: warning (..)
bpi-hw
returns bpi-m2p
as expected.bpi-update
routineLet us use bpi-update
mkdir -p ~/sources/bpi-update && cd "$_" && \
bpi-update -c bpi-m2p.conf
Check output-02.log
root@bananapim2plus:~/sources/bpi-update# ls -la
total 116640
drwxr-xr-x 2 root root 4096 Aug 6 22:55 .
drwxr-xr-x 4 root root 4096 Aug 6 22:55 ..
-rw-r--r-- 1 root root 89174038 Aug 6 22:55 3.4.39-BPI-M2P-Kernel.tgz
-rw-r--r-- 1 root root 3157772 Aug 6 22:55 BOOTLOADER-bpi-m2p.tgz
-rw-r--r-- 1 root root 6709073 Aug 6 22:55 BPI-BOOT-bpi-m2p.tgz
-rw-r--r-- 1 root root 42020 Aug 6 22:55 addons.tgz
-rw-r--r-- 1 root root 1803 Aug 6 22:55 bpi-m2p.conf
-rw-r--r-- 1 root root 1221842 Aug 6 22:55 bpi-service.tgz
-rw-r--r-- 1 root root 16808 Aug 6 22:55 bpi-tools.tgz
-rw-r--r-- 1 root root 4124902 Aug 6 22:55 brcm.tgz
-rw-r--r-- 1 root root 11673 Aug 6 22:55 bt.tgz
-rw-r--r-- 1 root root 7166367 Aug 6 22:55 camera-apps.tgz
-rw-r--r-- 1 root root 7709185 Aug 6 22:55 camera.tgz
-rw-r--r-- 1 root root 67927 Aug 6 22:55 libvdpau_sunxi.tgz
Downgrade to 3.4.39 kernel?
At this point simply reboot
(without touching bpi-bootsel
)
Let's check what bpi-hw
says
root@bananapim2plus:~# bpi-hw
bpi-m3
root@bananapim2plus:~# uname -a
Linux bananapim2plus 4.19.62-sunxi #5.92 SMP Wed Jul 31 22:07:23 CEST 2019 armv7l GNU/Linux
bpi-hw reports incorrect board version
bpi-update
routineExtra mention.
If bpi-update
routine is skipped, after installing your RPi.GPIO fork...
apt install python-dev python3-dev
mkdir -p ~/sources && cd "$_" && \
git clone https://github.com/BPI-SINOVOIP/RPi.GPIO && \
cd RPi.GPIO && \
python3 setup.py install && \
python2 setup.py install
...at least polling GPIO was possible (interrupts do not work for your fork). After bpi-update
routine is applied (bpi-update -c bpi-m2p.conf
...) GPIO does not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.