Neil Armstrong

Members
  • Content Count

    33
  • Joined

  • Last visited

 Content Type 

Forums

Member Map

Store

Crowdfunding

Raffles

Everything posted by Neil Armstrong

  1. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    And this behavior in only since 4.19 ?
  2. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    @TonyMac32 With witch screen do you still have an issue you didn't had with the previous kernel releases ?
  3. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    @Tommy21You won't have OpenGL acceleration, but yes should be able with the actual images. With a Bionic ubuntu desktop image, you should be able to select wayland gnome at the login prompt.
  4. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    @Tommy21 No need to wait, it already works
  5. Neil Armstrong

    NanoPi K2 General Topics

    Seems you found the solution !
  6. Neil Armstrong

    Le Potato - writing armbian to eMMC

    We plan to use https://github.com/superna9999/pyamlboot for LaFrite, but it works on LePotato aswell, and it will be supported by the next U-boot version (in master right now https://github.com/u-boot/u-boot/commit/d96a782d09dbdc4a28ece3d18dc17a572e39d4f2) We still need to generate a generic initramfs+kernel image to flash anything.
  7. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    @TonyMac32the overalloc is for the fbdev variant only, which won't work at all on 4.19 (needs a dirty quirk to enable it back which will land on 4.20 https://www.spinics.net/lists/dri-devel/msg191151.html), if you plan to use the X11, Wayland or GBM variant you should use the CONFIG_DRM_FBDEV_OVERALLOC=100 default config For USB, this patch https://github.com/chewitt/LibreELEC.tv/blob/amlogic/projects/Amlogic/patches/linux/linux-9999-dwc2.patch should solve your issue for the K2 and C2.
  8. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    Yes this is normal since there is no HW OpenGL acceleration yet ! (But Lima is beginnning to be usable !) @TonyMac32i think I the last issue for your 4K display : drop the CONFIG_DRM_FBDEV_OVERALLOC=300 to CONFIG_DRM_FBDEV_OVERALLOC=100 this 300 value is only used for the libMali fbdev, otherwise it’s useless and a waste of memory !
  9. Neil Armstrong

    how to enable UART on Nano Pi K2?

    @martinayotte well the person who posted the patch didn’t answer back to repost it in a correct way and we have very few users of s905 using this port...
  10. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    @TonyMac32 weird stuff, could you dump the DRI driver status in /sys/kernel/debug/dri at each step ? same for EDID, EDID+status when freshly booted and non-working screen, and the same with it's working Thanks ! @guidol can you dump the output of read-edid in binary format ? the parse-edid gives Xorg format output, which is not the best :-p Neil
  11. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    Oh yeah for the Ethernet, you should really take this fix https://patchwork.kernel.org/patch/10712159/ The IRQ type was wrong since the beginning... not it works correctly...
  12. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    Hi @TonyMac32 I'm having a look at this. First, please apply these 2 fixes to remove the kernel warnings : https://github.com/freedesktop/drm-misc/commit/2bcd3ecab773f73211c45bb1430bb52ac641f271 https://github.com/freedesktop/drm-misc/commit/995b278e4723b26f8ebf0e7c119286d16c712747 (They will be backported to 4.19 in the next weeks) Can you try powering the monitor on an external power source, then power the board with the display already powered ? I have an issue with USB Displays, since the kernel enables the USB power very late, the monitor EDID is not available and the kernel fallsback automatically to 1024x768 resolution. This could explain why if you unplug/replug, it works. Powering the display *before* could solve this, the solution is to enable the 5V USB power from U-Boot. You can also try adding "usb start" in the boot script before starting the kernel. @guidolyour monitor seems weird ! Could you provide the EDID of the monitor ? Could you try this patch https://patchwork.freedesktop.org/patch/254756/ this should avoid the "*ERROR* Failed to set fbdev configuration" error ?
  13. Neil Armstrong

    Le Potato / C2 / K2 4.19 LTS testing thread

    Hi @TonyMac32! thanks for these reports, I really near 0 report rate on the display support... so it’s cool to have something at least ! If you need to plug the displays after boot is because they depends on the usb 5v which is enabled too late in the boot and the display driver fails to get a correct EDID table for the monitor and falls back to 1024x768 which is not always supported by the small displays. The simplest way is to enable the 5v regulator from u-boot, but it needs a patch. can you give me the /sys/kernel/debug/dri content and the edid of the dvi adapter in /sys/class/dri/HDMI-A-1/edid for the cec issue, no idea at all !! On which board does this happens ? And on which monitor ? for the -5 clock issue, did you apply chewitt’s « clk_div3 » patch aswell ?
  14. Neil Armstrong

    how to enable UART on Nano Pi K2?

    @TonyMac32 Here is a fix : https://lore.kernel.org/patchwork/patch/949665/
  15. Neil Armstrong

    Le Potato general topics

    @TonyMac32 yeah, I know this one, and I need to solve it. Hopefullyt it won't harm, it's just a warning I need to solve and find time to solve it...
  16. Neil Armstrong

    Le Potato general topics

    @TonyMac32 Yep I forgot this fix for the audio... for 4.18 you will need to take a rework of the audio driver since a lot changed in ALSA. The cpufreq error this is solved with https://patchwork.kernel.org/patch/10462135/ It’s the main issue for this error, and this solved it. I don’t have other cases for this error
  17. Neil Armstrong

    Le Potato general topics

    @TonyMac32 this one is just a warning, it will disappear on 4.18 (4.19 ?) by itself, don't worry
  18. Neil Armstrong

    Le Potato general topics

    Hi @TonyMac32 this patch will solve the issue on 4.17 and 4.18-rc3 : https://patchwork.kernel.org/patch/10462135/ it should be merged for -rc4 and hopefully be backported to 4.17 next week
  19. Neil Armstrong

    Thanks for the fish!

    @mboehmer great job ! I’m happy it’s finally working !
  20. Neil Armstrong

    Le Potato Wake/Power ON by IR Remote

    Power-Off and Suspend is managed by the same code. The code I linked is build in the "FIP" binaries packages with U-boot, these can be changed to match the platform. It's technically part of u-boot, but is build in the same time in the amlogic source tree. Under Linux, each driver would need to setup the registers to permit the Cortex-M3 to acknowledge the inputs and wakeup.
  21. Neil Armstrong

    Le Potato Wake/Power ON by IR Remote

    The wakeup from power-off is indeed managed by the Cortex-M processor with some code loaded in the boot time. This code can be modifier and is present in amlogic's u-boot source : https://github.com/BayLibre/u-boot/blob/n-amlogic-openlinux-20170606/board/amlogic/gxl_p212_v1/firmware/scp_task/pwr_ctrl.c#L184 But, it's linked to the Amlogic kernel implementation, and supporting it with mainline linux will need some work.
  22. Neil Armstrong

    Mainline u-boot meson64

    @TonyMac32 It's not an issue, u-boot will cycle over all mmc interfaces, numbers are unrelated, mmc0 is the first mmc interfaces, on Potato it's the SDCard.
  23. Neil Armstrong

    Mainline u-boot meson64

    @TonyMac32I took your changes and wrote the README to generate the binary and tested it, it worked like a charm ! https://github.com/superna9999/u-boot/commits/u-boot/topic/nanopi-k2 I can push them to uboot uptream if you can validate it also works on your side
  24. Neil Armstrong

    Mainline u-boot meson64

    @TonyMac32 Ok i didn't find the patch myself... There is no real magic in FIP. The problem is that HardKernel make some changes to the u-boot build system for the FIP stuff, but the K2 follows the "standard" AMlogic way to build it. So it should be more like the GXL based uboot, but for GXBB. Do you want to push the patch to u-boot upstream ? I can push it and retain your authorship if you want.
  25. Neil Armstrong

    Mainline u-boot meson64

    @TonyMac32 Hi, I just realized you were making a K2 port of U-boot. First, avoid 2018.03 since the MMC driver is buggy and crashes at boot, switch to 2018.05 or 2018.01. Did you push your code somewhere ? I'll be interested to have it pushed on U-boot mainline !