Giter Site home page Giter Site logo

fl6000's Introduction

Fresco Logic FL6000 4-Port USB 3.0 F-One Controller Linux/Android driver

1. What is this?

This is an official driver release from Fresco Logic in an attempt to help the open-source community adopting the development and use of the FL6000 device.

2. On which kernel versions does this driver work?

This driver is tested on Ubuntu 14 LTS as well as some Android platforms with kernel version 3.10.x. and 3.18.x. You might need to adapt it for your own use.

3. Target audience

This release is targeted to open-source developers, as opposed to end-users.

4. Limitations?

Isochronous devices are now supported but only limited testing has been done. Webcams are working as are USB audio in and out.

5. How do I compile & test the kernel driver?

Find your kernel source tree, and edit src/Makefile. Locate the following line:

KERNEL_PATH = /usr/src/linux-headers-4.4.0-72-generic`

Modify this line so that it points to the correct source tree. After that, run make CONFIG_USB_EHUB_HCD=m to create ehub.ko and run insmod ehub.ko to load the driver.

6. How do I file a bug to the Fresco Logic developers?

You can file bugs to Github Issues

fl6000's People

Contributors

fresco-fl2000 avatar sarman1998 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fl6000's Issues

Kernel 4.15

Trying to compile with kernel 4.15.0-43-generic under Ubuntu 18.04.

There was a change from setup_timer to timer_setup. So made this simple change in the xhci.c and xhci-mem.c files.

setup_timer(a, b, c) ==> timer_setup(a, b, 0)

Then found out that the type of the call back 'b' is wrong. So not sure how to proceed.

Also, I wonder if xhci is even needed as in the kernel there is already files for xhci.

Please advise.

Disconnect issue with FL5000_Ver 2.0 Dev board

I have taken the code from here and build it into a Android build and flashed it to my phone. On first connect everything seems to be working and I am able to plug usb2 and usb3 devices into my dev board and use them for the phone. But when I disconnect from the board the usb connection on my phone wont re-enumerate with any device (ie I can't plug it back into the board and have it work and I can't plug it into my computer and shell into it using adb). After looking into this more here is a timeline of what is happening:

Disconnect the usb
Hub.c code gets a port change status event which goes on to hub workqueue(hub_wq)
Hub.c handles the event in hub_event()
The port change status kicks off a disconnect in the ehub code
The disconnect in the ehub code calls usb_remove_hcd()
Usb_remove_hcd() calls usb_flush_hub_wq() which tries to flush hub_wq
The flush stalls waiting for hub_wq to finish executing and we get stuck there

So looks like the hub work queue is getting into a dead lock situation. I removed usb_remove_hcd() from the ehub code and I am able to disconnect and reconnect with everything working, but this is leaving virtual hubs attached on my phone and the phone is just assigning new hub numbers every time I reconnect. Any guidance you could give on this would be appreciated.

Return error when make

Here are the error message I got:

newnex@newnex-MS-7B46:~/FL6000-master/src$ make CONFIG_USB_EHUB_HCD=m
make -C /usr/src/linux-headers-5.0.0-37-generic M=/home/newnex/FL6000-master/src modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-37-generic'
CC [M] /home/newnex/FL6000-master/src/xhci.o
/home/newnex/FL6000-master/src/xhci.c: In function ‘compliance_mode_recovery_timer_init’:
/home/newnex/FL6000-master/src/xhci.c:278:2: error: implicit declaration of function ‘setup_timer’; did you mean ‘del_timer’? [-Werror=implicit-function-declaration]
setup_timer(&xhci->comp_mode_recovery_timer,
^~~~~~~~~~~
del_timer
/home/newnex/FL6000-master/src/xhci.c: In function ‘ehub_xhci_drop_ep_from_interval_table’:
/home/newnex/FL6000-master/src/xhci.c:2231:2: warning: enumeration value ‘USB_SPEED_SUPER_PLUS’ not handled in switch [-Wswitch]
switch (udev->speed) {
^~~~~~
/home/newnex/FL6000-master/src/xhci.c: In function ‘xhci_add_ep_to_interval_table’:
/home/newnex/FL6000-master/src/xhci.c:2290:2: warning: enumeration value ‘USB_SPEED_SUPER_PLUS’ not handled in switch [-Wswitch]
switch (udev->speed) {
^~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/home/newnex/FL6000-master/src/xhci.o' failed
make[2]: *** [/home/newnex/FL6000-master/src/xhci.o] Error 1
Makefile:1614: recipe for target 'module/home/newnex/FL6000-master/src' failed
make[1]: *** [module/home/newnex/FL6000-master/src] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-37-generic'
Makefile:56: recipe for target 'all' failed
make: *** [all] Error 2

hotplug issue on kernel-4.19

Hello, we are using Android10 on Qualcom chip. Have ported FL6000 driver onto it. It works well except hotplug. After plugging it out, the driver will get stuck in ehub_xhci_remove. Do you have plan to port FL6000 driver to kernel4.19? Thanks!

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.