console= cmdline options on the RPi2 should be moved from uboot.env to cmdline.txt

Bug #1500164 reported by Oliver Grawert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Medium
Unassigned

Bug Description

There is a lot of online documentation to set up different hats (addon boards) on a RPi2 ... some of them use the serial port and have instructions how to disable the serial console by dropping "console=ttyAMA0" from the cmdline.txt file.

Snappy currently sets the console= options from a uboot var that is set in uboot.env instead:

(RaspberryPi2)ubuntu@localhost:~$ fw_printenv |grep console
mmcargs=setenv bootargs "${args} console=tty0 console=ttyAMA0 root=${mmcroot}"

to drop the serial console option you would have to:

(RaspberryPi2)ubuntu@localhost:~$ sudo fw_setenv mmcargs 'setenv bootargs "${args} console=tty0 root=${mmcroot}"'
(RaspberryPi2)ubuntu@localhost:~$ fw_printenv |grep console
mmcargs=setenv bootargs "${args} console=tty0 root=${mmcroot}"

while this is as easy as editing a text file it will be hard to find for users trying to follow online docs that point to cmdline.txt instead.
all console= options should be moved over to not add confusion over third party documentation.

Oliver Grawert (ogra)
description: updated
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1500164] [NEW] console= cmdline options on the RPi2 should be moved from uboot.env to cmdline.txt

Ideally, we need to find a *safe* way for the gadget snap to do what's
needed here. We want to avoid any manual editing of files at all. Instead:

 * there's a declarative format in the gadget snap which covers
everything needed
 * there's some *safe* way for the system to adapt to that declaration

Revision history for this message
Oliver Grawert (ogra) wrote :

well, i'd see that gadget snap implementation as a broader long term solution that will also have to manage devicetree overlays and more.

for the short terrm i think we should still match online documentation (i doubt we'll have some fully fledged generic solution for the bootloader setup by next stable release in "snappy config", so moving to the upstream default as interim should still happen)

Changed in snappy:
status: New → In Progress
assignee: nobody → Oliver Grawert (ogra)
importance: Undecided → Medium
Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1500164] Re: console= cmdline options on the RPi2 should be moved from uboot.env to cmdline.txt

Agreed, thanks Ogra.

Revision history for this message
Leo Arias (elopio) wrote :

ogra, could you update the progress about this issue, please?

Revision history for this message
Oliver Grawert (ogra) wrote :

@leo: (sorry that bug was somehow under the radar) ... the options moved a while ago, but i kept the bug itself still open to track the gadget side ...

Revision history for this message
Leo Arias (elopio) wrote :

thanks for the info.

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

@ogra is this still in progress? If you are not actively working on this could you kindly please update the state of the bug.

Revision history for this message
Oliver Grawert (ogra) wrote :

looking at

https://github.com/snapcore/pi3-gadget/blob/16/configs/cmdline.txt

this seems to be fixed ... but for final confirmation please contact foundations (not sure this gadget branch is even still teh default one in use)

John Lenton (chipaca)
Changed in snappy:
assignee: Oliver Grawert (ogra) → nobody
Revision history for this message
John Lenton (chipaca) wrote :

Setting to fix-released; please re-open if it wasn't.

Changed in snappy:
status: In Progress → Fix Released
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.