Uart Raspberry

If it doesn't relate to Debian, but you still want to share it, please do it here

Uart Raspberry

Postby 1dn » 2021-02-02 09:28

Hi all , some sort of newb with debina on singleboards.
im using homeassistant on debina 10 with docker and hardware UART for Zigbee-Hat installed on raspberry 4
found no information how to enanble UART pins on debian. tried raspbian way with enable_uart=1 in config.txt not worked
Code: Select all
Linux rpi4-20201112 5.9.0-0.bpo.5-arm64 #1 SMP Debian 5.9.15-1~bpo10+1 (2020-12-31) aarch64 GNU/Linux
1dn
 
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

Postby arochester » 2021-02-02 09:37

Also, ask your question on the Raspberry Pi Forums where they may be more familiar with the hardware. https://www.raspberrypi.org/forums/
arochester
 
Posts: 1865
Joined: 2010-12-07 19:55

Re: Uart Raspberry

Postby 1dn » 2021-02-02 10:05

but its debian related, and i tested solutions for raspbian but noone works.
1dn
 
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

Postby pylkko » 2021-02-02 19:25

Please provide the source of the operating system you are using. For example, a link where you downloaded it. Otherwise we cannot understand what it contains or doesn't
User avatar
pylkko
 
Posts: 1800
Joined: 2014-11-06 19:02

Re: Uart Raspberry

Postby 1dn » 2021-02-03 08:38

Ok
2020.11.12 4 4 (8GB, 4GB) xz-compressed image, sha256sum, GPG-signed sha256sum Tested: Boots OK, HDMI, wireless networking, USB keyboard.

got it from
https://raspi.debian.net/tested-images/
1dn
 
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

Postby 1dn » 2021-02-03 10:26

Code: Select all
root@rpi4-20201112:/var/log# dmesg | grep tty
[    0.000560] printk: console [tty0] enabled
[    2.969055] fe215040.serial: ttyS1 at MMIO 0xfe215040 (irq = 18, base_baud = 24999999) is a 16550
[    3.839109] printk: console [ttyS1] enabled
[    4.157699] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 16, base_baud = 0) is a PL011 rev2
[    4.167011] serial serial0: tty port ttyAMA0 registered
[   10.382005] systemd[1]: Created slice system-getty.slice.
root@rpi4-20201112:/var/log#
1dn
 
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

Postby pylkko » 2021-02-03 19:07

That is not an official Debian image, but the guy that is making it says that it uses the config.txt file to talk to the firmware just as Raspbian does. So, if whatever you are doing does not work, but it should according to official Raspbian guides, there is a bug that you could try to report to him.
User avatar
pylkko
 
Posts: 1800
Joined: 2014-11-06 19:02

Re: Uart Raspberry

Postby 1dn » 2021-02-04 04:45

ty .ok i might test all it with raspbian(the only distro with working gpio as i read) . if its distro problem im making report.
1dn
 
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

Postby 1dn » 2021-02-04 17:42

starship pi4 capitans journal day 3
testing how it worx on raspbian
Code: Select all
pi@raspberrypi:~ $ dmesg | grep tty
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:3840x2160M@30,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 smsc95xx.macaddr=DC:A6:32:02:06:B7 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyS0,115200 console=tty1 root=PARTUUID=5d5175ea-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.001564] printk: console [tty1] enabled
[    1.426973] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 29, base_baud = 0) is a PL011 rev2


Code: Select all
/dev/ttyAMA* -l
crw-rw---- 1 root dialout 204, 64 Dec 22 18:24 /dev/ttyAMA0
1dn
 
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

Postby dilberts_left_nut » 2021-02-04 19:01

AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 5089
Joined: 2009-10-05 07:54
Location: enzed


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable