Jump to content

martinayotte

Members
  • Posts

    3892
  • Joined

  • Last visited

Posts posted by martinayotte

  1. 1 hour ago, B3RN0UT said:

    E.g for PD25 this would be ( 4 - 1) * 32 + 25 = 121 + 25 = 146 (since 'd' is the 4th letter).

    Nope ! it should be read as :

    PD25 this would be ( 4 - 1) * 32 + 25 = 96 + 25 = 121

     

    1 hour ago, B3RN0UT said:

    I'm unsure what exactly is the mentioned Pin

    No, it is not header pin number but GPIO name

  2. In Armbian Mainline, the SPI is enabled using an overlay. For that you need to add "overlays=spi-spidev" in /boot/armbianEnvt.txt and then reboot.

    For longsleep images, I think you need to enable the SPI simply by changing 'status="disalbed"' to 'status="okay"' in its DT.

     

  3. The output you've posted earlier :

     root@pine64:~# fdisk -l /dev/sda
    
    Disk /dev/sda: 28.9 GiB, 31043616768 bytes, 60632064 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes

    It seems incomplete since it doesn't show any partition ...

     

    With proper partitioning, it should look like :

    root@pine64:~# fdisk -l /dev/sda
    Disk /dev/sdb: 29.8 GiB, 32026656768 bytes, 62552064 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x000c3d6a
    
    Device     Boot Start      End  Sectors  Size Id Type
    /dev/sda1        2048 61926527 61922432 29.5G 83 Linux

     

  4. The output of "fdisk -l /dev/sda" doesn't show any partition ...

    But strangely, the previous log mentioned you have /dev/sda1.

    Are you sure you provided the complete output of fdisk ?

     

  5. The H3 SPI has 64 bytes FIFO, so where did you find that it is 16 bytes ?

    Why do you think that your issue is coming from FIFO size since smart card reader usually has short messages ?

    In Mainline, we are applying a patch for interrupt driven FIFO that let manage messages up to 65535 bytes.

     

  6. With a little search, you would have found that : http://linux-sunxi.org/GPIO

     

    In summary, all SoC from AllWinner use the same formula :

    (position of letter in alphabet - 1) * 32 + pin number

    For OpiPC2 specific, look at the schematic :

    http://linux-sunxi.org/File:ORANGE_PI-PC2-V1_2_schematic.pdf

     

    For Python library, use https://github.com/duxingkei33/orangepi_PC_gpio_pyH3

    But for any 64 bits, you need to fix a small issue : change all references to SUNXI_PIO_BASE in gpio_lib.h/gpio_lib.c from "unsigned int" to "unsigned long" to have a 64 bits pointer.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines