Commit graph

28467 commits

Author SHA1 Message Date
James Haggerty
bdf4378f86 bcm27xx: (APP-5292, PR #483) remove all old ekh01 targets
I've also killed the legacy EKH01-01 to keep things straightforward,
as this will enable us to remove all the BCF forcing code.

Approved-by: Sophronia Koilpillai
Approved-by: Lyall Beveridge
2025-10-05 00:37:43 +10:00
James Haggerty
1b05fb1f82 mt76x8: (APP-5292, PR #484) remove ekh03v3
Approved-by: Sophronia Koilpillai
Approved-by: Lyall Beveridge
2025-10-05 00:37:43 +10:00
Prabha Murugesan
32ca279ef5 filogic: (APP-4363, PR #477) Supported device correction.
Approved-by: Sophronia Koilpillai
Approved-by: Andrew Dodd
Approved-by: Lyall Beveridge
2025-10-05 00:37:43 +10:00
Prabha Murugesan
f3e5f041d4 Revert "Revert "boards: (APP-4363, PR #473) Align ekh19 board name""
This reverts commit f3116c0ab1d57bc5db8bc86e0480411c8785f108.
2025-10-05 00:37:43 +10:00
Prabha Murugesan
4281b5b685 Revert "boards: (APP-4363, PR #473) Align ekh19 board name"
This reverts commit 12e658dd98ea606d2dd202f2262f2181e8f65ab6.
2025-10-05 00:37:43 +10:00
James Haggerty
cd26037519 bcm27xx: (APP-5013, PR #472) keep old name for ekh01
Forcing the 'old' morse,ekh01 name means we can
downgrade without forcing (in non-SPI cases).


Approved-by: Sophronia Koilpillai
Approved-by: Andrew Dodd
2025-10-05 00:37:43 +10:00
James Haggerty
13f120738e bcm27xx: (APP-5013, PR #465) fix supported devices
Need more dollars due to include, + allow upgrading ekh01-01 image
(which was previously used for rpi4+RD09) to the more generic rpi4 image.


Approved-by: Sophronia Koilpillai
Approved-by: Andrew Dodd
2025-10-05 00:37:43 +10:00
James Haggerty
c539ee2b35 bcm27xx: (APP-5013, PR #463) rationalise ekh01 image naming
- push EKH01 -> MMx108-EKH01 change into more places
- separate SDIO from SPI images so:
  - we can enable RPI's internal WiFi on SPI images
  - we no longer have errors related to SPI/SDIO missing
  - we can have a shared SDIO image that most people can use
- have an EKH style image which an RPI can use (i.e. no overlays)
  (also leaves wifi enabled)
- all old images will upgrade to equivalent new images
- retain 'legacy' SPI+SDIO images with BCF forcing if
  people prefer these, particularly since we don't
  force BCF selection on the landing page
  (and use would have to go to the networking config)


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-10-05 00:37:43 +10:00
Prabha Murugesan
9007831e71 boards: (APP-4363, PR #473) Align ekh19 board name
Approved-by: Sophronia Koilpillai
Approved-by: James Haggerty
2025-10-05 00:37:43 +10:00
Prabha Murugesan
47f31d6ba0 halowlink1: (APP-4107, PR #471) Enabled 4.3V FEM support in Halowlink1
Approved-by: Sophronia Koilpillai
Approved-by: James Haggerty
2025-10-05 00:37:43 +10:00
James Haggerty
15e0c164d2 *: (APP-4462, PR #423) rename artini to halowlink1
Previously, this was done in the frontend display only (e.g. model name).
We should have just properly done the change originally.


Approved-by: Prabha Murugesan
Approved-by: Lyall Beveridge
2025-10-05 00:37:43 +10:00
James Haggerty
473ee8c763 kernel: (APP-4688, PR #433) minor tweaks after bluetooth config change
Without this change, the bcm bluetooth module wasn't built on non-bcm
boards but it was still included in the package so building
the ipk would fail. This change makes the bcm module be built
like the other modules.

I think the question re RAVE_SP is also related to the bluetooth
change, but I've seen it pop up way too many times to fix it again
in a specific config file (and putting a not set in is a safe operation).


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-10-05 00:20:46 +10:00
James Haggerty
e3620589eb kernel: (APP-4688, PR #434) add pwm not sets to kernel defaults
When the new LED pwm driver was added, in certain circumstances
it now wants to ask a bunch of pwm related questions.
'not set' makes these go away.


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-10-05 00:20:46 +10:00
James Haggerty
6c9397198f *: (APP-4220, PR #422) centralise morse specific button/led handling
- add the ability to override the reset button handling
- add a package which handles the 'improved' reset button handling
- make the ekh-mt76x8 targets have a reset button
- allow diag_override.sh to use existing code in diag.sh


Approved-by: Sophronia Koilpillai
Approved-by: Milad Mohtashamirad
2025-10-05 00:20:46 +10:00
Evan Benn
620b790dd9 APP-4495 PR #425: dts: ekh04: Fix blue LED
The blue LED was not working. I copied the gpio configuration from
ekh03v3 to ekh04. The LED is now working.


Approved-by: James Haggerty
Approved-by: Lyall Beveridge
2025-10-05 00:20:46 +10:00
James Haggerty
c7b3e08243 ipq806x/mvebu: (PR #413) tweak kernel configs so that related ekh router builds work
Approved-by: Sophronia Koilpillai
Approved-by: Andrew Dodd
2025-10-05 00:18:32 +10:00
Prabha Murugesan
6933c42844 boards: (APP-4358, PR #410) Rename target ekh01-mf15457 to ekh01-01
Approved-by: Sophronia Koilpillai
Approved-by: Lyall Beveridge
2025-10-05 00:18:27 +10:00
Prabha Murugesan
bb8f9251e7 boards: (APP-4358, PR #411) Rename glinet image to ekh19-01
Approved-by: Sophronia Koilpillai
Approved-by: Lyall Beveridge
2025-10-05 00:17:34 +10:00
Sophronia Koilpillai
1748a36f6d boards: (APP-4361, PR #409) Remove the unsupported device variant mf13455
Approved-by: Evan Benn
Approved-by: Lyall Beveridge
2025-10-05 00:16:14 +10:00
Evan Benn
994b59bdd0 boards: (APP-4028 PR #353): Add ekh-ath79 board for gl-x750 router
Also known as glinet spitz. The mips processor is big endian, so the
current release driver 1.14.1 will not work. I have however tested this
with the big endian patchset and it works.

The board has only 16MB flash, so I have restricted the packages.

The usb port is disabled by a gpio in the upstream dts. I have edited
that to enable the port at boot.

Approved-by: James Haggerty
Approved-by: Lyall Beveridge
2025-03-06 12:26:29 +11:00
Evan Benn
d0713af3d5 boards: (APP-3856, PR #348) Explicity depend on the right morse-fw variants
Approved-by: James Haggerty
Approved-by: Lyall Beveridge
2025-03-06 12:26:29 +11:00
Sophronia Koilpillai
6ef2890074 target: (APP-3746, PR #338) Update the right SPI_OVERLAY for ekh01-mf15457
Approved-by: James Haggerty
Approved-by: Evan Benn
2025-03-04 00:28:31 +11:00
Evan Benn
a5c046e4f9 boards: (APP-3759 PR #334) Replace all EKH04 with EKH04v6
Approved-by: Sophronia Koilpillai
Approved-by: James Haggerty
2025-03-04 00:28:10 +11:00
Sophronia Koilpillai
416eb6c4ba boards: (APP-3483, PR #308) Add Openwrt support for mm8108 evaluation boards
Approved-by: James Haggerty
Approved-by: Evan Benn
Approved-by: Lyall Beveridge
2025-03-04 00:27:37 +11:00
James Haggerty
ba5799fb84 ramips: mt76x8: (APP-3436, PR #301) update kernel config to exclude RAVE_SP
If you don’t have this a clean build now prompts you to select
an option for RAVE_SP (causing a failure unless you run with V=sc
and answer the option).

I'm a bit confused about why this is suddenly necessary AND why the
default make kernel_*config doesn't populate it, but it's echoing a
change that went in with the matter PR for artini.

I’m also concerned that this means we probably should be regenerating
other kernel configs (since people might take this SDK and expect it
to work for other archiectures), but the good news there is that most
of them already have the RAVE thingy.

Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-03-04 00:27:37 +11:00
Kshitij Jain
850102aa07 matter (SW-12275, #298): Add Matter support to openwrt build
SW-12275 add support for releasing matter with openwrt

* Update bluetooth make components (other.mk) with correct config option

* Add matter defconfig for all ekh boards

Approved-by: Cedric Van den Bergh
Approved-by: James Haggerty
Approved-by: Julia Page
2025-03-04 00:27:37 +11:00
James Haggerty
eb2cc07863 bcm27xx: (APP-3730, PR #328) add morse chip name to image name
Plan is to rename ekh01s to include the chip id.
For now, let's just mess with the image name; we can
consider whether we want to modify the model name
(and the internal identifier) once MM8108 settles.

Approved-by: Sophronia Koilpillai
Approved-by: Arien Judge
2025-03-04 00:27:37 +11:00
James Haggerty
7437feab6c bcm27xx: (APP-3659, PR #319) use SD LED for halow activity on morse devices
It's more interesting to see a HaLow activity LED than an
SD card LED, and this lines up with our priorities on the EKH03
(where we now show HaLow link/activity on the single RGB LED).


Approved-by: Milad Mohtashamirad
Approved-by: Lyall Beveridge
2025-03-04 00:27:37 +11:00
James Haggerty
801e6eb690 ramips: dts: (APP-3332, PR #314) add colour based aliases
This removes the extra functionality based aliases from the ekh03
(which are no longer used) and adds colour based aliases, which
make the diag_override.sh script clearer when we're using
multiple LEDs to construct a colour.

Note that we leave the old aliases in so that the board
will work without our custom LED package (morse-led-rgb).

Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-03-04 00:27:37 +11:00
James Haggerty
4f2b05b152 ramips: mt76x8: (APP-3627, PR #316) add halow link activity LED for ekh03/4
Note that this is tricky because we want the LED to be green
when the link is off and purple when the link is on.

This requires a patch to the netdev driver to support invert.

Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2025-03-04 00:27:37 +11:00
Sophronia Koilpillai
78c2511283 artini: (APP-3313, PR #290) set gpio line name to the 4.3v vfem gpio line
Approved-by: James Haggerty
Approved-by: Evan Benn
2025-03-04 00:25:49 +11:00
Evan Benn
b3fbd02f1c boards: (APP-3000, PR #288) Selectively enable USB
Some targets may not support USB host mode. So move the kmod packages,
and disable the hardware in artini's dts.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
2025-03-04 00:25:49 +11:00
Evan Benn
727bfe8101 ramips: mt7621: (APP-3302, PR #289) Add default settings to status LED
Add configuration to artini dts and code to the LED drivers to support
bringing up the status led in the desired pattern and color. Without
this patch the multicolor-led driver briefly turns the led off (uboot
turned it on) before diag.sh runs to turn it back on.

Approved-by: Sophronia Koilpillai
Approved-by: James Haggerty
2025-03-04 00:25:49 +11:00
Evan Benn
9c0c52cd70 ramips: mt7621: (APP-3302, PR #286) Move PWM LED from kmod to kernel builtin
The status LED is now driven by the PWM driver. When the driver is built as
a kmod module, it is loaded after the preinit state is set. This means
the diag.sh script cannot set the color and flashing pattern. Making the
driver built in means the LED can be controlled at preinit stage.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
2025-03-04 00:25:49 +11:00
Evan Benn
beab97c836 dts: (APP-3302, PR #285) Change artini LED 1 (status) to PWM control
Also provide aliases to each LED so that the LED functions can find the
LEDs.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
2025-03-04 00:25:49 +11:00
Morse Micro
2493afda8d target: ramips: add Morse Micro HaLowLink1 target definition
SoC: Mediatek MT7621AT
RAM: 128 MB
Storage: 32 MB NOR flash
Ethernet: 2x 10/100/1000 Mbps WAN, LAN
USB: RTL8152B USB-Ethernet USBLAN
Wireless: 900 MHz: Morse Micro MM6108 up to 23 Mbps
Wireless: 2.4 GHz: Mediatek MT7603 up to 300 Mbps
LEDs: 3x RGB (System, HaLow, 2.4 GHz)

Patch enables hardware flow offloading by default for MT7621 based platforms.
2025-03-04 00:25:03 +11:00
Morse Micro
0a6186fecf target: ramips: add Morse Micro mt76x8 based evaluation kits
Add OpenWrt target definitions to produce images for the EKH03 and EKH04
versions of Morse Micro evaluation kits. Included in this commit are:
 * kernel config changes to enable pstore for ramoops, USB serial devices,
   and other miscellaneous generated changes.
 * a preinit script to mutate the board_name propagated through OpenWrt
 * inittab changes to remap the default serial interface
2024-11-26 10:03:34 +11:00
Morse Micro
80f94905bf target: ramips: add mainline mt7620 mmc driver
The mainline mmc driver offers improvement in CPU performance by
allowing more data utilise DMA. This change resulted in a 3 Mbps
increase in Morse Micro HaLow throughput.

Add the driver by default to the mt76x8 kernel config and the mt7628
device tree.
2024-11-26 10:03:34 +11:00
James Haggerty
f1bdcfcdb6 bcm27xx: (APP-3631, PR #317) custom distroconfig for ekh devices only
Previously, we'd just been modifying the distroconfig.txt for
all RPIs. This has the advantage that we'd pick up any upstream
changes.

However, for SDK users this is potentially annoying, as they
may want their own set of customisations. It's also a bit
strange that a 'normal' RPI build would have our HAT overlay.

This changes it so we have a custom distroconfig.txt for
ekh01 devices only which completely replaces the base
distroconfig.txt.

Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
James Haggerty
72d55dca89 bcm27xx: (APP-3240, PR #280) set ekh01 sysinfo via device tree
We want to use the normal rpi4 device tree, but have OpenWrt
report different model names. To easily use multi-profile builds,
this has to happen somewhere outside the rootfs.

Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Morse Micro
f079262ef4 target: bcm27xx: add Morse Micro Raspberry Pi based evaluation kits
Add OpenWrt target definitions to produce images for the EKH01 versions
of Morse Micro evaluation kits. Included in this commit are:
 * kernel changes to enable by default SPI support, pstore for ramoops,
   USB serial device and the default CPU governor.
 * a preinit script to mutate the board_name propagated through OpenWrt
 * kernel cmdline changes to support a USB serial adapter for console
   access
2024-11-26 10:03:34 +11:00
James Haggerty
e631bcd327 kernel: add missing 'not sets' to kernel 2024-11-26 10:03:34 +11:00
James Haggerty
9c77bb7fd3 bcm27xx: (APP-2271) move morse specific config to distroconfig
config.txt is the 'user' config which is retained on upgrade,
whereas distroconfig is the distro defaults that might change
on upgrade.

This also means we pick up the OpenWrt default of disabling bluetooth
and the miniuart.

Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Evan Benn
a4a85a0c39 Merged in APP-1962-remove-keepd (pull request #138)
keep.d: (APP-1962) Remove config.txt and cmdline from keep.d

* keep.d: (APP-1962) Remove config.txt and cmdline from keep.d

All filenames in keep.d are retained if the user chooses 'retain config'
in an update. There is no way for the update to override this at update
time. We may want to modify the command line or bootloader config in
a future update, and as we are supporting 'retain configs' we must
remove these files from keep.d. This will only affect updates FROM the
image that includes this patch.


Approved-by: Arien Judge
Approved-by: Takura Mapani
2024-11-26 10:03:34 +11:00
James Haggerty
26069d0361 bcm27xx: (APP-1062) make FS large enough to destroy overlay
Otherwise, on upgrade we retain the overlay if the rootfs size is the
same (causing confusing behaviour). This was taken from
https://github.com/openwrt/openwrt/issues/9113#issuecomment-1572846457

However, ensure we only clear the bit at the end of the partition to
ensure we don't generate unnecessarily large images for the EKH01.
See https://github.com/openwrt/openwrt/pull/13793

Approved-by: Milad Mohtashamirad
Approved-by: Arien Judge
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Morse Micro
9f86115725 kernel: bcm27xx: add Morse Micro device tree overlays
For the Raspberry Pi based platforms, we add device tree overlays to
instantiate the appropriate hardware configuration for MM6108.
SPI and SDIO options are available, as well as relevant power save
configuration.

Also add a ramoops overlay.
2024-11-26 10:03:34 +11:00
Morse Micro
e35cd6b6d7 kernel: add patches to kernels required by the Morse Micro driver
MM6108 does not support 1.8V but offers voltage negotiation. Add
required quirk to kernel.

Additionally, issues in kernel 5.x versions of the BCM2835 SPI driver
have been reported, particular regarding CS polarity. The patch rolls
the driver back to 4.19.
2024-11-26 10:03:34 +11:00
James Haggerty
9b6f83e336 linux: (APP-3627, PR #315) add invert ability to LED netdev trigger
When you have an RGB LED with every colour mapped individually,
it's useful to have a different colour for link on vs link off,
particularly in the case where the LED has multiple meanings
(i.e. it's a generic status/power LED as well, so shouldn't just be
turned off in the absence of a link).

This invert code is largely copied from similar code
in other triggers which already support invert.


Approved-by: Sophronia Koilpillai
Approved-by: Evan Benn
2024-11-26 10:03:34 +11:00
Milad Mohtashamirad
52275ac476 kernel: (APP-2003) libcamera fix dma heap makefile
There's a bug in drivers/dma-buf/heaps/Makefile or /driver/dma-buf/Makefile
that doesn't allow heaps source files to get compiled.
we raised an issue in openwrt:
https://github.com/openwrt/openwrt/issues/13887

Approved-by: Arien Judge
Approved-by: James Haggerty
2024-11-26 10:03:34 +11:00
Milad Mohtashamirad
a25c265ca8 kernel/bcm27xx: add kmods for libcamera support
libcamera requires a number of v4l2 modules without packages
in OpenWrt.

Additionally, add support for the raspberry pi camera variants

APP-2145, APP-2097, APP-2003, APP-2197

Approved-by: James Haggerty
Approved-by: Matthew Forgie
Approved-by: Evan Benn
2024-11-26 10:03:33 +11:00