Failed to allocate Memory when i use the fuction 'cma_alloc'

I make my zynq board work like Pynq-Z1, and i make a uImage 2016.04, added the Xilinx APF accelerator driver and UIO driver as tutorial.But when I ran the step

boolean_generator = logictools_olay.boolean_generator
boolean_generator.setup(function)

in boolean_generator.ipynb.something wrong happened that “RuntimeError: Failed to allocate Memory!”.
How can I do to modify it,waiting for your reply.

OK, i overcame the problem. After adding the APF driver, I also modify the size in Mega Bytes(256) in the Device Drivers of linux kernel.Then you can get a /dev/xlnx, and the problem was solved.

1 Like