Jump to content

Radxa zero - overlay not working (UART_AO_B, UART_EE_C)


Mango Jo

Recommended Posts

Hi, 

 

Like the title says the UART overlays are not working on the armbian radxa zero device if I use the official out-of-the-box image. 

 

Using the armbian-config I can enable UART A and B but these changes do not reflect in the /dev/tty devices (using other distros is can see /dev/ttyAML0, /dev/ttyAML1 and /dev/ttyAML4). Unless the devices are called something else i confirm that the overlays are not working. 

 

That being said I want to recompile a armbian image with the correct overlays but I am a complete noob. 

 

Here is my plan : 

 

i successfully compiled a minimal cli armbian image for the radxa zero without any modification (whooohoo)

 

i found the overlays from the official radxa github (whooohoo) : https://github.com/radxa/overlays/blob/main/arch/arm64/boot/dts/amlogic/overlays/README.overlays

 

Now i want to include these overlays in the armbian project so that they can be compiled in the image.

Reading the documentation i think that i need to include these files somewhere in the package directory:

image.png.d417993f6ec522bfdcca6b946aa0a8fe.png

 

or somewhere in the config directory

image.png.90b144b89ce722f5acff30b28151393c.png

 

I also think I need to include some compiling instructions. 

 

I feel like I'm so close but at the same time, I feel like I'm so far. 

 

Any direction is very much appreciated.

Thank you

 

ps the board is officially supported but I can't find the appropriate topic.

 

 

Link to comment
Share on other sites

Try these: https://github.com/pyavitz/debian-image-builder/tree/feature/patches/overlays/arm64

 

As for them showing up under /dev correctly, I believe we would need to do a PR to add the aliases to the DTS.

 

 	aliases {
 		serial0 = &uart_AO;
+		serial1 = &uart_AO_B;
+		serial2 = &uart_A;
+		serial3 = &uart_B;
+		serial4 = &uart_C;
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		i2c2 = &i2c2;
+		i2c3 = &i2c3;
+		i2c4 = &i2c_AO;
+		spi0 = &spicc0;
+		spi1 = &spicc1;
+		spi2 = &spifc;
 	};

 

radxazero: ~  $ ls /dev
autofs           initctl       ram0    snd     tty23  tty42  tty61    vcs6
block            input         ram1    stderr  tty24  tty43  tty62    vcsa
btrfs-control    kmsg          ram10   stdin   tty25  tty44  tty63    vcsa1
bus              kvm           ram11   stdout  tty26  tty45  tty7     vcsa2
cachefiles       log           ram12   tty     tty27  tty46  tty8     vcsa3
cec0             loop-control  ram13   tty0    tty28  tty47  tty9     vcsa4
char             mapper        ram14   tty1    tty29  tty48  ttyAML0  vcsa5
console          mem           ram15   tty10   tty3   tty49  ttyAML1  vcsa6
cpu_dma_latency  mmcblk1       ram2    tty11   tty30  tty5   ttyAML4  vcsu
disk             mmcblk1boot0  ram3    tty12   tty31  tty50  udmabuf  vcsu1
dma_heap         mmcblk1boot1  ram4    tty13   tty32  tty51  uhid     vcsu2
dri              mmcblk1p1     ram5    tty14   tty33  tty52  uinput   vcsu3
fb0              mmcblk1p2     ram6    tty15   tty34  tty53  urandom  vcsu4
fd               mmcblk1rpmb   ram7    tty16   tty35  tty54  userio   vcsu5
full             mqueue        ram8    tty17   tty36  tty55  v4l      vcsu6
fuse             net           ram9    tty18   tty37  tty56  vcs      vga_arbiter
gpiochip0        null          random  tty19   tty38  tty57  vcs1     video0
gpiochip1        port          rfkill  tty2    tty39  tty58  vcs2     watchdog
hwrng            ppp           rtc     tty20   tty4   tty59  vcs3     watchdog0
i2c-3            ptmx          rtc0    tty21   tty40  tty6   vcs4     zero
i2c-5            pts           shm     tty22   tty41  tty60  vcs5     zram0
radxazero: ~  $ cat /boot/ext*/ext*
label default
	kernel ../Image
	initrd ../uInitrd
	fdtdir ../amlogic/
	fdt ../amlogic/meson-g12a-radxa-zero.dtb
	fdtoverlays ../amlogic/overlays/meson-g12a-radxa-zero-gpio-8-led.dtbo ../amlogic/overlays/meson-g12-gxl-cma-pool-896MB.dtbo ../amlogic/overlays/meson-g12a-radxa-zero-uart-ee-c.dtbo ../amlogic/overlays/meson-g12a-radxa-zero-uart-ao-b-on-gpioao-8-gpioao-9.dtbo
	append earlyprintk console=tty1 console=ttyAML0,115200n8 console=both rw root=PARTUUID=2c552180-02 rootwait rootfstype=xfs fsck.repair=yes loglevel=1 net.ifnames=0 no_console_suspend init=/sbin/init

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines