Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Uart Raspberry

Off-Topic discussions about science, technology, and non Debian specific topics.
Locked
Message
Author
1dn
Posts: 6
Joined: 2021-02-02 08:35

Uart Raspberry

#1 Post by 1dn »

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

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Uart Raspberry

#2 Post by arochester »

Also, ask your question on the Raspberry Pi Forums where they may be more familiar with the hardware. https://www.raspberrypi.org/forums/

1dn
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

#3 Post by 1dn »

but its debian related, and i tested solutions for raspbian but noone works.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Uart Raspberry

#4 Post by pylkko »

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

1dn
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

#5 Post by 1dn »

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

1dn
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

#6 Post by 1dn »

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#

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Uart Raspberry

#7 Post by pylkko »

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.

1dn
Posts: 6
Joined: 2021-02-02 08:35

Re: Uart Raspberry

#8 Post by 1dn »

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

#9 Post by 1dn »

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

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Uart Raspberry

#10 Post by dilberts_left_nut »

AdrianTM wrote:There's no hacker in my grandma...

Locked