Александр Архангельский Posted March 28 Posted March 28 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 0 Quote
Александр Архангельский Posted March 28 Author Posted March 28 (edited) 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 March 29 by Александр Архангельский 0 Quote
Solution Александр Архангельский Posted March 29 Author Solution Posted March 29 (edited) fixed, not actual, thanks for everyone and this resource Edited March 29 by Александр Архангельский 0 Quote
Netcrusher Posted 1 hour ago Posted 1 hour ago 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! 0 Quote
Recommended Posts
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.