wlan support for mt300a
This commit is contained in:
parent
e86e9430fc
commit
c046c39613
1 changed files with 27 additions and 3 deletions
|
@ -11,7 +11,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
module = { pkgs, ...}:
|
description = ''
|
||||||
|
WiFi on this device is provided by the rt2800soc module. It
|
||||||
|
expects firmware to be present in the "???" MTD partition, so -
|
||||||
|
assuming we want to use the wireless - we need to build MTD
|
||||||
|
support into the kernel even if we're using TFTP root
|
||||||
|
'';
|
||||||
|
|
||||||
|
module = { pkgs, config, ...}:
|
||||||
let
|
let
|
||||||
inherit (pkgs.liminix.networking) interface;
|
inherit (pkgs.liminix.networking) interface;
|
||||||
openwrt = pkgs.fetchFromGitHub {
|
openwrt = pkgs.fetchFromGitHub {
|
||||||
|
@ -21,12 +28,15 @@
|
||||||
rev = "a5265497a4f6da158e95d6a450cb2cb6dc085cab";
|
rev = "a5265497a4f6da158e95d6a450cb2cb6dc085cab";
|
||||||
hash = "sha256-YYi4gkpLjbOK7bM2MGQjAyEBuXJ9JNXoz/JEmYf8xE8=";
|
hash = "sha256-YYi4gkpLjbOK7bM2MGQjAyEBuXJ9JNXoz/JEmYf8xE8=";
|
||||||
};
|
};
|
||||||
in {
|
mac80211 = pkgs.mac80211.override {
|
||||||
|
drivers = ["rt2800soc"];
|
||||||
|
klibBuild = config.outputs.kernel.modulesupport;
|
||||||
|
};
|
||||||
|
in {
|
||||||
hardware = {
|
hardware = {
|
||||||
defaultOutput = "tftproot";
|
defaultOutput = "tftproot";
|
||||||
loadAddress = "0x80000000";
|
loadAddress = "0x80000000";
|
||||||
entryPoint = "0x80000000";
|
entryPoint = "0x80000000";
|
||||||
radios = ["rt2800soc"];
|
|
||||||
dts = {
|
dts = {
|
||||||
src = "${openwrt}/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts";
|
src = "${openwrt}/target/linux/ramips/dts/mt7620a_glinet_gl-mt300a.dts";
|
||||||
includes = [
|
includes = [
|
||||||
|
@ -48,6 +58,10 @@
|
||||||
id = "2";
|
id = "2";
|
||||||
link = "eth0";
|
link = "eth0";
|
||||||
};
|
};
|
||||||
|
wlan = interface {
|
||||||
|
device = "wlan0";
|
||||||
|
dependencies = [ mac80211 ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
boot.tftp = {
|
boot.tftp = {
|
||||||
|
@ -104,6 +118,13 @@
|
||||||
NET_RALINK_MDIO_MT7620 = "y";
|
NET_RALINK_MDIO_MT7620 = "y";
|
||||||
NET_RALINK_MT7620 = "y";
|
NET_RALINK_MT7620 = "y";
|
||||||
|
|
||||||
|
SPI = "y";
|
||||||
|
MTD_SPI_NOR = "y";
|
||||||
|
SPI_MT7621 = "y"; # } probabyl don't need both of these
|
||||||
|
SPI_RT2880 = "y"; # }
|
||||||
|
SPI_MASTER= "y";
|
||||||
|
SPI_MEM= "y";
|
||||||
|
|
||||||
# both the ethernet ports on this device (lan and wan)
|
# both the ethernet ports on this device (lan and wan)
|
||||||
# are behind a switch, so we need VLANs to do anything
|
# are behind a switch, so we need VLANs to do anything
|
||||||
# useful with them
|
# useful with them
|
||||||
|
@ -125,6 +146,9 @@
|
||||||
CMDLINE_PARTITION = "y";
|
CMDLINE_PARTITION = "y";
|
||||||
EARLY_PRINTK = "y";
|
EARLY_PRINTK = "y";
|
||||||
|
|
||||||
|
NEW_LEDS = "y";
|
||||||
|
LEDS_CLASS = "y"; # required by rt2x00lib
|
||||||
|
|
||||||
PARTITION_ADVANCED = "y";
|
PARTITION_ADVANCED = "y";
|
||||||
PRINTK_TIME = "y";
|
PRINTK_TIME = "y";
|
||||||
SQUASHFS = "y";
|
SQUASHFS = "y";
|
||||||
|
|
Loading…
Reference in a new issue