Check out /boot/dtb/amlogic/overlay which contains some device tree overlays, including “uartA” and “uartC”. I’m not sure which one is enabled on the pins you want, respectively is attached to /dev/ttyAML1, but you can try them out.
Enable them by adding (starting with) uartA to the overlays= line in /boot/dietpiEnv.txt. No quoting or anything needed, just add an overlay right behind the = sign, or separated with a space if there is an overlay already. Generally use the filenames and remove .dtbo extension and prefix (meson- in this case).
I tried “uartA” and also “uartC” but no luck. When it’s working I must see this ttyAML1 somewhere ?
Maybe prefix must be really “meson-” I used what was already there “meson”
I also tried communication to ttyS but also not working
but I know that it was ttyAML1 and it also there : https://dietpi.com/forum/t/enabling-uart-on-odroid-n2/13754/5
with some code for uart enabling, but I don’t know how to use and if it’s possible to use.
So to be sure, I connected usb to rs 232 adapter and ebus is working, so it’s really dietpi update problem. After update uart on the board is disabled. So now I need to get working again. I will be grateful for any help.
When I installed dietpi first time, I did nothing. Port ttyAML1 was all the time here. So in the dietpi-config I switched on and communication on the pin 8 and 10 was working.
It doesn’t matter now, now I need to know how to activate it again
Why are you not using the default debug console on /dev/ttyAML0 which is present and also enabled for boot messages and with a login console by default? It’s this dedicated 4 pins connector on the PCB.
Btw, do not use the Odroid Wiki for such info, as it refers to the vendor kernel, not mainline kernel.
After enabling the device tree overlays, are there additional /dev/ttyAML* or /dev/ttyS* devices? Probably they are there and you just need to enable a login console for them.
AML0 I did not tested, because is hard for me connect to this pins and yes, there can be a some console communication which I don’t know how ebus adapter will interpret.
Which instruction to use to check actual running devices ? I will try before overlays modification and after to be able answer you correctly.
I’ll however test/verify this on my Odroid N2+ and see whether it can be trivially fixed, respectively whether there is a simple functional status toggle for UART1.
So we need to check whether /proc/device-tree/soc/bus@c1100000/serial@84c0/status and /proc/device-tree/soc/bus@c1100000/serial@8700/status still exist or whether something changed about this with recent Linux.
Hi, thank you for your answer. Question from my side is, what to do to get working again (before update/upgrade) it was working. For me (as quite newby) it’s not clear.
Or, is there any way to install “old” dietpi version and disable dietpi upgrade which is disaster for me?
Uh, ttyAML6, I wanted ttyAML1 . Tested all others:
/proc/device-tree/soc/bus@ffd00000/serial@22000 => ttyAML6 as well .
Tested the other two, and in all cases /dev/AML6 is present. I checked the device tree nodes and the one defined was set to “okay” as expected. Also when removing the overlay, /dev/ttyAML6 is gone.
Something is a little broken with this device tree. However, probably you can test the above first overlay with /dev/ttyAML6 and see whether this works on the pin you previously used: