Knowledge Base Article

ERROR: Failed to initialize the S5_CVP library: Failed to initialize the WDC library. Error 0x20000001 - Invalid handle

Description

You may see this error if you are trying to configure your device using quartus_cvp on a Linux machine and the driver has failed to load.

A possible cause for the driver failing to load is that the kernel does not have a large enough virtual memory allocation.  You can confirm that there is a problem with virtual memory allocation by checking the kernel ring buffer messages using dmesg. If there is a problem with virtual memory allocation you will see the following message:   
vmap allocation for size 268439552 failed: use vmalloc=
to increase size.

Resolution

If you are using the GRUB bootlaoder (used for Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6), to pass the vmalloc= parameter to the kernel, add it to the global kopt parameter in /boot/grub/menu.lst, which will look like this:
kopt=root=UUID=1029384-7e40-ffd2-9968-7a8b9e78f9g7s ro vmalloc=192M

You will need to increase vmalloc to > 512M.

Related Articles
Updated 2 months ago
Version 3.0
No CommentsBe the first to comment