Myy

  • Content Count

    364
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Myy reacted to Xalius in RK3328 Kernel   
    Do not forget to actually lift the BT reset GPIO, on the Pine64 that is done via 'rfkill unblock all' or 'rfkill unblock xxx' otherwise the uart of the BT part will not answer and you just get a 'sync timeout'  from the firmware loader...
  2. Like
    Myy reacted to Xalius in RK3328 Kernel   
    Pine64 uses the same RTL8723BS module and we got BT working more or less reliably now. There are some versions of the BT firmware loader floating around (Iwfinger, hadess, ...) but NextThingCo seems to have the latest version for the RTL8723DS, which also works with CS and BS though...
     
    Check out:
     
    https://github.com/ayufan-pine64/linux-build/blob/master/Makefile#L49 - build the rtk_hciattach firmware loader, loads FW over UART and attaches it to the BT stack
     
    https://github.com/ayufan-pine64/linux-build/tree/master/package/root/lib/firmware/rtlbt - needed firmware files
     
    https://github.com/ayufan-pine64/linux-build/blob/master/package/root/etc/systemd/system/rtk-hciattach.service - systemd service
     
     
  3. Like
    Myy got a reaction from Tido in RK3328 Kernel   
    So I'm trying to add Bluetooth support for Tinkerboard devices and after searching for any "Bluetooth" related option in the kernel, I stumbled into CONFIG_RTLBTCOEXIST . So in addition to CONFIG_BT_HCI_UART , this option might be needed to use the BT Coexist functionalities of the Realtek 8723 BS devices.
     
    However, it turns out that CONFIG_RTLBTCOEXIST cannot be enabled directly. If you search for the symbol in menuconfig , you won't see any configuration section referenced. So, in order to enable it, you need to enable its dependencies, which are :
     
    CONFIG_NETDEVICES (Network device support)
    CONFIG_WLAN (Wireless LAN)
    CONFIG_WLAN_VENDOR_REALTEK (Realtek devices)
    CONFIG_RTL_CARDS (Realtek rtlwifi family of devices)
    And also one of these drivers :
    CONFIG_RTL8723AE (Realtek RTL8723AE PCIe Wireless Network Adapter)
    CONFIG_RTL8723BE (Realtek RTL8723BE PCIe Wireless Network Adapter)
    CONFIG_RTL8192EE (Realtek RTL8192EE Wireless Network Adapter)
    CONFIG_RTL8821AE (Realtek RTL8821AE/RTL8812AE Wireless Network Adapter)
    Which depend on :
    CONFIG_PCI (PCI support)
     
    So, I've generated a configuration that integrate these requirements. If any Tinkerboarder could give it a shot and see if they, at least, get a hci0 interface, this would be great !
     
    The configuration file is :
     
    https://github.com/Miouyouyou/MyyQi/blob/master/boot/config-4.12.0-rc4-The-Twelve-MyyQi%2B
     
    If you don't get anything, could you paste the dmesg content ?
  4. Like
    Myy got a reaction from lafalken in RK3328 Kernel   
    Well, I went with the r17p0 drivers with my kernels and the user-space binary drivers work fine, whether it's the rockchip libmali drivers, or the one provided by ARM for Firefly systems (mostly used for fbdev).
     
    The Mali user-space and kernel-space drivers are not directly correlated. They're both needed (although I wonder if it's possible to access the GPU acceleration directly through the kernel interface). However, the user-space binary drivers will work as long as the kernel-space driver version is equal or superior. I guess there's a dumb check like this, in the user space binary drivers.
     
    uint_fast8_t is_kernel_version_valid() { return user_version <= kernel_version; }  
    Also, recent versions of the Mali kernel drivers tend to support more 'recent' kernels (4.9 maximum, IIRC), while older versions might have to be patched and adapted to 4.7, 4.8 and 4.9 changes.
     
    That said :
    If you encounter issues with Rockchip r13p0 user-space binary drivers and kernel r16p0 drivers, I could provide some help.
    If you want to try integrating the r13p0 kernel drivers, you could get them here :
    https://developer.arm.com/products/software/mali-drivers/midgard-kernel
    And try playing with my script here :
    https://github.com/Miouyouyou/MyyQi/blob/master/GetPatchAndCompileKernel.sh
    Or you could also try to adapt phusson OOT Mali modules drivers here :
    https://github.com/phhusson/rockchip_forwardports
  5. Like
    Myy got a reaction from tkaiser in RK3328 Kernel   
    Well, I went with the r17p0 drivers with my kernels and the user-space binary drivers work fine, whether it's the rockchip libmali drivers, or the one provided by ARM for Firefly systems (mostly used for fbdev).
     
    The Mali user-space and kernel-space drivers are not directly correlated. They're both needed (although I wonder if it's possible to access the GPU acceleration directly through the kernel interface). However, the user-space binary drivers will work as long as the kernel-space driver version is equal or superior. I guess there's a dumb check like this, in the user space binary drivers.
     
    uint_fast8_t is_kernel_version_valid() { return user_version <= kernel_version; }  
    Also, recent versions of the Mali kernel drivers tend to support more 'recent' kernels (4.9 maximum, IIRC), while older versions might have to be patched and adapted to 4.7, 4.8 and 4.9 changes.
     
    That said :
    If you encounter issues with Rockchip r13p0 user-space binary drivers and kernel r16p0 drivers, I could provide some help.
    If you want to try integrating the r13p0 kernel drivers, you could get them here :
    https://developer.arm.com/products/software/mali-drivers/midgard-kernel
    And try playing with my script here :
    https://github.com/Miouyouyou/MyyQi/blob/master/GetPatchAndCompileKernel.sh
    Or you could also try to adapt phusson OOT Mali modules drivers here :
    https://github.com/phhusson/rockchip_forwardports
  6. Like
    Myy reacted to TonyMac32 in RK3328 Kernel   
    Thanks tkaiser, I obviously didn't look around hard enough.  :-/
     
    *update*
     
    wifi firmware added, kernel config updated, and device tree patched.  Anyone using 4.12 should be able to happily use wifi.
     
    4.11 may not be worth the effort due to it not having any driver support for the rtl8723bs.  You would have to patch in the driver/etc.
  7. Like
    Myy got a reaction from traumfaenger in RK3328 Kernel   
    I remember that they had a repository named "rootfs", which had Debian packages for the proprietary drivers and their video codecs libraries. I see that they renamed it rk-rootfs-build. Their packages worked when I tested them, however they were only generated for one specific version of Debian (Debian 9 I think, if I'm not mistaken), and so they tend to depend on specific outdated components versions sometimes.
     
    Also, since the drivers provided by the ARM Mali team seem to have better support for some technologies, at some points, I made my little aliases scripts to juggle with the different drivers.
     
    That said, on my Gentoo system, I tried to use their drivers to run different KMS/DRM and Wayland GL benchmarks and they work fine. Using mutter and qtwayland was a mess, but I blame these projects for providing terrible error messages and poorly written documentation.
  8. Like
    Myy got a reaction from TonyMac32 in RK3328 Kernel   
    I remember that they had a repository named "rootfs", which had Debian packages for the proprietary drivers and their video codecs libraries. I see that they renamed it rk-rootfs-build. Their packages worked when I tested them, however they were only generated for one specific version of Debian (Debian 9 I think, if I'm not mistaken), and so they tend to depend on specific outdated components versions sometimes.
     
    Also, since the drivers provided by the ARM Mali team seem to have better support for some technologies, at some points, I made my little aliases scripts to juggle with the different drivers.
     
    That said, on my Gentoo system, I tried to use their drivers to run different KMS/DRM and Wayland GL benchmarks and they work fine. Using mutter and qtwayland was a mess, but I blame these projects for providing terrible error messages and poorly written documentation.
  9. Like
    Myy reacted to tkaiser in RK3328 Kernel   
    --> https://github.com/Miouyouyou/MyyQi