Comments (2)
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.
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)
- consider contribution to nixos-aarch64 image HOT 2
- Just letting you (and other people) know the kernel config has changed in 6.6 HOT 1
- No space left on device while building SD card image HOT 2
- error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I) HOT 2
- Cannot get wifi to work HOT 3
- Switching to more recent kernel HOT 7
- enable hardware flow offloading HOT 14
- No space left on a device HOT 4
- Question regarding cross-compilation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-bpir3-example.