Jump to content

Search the Community

Showing results for tags 'bananapim2zero'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Armbian
    • Armbian project administration
  • Community
    • Announcements
    • SBC News
    • Framework and userspace feature requests
    • Off-topic
  • Using Armbian
    • Beginners
    • Software, Applications, Userspace
    • Advanced users - Development
  • Standard support
    • Amlogic meson
    • Allwinner sunxi
    • Rockchip
    • Other families
  • Community maintained / Staging
    • TV boxes
    • Amlogic meson
    • Allwinner sunxi
    • Marvell mvebu
    • Rockchip
    • Other families
  • Support


  • Official giveaways
  • Community giveaways

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Website URL







  1. Hello, community. For a while now, I've been trying to configure the input and output of i2s0 without success. The closest I've come to a result was with the adau7002 configuration, but I'm experiencing synchronous noise, as if the issue were related to a CLK. Let me provide some details to see if anyone can guide me. I have a Banana Pi M2 with Armbian 23.11.1 Bookworm and Linux 6.1.13-current-sunxi. I have a pcm1807 connected to the input, configured with SPI, outputting i2s left justified in 24bit, and operating as a master. The pcm is connected to a 24.5MHz crystal. My goal is to configure the system to capture audio in a generic i2s format and then play it back in the same way through the output, as I have an amplifier connected to it. My other question is whether it's possible to reconfigure the pins using an overlay. Currently, my pin configuration is as follows: PA10 = LRCLK PA16 = BCLK PA20 = SDI PA21 = SDO i tried reconfigure the pins but i couldn't ☹️ I am attaching the adau7002.dts to provide additional information: /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target-path = "/"; __overlay__ { adau7002_codec: adau7002_codec { #sound-dai-cells = <0>; compatible = "adi,adau7002"; status = "okay"; }; }; }; fragment@1 { target = <&i2s0>; __overlay__ { status = "okay"; pinctrl-0 = <&i2s0_pins>; sound-dai = <&adau7002_codec>; pinctrl-names = "default"; }; }; fragment@2 { target-path = "/"; __overlay__ { sound_i2s { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; simple-audio-card,name = "adau7002"; #simple-audio-card,dai-link = "left_j"; simple-audio-card,bitclock-slave = <&dailink0_slave>; simple-audio-card,frame-slave = <&dailink0_slave>; simple-audio-card,mclk-fs = <512>; simple-audio-card,widgets = "Line", "Line In Jack"; simple-audio-card,routing = "PDM_DAT", "Line In Jack"; status = "okay"; simple-audio-card,cpu { sound-dai = <&i2s0>; }; dailink0_slave: simple-audio-card,codec { sound-dai = <&adau7002_codec>; }; }; }; }; }; I use for capture this command: "arecord -D hw:0,0 -f S16_LE -t wav -r 48000 -c 2 -d 10 -V stereo -v >test.wav". But when I want to switch S16_LE to S24_LE you can hardly hear anything, although the noise persists with both formats
  2. Hello, I'm using a BPI M2 Zero (with H3 Chip) to control two relays on CON2-P05 / PA11 and CON2-P03 / PA12. During the boot process there is a high level present at the pins, which is driving the relays. Is there a way to create a DTB overlay to drive the pins to a low level during boot. My userspace application uses libgpiod to control the pins. I'm familiar with compiling and activating overlays, i would just need help to write the correct .dts file. Thank you very much in advance
  3. I am running bookworm on a banana pi m2 zero. It comes up properly and connects to Wifi and to the attached LAN adapter, so I can access it via SSH on both interfaces. BUT, when I disconnect the keyboard, it doesn't boot properly anymore and I cannot connect to it. I attached a monitor to take a look at the startup messages and found that it hangs at starting the hostname service (see screenshot) How can I get it to boot properly?
  4. Armbian build: Armbian_23.8.1_Bananapim2zero_bookworm_current_6.1.47 Hardware: BananaPi M2 Zero I am using pure CLI environment, and when the output is on screen I can't really tell what is the resolution or the refresh, but the monitor is 1080p@60 and it seems to be matching. Although when I run apps that use SDL2 for example; the resolution is changed, and I tried to set a fixed resolution but there seems to be no way to do so in Armbian. I changed the boot settings and those are correctly set with 1080p@60; then I tried to use xrandr (I have X11 installed as I have SDL2 installed too), and it says "can't open display" (I assume because I have no X app running?); so I am basically stuck at this point. Is there a global setting that force the OS to a specific resolution? Is my CLI running really at 1080p@60? How can I tell an app running in X server to set itself to the same resolution of the current CLI? Thanks
  5. Hello, I installed 2022-09-27-Armbian_22.11.0-trunk_jammy_edge_lubuntu_5.19.6-qt5-swap-bpi-p2z-10804MB.img on my Banana Pi Zero and it works great! I run sudo apt update , sudo apt upgrade ... Hours later, time to reboot. The board reboots and crashes.. See pic. Hmmm can't attach pics for some reason. First error I see on the screen says Failed to load '/boot/dtb/sun8i-h2-plus-bananapi-p2-zero.dtb libfdt fdt_check_header(): FDT_ERR_BADMAGIC No FDT memory address configured. Please configure the FDT address via "fdt addr <address>" command. Aborting! Then a bunch of other errors ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree Script failures.. No ethernet found.. Eventually => Also had some fun fixing the github public key before I was able to do apt update.
  6. I am working on a project with armbian 23.8.1 embedded in a banana pi m2 zero. I need to use the spi 0 with the two select chips. When I initialize I can only initialize spidev0.0 or spidev 0.1. There is no way that can initialize both. Configure the armbianEnv.txt file with the following parameters: overlays= spi-add-cs1 spi-spidev param_spidev_spi_bus=0 param_spidev_spi_cs=1 Also try other combinations and nothing. Then try to modify the .dtb file by adding cs-gpios and changing status = "okay" but it doesn't work
  7. Hi, I recently purchased a Banana Pi M2 zero, and I can't seem to get the OTG port to work with any kind of operating system. I have tried all of the normal remedies like cable issues, power supply, etc. With no luck. I know Armbian is usually the best OS for these little boards, but I can't seem to get a keyboard or mouse to work with it. Although it boots up just fine. Any help would be greatly appreciated!
  8. After flashing the sd card with armbian and booting it, it asks me to enter the root password, however the keyboard that is plugged in isnt detected and nothing is typed on the screen. Ive already tried bookworm and jammy, both cli and minimal-cli variants. It is not a keyboard or usb related issue, i tested it with an older version of armbian and the keyboard still works.
  9. I am using armbian on banana pi m2 zero with screen 1920x360. For some reason display controller didn't tell edid, so banana using default value and it doesn't look right (only a few more than half of the screen displaying anything). I want to use this screen, so I want to override default values. How this can be done? I tried setenv video-mode sunxi:1920x360-24@60,monitor=hdmi saveenv but this didn't work (saveenv tells `Saving Environment to FAT... Unable to use mmc 0:1...`) and before booting u-boot tells `Loading Environment from FAT... Unable to use mmc 0:1...` I am using armbian jammy (Armbian_23.02.0-trunk_Bananapim2zero_jammy_current_5.15.80_xfce_desktop)
  10. Hello, Is it possible to set the speed of the UART3 to 921600 baud instead of 115000? How to do it? I need to connect to an arduino at that speed. I have tried with minicom but I can't get it. I have also tried to put the following command dtoverlay=miniuart-bt in /boot/armbianEnv.tx but it doesn't work either. to 115000 if I can connect well, therefore the port works correctly Is there any way?
  11. I did try the latest Armbian 23.5 Bookworm on my banana pi m2 zero with allwinner h3 chip and I couldn't get the USB OTG port working (i. e. no keyboard recognition) and eth0 also did not work. After a lot of searching I found an old image (BananaPi-M2zero_Armbian_2021.08.1_bullseye_CLI_5.10.60.img) which did work. I wonder what happened to the kernel Kernel 6.2.y edition and why those crucial hardware features are not working anymore. Is there a vault somewhere of older armbian software revisions?
  12. Can anyone provide any information on getting the GPU driver working with a Banana Pi M2 Zero? It supposedly has a Mali 400 GPU. In my tests, it seems I am stuck with Mesa software rendering with OpenGL. When I write a program that creates an OpenGL 2.0 ES context, the vendor and renderer both list Mesa and performance is terrible (2-10 fps and GLSL shaders are incorrect) when rendering even the simplest scenes. I am using DRM (Direct Rendering Manager) with boots straight to a CLI and no desktop environment if that makes any difference. With the same code and same conditions on a Raspberry Pi Zero 2 W, OpenGL works perfectly in my tests. I am using the most recent Armbian linked on the banana pi wiki page for the product. I tried to build the Mali driver for the Mali 400 GPU from source using this command: KDIR=/lib/modules/`uname -r`/build USING_UMP=0 BUILD=release make But receive this error: Makefile:122: CONFIG_TRACEPOINTS required for profiling Makefile:92: /lib/modules/6.0.9-sunxi/build/.config: No such file or directory make: *** No rule to make target '/lib/modules/6.0.9-sunxi/build/.config'. Stop. When I think means I don't have header sources for my kernel. I looked through apt cache and it doesn't have the source for my kernel listed. What can I do to get actual OpenGL ES 2.0 GPU hardware support (or even OpenGL 3.0 core profile) working on this hardware with Armbian?
  13. Hello guys, i'm trying to connect that ili9341 display with my m2 zero but it wont work. My armbian Version: Armbian_23-02-0-trunk_Bananapim2zero_lunar_edge_6.1.11_xfce_desktop The display has a pinout that matches with the raspberry pi, so also the banana pi m2 zero would do the job, since it has the same pinout like the raspberry pi has. It uses 26 pins to connect to the banana pi m2 zero gpio output pins. 3 buttons and a touch panel are available but i only want to use the lcd for now. I edited the armbianEnv.txt to open the spi port and added my overlay tft.dts to /boot/overlay-user but i cant get a picture on the screen, Its just glowing white. Am I missing something? Are my gpios numbers in the overlay correct? do i have to install additional software? I would be very happy for tips or help! My armbianEnv.txt : verbosity=1 bootlogo=false console=both disp_mode=1920x1080p60 overlay_prefix=sun8i-h3 rootdev=UUID=39f6ab06-e14f-4885-8454-717c5405f006 rootfstype=ext4 overlays=cpu-clock-1.2GHz-1.3v spi-spidev param_spidev_spi_bus=0 user_overlays=tft usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u My overlay tft.dts /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; fragmen@0 { target = <&pio>; __overlay__ { display_pins: display_pins { pins = "PC0", "PC3"; function = "gpio_out"; }; }; }; fragment@1 { target = <&spi0>; __overlay__ { /* needed to avoid dtc warning */ #address-cells = <1>; #size-cells = <0>; display: display@0 { compatible = "adafruit,yx240qv29", "ilitek,ili9341"; reg = <0>; pinctrl-names = "default"; pinctrl-0 = <&display_pins>; spi-max-frequency = <16000000>; rotation= <270>; bgr; fps = <10>; buswidth = <8>; height = <240>; width = <320>; reset-gpios = <&pio 0 25 0>; /* GPIOA 6 */ dc-gpios = <&pio 0 24 0>; /* GPIOA 3 */ debug = <3>; }; }; }; __overrides__ { rotation = <&display>, "rotation:0"; fps = <&display>, "fps:0"; debug = <&display>, "debug:0"; }; };
  14. Hello, im trying to map the i2c-2 to some GPIO ports and have to rewrite the device-tree on armbian 22.04. I'm failing miserably and have no idea how-to do it. I managed to compile the i2c-gpio.ko kernel module as it is not part of the armbian 5.15.89-sunxi kernel. However, here i'm stuck and cant manage to make it happen. On RPi it was simple adding an overlay to config.txt: dtoverlay=i2c-gpio,bus=2,i2c_gpio_sda=27,i2c_gpio_scl=17 /boot/overlays/i2c-gpio.dtbo I'm trying to replicate that for Armbian, here is my dts file: // Overlay for i2c_gpio bitbanging host bus. /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target-path = "/"; __overlay__ { i2c_gpio: i2c@2 { reg = <0>; compatible = "i2c-gpio"; gpios = <&pio 17 0 /* sda */ &pio 27 0 /* scl */ >; i2c-gpio,delay-us = <2>; #address-cells = <1>; #size-cells = <0>; }; }; }; fragment@1 { target-path = "/aliases"; __overlay__ { i2c_gpio = "/i2c@2"; }; }; fragment@2 { target-path = "/__symbols__"; __overlay__ { i2c_gpio = "/i2c@2"; }; }; __overrides__ { i2c_gpio_sda = <&i2c_gpio>,"gpios:4"; i2c_gpio_scl = <&i2c_gpio>,"gpios:16"; i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0"; bus = <&i2c_gpio>, "reg:0"; }; }; What am I doing wrong?
  15. Hi All, I am trying to enable HID gadget on Banana Pi M2 Zero with latest Armbian OS for it. I followed the instructions in following link,but no luck: Switch USB port from OTG to HOST mode I get modprobe: ERROR: could not insert 'g_hid': No such device when I enter modprobe g_hid. I appreciate any help. Thanks
  16. I don’t own banana pi but I’m thinking of buying it for the project we’re going to do. I have raspberry pi zero but mediapipe is not working. Can I install this library on m2 zero? I would be glad if you help. Thank you.
  17. I don't own banana pi but I'm thinking of buying it for the project we're going to do. I have raspberry pi zero but mediapipe is not working. I'm thinking of doing image manipulation and this is the most important library in my code. That's why I'm trying to do a detailed research because my budget is limited. Thank you for your help 💯
  18. About 6 months ago I started a music project with the Raspberry PI Zero 2W. The project is a module to generate weird and wonderful drone music/sounds (example here) Because of the fact that it's nearly impossible to got hold of the Raspberry PI Zero 2W, I want to "port" the project to an alternative and available board with the same footprint and pinout; the BPI M2 Zero would be perfect. I have quite a challenge though; See image: The exact setup below with an Raspberry PI Zero 2W (O/S: Bullseye 11) and the install procedure described here, runs absolutely fine --- but now I want this setup to run on the BPI M2 Zero (O/S: "Armbian_20.05.1_Bananapim2zero_buster_current_5.4.43_desktop" downloaded from here) I appreciate that the BPI M2 Zero has a different architecture - but I guess with the lack of support (compared to the Raspberry PI) I can't figure out how to get this setup running. Has anyone got experience getting the two boards "talking" ? I need the setup to be the same as I already have the PCBs produced you see. I haven't seen a Armbian version of Bullseye 11 ... but I don't think it's absolutely necessary to have the same O/S. I guess what matters is that the Audio's board install-script (curl https://get.pimoroni.com/phatdac | bash) is re-worked to run on the BPI M2 Zero. I am willing to offer a financial incentive for your time (ping me).
  19. I'm using Banana Pi M2 Zero with Armbian Debian GNU/Linux 10 (Buster). Compiled the image myself with the latest source code using the armbin/build repository. I want to be able to do serial communication on pins 8 and 10. I'm looking for something to appear at /dev/ttyAMA0, so I can communicate with it. I saw some other forum posts which mentioned it'll happen on /dev/ttyS0 , however even that is not happening. The serial communication is working via FTDI (using the USB side connected to the Banana Pi), which indicates there is no problem with the other device. This is what the configuration looks like using "sudo minicom -s". +-----------------------------------------------------------------------+ | A - Serial Device : /dev/ttyS0 | | B - Lockfile Location : /var/lock | | C - Callin Program : | | D - Callout Program : | | E - Bps/Par/Bits : 115200 8N1 | | F - Hardware Flow Control : No | | G - Software Flow Control : No | | | | Change which setting? | +-----------------------------------------------------------------------+ | Screen and keyboard | | Save setup as dfl | | Save setup as.. | | Exit | | Exit from Minicom | +--------------------------+ I have enabled "uart1" using "sudo armbian-config -u" -> System -> Hardware. Connecting Rx, Tx on the pins 8 and 10 also does not show up in "dmesg" How do I go about debugging the issue or finding the root cause of the problem? Many thanks!
  20. Hi, I am stuck integrating IR in my board banana pi m2 zero. Can anyone guide me to setup IR?
  21. ls /sys/class/udc > UDC ls:write error: Device or resource busy I'm trying to get an armbian device (banana pi m2 zero and/or the orange pi zero LTS) to function as a USB client, but I can't seem to get the above step working. Any suggestions? lsof UDC returns nothing. On the RaspberryPI 4 this worked without issue
  22. I got myself a Banana Pi M2 Zero (with H3 chip) and am running Armbian (Armbian_21.08.1_Bananapim2zero_buster_current_5.10.60) on it. I have enabled SPI by adding the spi-spidev dt overlay. Now I want to use both CS pins at the same time so that I can connect two devices. The spi-add-cs1 overlay doesn't change anything so I researched a bit and found this custom overlay. Unfortunately it didn't work too and there is still only a single spidev available. Is there any way to enable both of them at the same time?
  23. Hi, so without knowing what the swappiness actually is I changed the value from 100 to 512. Since then, I can't boot my Banana Pi M2 Zero. Shortly after that, I remembered again: swappiness is the percentage of how often to use swap and not the maximum amount of storage. Can I repair it inside uboot? Can I plug the sd card into my PC and edit the files there? Here is the log from the serial console. It's stuck forever after the last line. .............................................................. U-Boot SPL 2020.10-armbian (Nov 23 2020 - 15:48:18 +0100) DRAM: 512 MiB Trying to boot from MMC1 U-Boot 2020.10-armbian (Nov 23 2020 - 15:48:18 +0100) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Banana Pi BPI-M2-Zero DRAM: 512 MiB MMC: mmc@1c0f000: 0, mmc@1c10000: 1 Loading Environment from FAT... Unable to use mmc 0:1... In: serial@1c28000 Out: serial@1c28000 Err: serial@1c28000 Net: No ethernet found. starting USB... No working controllers found Autoboot in 1 seconds, press <Space> to stop switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3967 bytes read in 4 ms (967.8 KiB/s) ## Executing script at 43100000 U-boot loaded from SD Boot script loaded from mmc 262 bytes read in 3 ms (85 KiB/s) 11504321 bytes read in 963 ms (11.4 MiB/s) 7793968 bytes read in 652 ms (11.4 MiB/s) Found mainline kernel configuration 33363 bytes read in 12 ms (2.7 MiB/s) 788 bytes read in 11 ms (69.3 KiB/s) Applying kernel provided DT overlay sun8i-h3-spi-spidev.dtbo 502 bytes read in 10 ms (48.8 KiB/s) Applying kernel provided DT overlay sun8i-h3-uart1.dtbo 502 bytes read in 11 ms (43.9 KiB/s) Applying kernel provided DT overlay sun8i-h3-uart3.dtbo 4185 bytes read in 11 ms (371.1 KiB/s) Applying kernel provided DT fixup script (sun8i-h3-fixup.scr) ## Executing script at 45000000 ## Loading init Ramdisk from Legacy Image at 43300000 ... Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 11504257 Bytes = 11 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 43000000 Booting using the fdt blob at 0x43000000 Loading Ramdisk to 49507000, end 49fffa81 ... OK Loading Device Tree to 49496000, end 49506fff ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Thanks
  24. Hi forum members, the apt utility in my bpi m2 zero can't find neither dnsutil nor bind9-dnsutil for bullseye, here the output: pi@fewo-relais:~$ sudo apt install bind9-dnsutils Paketlisten werden gelesen… Fehler! E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-armhf_Packages E: Die Paketliste oder die Statusdatei konnte nicht eingelesen oder geöffnet werden. pi@fewo-relais:~$ pi@fewo-relais:~$ cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=bananapim2zero BOARD_NAME="Banana Pi M2 Zero" BOARDFAMILY=sun8i BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=735eff9 DISTRIBUTION_CODENAME=bullseye DISTRIBUTION_STATUS=csc VERSION=21.08.0-trunk LINUXFAMILY=sunxi ARCH=arm IMAGE_TYPE=user-built BOARD_TYPE=csc INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image BRANCH=current Can someone help how to update the repository to have also bind9-dnsutils included ? Regards wollik
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines