Jump to content

Flash Bootload on STM32 from Orange Pi Zero UART0?


ZeroWalker

Recommended Posts

Because UART0 is already used as debug, as you guess.

Why not use UART1 /dev/ttyS1 (Pin #8 = TX, Pin #10 = RX)?

 

(I use mainline kernel)

mkdir /sys/kernel/config/device-tree/overlays/uart1
cat /boot/dtb/overlay/sun8i-h3-uart1.dtbo > /sys/kernel/config/device-tree/overlays/uart1/dtbo

reboot

Link to comment
Share on other sites

11 hours ago, gungsukma said:

mkdir /sys/kernel/config/device-tree/overlays/uart1
cat /boot/dtb/overlay/sun8i-h3-uart1.dtbo > /sys/kernel/config/device-tree/overlays/uart1/dtbo

reboot

Working with /sys/kernel/config/device-tree/overlays are volatile commands. Doing a "reboot" after is completely useless !

If you wish the overlays been present at boot time, either doing the /sys/kernel/config/device-tree/overlays above commands in /etc/rc.local or enable then in u-boot using "overlays=uart1" in /boot/armbianEnv.txt

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines