Jump to content

martinayotte

Members
  • Posts

    3892
  • Joined

  • Last visited

Posts posted by martinayotte

  1. 3 hours ago, Igor said:

    Pinebook - no screen @martinayotte @Igor

     

    During my latest tests for Pinebook-a64, if I remember correctly, I've took from latest working build 5.7.6 the DTB and I tried to boot in either 5.8.0 or 5.9.1 images, screen is working during first phase of the boot, but then it switch to blank screen, either if it is a desktop or plain text image. So, it is not a DTB issue, but probably a kernel issue ... I tried to compare ".config" between 5.7.6 and other builds, but I didn't figure out what is missing, It maybe also be in the kernel code itself too...

     

  2. 17 hours ago, Perry said:

    Thank you for your help

     

    Ok ! I've never try this over on Rock64, but I did for some other Rockchip boards.

    So, I've just tried and figured out that U-Boot version was not supporting "setexpr" function, so fixup script failed :

     

    ## Executing script at 0900Unknown command 'setexpr' - try 'help'
    Unknown command 'setexpr' - try 'help'
    Unknown command 'setexpr' - try 'help'
    Unknown '
    Unknown command 'setexpr' - tlibfdt fdt_getprop(): FDT_ERR_NOTFOUND
    libfdt fdt_path_offset() returned FDT_ERR_BADPATH

     

    I will check to see if doing new builds will provided newer U-Boot for this board ...

     

    Alternatively, it is possible maybe to workaround by editing main DT instead of using overlay.

  3. 16 hours ago, phelum said:

    Does anybody have a solution here ?

    I suggest to decompile both DTB into DTS and compare them with "meld" ...

     

    16 hours ago, phelum said:

    Or can you tell me where the sources for the dtb and overlay are ?  The copies on github seem old.

    Overlays are added using this patch : https://github.com/armbian/build/blob/master/patch/kernel/sunxi-current/general-sunxi-overlays.patch

    But looking at patches, I saw this patch, so maybe related : https://github.com/armbian/build/blob/master/patch/kernel/sunxi-current/board-cubietruck-enable-uart2.patch

     

  4. 1 hour ago, diozero said:

    FATAL ERROR: Couldn't open "dt-bindings/gpio/gpio.h": No such file or directory

    This error is there because you tried to compile original DTS outside kernel tree.

     

    You should rather decompile existing/working DTB into temporary DTS, edit this one, and recompile it into new DTB.

  5. 3 hours ago, diozero said:

    I'm seeing gpioinfo doesn't include GPIO names

     

    2 hours ago, JMCC said:

    Any insights on this?

     

    I not very familiar with libgpiod and how gpio names are coming from the kernel.

    It seems that all gpios are uname on both Allwinner and Rockchip SoC, but seems that some are present in AmLogic.

    But looking at some of my AmLogic boards, it seems pretty dependent of pin headers of the specific boards by using "gpio-line-names" property in "pinctrl" node in DT.

    This is why Allwinner and Rockchip don't have names, there is no "gpio-line-names" property present in the DT ...

     

    EDIT: BTW, my AmLogic boards are NanoPi-K2 and Odroid-N2 ...

  6. On 10/18/2020 at 5:29 AM, DTS said:

    followed the suggestions of martinayotte

    In my case, I don't have any issue with a DS18B20 plugged on one of my OPiZero, except maybe that I'm using an external pullup ...

     

    root@orangepizero:~# cat /sys/bus/w1/devices/28-000003ebdd28/w1_slave 
    b9 01 4b 46 7f ff 07 10 d1 : crc=d1 YES
    b9 01 4b 46 7f ff 07 10 d1 t=27562

     

  7. 3 hours ago, Zamana said:

    overlays=usbhost2 usbhost3 w1-gpio

    While adding w1-gpio in /boot/armbianEnv.txt, you don't need to add it in /etc/modules-load.d/modules.conf ...

    But you need to add "param_w1_pin=PD10" in /boot/armbianEnv.txt as well, otherwise it is defaulted to PD14.

  8. 18 hours ago, jgauthier said:

    Is this the wrong approach?

    What kind of board are you using ?

    Your "gpio" tool seems to have been compiled for the wrong board, because PA7 should be named GPIO7 not GPIO21 ...

    Try using gpio sysfs :

    echo 7 > /sys/class/gpio/export
    echo out > /sys/class/gpio/gpio7/direction 
    echo 0 > /sys/class/gpio/gpio7/value 

     

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines