(04-17-2016, 01:22 PM)thantik Wrote: Could we get some sort of howto on compiling kernel modules with the tools available in longsleep's git repo? I'm one of the few who has a 2gb Pine64 without the wifi/bluetooth modules. I'm trying to get the bdcm80211 module and some others compiled so that my 8188cus USB adapter works (as well as some others I'd like to test).
Pointing me in the direction of TFM would be great too. I'm currently using the Arch64 image without XFCE and all the additional stuff.
Bluetooth and wifi modules for usb would be sweet. I could put the wireless keyboard and mouse back with the computer I took it from and use a bluetooth one instead, and unleash this beast from the ethernet leash. Would make the system portable. I didn't buy the add-on modules for my 2 gig either.
(04-17-2016, 04:44 AM)peterz Wrote:Thanks for the heads up. I will have to check out the ftdi drivers and try them with Melzi and Mks boards with pronterface and Arduino IDE.(04-17-2016, 03:26 AM)peterz Wrote:This I tested on my x86_64 PC. It seems that it is the same driver which longsleep added yesterday.(04-16-2016, 09:42 PM)Hart Wrote: I was trying to compile a module also. It was for CH34x driver, the usb serial converter on the Chinese Arduino clones so I could use the Arduino IDE. I got the same problem. The make compiler is looking for a directory that does not exist. You will need to create it and you will need SU or root privelege to do so. Go into your terminal and type 'sudo bash', then enter password 'ubuntu'. You will have a terminal with all root priveleges and file system ownership.
Create the directory build where the compiler is seeking it and place the makefile and any libraries in the build directory and then try the make command from there. It will at least try to compile. That was as far as I got because my particular example froze at like line 4700 or so in the compile. I am pretty rusty at this and not sure if I have all the required dependancies in the install or what the problem is. But it took me quite a while to figure out that the compiler wanted the build files in the build directory and that I had to create it myself. Maybe you will have better luck with your module.
This driver is on my wish list (together with USB to RS232 converters based on Prolific pl2303 and FTDI FT232R chips).
USB to RS232 converters based on CH34x chips are super cheap (~1.5 EUR/pcs on ebay) but doesn't work with some devices.
I tested them with following devices:
Works like charm with
- Cisco 2950 switches,
- Cisco 3550 switches,
- Cisco 1721 routers,
- Cisco 1751 routers
- Cisco 1760 routers
Doesn't work with
- Cisco Aironet 1131ag AP
- Zyxel ES2108G switch.
There is seen output but only garbage characters.
Converters based on pl2303 and FT232R chips (the real ones not the fakes) works in all cases (but are several times more expensive then these cheap ones).
I think the best way would be if Longsleep would compile these modules and bundle them with kernel provided by himself so others can benefit from this in the future.
I have seen some thread where somebody else created a request for some driver and longsleep compiled it.
I'm going to find it and follow the instructions.
peter@ml310g3:~$ dmesg |grep -i ftdi
[ 471.759160] usb 5-1: Manufacturer: FTDI
[ 472.023377] usbcore: registered new interface driver ftdi_sio
[ 472.027264] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 472.027376] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[ 472.030770] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0
peter@ml310g3:~$ lsusb
Protocol spec without prior Class and Subclass spec at line 17403
Bus 006 Device 002: ID 03f0:1027 Hewlett-Packard Virtual keyboard and mouse
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
peter@ml310g3:~$ sudo lsusb -s 005:002 -v |egrep "idVendor|idProduct|iProduct"
Protocol spec without prior Class and Subclass spec at line 17403
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6001 FT232 USB-Serial (UART) IC
iProduct 2 USB Serial Converter
peter@ml310g3:~$ lsmod |grep ftdi
ftdi_sio 48930 0
usbserial 45014 1 ftdi_sio