Kernel for A64 git
#61
(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.
#62
(04-17-2016, 03:26 AM)peterz Wrote:
(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.
This I tested on my x86_64 PC. It seems that it is the same driver which longsleep added yesterday.

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
#63
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 brcm80211 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.
#64
(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:
(04-17-2016, 03:26 AM)peterz Wrote:
(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.
This I tested on my x86_64 PC. It seems that it is the same driver which longsleep added yesterday.

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
 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.
#65
Mali device driver:

https://github.com/libcg/mali
Donate BTC: 3Eav9uqXi8Nx1axb7QjK6xV4km4K9YGv9a
#66
Please Add ARM64 CRC32 hw accelerated module
https://github.com/torvalds/linux/blob/m...32-arm64.c

my test result
https://github.com/jocover/crc32_armv8
#67
Hi longsleep,

I was able to download the source code for '3.10.65-5-pine64' onto my Pin64.  From there, I modified the 'arch/arm64/configs/sun50iw1p1smp_linux_defconfig' file to add the line "CONFIG_USB_ACM=m".  Once I rebuilt the kernel and modules, I was able to insert the new cdc-acm.ko module into your 3.10.65-5 kernel on my Pine64 board and communicate with my external serial device.

It would be great to see the ACM module included in future builds.  Is there a way that I can contribute this change?  Both Linux and GitHub are relatively new to me, but I am willing to try.

Thank you.
#68
(04-23-2016, 09:28 AM)Pirin Wrote: I was able to download the source code for '3.10.65-5-pine64' onto my Pin64.  From there, I modified the 'arch/arm64/configs/sun50iw1p1smp_linux_defconfig' file to add the line "CONFIG_USB_ACM=m".  Once I rebuilt the kernel and modules, I was able to insert the new cdc-acm.ko module into your 3.10.65-5 kernel on my Pine64 board and communicate with my external serial device.

Already done. See https://github.com/longsleep/linux-pine6...01f1178f37 - the next release will have it.

(04-23-2016, 09:28 AM)Pirin Wrote: It would be great to see the ACM module included in future builds.  Is there a way that I can contribute this change?  Both Linux and GitHub are relatively new to me, but I am willing to try.

Sure, creating pull requests on GitHub is the way to go.
#69
(04-23-2016, 09:33 AM)longsleep Wrote: Already done. See https://github.com/longsleep/linux-pine6...01f1178f37 - the next release will have it.

Awesome!  Thanks for including it.

(04-23-2016, 09:33 AM)longsleep Wrote: Sure, creating pull requests on GitHub is the way to go.

OK, I will try that in the future.
#70
I pushed a new Kernel build with more cleanups and more modules enabled. This release also backports crc32 optimized for arm64 from mainline, improving performance and cleans up lots of debugging. A possible breaking change for some might be that the audio codec sound driver is no longer built-in and now a module. See first post of this thread for details.

Get 3.10.65-7-pine64-longsleep-28 from https://www.stdin.xyz/downloads/people/l...ges/linux/

Update like this (as root) on any of my images:
Code:
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)


Possibly Related Threads…
Thread Author Replies Views Last Post
  PineA64+: Audio in 5.0 Kernel puzzles 6 10,100 11-13-2019, 09:41 AM
Last Post: roel
  Rockpro64 NFS root mount (kernel 4.20) - ethernet help? tenspd137 0 3,195 12-06-2018, 01:14 AM
Last Post: tenspd137
  NVMe and new kernel bjbb17 0 2,867 09-25-2018, 03:39 PM
Last Post: bjbb17
  Real-time linux kernel Artyom 45 80,639 09-11-2018, 01:08 AM
Last Post: zzwpine
  DKMS on kernel 3.10.107-pine64 obrienmd 5 9,572 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 3,884 12-09-2017, 08:14 AM
Last Post: incoherent
  [SOLVED] UEFI + Fedora Mainline Kernel Booting! cztian 0 3,609 07-13-2017, 08:38 PM
Last Post: cztian
  Mainline kernel [Solved] jeroen79 11 21,357 02-08-2017, 06:19 AM
Last Post: umiddelb
Question Need help : Issue in running compiled kernel with tftp+uboot dinesh.bhoyar 2 5,137 01-30-2017, 12:44 AM
Last Post: dinesh.bhoyar
  Jackd triggers kernel warning cztian 0 3,759 09-03-2016, 08:16 AM
Last Post: cztian

Forum Jump:


Users browsing this thread: 5 Guest(s)