Skip to content

Not working on Orange Pi #15

@Di-Ny

Description

@Di-Ny

Hi,
I recently experienced problems on Orange Pi with the following command :
sudo insmod soft_uart.ko gpio_tx=68 gpio_rx=71
Answering :

$ insmod: ERROR: could not insert module soft_uart.ko: Cannot allocate memory

I dug a bit and the dmesg command says:

[ 538.321662] soft_uart: Initializing module...
[ 538.321729] soft_uart: Failed initialize GPIO.

Also, it works well with sudo insmod soft_uart.ko gpio_tx=10 gpio_rx=20
I suspect a problem with the WiringOP (wiring Pi equivalent for Orange Pi), and maybe (I hope) just a pin number restriction ? But I could not find such trivial thing in the files

For the record, pin numbering is kind of special on Orange Pi, since when you tell "gpio_tx=10 gpio_rx=20", it will set PA10 and PA20 located on the 35 and 37's pin of the headerpin, and the equivalent wiring Pi is 23, 25. Pin Map for Orange Pi PC
However, SOFTUART seems to take GPIO reference and not WPi ones.

Config :
Orange Pi PC +
SoC : H3, 1 GB RAM
Distro : Armbian Buster
Kernel Headers installed through armbian-config

Any idea how I could make it work ?

Kind regards, Nicolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions