Giter VIP home page Giter VIP logo

Comments (3)

MarekPorwisz avatar MarekPorwisz commented on June 18, 2024

Hi,

The easiest thing would be to switch to using NCS. OpenThread is integrated there and you should be able to configure nrf_security. The disadvantage is that you would need to adapt your application to be able to work under Zephyr OS. Another disadvantage is that OpenThread fork in NCS/Zephyr is a little bit behind Vanilla OpenThread repo - we do the upmerges regularly, so it should not be far behind.

If you prefer to stay with current solution you still need to get NCS: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html

Then you can follow our "draft" guidelines:

1. Checkout nrf to https://github.com/MarekPorwisz/fw-nrfconnect-nrf/tree/vanilla_ot_nrf_security
2. Call west update
3. Checkout nrfxlib to https://github.com/MarekPorwisz/sdk-nrfxlib/tree/vanilla_ot_nrf_security (always after west update)
4. In case of using python3.6 => sudo apt-get install libpython3.6-dev
5. python3.6 -m pip install numpy west pyelftools
6. cd nrf/samples/openthread/cli
7. ./build_libs.sh
8. Built nrf_security is in openthread_mbedtls_out

**Notes:**
Keep in mind there are files not related to nrf_security in openthread that are placed in the nrf_security directory - do not remove them accidentally.
Oberon backend can be replaced with vanilla backend in the vanilla_nrf_sec.conf file if needed.

**Hint:**
When debugging FW build with the libraries (e.g. bare OpenThread) the debugger will not list the code as the source file paths will not match.
In such case one can check out the nrf_security branch used to build the libraries with git and then perform the path substitution in gdb.
Assuming that there are still libraries build by Marek in /home/map5/repo/ncs the command is as follows:
set substitute-path '/home/map5/repo/ncs' '<your_ncs_path>'

This will generate nrf_security for you. My forks were created based on NCS master not long after 1.4 release. If you wish to do the upmerge keep in mind that fw-nrfconnect-nrf (currently sdk-nrf) and sdk-nrfxlib need to be aligned. west.yml file in sdk-nrf indicates what version of sdk-nrfxlib is needed.

If I remember correctly samples/openthread/cli/vanilla_nrf_sec.conf file needs to be modified in order to enable/disable any additional features.

from ot-nrf528xx.

AuSchell avatar AuSchell commented on June 18, 2024

Thank you for your quick response, i will try that out and write back if it has helped.

from ot-nrf528xx.

jwhui avatar jwhui commented on June 18, 2024

Closing stale issue.

from ot-nrf528xx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.