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 306
    • Best Answers 15
    • Users 798

    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

      • 95 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
    • 8xbet
      8xbet added an answer Excellent site you have got here.. It's hard to find… May 8, 2025 at 1:32 pm
    • ProxyDeals.com
      ProxyDeals.com added an answer Hi there, You have done a great job. I will… May 7, 2025 at 10:43 am
    • How to eliminate fan vibration?
      How to eliminate fan vibration? added an answer Very quickly this web site will be famous amid all… May 7, 2025 at 6:11 am
    • игры с модами на андроид
      игры с модами на андроид added an answer игры с модами на андроид — это замечательный способ получить… May 6, 2025 at 5:00 pm
    • plinko game
      plinko game added an answer The live dealer blackjack table is awesome! Also visit my… May 6, 2025 at 1:54 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.