Skip to content

damian95a/DMA_controller

Repository files navigation

Out-of-tree module compilation:

make OUT_OF_TREE=y PETALINUX_BUILD=<path-to-petalinux-project>/Boot/build

Preparing repo for in-tree compilation

The following script allows to link the driver repo into Linux Kernel catalogue tree for an in-tree build

./prepare_repo.sh <path-to-linux-kernel-source>

Unit testing

Before running tests for the first time, Kernel source dir must be prepared with prapare_repo.sh script. Tu run the tests use the command below:

./run_kunit.sh <path-to-linux-kernel-source>

User app interface remarks

Writing to descriptors_num file is the only way to upload a configuration to the DMA storage (registers and BRAM). Therefore single_buffer_size_32 must be set up before descriptors_num. After every single_buffer_size_32 update, descriptors_num must be overwritten (even if its value hasn't changed). Successful write to descriptors_num causes running DMA, so there is no need to run it explicitly, unless it's rerun with unchanged configuration after halting. Value of packages_number is cleared on every rerun (both with descriptors_num and run interface).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published