Skip to content

Init changes#355

Merged
osresearch merged 2 commits into
linuxboot:masterfrom
flammit:init-changes
Mar 15, 2018
Merged

Init changes#355
osresearch merged 2 commits into
linuxboot:masterfrom
flammit:init-changes

Conversation

@flammit

@flammit flammit commented Mar 11, 2018

Copy link
Copy Markdown
Collaborator

This PR moves the network initialization logic to a separate bootscript as well as introduces an optional recovery console in situations where multiple are available.

Tested on qemu-linuxboot, qemu-coreboot, kgpe-d16.

flammit added 2 commits March 10, 2018 15:40
Enabled recovery serial console (tested on kgpe-d16)
Minor fix to kexec-boot to correct xen boot
Remove busybox power utils
Until scripts are changed to use flashtool
@flammit

flammit commented Mar 11, 2018

Copy link
Copy Markdown
Collaborator Author

Tested on x230 now too - slight weirdness with double Heads motd but Qubes 4rc5 USB install is good.

Comment thread config/busybox.config
CONFIG_HALT=y
CONFIG_POWEROFF=y
CONFIG_REBOOT=y
# CONFIG_HALT is not set

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why were these removed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These interfere with the sysrq-based scripts in bin on x230. I think those work always (as long as the kernel has it enabled).

Comment thread boards/x230.config
CONFIG_LINUX_CONFIG=config/linux-x230.config

CONFIG_CRYPTSETUP=y
CONFIG_FLASHROM=y

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really should modify the x230-flash script to use flashtool. It is so much simpler than flashrom and takes up a fraction of the space.

Comment thread initrd/init
# Setup recovery serial shell
if [ ! -z "$CONFIG_BOOT_RECOVERY_SERIAL" ]; then
stty -F "$CONFIG_BOOT_RECOVERY_SERIAL" 115200
pause_recovery 'Console recovery shell' \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this require user intervension on every boot with CONFIG_BOOT_RECOVERY_SERIAL set?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope - you can boot normally via generic-init through the internal serial connected to the BMC. This is just here to enable recovery shell access on the external serial port on the back of the motherboard (in cases when the BMC is not active or down). This allows you to flash openbmc when physically local to the machine. You can also do this remotely if you configure network-init-recovery as the network bootscript (same drop to recovery shell on ssh into the machine)

@osresearch osresearch merged commit dabb181 into linuxboot:master Mar 15, 2018
@flammit flammit deleted the init-changes branch May 6, 2018 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants