Jump to content

usual user

Members
  • Posts

    498
  • Joined

  • Last visited

Posts posted by usual user

  1. 20 hours ago, RussianNeuroMancer said:

    Belkin dock is solution with most broad compatibility, and I have to choice but to stick with it for now.

    You probably have a misunderstanding about what this thread is about. It is about to verify if my DT overlay is working in Armbian environment so it can be integrated in Armbian for out of the box operation of Armbian users. It is sufficient to aprove it is working in a similar manner as for me. If a special USB-C device does not work, this is possible to discuss with the patch autor. PD functionality is for NanoPC-T4 out of scope because it has no PD features desined in hardware. The NanoPC-T4 can e.g. operate an additional display via a cost-effective USB-C DP alternative mode adapter.

     

    20 hours ago, RussianNeuroMancer said:

    Please clarify why you think this incompatibility is caused by patch, while even vendor kernel couldn't use this dock as video output on this specific board?

    Vendor kernels are havy out of tree patched to showcase the key features of a specific hardware. But never implement everything perfect. Otherwise noone would have any demand for any update ever. The fact that the NanoPC-T4 vendor kernel does not have functional USB-C DP support is even understandable, as it already has three dedicated display connectors. Support for a fourth one is therefore likely to be a very low priority and left out. But the hardware is there and can be used with proper software, as proven for my environment. If other vendor kernels support your device they have probably some necessary modification in place and aprove the 3399 SOC can drive it.

    Starting here and the following posts you can find success of using USB-C DP with legacy kernel.

  2. IIUC the PINE64 and Firefly image use legacy kernel and don't use this particular kernel patch. Now that the only difference in our setups is the USB DP adapter, IMHO the only sensible way forward is to swap the dock for another DP alternate mode adapter. Swapping the board will not eliminate an incompatibility between the kernel patch and the dock. The USB-C hardware (DTB) seems to be set up correctly otherwise the USB functionality would not work. The DP alternate mode uses the same hardware lanes but only protocolly differently.
    Off topic: Out of curiosity does the offered u-boot influence your Dell UP3017 incompatibility?

  3. Okay, I can only imagine two reasons for this still not working. Either the DP kernel patch doesn't support your DP hardware or u-boot doesn't set up the NanoPC-T4 as needed. To rule out u-boot, apply the extracted u-boot, which can be found here. E.g:

    dd bs=512 seek=64 conv=notrunc if=u-boot-rockchip.bin of=${DEVICE} ; sync

    and test. Replace "${DEVICE}" by your micro-SD device. 

  4. 4 hours ago, RussianNeuroMancer said:

    I see menu but it's seems like it doesn't accept keyboard input, probably due to the fact that my keyboard is attached via USB dock.

    IIUC the extlinux.conf is working with the current kernel for you. The USB keyboard is not expected to work, because mainline uboot does not yet have the necessary support enabled. Boot option selection is only available via serial console for now.

    Extract the tar-gz kernel archive, which can be found here, in your /usr/lib/modules/ directory. E.g.:

    tar -C /usr/lib/modules/ -xzf 5.10.0-98.fc34.aarch64.tgz

    and reboot. Extlinux.conf will pick it up by the default option. To fall back to original kernel without boot option selection, rename the symlink /usr/lib/modules/linux-default, e.g.: linux-default-disabled

  5. On 12/28/2020 at 10:12 PM, hasselh said:

    risk/extra effort that /boot/dtb gets overwritten and I have to adapt & apply the overlay again

    IMHO I think from version 5.10.0 the path won't change again because generic node names have been around since then. Therefore, the same DTBO can always be applied. But as long as the hardware setup doesn't change, there's no reason to ever change the DTB. Therefore, after an update, restoring the DTB from a persistent location  would also be an option.

    But I guess you will have more fun to keep having the boot.scr magic in place. And tinkering with boot.scr magic opens even the option to load the DTB from the persistent location direct or choose a different DTB file name that wouldn't be overwritten.

  6. 14 hours ago, hasselh said:

    Any idea what I might have done wrong ?

    Applies for me flawless.

    fdtoverlay -V
    Version: DTC 1.6.0
    
    fdtoverlay -v -i imx6q-hummingboard.dtb.orig -o imx6q-hummingboard.dtb imx6q-hummingboard-gpio.dtbo
    input  = imx6q-hummingboard.dtb.orig
    output = imx6q-hummingboard.dtb
    overlay[0] = imx6q-hummingboard-gpio.dtbo

    The overlay is written for DTS comming with 5.10.0 kernel. Over time, some node names have been renamed to improve homogeneity. Attempting to apply it to an older release may fail.

  7. On 12/23/2020 at 6:31 PM, hasselh said:

    where do I find any documentation/examples how to properly create the correct DT-overlays for my Hummingboard ?

    Maybe somthing like imx6q-hummingboard-gpio.dts. Compile it with DTC and apply it as follows:

    mv imx6q-hummingboard.dtb imx6q-hummingboard.dtb.orig
    fdtoverlay -i imx6q-hummingboard.dtb.orig -o imx6q-hummingboard.dtb imx6q-hummingboard-gpio.dtbo

    But since I don't know your PAD configuration requirements, I only chose one random one. You
     have to look up your needs yourself.

    imx6q-hummingboard-gpio.dts

  8. 23 hours ago, RussianNeuroMancer said:

    I don't know what components I should check.

    Unfortunately my config and the armbian config diverge quite a lot and it is not easy to identify the relevant differences. The only help I could offer further is to run your environment with my kernel to identify whether the kernel is the culprit or something else.
    If you want to try this, you have to post the output of the following commands:

    cat /proc/cmdline
    ls -hal /boot
    lsblk -o +PARTUUID

    so I can prepare the experiment.

  9. 4 hours ago, hasselh said:

    But how can I tell Armbian to use it at boot time ?

    Either fix the boot.scr magic or switch to distro-boot by inserting an extlinux.conf. For background maybe start reading here and here.

     

    4 hours ago, hasselh said:

    Also, any idea how to mux GPIO pins under 5.x kernels ?

    I usually write DT-overlays for my board extensions and apply them to the base DTB.

  10. 1 hour ago, hasselh said:

    SolidRun Cubox-i Dual/Quad

    Useing imx6q-cubox-i.dtb for hummingboard carrier won't work. You need imx6q-hummingboard.dtb. In my environment I use mainline uboot build with mx6cuboxi target and distro-boot method. This way uboot identifies at which SolidRun imx6 device it is running and selects the appropriate DTB.
    IIRC Armbian uses also mainline uboot but boot.scr magic to select the DTB.

  11. 3 hours ago, RussianNeuroMancer said:

    I wonder if mixed mode (when connector is used for both of USB and DP) is excepted to work at this stage?

    I don't know what the kernel patch code is capable of. Was just through your link aware of its existence ;) I only extended my DT-overlay with the support for the patch. Maybe I'm just lucky it fits my needs. The extcon-cables property may determine to some extent the capabilities, but I see no binding documentation. Since the patch is used by Pinebook Pro and Helios64, there may be some reports about its capabilities to be found there.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines