-
Notifications
You must be signed in to change notification settings - Fork 21
RDKBACCL-985 : Barton support #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Add this new section | ||
| do_install_append() { | ||
| install -m 0755 ${B}/tools/btattach ${D}${bindir} | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,67 @@ | ||||||
| DESCRIPTION = "Bluetooth CPC HCI Bridge" | ||||||
| LICENSE = "Proprietary" | ||||||
|
||||||
| LICENSE = "Proprietary" | |
| LICENSE = "Zlib" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [Unit] | ||
| Description=Attach Bluetooth HCI Bridge | ||
| After=bt-host-cpc-hci-bridge.service | ||
| Requires=bt-host-cpc-hci-bridge.service | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| ExecStartPre=/bin/sh -c 'while [ ! -e /dev/pts/0 ]; do sleep 1; done' | ||
| ExecStart=/usr/bin/btattach -B /dev/pts/0 -S 115200 | ||
| Restart=always | ||
| RestartSec=5 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| [Unit] | ||
| Description=Bluetooth CPC HCI Bridge | ||
| After=cpcd.service | ||
| Requires=cpcd.service | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| ExecStart=/usr/bin/bt_host_cpc_hci_bridge | ||
| Restart=always | ||
| RestartSec=5 | ||
| WorkingDirectory=/tmp | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,28 @@ | ||||||
| # TODO: Verify license -- it is Silabs specific | ||||||
|
||||||
| # TODO: Verify license -- it is Silabs specific |
Copilot
AI
Nov 3, 2025
There was a problem hiding this comment.
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.
| # TODO: Verify license -- it is Silabs specific |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # Instance Name | ||
| # Optional, defaults to "cpcd_0" | ||
| # This string uniquely identifies the running cpcd instance. | ||
| # An application must pass this value to cpc_init() to connect | ||
| # to this particular instance. | ||
| instance_name: cpcd_0 | ||
|
|
||
| # Bus type selection | ||
| # Mandatory | ||
| # Allowed values : UART or SPI | ||
| bus_type: UART | ||
|
|
||
| # SPI device file | ||
| # Mandatory if spi chosen, ignored if uart chosen | ||
| spi_device_file: /dev/spidev0.0 | ||
|
|
||
| # SPI RX IRQ gpio chip | ||
| # Mandatory if spi chosen, ignored if uart chosen | ||
| spi_rx_irq_gpio_chip: gpiochip0 | ||
|
|
||
| # SPI RX IRQ gpio | ||
| # RX interrupt gpio selection | ||
| spi_rx_irq_gpio: 22 | ||
|
|
||
| # SPI bitrate. | ||
| # Ignored if uart chosen. | ||
| # See doc/spi_bitrate.md for a complete explanation | ||
| spi_device_bitrate: 1000000 | ||
|
|
||
| # UART device file | ||
| # Mandatory if uart chosen, ignored if spi chosen | ||
| uart_device_file: /dev/ttyACM0 | ||
|
|
||
| # UART baud rate. | ||
| # Optional if uart chosen, ignored if spi chosen. Defaults to 115200 | ||
| # Allowed values : standard UART baud rates listed in 'termios.h' | ||
| uart_device_baud: 115200 | ||
|
|
||
| # UART flow control. | ||
| # Optional if uart chosen, ignored if spi chosen. Defaults to 'true' | ||
| # Allowed values are 'true' or 'false' | ||
| uart_hardflow: true | ||
|
|
||
| # BOOTLOADER Recovery Pins Enabled | ||
| # Set to true to enter bootloader via wake and reset pins | ||
| # If true, bootloader_wake_gpio/chip and bootloader_reset_gpio/chip must be configured | ||
| bootloader_recovery_pins_enabled: false | ||
|
|
||
| # BOOTLOADER WAKE gpio chip | ||
| # Wakeup gpio chip used by the bootloader | ||
| bootloader_wake_gpio_chip: gpiochip0 | ||
|
|
||
| # BOOTLOADER WAKE gpio | ||
| # Wakeup gpio used by the bootloader | ||
| # Ensure bootloader_recovery_pins_enabled=true to use this pin | ||
| bootloader_wake_gpio: 24 | ||
|
|
||
| # BOOTLOADER RESET gpio chip | ||
| # Reset gpio chip used by the bootloader | ||
| bootloader_reset_gpio_chip: gpiochip0 | ||
|
|
||
| # BOOTLOADER RESET gpio | ||
| # Reset gpio used by the bootloader | ||
| # Ensure bootloader_recovery_pins_enabled=true to use this pin | ||
| bootloader_reset_gpio: 23 | ||
|
|
||
| # Prints tracing information to stdout | ||
| # Optional, defaults to 'false' | ||
| # Allowed values are 'true' or 'false' | ||
| stdout_trace: false | ||
|
|
||
| # Prints tracing information to a file located under traces_folder | ||
| # Optional, defaults to 'false' | ||
| # Allowed values are 'true' or 'false' | ||
| trace_to_file: false | ||
|
|
||
| # Traces folder | ||
| # Optional, defaults to '/dev/shm/cpcd-traces' | ||
| # Folder mounted on a tmpfs is preferred | ||
| traces_folder: /dev/shm/cpcd-traces | ||
|
|
||
| # Enable frame trace | ||
| # Optional, defaults to 'false' | ||
| # Allowed values are 'true' or 'false' | ||
| enable_frame_trace: false | ||
|
|
||
| # Number of open file descriptors. | ||
| # Optional, defaults to 2000 | ||
| # If the error 'Too many open files' occurs, this is the value to increase. | ||
| rlimit_nofile: 2000 | ||
|
|
||
| # Disable the encryption over CPC endpoints | ||
| # Optional, defaults false | ||
| disable_encryption: true | ||
|
|
||
| # Binding key file | ||
| # Mandatory when security is used | ||
| # Must have 32 alphanumeric characters as the first line, representing a 128 bit binding key | ||
| # If ECDH encryption is used, this file will be created during the binding process | ||
| binding_key_file: ~/.cpcd/binding.key |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| [Unit] | ||
| Description=Service for the 802.15.4 co-processor communication daemon | ||
| StartLimitIntervalSec=300 | ||
| StartLimitBurst=5 | ||
| [Service] | ||
| Type=simple | ||
| Restart=always | ||
| RestartSec=5 | ||
| TimeoutStartSec=60 | ||
| ExecStart=/usr/bin/cpcd -c /etc/cpcd.conf | ||
| [Install] | ||
| WantedBy=multi-user.target |
There was a problem hiding this comment.
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.