GithubHelp home page GithubHelp logo

Comments (7)

stdstring avatar stdstring commented on July 26, 2024

Xilinx drivers for Linux:
http://www.wiki.xilinx.com/Linux+Drivers

from imagecapturesystem.

stdstring avatar stdstring commented on July 26, 2024

http://www.wiki.xilinx.com/Linux+User+Mode+Pseudo+Driver
How to access some simple hardware from user space. Example

from imagecapturesystem.

stdstring avatar stdstring commented on July 26, 2024

По нашей проблеме
Есть вот такой драйвер:

http://www.wiki.xilinx.com/DMA+Drivers+-+Soft+IPs
AXI DMA
The AXI Direct Memory Access (AXI DMA) IP provides high-bandwidth direct memory access between memory and AXI4-Stream-type target peripherals. Its optional scatter gather capabilities also offload data movement tasks from the Central Processing Unit (CPU) in processor based systems. Initialization, status, and management registers are accessed through an AXI4-Lite slave interface.

Есть такой драйвер:

http://www.wiki.xilinx.com/AXI+GPIO
The Xilinx® LogiCORE™ IP AXI General Purpose Input/Output (GPIO) core provides a general purpose input/output interface to the AXI interface. This 32-bit soft Intellectual Property (IP) core is designed to interface with the AXI4-Lite interface.The AXI GPIO design provides a general purpose input/output interface to an AXI4-Lite interface.

Достаточно ли этого? Нужно обсуждение ...

from imagecapturesystem.

EvilLord666 avatar EvilLord666 commented on July 26, 2024

AXI GPIO как раз подойдет для управления image_capture_manager,
Для VDMA - Video4Linux
Для AXI Quad SPI -QSPI Driver

Драйвер псевдоустройства для быстрого старта штука неплохая, остается понять как на GPIO_BASE_ADDRESS мапится адресное пространство AXI.

from imagecapturesystem.

stdstring avatar stdstring commented on July 26, 2024

Это написано здесь: http://www.wiki.xilinx.com/Build+kernel
В частности, вот пример файла system.mhs со всеми оперделениями: https://www.xilinx.com/Attachment/system.mhs

from imagecapturesystem.

stdstring avatar stdstring commented on July 26, 2024

Подведем промежуточные итоги.

  1. Использование драйвера псевдоустройства безопасно и вполне допустимо в рабочем коде (см. этот пример http://www.wiki.xilinx.com/Linux+User+Mode+Pseudo+Driver). При таком подходе мы обращаемся к определенным адресам физической памяти, закрепленным для доступа к некоторому устройству (эти адреса задаются при сборке ядра и во время выполнения фиксированы) при помощи проецирования в память файла /dev/mem. Для этого нам нужны будут либо права root, либо настроить правила udev для некоторой УЗ.
  2. В идеале, лучше все-таки сделать отдельный модуль ядра Linux для взаимодействия с IP-ядром. Но сделать это можно в самый последний момент. Поэтому на данный момент предлагаю использовать драйвер псевдоустройства.

from imagecapturesystem.

EvilLord666 avatar EvilLord666 commented on July 26, 2024

Проект заморожен, задача прекращается в связи со сворачиванием 218-го.

from imagecapturesystem.

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.