Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: attempt at disable-bt



Hi,

The easiest way to use plcom0 as console on RPI0W is to overwrite
bcm2835-rpi-zero-w.dtb with bcm2835-rpi-zero.dtb in your boot
partition, which forces firmware etc. to configure system as RPI0.

Currently, DTB overlay does not work for cumbersome problems;
see more details in the latest my reply to PR port-evbarm/54941:

	http://gnats.netbsd.org/54941

Thanks,
rin

On 2020/10/11 2:20, Patrick Welche wrote:
I just tried to get com0 on the ARM PL011 UART of a rpi zero W by

- grabbing https://github.com/raspberrypi/linux/blob/rpi-5.4.y/arch/arm/boot/dts/overlays/disable-bt-overlay.dts
- removing the #include <dt-bindings/gpio/gpio.h> which from
   https://nxr.netbsd.org/xref/src/sys/external/gpl2/dts/dist/include/dt-bindings/gpio/gpio.h
   doesn't seem to be needed?
- dtc -O dtb -o disable-bt-overlay.dtbo -b 0 -@ disable-bt-overlay.dts
rpiz$ file /boot/dtb/overlays/disable-bt-overlay.dtbo
/boot/dtb/overlays/disable-bt-overlay.dtbo: Device Tree Blob version 17, size=1073, boot CPU=0, string block size=145, DT structure block size=872

- change config.txt to
dtoverlay=disable-bt
#enable_uart=1
#force_turbo=0

but still

plcom0 at simplebus1: ARM PL011 UART
plcom0: txfifo disabled
plcom0: interrupting on icu irq 57
bcmsdhost0 at simplebus1: SD HOST controller
bcmsdhost0: interrupting on icu irq 56
bsciic1 at simplebus1: Broadcom Serial Controller
bsciic1: interrupting on icu irq 53
iic1 at bsciic1: I2C bus
com0 at simplebus1: BCM AUX UART, 1-byte FIFO
com0: console
com0: interrupting on icu irq 29

What else needs to be done to make the PL011 "the" serial port?


Cheers,

Patrick



Home | Main Index | Thread Index | Old Index