Bug 11446

Summary: Flexibility and configurability to boot from any partition
Product: [Build System, Metadata & Runtime] BSPs Reporter: Chin Kooi KHOR <chin.kooi.khor>
Component: bsps-configurationAssignee: sweeaun <swee.aun.khor>
Status: RESOLVED OBSOLETE QA Contact:
Severity: enhancement    
Priority: Medium CC: mei.yeen.ng, mikko.ylinen, randy.macleod, yp.bsp.watcher, yp.watcher
Version: 2.4   
Target Milestone: 2.4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Chin Kooi KHOR 2017-05-03 12:53:53 UTC
Default boot is from second partition. Request to provide flexibility and configurability to boot from any partition.
Comment 1 Mikko Ylinen 2017-05-11 14:51:53 UTC
(In reply to comment #0)
> Default boot is from second partition. Request to provide flexibility and
> configurability to boot from any partition.

FYI: Ed is working on a related topic in bug 10073. 

Can you be more specific in which configuration the default is 'second partition'.
Comment 2 sweeaun 2017-05-12 01:32:54 UTC
Miko,

Thanks for remind Ed's work on bug 10073. 

Just to clarify, it should be "Default boot is from first partition" instead of "Default boot is from second partition"

This bug is to provide flexibility to boot from other partition instead of first partition.
Comment 3 Mikko Ylinen 2017-05-12 03:29:44 UTC
(In reply to comment #2)
>
> 
> This bug is to provide flexibility to boot from other partition instead of
> first partition.

What kind of flexibility? An option in the bootloader menu or a build time setting?
Comment 4 sweeaun 2017-05-12 07:21:04 UTC
Based on our investigation so far, system-boot doesn't allow to boot from another partition. 
At this point, we thought of trying to change the startup.nsh file which happened before system-boot. We still on the investigation stage to find a way for this.
Comment 5 Mikko Ylinen 2017-05-12 11:43:25 UTC
(In reply to comment #4)
> Based on our investigation so far, system-boot doesn't allow to boot from
> another partition. 

Is this with refkit or with core-image? If it's the latter, it's possible to install multiple labels that show in the boot menu.
Comment 6 sweeaun 2017-05-16 01:43:40 UTC
It is with core-image-minimal. 

We tried to add multiple labels that show in the boot menu(add more conf file in entries directory), but that only allow boot Images that within the partition. 

We added startup.nsh script in the boot partition and that allow us to boot Images from different partition. We are double checking with requester about this requirement before do implementation.
Comment 7 sweeaun 2017-05-22 23:17:49 UTC
we able to boot from other boot partition by using EFI script (startup.nsh) at EFI boot partition. 
However, requestor decided not to pursue this implementation as they will redefine the requirement.
Comment 8 sweeaun 2017-05-31 08:13:57 UTC
This requirement is not valid now.