Skip to content
Snippets Groups Projects
Commit a710f5b2 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

bootstd: Correct virtio block-device handling


At present virtio tries to attach QEMU services to a bootdev device, which
cannot work. Add a check for this.

Also use bootdev_setup_sibling_blk() to create the bootdev device, since
it allows the correct name to be used and bootdev_get_sibling_blk() to
work as expected.

The bootdev is not created on sandbox since it does have a real virtio
device and it is not possible to read blocks.

Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
Fixes: a60f7a3e ("bootstd: Add a virtio bootdev")
Reported-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 965020c3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment