Code Monkey home page Code Monkey logo

Comments (2)

nakato avatar nakato commented on July 17, 2024

I saw someone else using it so I figured it'd be fine.

I don't see how the example "homelab" configuration could be functional. It is applying all four of the devicetree overlays. The NOR and NAND ones and the SD, and eMMC overlays are mutually exclusive due to the wiring of the BPi-R3.

here's my config

I might have missed it, but I don't see any devicetree overlays being applied in your config; for the storage device to be detected, you'll need to apply the appropriate devicetree overlay for your backing storage at build time.

For SD based boot, the following. Though this repo chooses to use a local copy of said file.

{config, ...}: {
  hardware.deviceTree.overlays = [
      {
        name = "mt7986a-bananapi-bpi-r3-sd.dtbo";
        dtboFile = "${config.boot.kernelPackages.kernel}/dtbs/mediatek/mt7986a-bananapi-bpi-r3-sd.dtbo";
      }
  ];
}

Module wise, it's mtk-sd.

Do I have to compile a custom kernel, or can I use the default one?

I suspect you can get the device to boot without a custom kernel, but I expect none of the ethernet ports will be functional. I had to compile in kernel/drivers/net/ethernet/mediatek/mtk_eth.ko and kernel/net/dsa/tag_mtk.ko.
Someone reported this upstream, but it looks like they didn't follow up on the response; see https://lore.kernel.org/all/[email protected]/

There's similar issues with kernel/drivers/pci/controller/pcie-mediatek-gen3.ko as well IIRC.

from nixos-bpir3-example.

chayleaf avatar chayleaf commented on July 17, 2024

Thanks, I confused dtb and dtbo files so I thought setting deviceTree.filter would be enough.

Ethernet didn't work (I did use a custom kernel in the end, but mtk_eth wasn't compiled in), so I'll rebuild the kernel and try again.

Edit: it worked, had to add the eeprom data overlay for wifi to work as well

from nixos-bpir3-example.

Related Issues (10)

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.