Sign Up

Unlock the Gateway: Join the Embed Threads

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Unlock the Possibilities: Dive In with Login Access

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Embed Threads

Embed Threads

Embed Threads Navigation

  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Forum
  • Communities
  • Questions
    • New Questions
    • Must Read Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Groups
  • Add group
  • Badges
  • Users
  • Help
  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
klug
  • 0
klugBeginner
Asked: July 30, 20232023-07-30T04:11:50+00:00 2023-07-30T04:11:50+00:00In: RTOS

Device Tree error when porting zephyr-rtos to riscv

  • 0

I am trying to port zephyr rtos on shakti processor, it s a riscv based 32bit processor. They already have ported the zephyr rtos to shakti v1.13. I want to port the latest zephyr rtos v3.4.0 to it. I followed this board porting guide and copied the required board support code from the downstream code to the current version. But I am getting an error in device tree

west build -p always -b shakti samples/hello_world
-- west build: making build dir /home/kanak/zephyrproject/zephyr/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/kanak/zephyrproject/zephyr/samples/hello_world
-- CMake version: 3.22.1
-- Found Python3: /home/kanak/zephyrproject/.venv/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter
-- Cache files will be written to: /home/kanak/.cache/zephyr
-- Zephyr version: 3.4.0 (/home/kanak/zephyrproject/zephyr)
-- Found west (found suitable version "1.1.0", minimum required is "0.14.0")
-- Board: shakti
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.16.1 (/home/kanak/zephyr-sdk-0.16.1)
-- Found toolchain: zephyr 0.16.1 (/home/kanak/zephyr-sdk-0.16.1)
-- Found Dtc: /home/kanak/zephyr-sdk-0.16.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/kanak/zephyrproject/zephyr/boards/riscv/shakti/shakti.dts
devicetree error: 'reg' property in has length 8, which is not evenly divisible by 16 (= 4*(<#address-cells> (= 2) + <#size-cells> (= 2))). Note that #*-cells properties come either from the parent node or from the controller (in the case of 'interrupts').
-- In: /home/kanak/zephyrproject/zephyr/build/zephyr, command: /home/kanak/zephyrproject/.venv/bin/python3.10;/home/kanak/zephyrproject/zephyr/scripts/dts/gen_defines.py;--dts;/home/kanak/zephyrproject/zephyr/build/zephyr/zephyr.dts.pre;--dtc-flags;'';--bindings-dirs;/home/kanak/zephyrproject/zephyr/dts/bindings;--header-out;/home/kanak/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_generated.h.new;--dts-out;/home/kanak/zephyrproject/zephyr/build/zephyr/zephyr.dts.new;--edt-pickle-out;/home/kanak/zephyrproject/zephyr/build/zephyr/edt.pickle;--vendor-prefixes;/home/kanak/zephyrproject/zephyr/dts/bindings/vendor-prefixes.txt
CMake Error at /home/kanak/zephyrproject/zephyr/cmake/modules/dts.cmake:276 (message):
gen_defines.py failed with return code: 1
Call Stack (most recent call first):
/home/kanak/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
/home/kanak/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/kanak/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)

— Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/home/kanak/zephyrproject/.venv/bin/python3 -B/home/kanak/zephyrproject/zephyr/build -GNinja -DBOARD=shakti -S/home/kanak/zephyrproject/zephyr/samples/hello_world

I have my code here.
I am new to porting and this is my first attempt at it. Earlier I have just followed guides of existing ports. Any help would be appreciated.

Thank You

device treeportingriscvzephyr-rtos
  • 0 0 Answers
  • 332 Views
  • 0 Followers
  • 0
Share
  • Facebook
    Leave an answer

    Leave an answer
    Cancel reply

    Browse
    Captcha Click on image to update the captcha.

    Sidebar

    Ask A Question

    Stats

    • Questions 85
    • Answers 319
    • Best Answers 15
    • Users 799

    Free PDF Downloads

    A Roadmap to a Successful Career

    HTTP, WS and TLS: The Complete Guide

    Embedded Interview Questions

    • Popular
    • Answers
    • alokm014

      Embedded System Testing: Strategies and Approaches

      • 108 Answers
    • Paresh

      USB Serial Port giving junk data

      • 20 Answers
    • Shubha V

      Why can't we save the footprints in kicad and How ...

      • 14 Answers
    • D Sai krishna

      Error in final launch sequence

      • 7 Answers
    • Jagadesh

      SD card data logging

      • 7 Answers
    • superfake bag
      superfake bag added an answer Comprehending Knockoff Hermès Bags: A Comprehensive Guide The sphere of… May 12, 2025 at 7:42 pm
    • http://genome-tech.ucsd.edu/LabNotes/index.php?title=User:ConstanceTimmerm
      http://genome-tech.ucsd.edu/LabNotes/index.php?title=User:ConstanceTimmerm added an answer Пляжи Айя-Напы — чистейший песок, вода как в сказке, обязательно… May 12, 2025 at 4:29 pm
    • https://yogaasanas.science/wiki/Auto_100B
      https://yogaasanas.science/wiki/Auto_100B added an answer Пляж Агиос Тиконас — для тех, кто любит тишину. https://www.prrpc.net/index.php/User:HelenWbw80 May 12, 2025 at 4:13 pm
    • http://searchamateur.com
      http://searchamateur.com added an answer Hello to every body, it's my first pay a visit… May 11, 2025 at 10:41 pm
    • fortune dragon
      fortune dragon added an answer Slot Fortune Dragon – jogue sem apostar . Bônus generosos… May 11, 2025 at 9:47 pm

    Explore

    • Forum
    • Communities
    • Questions
      • New Questions
      • Must Read Questions
      • Trending Questions
      • Hot Questions
    • Polls
    • Groups
    • Add group
    • Badges
    • Users
    • Help

    Footer

    Embed Threads

    Embed Threads

    Join us on a transformative journey where knowledge is amplified and solutions are empowered.

    About Us

    • Blogs
    • Forum
    • About Us
    • Contact Us
    • Books

    Legal Stuffs

    • Privacy Policy
    • Adsense Disclaimer

    Help

    • Help
    • Contact Us

    Follow

    © 2024 Embed Threads. All Rights Reserved
    With Love by Embed Threads.