Skip to content

Conversation

@cpokuru
Copy link
Contributor

@cpokuru cpokuru commented Oct 31, 2025

Reason for change: IoT stack for RDK-B
Test Procedure: configure wifi and test with thread and wifi devices
Risks: Low

Signed-off-by: Chandrakanth Pokuru <[email protected]>

Copilot AI review requested due to automatic review settings October 31, 2025 14:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive Matter protocol support to the RDK MTK BPIR4 platform, including Thread and Bluetooth connectivity for smart home device integration. The changes span kernel configuration, firmware packages, service configurations, and application-level Matter implementation.

  • Adds Matter SDK integration with custom ZAP configuration and device attestation
  • Integrates OpenThread Border Router (OTBR) and Co-Processor Communication Daemon (CPCD) for Thread networking
  • Enables Bluetooth support through CPC HCI bridge and firmware packages
  • Configures kernel support for IEEE 802.15.4, Bluetooth, and necessary networking features

Reviewed Changes

Copilot reviewed 23 out of 25 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
barton.zap Matter device configuration defining clusters and endpoints for network infrastructure manager
barton-matter_1.4.0.bbappend BitBake recipe configuring Matter application with ZAP file and persistent storage
iptables_nf.cfg Kernel configuration additions for Bluetooth, USB, TUN, and IEEE 802.15.4 support
linux-firmware_%.bbappend Firmware package recipe limiting to Broadcom and Realtek Bluetooth firmware only
packagegroup-rdk-ccsp-broadband.bbappend Adds Bluetooth firmware packages to runtime dependencies
rdk-generic-broadband-image.bbappend Adds Matter-related services (cpcd, otbr-agent, bluetoothd, barton) to image
ExampleTestDACProvider.cpp Custom Matter Device Attestation Credentials provider implementation
barton_%.bbappend Enables Matter, Thread, and Reference builds with custom providers and delegates
otbr-agent_4.4.4.0.bbappend Extends OTBR D-Bus API with custom patches and installs additional headers
otbr-agent_4.4.4.0.bb Complete OTBR agent recipe with SiliconLabs Gecko SDK integration
otbr-agent.service/path Systemd service files for OTBR agent triggered by cpcd availability
openthread-fix-build-errors.patch Fixes namespace and time constant compatibility in OpenThread platform code
adjust-otbr-configuration.patch Updates Thread version conditionals from exact to minimum version matching
0003-Extend-d-bus-properties-and-signals.patch Extends OTBR D-Bus interface with BorderAgentId, ThreadNetIfUp properties and signals
cpcd files CPCD service and configuration for co-processor communication over UART
bt-host-cpc-hci-bridge files Bluetooth HCI bridge service connecting CPC to BlueZ stack
bluez5_5.%.bbappend Adds btattach tool installation to BlueZ package
utopia.bbappend Adds FEATURE_MATTER_ENABLED compile flag when matter distro feature is enabled
rdk-bpi.inc Enables 'matter' distribution feature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'rdk-wifi-hal', '' ,d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'CPUPROCANALYZER_BROADBAND', 'cpuprocanalyzer', ' ', d)} \
linux-firmware-bcm-bt \
linux-firmware-rtl-bt \
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace after backslash on line 11. Remove the space after the backslash.

Suggested change
linux-firmware-rtl-bt \
linux-firmware-rtl-bt \

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,70 @@
From: RDKM
Date: Wed, 29 Oct 2025
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected date 'Wed, 29 Oct 2025' should be 'Tue, 29 Oct 2024' as October 29, 2025 falls on a Wednesday but this appears to be a typo for a past date (2024).

Suggested change
Date: Wed, 29 Oct 2025
Date: Tue, 29 Oct 2024

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,58 @@
From: RDKM
Date: Wed, 29 Oct 2025
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected date 'Wed, 29 Oct 2025' should be 'Tue, 29 Oct 2024' as this appears to be a typo for a past date.

Suggested change
Date: Wed, 29 Oct 2025
Date: Tue, 29 Oct 2024

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +5
CXXFLAGS += "-fPIC"
CFLAGS += "-fPIC"
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Direct modification of CFLAGS/CXXFLAGS using += can cause issues in BitBake. Use the _append operator instead: CXXFLAGS_append = \" -fPIC\" and CFLAGS_append = \" -fPIC\" to ensure proper flag concatenation.

Suggested change
CXXFLAGS += "-fPIC"
CFLAGS += "-fPIC"
CXXFLAGS_append = " -fPIC"
CFLAGS_append = " -fPIC"

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,28 @@
# TODO: Verify license -- it is Silabs specific
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO comment indicates license verification is incomplete. This should be resolved before merging to production, especially for a proprietary license.

Suggested change
# TODO: Verify license -- it is Silabs specific

Copilot uses AI. Check for mistakes.
@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 21 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: 364aef8

Report detail: gist'

@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 21 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: f54eb8a

Report detail: gist'

@rdkcmf-jenkins
Copy link
Contributor

build-bpi-r4-broadband Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/d9f9c459c08447bb410e4522da40fc77

@rdkcmf-jenkins
Copy link
Contributor

build-bpi-r4-broadband Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/eee05de434d894d3d796f53b7c902272

@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 21 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: f54eb8a

