Aditional UART Port on 40 pin header

Post Reply
twinsen
Posts: 4
Joined: Sun May 26, 2019 4:44 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 2 times
Been thanked: 0
Contact:

Aditional UART Port on 40 pin header

Unread post by twinsen » Sun May 26, 2019 10:46 pm

I have an Z-Wave RaZberry card and I want to connect it on 40 pin header.

Image

It seems that the UART port is not active un 8,10 pins and I read on forum that for Odroid C2 the file ($LINUX)/arch/arm64/boot/dts/meson64_odroidc2.dts should be modified
https://odroid.com/dokuwiki/doku.php?id ... pin_header

Can you help me to extend the UART ports for N2 please? In meson64_odroidn2.dts file I didn't found the similar informations.



Another option is to connect the Razberry direct on dedicated UART port , but is not an "elegant" solution
Image

twinsen
Posts: 4
Joined: Sun May 26, 2019 4:44 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by twinsen » Mon May 27, 2019 10:15 pm

Please, someone can help me ?

joshua.yang
Posts: 342
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 9 times
Been thanked: 64 times
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by joshua.yang » Tue May 28, 2019 5:35 pm

Hi.

We've tested for using UART of the 40 pin header. I'm writing a Wiki page.
Please wait. I will be back here as soon as it is published. :)

twinsen
Posts: 4
Joined: Sun May 26, 2019 4:44 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by twinsen » Tue May 28, 2019 6:17 pm

Thank you for you support @joshua.yang.
I'm waiting for the wiki page.

joshua.yang
Posts: 342
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 9 times
Been thanked: 64 times
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by joshua.yang » Wed May 29, 2019 11:56 am

Hi.

I finished that Wiki page.

https://wiki.odroid.com/odroid-n2/appli ... /gpio/uart
Please refer to this.
These users thanked the author joshua.yang for the post (total 2):
phaseshifter (Wed May 29, 2019 6:05 pm) • twinsen (Thu May 30, 2019 2:46 am)

phaseshifter
Posts: 3506
Joined: Fri May 08, 2015 9:12 am
languages_spoken: english
ODROIDs: U-2,U3+,,XU-3,,XU3-LITE,,XU-4
C1+,,C-2,,,
N-1,,N-2,...other odroid acc`s as well
Has thanked: 41 times
Been thanked: 43 times
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by phaseshifter » Wed May 29, 2019 6:06 pm

nice job will help many..!!!
These users thanked the author phaseshifter for the post:
twinsen (Thu May 30, 2019 2:46 am)
Build It And They Will Come...Be Bold And Mighty Forces Will Come To Your Aid..!!!

twinsen
Posts: 4
Joined: Sun May 26, 2019 4:44 pm
languages_spoken: english
ODROIDs: Odroid N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by twinsen » Thu May 30, 2019 2:48 am

Thank's for your support!
I will try to activate the additional UART ports

hugo11
Posts: 1
Joined: Sun Sep 22, 2019 5:23 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by hugo11 » Sun Sep 22, 2019 5:26 am

Hello,

I followed the instructions, but I get the following:

sudo fdtget /boot/dtb-4.9.190-odroidn2/amlogic/meson64_odroidn2.dtb /serial@ffd24000 status
127

-- instead of status "okay" I get 127.

Could someone help please? I'd like to active ttyS1 & S2

User avatar
tony.hong
Posts: 61
Joined: Tue Jun 04, 2019 1:49 pm
languages_spoken: korean
ODROIDs: All
Location: korea
Has thanked: 17 times
Been thanked: 11 times
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by tony.hong » Mon Sep 23, 2019 8:24 am

Hi, hugo11

Which OS did you use?

I tested the instructions below on Ubuntu 18.04.3 LTS (GNU/Linux 4.9.187-52 aarch64).

Code: Select all

$ sudo fdtput -t s /media/boot/meson64_odroidn2.dtb /serial@ffd24000 status "okay"
$ sudo fdtput -t s /media/boot/meson64_odroidn2.dtb /serial@ffd23000 status "okay"
$ sudo reboot
$ ls /dev/ttyS*
/dev/ttyS0  /dev/ttyS1  /dev/ttyS2

joshua.yang
Posts: 342
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 9 times
Been thanked: 64 times
Contact:

Re: Aditional UART Port on 40 pin header

Unread post by joshua.yang » Mon Sep 23, 2019 12:10 pm

@hugo11,

I also confirmed that it works on the latest 4.9.190 kernel.

Code: Select all

root@odroid:~# ls -al /dev/ttyS?
crw--w---- 1 root tty     239, 0 Sep 23 03:06 /dev/ttyS0
crw-rw---- 1 root dialout 239, 1 Jan 28  2018 /dev/ttyS1
crw-rw---- 1 root dialout 239, 2 Jan 28  2018 /dev/ttyS2
root@odroid:~# fdtget /media/boot/meson64_odroidn2.dtb /serial@ffd24000 status
okay
root@odroid:~# fdtget /media/boot/meson64_odroidn2.dtb /serial@ffd23000 status
okay
root@odroid:~# uname -a
Linux odroid 4.9.190-62 #1 SMP PREEMPT Tue Sep 10 01:00:59 -03 2019 aarch64 aarch64 aarch64 GNU/Linux
Are you using our stock kernel image and DTB? If not, could you try it again with a fresh installed Ubuntu image?

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 0 guests