Open fahri314 opened 5 years ago
There is a second make target for cross compiling to arm. So either you ignore the error or run make fltest
only.
In both cases there should be an executable and you can run the test ./fltest 0
as superuser.
thank you
I was able to run the test. the image did not come to the screen. it does not see the device right now
fl2000 device not connected?
i revoved other usb devices and sample fltest runnig but screen is still same
try to reboot and reload the kernel module with the fl2000 device and a monitor attached
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 0
[sudo] password for user:
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1920, 1080) detailed timing desc
entry [1] = (1920, 1080) added
found (1920, 1080) detailed timing desc
found (1920, 1080) detailed timing desc
found (957, 1919) detailed timing desc
entry [2] = (957, 1919) added
create_surface(957, 1919) , type(0x0)
IOCTL_FL2000_SET_DISPLAY_MODE failed -1
create_surface(1920, 1080) , type(0x0)
IOCTL_FL2000_CREATE_SURFACE failed -1
create_surface(1024, 768) , type(0x0)
IOCTL_FL2000_CREATE_SURFACE failed -1
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 1
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1920, 1080) detailed timing desc
entry [1] = (1920, 1080) added
found (1920, 1080) detailed timing desc
found (1920, 1080) detailed timing desc
found (957, 1919) detailed timing desc
entry [2] = (957, 1919) added
create_surface(957, 1919) , type(0x1)
IOCTL_FL2000_SET_DISPLAY_MODE failed -1
create_surface(1920, 1080) , type(0x1)
IOCTL_FL2000_CREATE_SURFACE failed -1
create_surface(1024, 768) , type(0x1)
IOCTL_FL2000_CREATE_SURFACE failed -1
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 2
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1920, 1080) detailed timing desc
entry [1] = (1920, 1080) added
found (1920, 1080) detailed timing desc
found (1920, 1080) detailed timing desc
found (957, 1919) detailed timing desc
entry [2] = (957, 1919) added
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
usr_addr(0x7f13c9ba3000), phy_addr(0x15e400000) allocated
create_surface(1024, 768) , type(0x2)
display_mode(1024, 768), press any key to continue
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 0
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1920, 1080) detailed timing desc
entry [1] = (1920, 1080) added
found (1920, 1080) detailed timing desc
found (1920, 1080) detailed timing desc
found (957, 1919) detailed timing desc
entry [2] = (957, 1919) added
create_surface(957, 1919) , type(0x0)
IOCTL_FL2000_SET_DISPLAY_MODE failed -1
create_surface(1920, 1080) , type(0x0)
IOCTL_FL2000_CREATE_SURFACE failed -1
create_surface(1024, 768) , type(0x0)
IOCTL_FL2000_CREATE_SURFACE failed -1
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 2
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1920, 1080) detailed timing desc
entry [1] = (1920, 1080) added
found (1920, 1080) detailed timing desc
found (1920, 1080) detailed timing desc
found (957, 1919) detailed timing desc
entry [2] = (957, 1919) added
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
usr_addr(0x7f27bc384000), phy_addr(0x15e400000) allocated
create_surface(1024, 768) , type(0x2)
display_mode(1024, 768), press any key to continue
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 3
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1024, 768) @ 60 fps
found (1920, 1080) detailed timing desc
entry [1] = (1920, 1080) added
found (1920, 1080) detailed timing desc
found (1920, 1080) detailed timing desc
found (957, 1919) detailed timing desc
entry [2] = (957, 1919) added
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
usr_addr(0x7f4f8f264000), phy_addr(0x15e400000) allocated
create_surface(1024, 768) , type(0x3)
display_mode(1024, 768), press any key to continue
and nothing
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 0
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1280, 1024) @ 60 fps
entry [1] = (1280, 1024) added
found (1600, 1200) @ 60 fps
entry [2] = (1600, 1200) added
found (1920, 1080) @ 60 fps
entry [3] = (1920, 1080) added
found (1920, 1080) detailed timing desc
create_surface(1920, 1080) , type(0x0)
display_mode(1920, 1080), press any key to continue
create_surface(1600, 1200) , type(0x0)
display_mode(1600, 1200), press any key to continue
create_surface(1280, 1024) , type(0x0)
display_mode(1280, 1024), press any key to continue
create_surface(1024, 768) , type(0x0)
display_mode(1024, 768), press any key to continue
user@debian:~/Downloads/FL2000/sample$ sudo ./fltest 3
found (1024, 768) @ 60 fps
entry [0] = (1024, 768) added
found (1280, 1024) @ 60 fps
entry [1] = (1280, 1024) added
found (1600, 1200) @ 60 fps
entry [2] = (1600, 1200) added
found (1920, 1080) @ 60 fps
entry [3] = (1920, 1080) added
found (1920, 1080) detailed timing desc
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
_alloc_frame: IOCTL_FL2000_TEST_ALLOC_SURFACE failed -1
usr_addr(0x7fa7b13e0000), phy_addr(0x15e400000) allocated
create_surface(1280, 1024) , type(0x3)
display_mode(1280, 1024), press any key to continue
usr_addr(0x7fa7b1560000), phy_addr(0x15e400000) allocated
create_surface(1024, 768) , type(0x3)
display_mode(1024, 768), press any key to continue
user@debian:~/Downloads/FL2000/sample$
@fahri314 I'm also facing this. Did you arrive at a solution?
No. I dont use it anymore
In main.c the hardcoded the name of the driver file in /dev/, you can check what the name of the file in your /dev/ is and change the hardcoded name in main.c.
The line looks like #define FL2K_NAME "/dev/fl2000-0"
This kinda worked for me, but I am struggling with a different error now..
Hey could you tell me how you make it work please, I do get this
insmod fl2000.ko command working but in sample directory make step gives the following error: