Kernel for A64 git - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6) +--- Thread: Kernel for A64 git (/showthread.php?tid=293) |
RE: Kernel for A64 git - peterz - 04-17-2016 (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. 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. RE: Kernel for A64 git - peterz - 04-17-2016 (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. 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 RE: Kernel for A64 git - thantik - 04-17-2016 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. RE: Kernel for A64 git - Hart - 04-17-2016 (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). 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. RE: Kernel for A64 git - Terra854 - 04-20-2016 Mali device driver: https://github.com/libcg/mali RE: Kernel for A64 git - jocover - 04-21-2016 Please Add ARM64 CRC32 hw accelerated module https://github.com/torvalds/linux/blob/master/arch/arm64/crypto/crc32-arm64.c my test result https://github.com/jocover/crc32_armv8 RE: Kernel for A64 git - Pirin - 04-23-2016 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. RE: Kernel for A64 git - longsleep - 04-23-2016 (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-pine64/commit/f02ff0433ac1a73de4a18e406676d701f1178f37 - 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. RE: Kernel for A64 git - Pirin - 04-23-2016 (04-23-2016, 09:33 AM)longsleep Wrote: Already done. See https://github.com/longsleep/linux-pine64/commit/f02ff0433ac1a73de4a18e406676d701f1178f37 - 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. RE: Kernel for A64 git - longsleep - 04-23-2016 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/longsleep/pine64-images/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) |