:: Re: [DNG] Booting devuan on a rasbe…
Forside
Slet denne besked
Besvar denne besked
Skribent: hal
Dato:  
Til: dng
Emne: Re: [DNG] Booting devuan on a rasberry pi


On 7/28/19 3:57 PM, hal wrote:
<snip>
>
> Some searching says to add "core_freq=250" or "enable_uart=1" but
> so far still nothing. Any suggestions are appreciated.


Hi,
I got the serial port working. It's a bit of a task. Apparently the
bluetooth integration messed up the serial port configuration so
when you boot, you're actually connected to the bluetooth chip
on /dev/ttyAMA0. You have to fiddle with /boot/config.txt and
/boot/cmdline.txt to restore the serial functionality.

Additionally, I had to launch a getty on /dev/ttyS0 since
the default starts on /dev/ttyAMA0.

Below is what I changed to get a serial port back on the UART
pins:


root@devuan:~# cat /boot/config.txt
## memory shared with the GPU
gpu_mem=128

## always audio
dtparam=audio=on

## maximum amps on usb ports
max_usb_current=1

## enable hardware-accelerated graphics
dtoverlay=vc4-kms-v3d

## kernel
kernel=kernel8.img

enable_uart=1
# core_freq=250 << not needed anymore when using enable_uart=1

# 2019-07-28 - disable bluetooth
dtoverlay=pi3-disable-bt


root@devuan:~# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 console=serial0,115200
root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes
rootwait


root@devuan:~# tail -2 /etc/inittab
# T0:23:respawn:/sbin/agetty -L ttyAMA0 115200 vt100
T0:23:respawn:/sbin/agetty -L ttyS0 115200 vt100