element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
WaRP7
  • Products
  • Dev Tools
  • Single-Board Computers
  • WaRP7
  • More
  • Cancel
WaRP7
Forum Linux DTB support to run Cortex A7 and Cortex M4 simultaneously on WaRP 7
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join WaRP7 to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 14 replies
  • Subscribers 10 subscribers
  • Views 3569 views
  • Users 0 members are here
  • warp
  • nxp-warp7
Related

Linux DTB support to run Cortex A7 and Cortex M4 simultaneously on WaRP 7

vnr1992
vnr1992 over 9 years ago

Hi All,

 

On WaRP 7 board, I am trying to run Linux on Cortex A7 and RTOS based binary on Cortex M4.

I need to run both of these cores simultaneously.

 

While doing this, I followed below steps...

 

1) Run U-boot on A7

2) Load M4 binary in TCM attached to M4 using fatload command on Uboot.

3) Run M4 core by bootaux <image addr>

       (At this stage M4 binary is successfully executed.)

4) run bootcmd on Uboot console to run Linux image.

 

       At this stage, I am not able to run linux image and kernel is not be able to boot.

 

I looked in support for other NXP based boards. They are providing support for separate linux device tree blob (dtb) for this purpose with which it let M4 run simultaneous binary.

Does anyone aware about this kind support for WaRP7 board?

 

Thank you for your help in advance.

 

Regards,

Vivek

  • Sign in to reply
  • Cancel

Top Replies

  • griff0417
    griff0417 over 9 years ago +1
    I seem to be having a similar issue. I got FreeRTOS from https://github.com/WaRP7/FreeRTOS_WaRP7 and was able to build and boot the hello_world example on the M4 without any issues. However, after booting…
  • tusharp
    0 tusharp over 9 years ago

    As already replied in your other thread, we are coming up with the support by Nov.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • griff0417
    0 griff0417 over 9 years ago

    I seem to be having a similar issue. I got FreeRTOS from https://github.com/WaRP7/FreeRTOS_WaRP7 and was able to build and boot the hello_world example on the M4 without any issues. However, after booting with bootaux, I try to boot Linux on the A7 ('run bootcmd' from uboot prompt) and it hangs at Starting Kernel...

     

    Is running the A7 and M4 simultaneously currently supported?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • griff0417
    0 griff0417 over 9 years ago

    I was able to get this working by adding imx7d-sdb-m4.dtb to KERNEL_DEVICETREE of the imx7s-warp.conf in source/meta-fsl-arm-extra/conf/machine

     

    KERNEL_DEVICETREE = "imx7s-warp.dtb imx7d-sdb-m4.dtb"

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • hanooi
    0 hanooi over 9 years ago in reply to griff0417

    Good to know.  What compiler are you running to program the board?  I'm also using the Warp7 reference for a commercial design.  It looks like support is very spotty so maybe we should collaborate and help each other out.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • griff0417
    0 griff0417 over 9 years ago in reply to hanooi

    We are using gcc and g++ to compile freertos. I was able to setup eclipse (KDS) with some minor tweaking to this guide. I was able to get it working by adding __FPU_PRESENT=1 and ARM_MATH_M4 to the preprocessor defined symbols in eclipse. Then I just take the bin and copy to the fat partition containing the *.dtb's, zimage, etc and place it here. Here is our uboot variables which I copy and paste in manually at the moment for the M4.

     

    setenv m4image 'hello_world.bin'

    setenv m4loadaddr '0x7F8000'

    setenv loadm4image 'fatload mmc ${mmcdev}:${mmcpart} ${m4loadaddr} ${m4image}'

    setenv m4boot 'run loadm4image; dcache flush; bootaux ${m4loadaddr}'

    saveenv

     

    run m4boot

    run bootcmd

     

    If you would like uboot to boot the M4 auto then just add:

         setenv bootcmd 'run m4boot; '${bootcmd}

    Save changes (type printenv to see changes):

         saveenv

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • griff0417
    0 griff0417 over 9 years ago in reply to griff0417

    You could also add the below line to <BUILD_DIR>/conf/local.conf if you are using yocto:

    KERNEL_DEVICETREE_append =" imx7d-sdb-m4.dtb"

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • texierp
    0 texierp over 8 years ago

    Hi All,

     

    Just for your information, all the support for A7/M4 is now ok with the meta-warp7-distro (https://github.com/WaRP7/meta-warp7-distro/commit/ff8a2cfe7d902b1ed2155d1c28e82f2b99414b8c#diff-dfb22962245d7f5ae492b643… )

     

    Do not hesitate to contact me if you have any questions image

     

    ---

    Pierre-Jean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • hanooi
    0 hanooi over 8 years ago in reply to texierp

    Would it work with Debian Linux?  My customized Warp7 board now uses Debian.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • texierp
    0 texierp over 8 years ago in reply to hanooi

    I think, you just have to update your zImage to support RPMsg, see the following patches:

     

    - https://github.com/WaRP7/meta-warp7-distro/blob/master/recipes-kernel/linux/linux-warp7/imx7s-warp/ARM-imx-Add-imx7s-war…

    - https://github.com/WaRP7/meta-warp7-distro/blob/master/recipes-kernel/linux/linux-warp7/imx7s-warp/0005-Add-m4-support-a…

    - https://github.com/WaRP7/meta-warp7-distro/blob/master/recipes-kernel/linux/linux-warp7/imx7s-warp/0004-Add-m4-support.p…

     

    ---

    Pierre-Jean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mhanuel
    0 mhanuel over 8 years ago in reply to hanooi

    Hello hanooi,

     

    I am looking to have debian on imx7, would you give me some advice of how it can be done using yocto? I know of a meta-debian layer but last time I document myself there was no bsp for imx7.

     

    I will appreciate your comments,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube