Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BPI M4 Zero 2G EMMC 8G H618 MCP2515

Featured Replies

any one have a succes with?

 

using Armbian_25.2.2_Bananapim4zero_noble_current_6.6.75.img

 

wifi not work, thats fixed with: overlays=bananapi-m4-sdio-wifi-bt

 

Applying kernel provided DT overlay sun50i-h616-mcp2515.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
 

and then:

Error applying DT overlays, restoring original DT
 

and have no wifi and any overlays at all..

 

on a bpi 2W Zero runs double mcp2515 on a spi1 as can0 + can1, but on M4 zero - no success at all, everythings are tried, all armbian builds, trying self writed overlays, tried boot from uSD, emmc - no success.

 

always took this:

Applying kernel/user provided DT overlay **any**.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND
 

Solved by Александр Архангельский

  • Author

bpi 2w zero runs at H3, and self writed overlay for double mcp2515, now trying to migrate from uSD to emmc and H618 M4 zero.. but it's unreal?

 

how to debug overlays step-by-step and all pheriperal pin-by-pin to detect any missclick's or conflict?, overlay compiled and applied without any notices...

 

Applying kernel/user provided DT overlay **any**.dtbo
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND

 

why FDT_ERR_NOTFOUND ??

 

default mcp2515 kernel overlay look like a joke:

 

/dts-v1/;
/plugin/;

/ {
    fragment@0 {
        target = <&spi1>;
         __overlay__ {
            status = "okay";
        };
    };

    fragment@1 {
        target = <&can>;
        __overlay__ {
            status = "okay";
        };
    };
};

 

ofcource it's have same problem - FDT_ERR_NOTFOUND

Edited by Александр Архангельский

This spi-mcp251x.dts made me use can0 with SEENGREAT Dual-CH Can Hat on latest Armbian v25.11.2 for BananaPi BPI-M4-Zero running Armbian Linux 6.12.58-current-sunxi64:

 

/*
 * Device tree overlay for mcp2517/18 @ can0 on SPI1.0 (BananaPi Zero M4) / Works with SEENGREAT Dual-CH Can Hat (can0 only)
 */

 /dts-v1/;
 /plugin/;

 / {
     compatible = "allwinner,sun50i-h616";

     fragment@0 {
         target-path = "/";
         __overlay__ {
             can0_osc_fixed: can0_osc_fixed {
                 compatible = "fixed-clock";
                 #clock-cells = <0>;
                 clock-frequency = <16000000>;
             };
         };
     };

     fragment@1 {
         target = <&pio>;
         __overlay__ {
             can0_pin_irq: can0_pin_irq {
                 pins = "PC2"; /* Pin 22 on BananaPi BPI-M4-Zero */
                 function = "irq";
                 bias-pull-up;
             };
         };
     };

     fragment@2 {
         target = <&spi1>; /* Use SPI1 */
         __overlay__ {
             #address-cells = <1>;
             #size-cells = <0>;
             mcp2518fd@1 {
                 compatible = "microchip,mcp2515";
                 reg = <0>; /* Use SPIx.0 */
                 pinctrl-names = "default";
                 pinctrl-0 = <&can0_pin_irq>;
                 spi-max-frequency = <10000000>;
                 interrupt-parent = <&pio>;
                 interrupts = <2 2 0x08>; /* PC2 IRQ_TYPE_LEVEL_LOW */
                 clocks = <&can0_osc_fixed>;
                 status = "okay";
             };
         };
     };
 };

 

 

Create file: 

sudo nano /boot/dtb/spi-mcp251x.dts

 

Add overlay:

sudo armbian-add-overlay /boot/dtb/spi-mcp251x.dts

 

Edit armbianEnv.txt:

overlays=bananapi-m4-pi-5-6-i2c0 bananapi-m4-sdio-wifi-bt bananapi-m4-spi1-cs0-spidev spi-mcp251x
param_spidev_spi_bus=1
dtparam=spi=on
param_i2c_arm_baudrate=10000

 

I did not try to get can1 to work since I don't need it at the moment.

I hope it helps.

 

Have fun!

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.