GithubHelp home page GithubHelp logo

bpi-tools's Issues

bpi-update broken on bpi-m2p - suggests kernel downgrade to 3.x, breaks bpi-hw and breaks GPIO

Basics

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.

Installing and booting from eMMC

  • Burn img to SD card
  • Place SD card into BPI
  • Boot into BPI
  • scp' image Armbian_5.90_Bananapim2plus_Ubuntu_bionic_next_4.19.57 to BPI SD card
  • Burn image to eMMC
  • sudo dd if=Armbian_5.90_Bananapim2plus_Ubuntu_bionic_next_4.19.57.img of=/dev/mmcblk1 bs=10MB
  • halt
  • Remove SD card
  • Boot (boots from eMMC)
  • Change root password
  • 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 routine

Install 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

  • Has warning /usr/bin/bpi-hw: line 241: warning (..)
  • bpi-hw returns bpi-m2p as expected.

bpi-update routine

Let 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


GPIO after bpi-update routine

Extra 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.