Open gitterman opened 1 year ago
I am running armbian on my banana pi model 1 and I am struggling to get GPIO to work.
BOARD=bananapi BOARD_NAME="Banana Pi" BOARDFAMILY=sun7i BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=9b04dbfd87d VERSION=22.08.8 LINUXFAMILY=sunxi ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image BRANCH=current
I have cloned https://github.com/LeMaker/WiringBP -b bananapi and after installing gpio readall gives me
> gpio readall +----------+-Rev3-+------+--------+------+-------+ | wiringPi | GPIO | Phys | Name | Mode | Value | +----------+------+------+--------+------+-------+ | 0 | 17 | 11 | GPIO 0 | OUT | Low | | 1 | 18 | 12 | GPIO 1 | IN | Low | | 2 | 27 | 13 | GPIO 2 | IN | Low | | 3 | 22 | 15 | GPIO 3 | IN | Low | | 4 | 23 | 16 | GPIO 4 | IN | Low | | 5 | 24 | 18 | GPIO 5 | IN | Low | | 6 | 25 | 22 | GPIO 6 | IN | Low | | 7 | 4 | 7 | GPIO 7 | OUT | Low | | 8 | 2 | 3 | SDA | ALT5 | Low | | 9 | 3 | 5 | SCL | ALT5 | Low | | 10 | 8 | 24 | CE0 | ALT5 | Low | | 11 | 7 | 26 | CE1 | OUT | High | | 12 | 10 | 19 | MOSI | ALT5 | Low | | 13 | 9 | 21 | MISO | ALT5 | Low | | 14 | 11 | 23 | SCLK | OUT | High | | 15 | 14 | 8 | TxD | ALT0 | Low | | 16 | 15 | 10 | RxD | ALT0 | Low | | 17 | 28 | 3 | GPIO 8 | IN | Low | | 18 | 29 | 4 | GPIO 9 | OUT | Low | | 19 | 30 | 5 | GPIO10 | OUT | Low | | 20 | 31 | 6 | GPIO11 | OUT | Low | +----------+------+------+--------+------+-------+
After I had cloned and installed https://github.com/BPI-SINOVOIP/BPI-WiringPi2-Python.git -b BPI_M1_M1Plus the WiringPi Pins 17,19 and 20 are gone. These Pins are on header J12 as shown here https://hardware-libre.fr/2014/07/banana-pi-gpio-now-supported/ and they are completely missing in the BPI setup.
> gpio readall +-----+-----+---------+------+---+---Pi ---+---+------+---------+-----+-----+ | CPU | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | CPU | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | | | 3.3v | | | 1 || 2 | | | 5v | | | | 53 | 8 | SDA.1 | ALT5 | 0 | 3 || 4 | | | 5V | | | | 52 | 9 | SCL.1 | ALT5 | 0 | 5 || 6 | | | GND | | | | 259 | 7 | GCLK | OUT | 0 | 7 || 8 | 0 | ALT0 | TxD0 | 15 | 224 | | | | GND | | | 9 || 10 | 0 | ALT0 | RxD0 | 16 | 225 | | 275 | 0 | GEN0 | OUT | 0 | 11 || 12 | 0 | IN | GEN1 | 1 | 226 | | 274 | 2 | GEN2 | IN | 0 | 13 || 14 | | | GND | | | | 273 | 3 | GEN3 | IN | 0 | 15 || 16 | 0 | IN | GEN4 | 4 | 244 | | | | 3.3v | | | 17 || 18 | 0 | IN | GEN5 | 5 | 245 | | 268 | 12 | MOSI | ALT5 | 0 | 19 || 20 | | | GND | | | | 269 | 13 | MISO | ALT5 | 0 | 21 || 22 | 0 | IN | GEN6 | 6 | 272 | | 267 | 14 | SCLK | OUT | 1 | 23 || 24 | 0 | ALT5 | CE0 | 10 | 266 | | | | GND | | | 25 || 26 | 1 | OUT | CE1 | 11 | 270 | | 257 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | OUT | SCL.0 | 31 | 256 | | 37 | 21 | GPIO.21 | IN | 0 | 29 || 30 | | | GND | | | | 38 | 22 | GPIO.22 | IN | 0 | 31 || 32 | 0 | IN | GPIO.26 | 26 | 44 | | 39 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | GND | | | | 40 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 0 | OUT | GPIO.27 | 27 | 277 | | 35 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | OUT | GPIO.28 | 28 | 276 | | | | GND | | | 39 || 40 | 0 | IN | GPIO.29 | 29 | 45 | +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+ | CPU | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | CPU | +-----+-----+---------+------+---+---Pi ---+---+------+---------+-----+-----+
I am running armbian on my banana pi model 1 and I am struggling to get GPIO to work.
I have cloned https://github.com/LeMaker/WiringBP -b bananapi and after installing
gpio readall gives me
After I had cloned and installed https://github.com/BPI-SINOVOIP/BPI-WiringPi2-Python.git -b BPI_M1_M1Plus the WiringPi Pins 17,19 and 20 are gone. These Pins are on header J12 as shown here https://hardware-libre.fr/2014/07/banana-pi-gpio-now-supported/ and they are completely missing in the BPI setup.