[A64] Unable to communicate over UART1

Started by vikas, November 25, 2020, 03:33:57 PM

Previous topic - Next topic

vikas

Hello,

I am using A64-OLinuXino-bionic-base-20201008-215447.img through eMMC  to boot A64. My requirement is to use UART1 PB10,PB12 for communication with external GSM Modem.

I tried loop back not response on pins PB10,PB12.

Please let me know any configuration changes needs to be done.

Thanks,
Vikas

vikas

Hello,

One change, it is UART2(PB0, PB1) not UART1.

LubOlimex

Did you run:

olinuxino-overerlay

The script provides easy way to enable or disable different hardware assignments – different I2C, SPI, UART, CAN, PWM, et.
Technical support and documentation manager at Olimex

vikas

Hello,

Thanks for reply.

Below is list of overlays.

root@a64-olinuxino:/usr/lib/olinuxino-overlays# tree
.
|-- sun4i-a10
|   |-- lcd-olinuxino-10.dtbo
|   |-- lcd-olinuxino-10cts.dtbo
|   |-- lcd-olinuxino-10ts.dtbo
|   |-- lcd-olinuxino-15.6.dtbo
|   |-- lcd-olinuxino-15.6fhd.dtbo
|   |-- lcd-olinuxino-4.3.dtbo
|   |-- lcd-olinuxino-4.3ts.dtbo
|   |-- lcd-olinuxino-5.dtbo
|   |-- lcd-olinuxino-7.dtbo
|   |-- lcd-olinuxino-7cts.dtbo
|   |-- lcd-olinuxino-7ts.dtbo
|   |-- lcd-olinuxino.dtbo
|   |-- lime-i2c2-ar1021.dtbo
|   |-- lime-i2c2-gt911.dtbo
|   |-- lime-i2c2-gt928.dtbo
|   |-- spi0-spidev.dtbo
|   |-- spi0-spiflash.dtbo
|   |-- spi1-spidev.dtbo
|   |-- spi1-spiflash.dtbo
|   |-- spi2-spidev.dtbo
|   |-- spi2-spiflash.dtbo
|   |-- sun4i-a10-can-pa.dtbo
|   |-- sun4i-a10-can.dtbo
|   |-- sun4i-a10-i2c0.dtbo
|   |-- sun4i-a10-i2c1.dtbo
|   |-- sun4i-a10-i2c2.dtbo
|   |-- sun4i-a10-pwm.dtbo
|   |-- sun4i-a10-spi0-pi.dtbo
|   |-- sun4i-a10-spi0.dtbo
|   |-- sun4i-a10-spi1.dtbo
|   |-- sun4i-a10-spi2-pb.dtbo
|   |-- sun4i-a10-spi2.dtbo
|   |-- sun4i-a10-uart2.dtbo
|   |-- sun4i-a10-uart3.dtbo
|   |-- sun4i-a10-uart4.dtbo
|   |-- sun4i-a10-uart5.dtbo
|   |-- sun4i-a10-uart6.dtbo
|   `-- sun4i-a10-uart7.dtbo
|-- sun50i-a64
|   |-- i2c0-ar1021.dtbo
|   |-- i2c0-gt911.dtbo
|   |-- i2c0-gt928.dtbo
|   |-- lcd-olinuxino-10.dtbo
|   |-- lcd-olinuxino-10cts.dtbo
|   |-- lcd-olinuxino-4.3.dtbo
|   |-- lcd-olinuxino-5.dtbo
|   |-- lcd-olinuxino-7.dtbo
|   |-- lcd-olinuxino-7cts.dtbo
|   |-- spi0-spidev.dtbo
|   |-- spi0-spiflash.dtbo
|   |-- spi1-spidev.dtbo
|   |-- spi1-spiflash.dtbo
|   |-- sun50i-a64-i2c0.dtbo
|   |-- sun50i-a64-i2c1.dtbo
|   |-- sun50i-a64-lcd-olinuxino.dtbo
|   |-- sun50i-a64-spi0.dtbo
|   `-- sun50i-a64-spi1.dtbo
|-- sun5i-a13
|   |-- lcd-olinuxino-10ts.dtbo
|   |-- lcd-olinuxino-4.3ts.dtbo
|   |-- lcd-olinuxino-7ts.dtbo
|   |-- spi0-spidev.dtbo
|   |-- spi1-spidev.dtbo
|   |-- spi2-spidev.dtbo
|   |-- sun5i-a13-analog-codec.dtbo
|   |-- sun5i-a13-i2c0.dtbo
|   |-- sun5i-a13-i2c1.dtbo
|   |-- sun5i-a13-i2c2.dtbo
|   |-- sun5i-a13-nand.dtbo
|   |-- sun5i-a13-olimex-vga-1024x768.dtbo
|   |-- sun5i-a13-olimex-vga-800x600.dtbo
|   |-- sun5i-a13-pwm.dtbo
|   |-- sun5i-a13-spi0.dtbo
|   |-- sun5i-a13-spi1.dtbo
|   |-- sun5i-a13-spi2.dtbo
|   |-- sun5i-a13-uart0.dtbo
|   |-- sun5i-a13-uart1.dtbo
|   |-- sun5i-a13-uart2.dtbo
|   |-- sun5i-a13-uart2_cts_rst.dtbo
|   |-- sun5i-a13-uart3.dtbo
|   `-- sun5i-a13-uart3_cts_rst.dtbo
`-- sun7i-a20
    |-- lime-i2c2-ar1021.dtbo
    |-- lime-i2c2-gt911.dtbo
    |-- lime-i2c2-gt928.dtbo
    |-- lime-lcd-olinuxino-10.dtbo
    |-- lime-lcd-olinuxino-10cts.dtbo
    |-- lime-lcd-olinuxino-10ts.dtbo
    |-- lime-lcd-olinuxino-15.6.dtbo
    |-- lime-lcd-olinuxino-15.6fhd.dtbo
    |-- lime-lcd-olinuxino-4.3.dtbo
    |-- lime-lcd-olinuxino-4.3ts.dtbo
    |-- lime-lcd-olinuxino-5.dtbo
    |-- lime-lcd-olinuxino-7.dtbo
    |-- lime-lcd-olinuxino-7cts.dtbo
    |-- lime-lcd-olinuxino-7ts.dtbo
    |-- lime-lcd-olinuxino.dtbo
    |-- lime2-i2c2-ar1021.dtbo
    |-- lime2-i2c2-gt911.dtbo
    |-- lime2-i2c2-gt928.dtbo
    |-- lime2-lcd-olinuxino-10.dtbo
    |-- lime2-lcd-olinuxino-10cts.dtbo
    |-- lime2-lcd-olinuxino-10ts.dtbo
    |-- lime2-lcd-olinuxino-15.6.dtbo
    |-- lime2-lcd-olinuxino-15.6fhd.dtbo
    |-- lime2-lcd-olinuxino-4.3.dtbo
    |-- lime2-lcd-olinuxino-4.3ts.dtbo
    |-- lime2-lcd-olinuxino-5.dtbo
    |-- lime2-lcd-olinuxino-7.dtbo
    |-- lime2-lcd-olinuxino-7cts.dtbo
    |-- lime2-lcd-olinuxino-7ts.dtbo
    |-- lime2-lcd-olinuxino.dtbo
    |-- lime2-sd.dtbo
    |-- micro-i2c2-ar1021.dtbo
    |-- micro-i2c2-gt911.dtbo
    |-- micro-i2c2-gt928.dtbo
    |-- micro-lcd-olinuxino-10.dtbo
    |-- micro-lcd-olinuxino-10cts.dtbo
    |-- micro-lcd-olinuxino-10ts.dtbo
    |-- micro-lcd-olinuxino-15.6.dtbo
    |-- micro-lcd-olinuxino-15.6fhd.dtbo
    |-- micro-lcd-olinuxino-4.3.dtbo
    |-- micro-lcd-olinuxino-4.3ts.dtbo
    |-- micro-lcd-olinuxino-5.dtbo
    |-- micro-lcd-olinuxino-7.dtbo
    |-- micro-lcd-olinuxino-7cts.dtbo
    |-- micro-lcd-olinuxino-7ts.dtbo
    |-- micro-lcd-olinuxino.dtbo
    |-- som-i2c2-ar1021.dtbo
    |-- som-lcd-olinuxino-10.dtbo
    |-- som-lcd-olinuxino-10cts.dtbo
    |-- som-lcd-olinuxino-10ts.dtbo
    |-- som-lcd-olinuxino-15.6.dtbo
    |-- som-lcd-olinuxino-15.6fhd.dtbo
    |-- som-lcd-olinuxino-4.3.dtbo
    |-- som-lcd-olinuxino-4.3ts.dtbo
    |-- som-lcd-olinuxino-5.dtbo
    |-- som-lcd-olinuxino-7.dtbo
    |-- som-lcd-olinuxino-7cts.dtbo
    |-- som-lcd-olinuxino-7ts.dtbo
    |-- som-lcd-olinuxino.dtbo
    |-- som204-atecc508a.dtbo
    |-- som204-emac.dtbo
    |-- som204-i2c2-gt911.dtbo
    |-- som204-i2c2-gt928.dtbo
    |-- som204-lcd-olinuxino-10.dtbo
    |-- som204-lcd-olinuxino-10cts.dtbo
    |-- som204-lcd-olinuxino-10ts.dtbo
    |-- som204-lcd-olinuxino-15.6.dtbo
    |-- som204-lcd-olinuxino-15.6fhd.dtbo
    |-- som204-lcd-olinuxino-4.3.dtbo
    |-- som204-lcd-olinuxino-4.3ts.dtbo
    |-- som204-lcd-olinuxino-5.dtbo
    |-- som204-lcd-olinuxino-7.dtbo
    |-- som204-lcd-olinuxino-7cts.dtbo
    |-- som204-lcd-olinuxino-7ts.dtbo
    |-- som204-lcd-olinuxino.dtbo
    |-- spi0-spidev.dtbo
    |-- spi0-spiflash.dtbo
    |-- spi1-spidev.dtbo
    |-- spi1-spiflash.dtbo
    |-- spi2-spidev.dtbo
    |-- spi2-spiflash.dtbo
    |-- sun7i-a20-can-pa.dtbo
    |-- sun7i-a20-can.dtbo
    |-- sun7i-a20-i2c0.dtbo
    |-- sun7i-a20-i2c1.dtbo
    |-- sun7i-a20-i2c2.dtbo
    |-- sun7i-a20-pwm.dtbo
    |-- sun7i-a20-spi0-pi.dtbo
    |-- sun7i-a20-spi0.dtbo
    |-- sun7i-a20-spi1.dtbo
    |-- sun7i-a20-spi2-pb.dtbo
    |-- sun7i-a20-spi2.dtbo
    |-- sun7i-a20-uart2.dtbo
    |-- sun7i-a20-uart3.dtbo
    |-- sun7i-a20-uart4.dtbo
    |-- sun7i-a20-uart5.dtbo
    |-- sun7i-a20-uart6.dtbo
    `-- sun7i-a20-uart7.dtbo
Could you suggest the relevant overlay. I do not find  under a64 uart related overlays.

I also used olinuxino-overlay command. But it do show any overlay specific to UART.

Best Regards,
Vikas

LubOlimex

I checked it today, it seems there are some problems with it. We are working on fixing it, once we are done you would be able to upgrade via

apt update

apt full-upgrade

and then enable it via:

olinuxino-overerlay

I will update this post when it is ready.
Technical support and documentation manager at Olimex

LubOlimex

Ok it is added in the staging images. Add the staging images to the soruces.list and upgrade. Do the following:

# nano /etc/apt/sources.list

Add line:

deb http://staging.olimex.com/staging bionic main

(if you used bionic image, else use buster or focal instead of bionic)

Save and quit (ALT+X -> Y).

1. Execute

apt update

2. Execute

apt full-upgrade

3. Reboot

Now UART3 should be enabled by default and UART2 can be added via olinuxino-overlay script.
Technical support and documentation manager at Olimex

vikas

Hello,

Thanks for last response. UART3<-->ttyS3 is working. But even after applying overlay for UART2, it is not accessible.

Also, while full-upgrade, I get issue:

"FATAL ERROR: Couldn't open "./initrd.img-5.8.18-olimex": No such file or directory
mkimage: Can't open /boot/kernel.itb.tmp: No such file or directory
run-parts: /etc/kernel/postinst.d/uboot-fit exited with return code 255
dpkg: error processing package linux-image-5.8.18-olimex (--configure):
 installed linux-image-5.8.18-olimex package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-olimex:
 linux-image-olimex depends on linux-image-5.8.18-olimex; however:
  Package linux-image-5.8.18-olimex is not configured yet.

dpkg: error processing package linux-image-olimex (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 linux-image-5.8.18-olimex
 linux-image-olimex
E: Sub-process /usr/bin/dpkg returned an error code (1) "


I believe because of this error, board shill boot from older linux 5.6.14.


LubOlimex

Maybe something didn't upgrade properly, my tests here didn't show similar issue.

Try:

apt-get clean

apt-get update

apt-get -y upgrade

In that order.
Technical support and documentation manager at Olimex