canonical / pi-gadget

Universal pi (pi2,pi3,pi4,cm3,cm4 and future) gadget snap for Ubuntu Core and classic systems.
36 stars 62 forks source link

gadget: add placeholder partion for boot select #38

Closed kubiko closed 4 years ago

kubiko commented 4 years ago

Raspberry foundation is working on support of boot selection and automatic rollbacks in firmware. There is possibly going to be additional writable partition used for message passing between firmware and user space Add placeholder partition, so we can avoid repartitioning later

Signed-off-by: Ondrej Kubik ondrej.kubik@canonical.com

kubiko commented 4 years ago

@mvo5 @waveform80 please consider this placeholder partition so we can possibly replace u-boot with raspberry firmware when it supports all features we require from bootloader

xnox commented 4 years ago

bootselect is an existing role, which might be used in the future by the future stock pi bootloader.

Currently set as 5MB, which is an aligned value, i'm happy to use either 4MB or 8MB, and hopefully putting this in place will not degrade current pi images.

anonymouse64 commented 4 years ago

We can't do this until we have GPT partition scheme, as we now up to the max number (4) of primary partitions with MBR partition scheme.

Additionally, the pi bootloader has gained some (which seems to be "enough") support for trying assets recently which does not require another partition, so I think we are okay to close this PR until we have more information from the pi foundation.

xnox commented 4 years ago

I think tryboot is what we will use, indeed.

kubiko commented 4 years ago

yep, tryboot it is. +1 to close this