Jump to content

[Orange Pi Zero] Use UART0 as regular serial port?


tsmx

Recommended Posts

Armbianmonitor:

Hello.

I have an Orange Pi Zero board with Armbian on it. I want to use its serial pins for flashing arduinos.

Right now I only have 1x3 serial pins and 1x13 media (?) pins soldered, the 2x13 GPIO doesn't have any pins and I don't have any spare ones to solder (alright, I might have some, but I'm too lazy for that).

That means I only have access to UART0 pins which are currently reserved for Linux console.

 

With RPi Zero and Raspbian the same problem was solved by simply removing "console=ttyAMA0,115200" from kernel options. However, Armbian seems to generate kernel options entirely from armbianEnv.txt, making it impossible to manually remove serial console stuff.

I tried setting "console=none" or just deleting this line from armbianEnv, but it just sets console to "both" in boot.cmd and nothing changes.

Any other options?

Link to comment
Share on other sites

7 hours ago, tsmx said:

Any other options?

Edit /boot/boot.cmd instead to remove the "console=ttyS0,115200" part, and recompile the /boot/boot.scr using "mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr".

Make sure /boot/armbianEnv.txt has "console=display" ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines