Add enable_uart option to snapd for Raspberry Pi

Bug #1750530 reported by Jenny Murphy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Triaged
Wishlist
Unassigned

Bug Description

By default the serial port is disabled on Raspberry Pi3. See description here:

https://www.raspberrypi.org/documentation/configuration/uart.md

"The Linux console can be re-enabled by adding enable_uart=1 to config.txt. This also fixes the core_freq to 250Mhz (unless force_turbo is set, when it will fixed to 400Mhz), which means that the UART baud rate stays consistent."

The config.txt file is writable so it can be manually edited on the installed image as a workaround.

To implement it properly the option should be added to:

snapcore/snapd/blob/master/overlord/configstate/configcore/picfg.go

then it can be set via

snap set core pi-config.enable_uart=1
or via a respective defaults: entry in a custom gadget in the gadget.yaml

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This bug is split between the raspberry pi 3 gadget snap and the snapd snap which implements some of the raspberry pi specific config options. I'll ask my colleagues to look at this.

Changed in snapd:
status: New → Triaged
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.