Raspberry Pi 2 image LEDs are swapped.

Bug #1574103 reported by Alistair Buxton
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gadget snap for Raspberry Pi 2
New
Undecided
Paolo Pisati
snapd
Fix Released
Medium
Unassigned

Bug Description

I built an image as follows:

sudo ./ubuntu-device-flash --verbose core 16 -o rpi2-all-snap.img --channel stable --enable-ssh --gadget canonical-pi2 --kernel canonical-pi2-linux --os ubuntu-core

and then wrote it to the SD card and booted it in a Pi 2.

The heartbeat is on the disk activity LED (green) and disk activity makes the power LED (red) blink.

Revision history for this message
Michael Vogt (mvo) wrote :

Adding ogra to get his input.

Changed in snappy:
importance: Undecided → Medium
Paolo Pisati (p-pisati)
Changed in snappy:
assignee: nobody → Paolo Pisati (p-pisati)
Revision history for this message
Michael Vogt (mvo) wrote :

AFAICT this is fixed with the latest pi2 images.

Changed in snappy:
status: New → Incomplete
Revision history for this message
John Bryant (bryantj247) wrote :

I just installed Ubuntu Core on my pi2, and it has the heartbeat on the green LED.

Revision history for this message
John Bryant (bryantj247) wrote :

In /boot/uboot/config.txt (https://github.com/snapcore/pi2-gadget/blob/master/configs/config.txt), these lines have 'heartbeat' and 'mmc0' reversed:

dtparam=act_led_trigger=heartbeat
dtparam=pwr_led_trigger=mmc0

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

while landing this fix in the tree is trivial, it will sadly not end up on any devices until https://forum.snapcraft.io/t/updating-bootloader-assets-in-the-gadget-snap is fixed (gadget snap updates currently do not update bootloader bits)

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Gadget updates are currently being worked on

Changed in snappy:
status: Incomplete → In Progress
assignee: Paolo Pisati (p-pisati) → Maciej Borzecki (maciek-borzecki)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The blocker for this bug (gadget updates) is still under development but is now very nearly complete. I'm just stating this for the benefit of anyone interested in this issue.

It's a very complex topic of how to perform updates of certain kind in the field and while it takes a while to complete, the code will allow this bug to be fixed without requiring anyone to re-flash their devices.

affects: snappy → snapd
Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

This should be unblocked now, updating the gadget snap will attempt to update the boot assets.

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

I just discussed this issue with Maciej and the logic is all there. The Raspberry Pi gadget needs to contain update.edition: 1 in the appropriate structure to trigger the update.

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

Re-assigning to Paolo, the snapd side is now fixed. I think this needs a gadget declaration change and it should be good to go.

Changed in snapd:
assignee: Maciej Borzecki (maciek-borzecki) → Paolo Pisati (p-pisati)
Changed in snap-pi2:
assignee: nobody → Paolo Pisati (p-pisati)
Changed in snapd:
assignee: Paolo Pisati (p-pisati) → nobody
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.