Skip to contentSkip to conversation

Booting fails on the sandbox

DISCUSSION Heinrich Schuchardt 2 participants 5 messages Dec 16, 2023 – Dec 18, 2023

lore
Share & tools
lore
#0 lore raw

Hello Simon,

I have built sandbox_defconfig with PREBOOT='host bind 0 ../sct.img'

On the image I have an ESP with file EFI/BOOT/BOOTX64.EFI.

I would expect the sandbox to boot from the ESP.

But when starting the sandbox is does not boot. Instead it shows a menu with some Fedora related entry:

Fedora-Workstation-armhfp-31-1.9 Boot Options.
1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)

This makes absolutely no sense on an x86_64 system. Could you, please, fix sandbox_defconfig to boot according to distroboot.

Best regards

Heinrich

#1 lore raw

Hi Heinrich,

Quoted 9 lines · Heinrich Schuchardt

Hello Simon,

I have built sandbox_defconfig with PREBOOT='host bind 0 ../sct.img'

On the image I have an ESP with file EFI/BOOT/BOOTX64.EFI.

I would expect the sandbox to boot from the ESP.

Quoted 8 lines

But when starting the sandbox is does not boot. Instead it shows a menu with some Fedora related entry:

Fedora-Workstation-armhfp-31-1.9 Boot Options.
1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)

This makes absolutely no sense on an x86_64 system. Could you, please, fix sandbox_defconfig to boot according to distroboot.

What sort of 'fix' are you thinking of? You should be able to discover all the options with 'bootflow scan' and then use 'bootflow select' or 'bootflow menu' to choose which one you want.

The Fedora thing is used for testing and development.

Regards.

Simon

#2 lore raw
Quoted 18 lines · Simon Glass

Hi Heinrich,

Quoted 15 lines · Heinrich Schuchardt

Hello Simon,

I have built sandbox_defconfig with PREBOOT='host bind 0 ../sct.img'

On the image I have an ESP with file EFI/BOOT/BOOTX64.EFI.

I would expect the sandbox to boot from the ESP.

But when starting the sandbox is does not boot. Instead it shows a menu with some Fedora related entry:

Fedora-Workstation-armhfp-31-1.9 Boot Options.
1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)

Quoted 8 lines
Quoted 2 lines

This makes absolutely no sense on an x86_64 system. Could you, please, fix sandbox_defconfig to boot according to distroboot.

What sort of 'fix' are you thinking of? You should be able to discover all the options with 'bootflow scan' and then use 'bootflow select' or 'bootflow menu' to choose which one you want.

The Fedora thing is used for testing and development.

I want to autoboot the sandbox without manual intervention. This requires a sane state.

If that Fedora thingy is only needed in CI, can't we put it into a config segment that only used by the CI scripts and have the sandbox in a generally usable state? Or can we let the Python tests add the otherwise not needed bootflow?

Best regards

Heinrich

#3 lore raw

Hi Heinrich,

Quoted 23 lines · Heinrich Schuchardt
Quoted 21 lines · Simon Glass

Hi Heinrich,

Quoted 17 lines · Heinrich Schuchardt

Hello Simon,

I have built sandbox_defconfig with PREBOOT='host bind 0 ../sct.img'

On the image I have an ESP with file EFI/BOOT/BOOTX64.EFI.

I would expect the sandbox to boot from the ESP.

But when starting the sandbox is does not boot. Instead it shows a menu with some Fedora related entry:

Fedora-Workstation-armhfp-31-1.9 Boot Options.
1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)

This makes absolutely no sense on an x86_64 system. Could you, please, fix sandbox_defconfig to boot according to distroboot.

Quoted 8 lines
Quoted 5 lines

What sort of 'fix' are you thinking of? You should be able to discover all the options with 'bootflow scan' and then use 'bootflow select' or 'bootflow menu' to choose which one you want.

The Fedora thing is used for testing and development.

I want to autoboot the sandbox without manual intervention. This requires a sane state.

Well, stop doing that :-)

Really, sandbox is for development and CI testing. It is not designed to boot anything automatically.

Quoted 5 lines

If that Fedora thingy is only needed in CI, can't we put it into a config segment that only used by the CI scripts and have the sandbox in a generally usable state? Or can we let the Python tests add the otherwise not needed bootflow?

Yes, we could. We have some extra mmc devices which are manually enabled in tests.

But it is handy to be able to try out a distro without doing anything special. I suppose we could add a sandbox command to enable an mmc device in test.dts

If you have ideas / patches that is fine...it's just that I do want to be able to use sandbox for basic development and trying things out.

Regards,
Simon

#4 lore raw

Am 18. Dezember 2023 16:01:36 MEZ schrieb Simon Glass <[email protected]>:

Quoted 32 lines

Hi Heinrich,

Quoted 29 lines · Heinrich Schuchardt
Quoted 26 lines · Simon Glass

Hi Heinrich,

Quoted 9 lines · Heinrich Schuchardt

Hello Simon,

I have built sandbox_defconfig with PREBOOT='host bind 0 ../sct.img'

On the image I have an ESP with file EFI/BOOT/BOOTX64.EFI.

I would expect the sandbox to boot from the ESP.

Quoted 8 lines

But when starting the sandbox is does not boot. Instead it shows a menu with some Fedora related entry:

Fedora-Workstation-armhfp-31-1.9 Boot Options.
1: Fedora-Workstation-armhfp-31-1.9 (5.3.7-301.fc31.armv7hl)

This makes absolutely no sense on an x86_64 system. Could you, please, fix sandbox_defconfig to boot according to distroboot.

What sort of 'fix' are you thinking of? You should be able to discover all the options with 'bootflow scan' and then use 'bootflow select' or 'bootflow menu' to choose which one you want.

The Fedora thing is used for testing and development.

Quoted 7 lines
Quoted 2 lines

I want to autoboot the sandbox without manual intervention. This requires a sane state.

Well, stop doing that :-)

Really, sandbox is for development and CI testing. It is not designed to boot anything automatically.

It is the fastest way to run the UEFI SCT. But that requires an EFI compliant dandbox.

How do you want to test the EFI bootflow on the sandbox when wrecking it?

Quoted 19 lines
Quoted 6 lines

If that Fedora thingy is only needed in CI, can't we put it into a config segment that only used by the CI scripts and have the sandbox in a generally usable state? Or can we let the Python tests add the otherwise not needed bootflow?

Yes, we could. We have some extra mmc devices which are manually enabled in tests.

But it is handy to be able to try out a distro without doing anything special. I suppose we could add a sandbox command to enable an mmc device in test.dts

If you have ideas / patches that is fine...it's just that I do want to be able to use sandbox for basic development and trying things out.

Regards,
Simon