Skip to content

Commit dc51f14

Browse files
authored
Add support for RAK2246 and RAK2246G (#44)
1 parent 7b71722 commit dc51f14

File tree

15 files changed

+246
-13
lines changed

15 files changed

+246
-13
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Provides the following features:
3838

3939
### Raspberry Pi
4040

41+
* Raspberry Pi Zero W
4142
* Raspberry Pi 1
4243
* Raspberry Pi 3
4344
* Raspberry Pi 4
@@ -49,6 +50,7 @@ Provides the following features:
4950
* [IMST - Lite Gateway](https://wireless-solutions.de/products/long-range-radio/lora-lite-gateway.html)
5051
* [Pi Supply - LoRa Gateway Hat](https://uk.pi-supply.com/products/iot-lora-gateway-hat-for-raspberry-pi)
5152
* [RAK - RAK2245](https://store.rakwireless.com/products/rak2245-pi-hat)
53+
* [RAK - RAK2246 / RAK2246G](https://store.rakwireless.com/products/rak7246-lpwan-developer-gateway)
5254
* [RAK - RAK831 Gateway Developer Kit](https://store.rakwireless.com/products/rak831-gateway-module?variant=22375114801252)
5355
* [RisingHF - RHF0M301 LoRaWAN IoT Discovery Kit](http://risinghf.com/#/product-details?product_id=9&lang=en)
5456
* [Sandbox Electronics - LoRaGo PORT](https://sandboxelectronics.com/?product=lorago-port-multi-channel-lorawan-gateway)

docs/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ theme = "chirpstack-hugo-theme"
3434
weight = 4
3535

3636
[params]
37+
raspberrypi_raspberrypi0_wifi_version = "3.3.0-test.5"
3738
raspberrypi_raspberrypi_version = "3.3.0-test.5"
3839
raspberrypi_raspberrypi3_version = "3.3.0-test.5"
3940
raspberrypi_raspberrypi4_version = "3.3.0-test.5"

docs/content/install/raspberrypi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ For an initial installation:
2424

2525
### SD Card images
2626

27+
* [Raspberry Zero W](http://artifacts.chirpstack.io/downloads/chirpstack-gateway-os/raspberrypi/raspberrypi0-wifi/{{< raspberrypi_raspberrypi0_wifi_version >}}/)
2728
* [Raspberry Pi 1](http://artifacts.chirpstack.io/downloads/chirpstack-gateway-os/raspberrypi/raspberrypi/{{< raspberrypi_raspberrypi_version >}}/)
2829
* [Raspberry Pi 3](http://artifacts.chirpstack.io/downloads/chirpstack-gateway-os/raspberrypi/raspberrypi3/{{< raspberrypi_raspberrypi3_version >}}/)
2930
* [Raspberry Pi 4](http://artifacts.chirpstack.io/downloads/chirpstack-gateway-os/raspberrypi/raspberrypi4/{{< raspberrypi_raspberrypi4_version >}}/)
@@ -38,6 +39,7 @@ concentrator shields / gateway kits:
3839
* [IMST - Lite Gateway](https://wireless-solutions.de/products/long-range-radio/lora-lite-gateway.html)
3940
* [Pi Supply - LoRa Gateway Hat](https://uk.pi-supply.com/products/iot-lora-gateway-hat-for-raspberry-pi)
4041
* [RAK - RAK2245](https://store.rakwireless.com/products/rak2245-pi-hat)
42+
* [RAK - RAK2246 / RAK2246G](https://store.rakwireless.com/products/rak7246-lpwan-developer-gateway)
4143
* [RAK - RAK831 Gateway Developer Kit](https://store.rakwireless.com/products/rak831-gateway-module?variant=22375114801252)
4244
* [RisingHF - RHF0M301 LoRaWAN IoT Discovery Kit](http://risinghf.com/#/product-details?product_id=9&lang=en)
4345
* [Sandbox Electronics - LoRaGo PORT](https://sandboxelectronics.com/?product=lorago-port-multi-channel-lorawan-gateway)

docs/content/overview/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ by the **chirpstack-gateway-os-base** image.
3333

3434
### Raspberry Pi
3535

36+
* Raspberry Pi Zero W
3637
* Raspberry Pi 1
3738
* Raspberry Pi 3
3839
* Raspberry Pi 4
@@ -44,6 +45,7 @@ by the **chirpstack-gateway-os-base** image.
4445
* [IMST - Lite Gateway](https://wireless-solutions.de/products/long-range-radio/lora-lite-gateway.html)
4546
* [Pi Supply - LoRa Gateway Hat](https://uk.pi-supply.com/products/iot-lora-gateway-hat-for-raspberry-pi)
4647
* [RAK - RAK2245](https://store.rakwireless.com/products/rak2245-pi-hat)
48+
* [RAK - RAK2246 / RAK2246G](https://store.rakwireless.com/products/rak7246-lpwan-developer-gateway)
4749
* [RAK - RAK831 Gateway Developer Kit](https://store.rakwireless.com/products/rak831-gateway-module?variant=22375114801252)
4850
* [RisingHF - RHF0M301 LoRaWAN IoT Discovery Kit](http://risinghf.com/#/product-details?product_id=9&lang=en)
4951
* [Sandbox Electronics - LoRaGo PORT](https://sandboxelectronics.com/?product=lorago-port-multi-channel-lorawan-gateway)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ .Site.Params.raspberrypi_raspberrypi0_wifi_version }}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{ .Site.Params.raspberrypi_raspberrypi4_version }}

layers/targets/meta-raspberrypi/recipes-bsp/bootfiles/rpi-config_%.bbappend

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ do_deploy_append_raspberrypi3() {
1313
do_deploy_append_raspberrypi4() {
1414
echo "dtoverlay=disable-bt" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
1515
}
16+
17+
do_deploy_append_raspberrypi0-wifi() {
18+
echo "dtoverlay=disable-bt" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
19+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/arch/arm/dts/bcm2835-rpi-zero-w.dts b/arch/arm/dts/bcm2835-rpi-zero-w.dts
2+
index ba0167df6c..f5b50e0fca 100644
3+
--- a/arch/arm/dts/bcm2835-rpi-zero-w.dts
4+
+++ b/arch/arm/dts/bcm2835-rpi-zero-w.dts
5+
@@ -115,21 +115,3 @@
6+
compatible = "brcm,bcm4329-fmac";
7+
};
8+
};
9+
-
10+
-&uart0 {
11+
- pinctrl-names = "default";
12+
- pinctrl-0 = <&uart0_gpio32 &uart0_ctsrts_gpio30>;
13+
- status = "okay";
14+
-
15+
- bluetooth {
16+
- compatible = "brcm,bcm43438-bt";
17+
- max-speed = <2000000>;
18+
- shutdown-gpios = <&gpio 45 GPIO_ACTIVE_HIGH>;
19+
- };
20+
-};
21+
-
22+
-&uart1 {
23+
- pinctrl-names = "default";
24+
- pinctrl-0 = <&uart1_gpio14>;
25+
- status = "okay";
26+
-};
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
FILESEXTRAPATHS_prepend_rpi := "${THISDIR}/patches:"
1+
FILESEXTRAPATHS_prepend := "${THISDIR}/patches:"
22

3-
SRC_URI_append_rpi = " \
3+
SRC_URI_append = " \
44
file://bootcount.patch \
55
file://rpi.patch \
66
file://pi3-device-tree.patch \
7+
file://pi0-wifi-device-tree.patch \
78
"

layers/targets/meta-raspberrypi/recipes-core/base-files/base-files_%.bbappend

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,26 @@ do_install_append() {
1212
install -m 644 ${WORKDIR}/fstab ${D}/etc/fstab
1313
}
1414

15+
# wifi access-point settings
1516
do_install_append_raspberrypi3() {
1617
install -d ${D}/etc/connman
1718
install -d ${D}/var/lib/connman
1819
install -m 644 ${WORKDIR}/connman/main.conf ${D}/etc/connman/main.conf
1920
install -m 644 ${WORKDIR}/connman/settings ${D}/var/lib/connman/settings
2021
}
2122

23+
# wifi access-point settings
2224
do_install_append_raspberrypi4() {
2325
install -d ${D}/etc/connman
2426
install -d ${D}/var/lib/connman
2527
install -m 644 ${WORKDIR}/connman/main.conf ${D}/etc/connman/main.conf
2628
install -m 644 ${WORKDIR}/connman/settings ${D}/var/lib/connman/settings
2729
}
30+
31+
# wifi access-point settings
32+
do_install_append_raspberrypi0-wifi() {
33+
install -d ${D}/etc/connman
34+
install -d ${D}/var/lib/connman
35+
install -m 644 ${WORKDIR}/connman/main.conf ${D}/etc/connman/main.conf
36+
install -m 644 ${WORKDIR}/connman/settings ${D}/var/lib/connman/settings
37+
}

0 commit comments

Comments
 (0)