Skip to content

Instantly share code, notes, and snippets.

@agners
Created February 22, 2022 13:33
Show Gist options
  • Save agners/0bd84b030d7408d65e99f239aff4530d to your computer and use it in GitHub Desktop.
Save agners/0bd84b030d7408d65e99f239aff4530d to your computer and use it in GitHub Desktop.
Silicon Labs OpenThread native git repositories

Silicon Labs OpenThread native git repositories

Background: Silicon Labs offers OpenThread with modifications to support multi-protocol operations as described in AN1333. At least since Gecko SDK release 4.0.0 (Silicon Labs OpenThread release 2.0.0.0) the OpenThread repositories are available through their unified Gecko SDK releases at https://github.com/siliconLabs/gecko_sdk.

However, this repositories has several flaws:

  • It combines all their SDKs in a single big repository
  • The repository uses git-lfs, and contains lots of binary object files
  • The repository has no git commit history ("flat" commits per release)
  • Some files in the openthread/ot-br-posix subdirectories have wrong permissions (missing executable bits)

For this reasons I extracted the OpenThread modifications into git repositories based on upstream OpenThread.

Silicon Labs documents the upstream git hashes their release is built on in the OpenThread release notes:

There are tags which represent the upstream base Silicon Labs releases are built on as well as their modifications:

OpenThread repository

gecko_sdk tag openthread upstream openthread silabs
v4.0.0 silabs-openthread-2.0.0.0-base silabs-openthread-2.0.0.0
v4.0.1 silabs-openthread-2.0.1.0-base silabs-openthread-2.0.1.0

To get the difference between upstream OpenThread release and Silicon Labs release use:

git diff silabs-openthread-2.0.1.0..silabs-openthread-2.0.1.0-base

OpenThread Border Router repository

gecko_sdk tag ot-br-posix upstream ot-br-posix upstream
v4.0.0 silabs-ot-br-posix-2.0.0.0-base silabs-ot-br-posix-2.0.0.0
v4.0.1 silabs-ot-br-posix-2.0.1.0-base silabs-ot-br-posix-2.0.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment