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
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum Expanding shared memory on the BBB
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 9 replies
  • Subscribers 57 subscribers
  • Views 1322 views
  • Users 0 members are here
  • beaglebone_black
  • bbb
  • bb_black
  • beagle_bone_black
Related

Expanding shared memory on the BBB

shabaz
shabaz over 12 years ago

Since the PRU is great for interfacing hardware, I'd like to transfer more that 8kbyte at a time between the Linux hosted application and the PRU application.

I know this is possible in theory, because the PRU can access the entire memory map. However, on the Linux side, I need to mmap in order to have access to

the memory, and today that is only possible for a particular 8kbyte (or 12kbyte - I don't have my notes with me) address space. I wanted to entend it to perhaps 128kbyte or slightly more.

 

Does anyone know which file in the kernel may have this allocation, or if this could be possible without having to resort to kernel compiles?

 

Or, is there any way for a Linux application to malloc at runtime and somehow query the MMU for the physical address? Is this even possible? I suspect, maybe this is not possible.. If it was, it would solve the problem because then I could pass that address to the PRU application.

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 12 years ago in reply to shabaz +1
    what file does mem_fd reference ? /dev/kmem ? With a length of 0x0FFFFFFF you're trying to map a region of 256MB at address 0x8000000 which according to the am3359 TRM is ths start of RAM, so you'd expect…
  • Former Member
    Former Member over 12 years ago in reply to shabaz +1
    shabaz wrote: Regarding drivers, I had found this link in the past and had bookmarked it to learn how to write drivers, so I'll read up and also browse some existing drivers to see how they work, and perhaps…
  • Former Member
    Former Member over 12 years ago in reply to Former Member +1
    So I found the old driver, unfortunately it's for a 2.4.x kernel. On a brighter note, it's only 168 lines and I'm guessing that 30% of that is comments, so I'll see if I can get it cleaned up and compiling…
Parents
  • shabaz
    shabaz over 11 years ago

    These topics mentioned will be useful:

    BBB - High speed data acquisition and web-based UI

    In that topic and the current topic, the following URLs were discussed:

    Allocating memory using modprobe uio_pruss:

    https://groups.google.com/forum/m/#!topic/beagleboard/Gb6xL7V7Z00

    and this URL shows how to retrieve the address:

    http://hipstercircuits.com/beaglebone-pru-ddr-memory-access-the-right-way/

     

    This method avoids the need of any other driver (but is not necessarily the best way for reasons described in the topics).

    I noticed what looks like the same method is used here too:

    https://bitbucket.org/intelligentagent/pypruss/src/f48e3d553687205d3f62420a95039a0d16dbee4d/pypruss/pypruss.c

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • shabaz
    shabaz over 11 years ago

    These topics mentioned will be useful:

    BBB - High speed data acquisition and web-based UI

    In that topic and the current topic, the following URLs were discussed:

    Allocating memory using modprobe uio_pruss:

    https://groups.google.com/forum/m/#!topic/beagleboard/Gb6xL7V7Z00

    and this URL shows how to retrieve the address:

    http://hipstercircuits.com/beaglebone-pru-ddr-memory-access-the-right-way/

     

    This method avoids the need of any other driver (but is not necessarily the best way for reasons described in the topics).

    I noticed what looks like the same method is used here too:

    https://bitbucket.org/intelligentagent/pypruss/src/f48e3d553687205d3f62420a95039a0d16dbee4d/pypruss/pypruss.c

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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 © 2025 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