Report detail: gist'

    Reason for change: IoT stack for RDK-B
    Test Procedure: configure wifi and test with thread and wifi devices
    Risks: Low

    Signed-off-by: Chandrakanth Pokuru <[email protected]>
Copilot AI review requested due to automatic review settings November 1, 2025 01:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 24 out of 26 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,70 @@
From: RDKM
Date: Wed, 29 Oct 2025
Copy link

Copilot AI Nov 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date 'Wed, 29 Oct 2025' is in the future and incorrect. October 29, 2025 is a Wednesday, but this appears to be authored in 2024 or earlier. Update to the correct historical date when this patch was created.

Suggested change
Date: Wed, 29 Oct 2025
Date: Wed, 29 May 2024

Copilot uses AI. Check for mistakes.
${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'rdk-wifi-hal', '' ,d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'CPUPROCANALYZER_BROADBAND', 'cpuprocanalyzer', ' ', d)} \
linux-firmware-bcm-bt \
linux-firmware-rtl-bt \
Copy link

Copilot AI Nov 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace after backslash on line 11. This can cause build issues or unexpected behavior as the backslash may not properly continue the line. Remove the trailing space.

Suggested change
linux-firmware-rtl-bt \
linux-firmware-rtl-bt \

Copilot uses AI. Check for mistakes.
NOTICE Outdated
Copyright (c) 2023 Project CHIP Authors
Licensed under the Apache License, Version 2.0
See the README.md file under recipes-matter for details.
The parent ZAP file is included as `recipes-matter/barton-matter-reference/files/barton.zap`
Copy link

Copilot AI Nov 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The referenced path 'recipes-matter/barton-matter-reference/files/barton.zap' does not match the actual location 'meta-rdk-mtk-bpir4/recipes-matter/barton-matter/files/barton.zap'. Update the path to correctly reflect the file location.

Suggested change
The parent ZAP file is included as `recipes-matter/barton-matter-reference/files/barton.zap`
The parent ZAP file is included as `meta-rdk-mtk-bpir4/recipes-matter/barton-matter/files/barton.zap`

Copilot uses AI. Check for mistakes.
@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 2 files pending approval, 0 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: fc40f60

Report detail: gist'

@rdkcmf-jenkins
Copy link
Contributor

build-bpi-r4-broadband Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/c8cb5527a9054252cedc76b59b8b6b71

@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 2 files pending approval, 0 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: fc40f60

Report detail: gist'

@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 2 files pending approval, 0 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: 9f3f6e0

Report detail: gist'

@rdkcmf-jenkins
Copy link
Contributor

build-bpi-r4-broadband Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/4f555b99061284dc99990e054fa67873

@rdkcmf-jenkins
Copy link
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: OK

  • Commit: 9f3f6e0
    '

Copilot AI review requested due to automatic review settings November 3, 2025 18:12
@rdkcmf-jenkins
Copy link
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 2 files pending approval, 0 files pending identification.

  • Protex Server Path: /home/blackduck/github/meta-cmf-bananapi/311/rdkcentral/meta-cmf-bananapi

  • Commit: 264fc8c

Report detail: gist'

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 24 out of 26 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,28 @@
# TODO: Verify license -- it is Silabs specific
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TODO comment in line 1 indicates the license needs verification for Silabs, but the LICENSE field is set to 'Proprietary'. This should be clarified - either remove the TODO if the license is correct, or keep investigating if it's truly proprietary vs. a specific Silabs license.

Suggested change
# TODO: Verify license -- it is Silabs specific

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,67 @@
DESCRIPTION = "Bluetooth CPC HCI Bridge"
LICENSE = "Proprietary"
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The LICENSE is set to 'Proprietary' but the checksum points to a specific license file. If the Gecko SDK has a specific license type (e.g., Zlib as is common for Silabs SDK), the LICENSE field should reflect that rather than 'Proprietary'.

Suggested change
LICENSE = "Proprietary"
LICENSE = "Zlib"

Copilot uses AI. Check for mistakes.
${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'rdk-wifi-hal', '' ,d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'CPUPROCANALYZER_BROADBAND', 'cpuprocanalyzer', ' ', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'rdk-wifi-hal', '' ,d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'CPUPROCANALYZER_BROADBAND', 'cpuprocanalyzer', ' ', d)} \
Copy link

Copilot AI Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent whitespace usage before closing parameter: line 8 uses empty string '' while line 9 uses single space ' '. For consistency and clarity, both should use the same convention (preferably empty string).

Suggested change
${@bb.utils.contains('DISTRO_FEATURES', 'CPUPROCANALYZER_BROADBAND', 'cpuprocanalyzer', ' ', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'CPUPROCANALYZER_BROADBAND', 'cpuprocanalyzer', '' , d)} \

Copilot uses AI. Check for mistakes.
@rdkcmf-jenkins
Copy link
Contributor

build-bpi-r4-broadband Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/cc73b10a36141892acd9ed4eb1609457

@rdkcmf-jenkins
Copy link
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: ok

  • Commit: 264fc8c
    '

@rdkcmf-jenkins
Copy link
Contributor

build-bpi-r4-broadband Console Log uploaded to Gist URL: https://gist.github.com/rdkcmf-jenkins/60c0f1ba75956262cbc1b6356c844e84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants