Skip to content
Commit 2284d316 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: default avatarSimon Glass <sjg@chromium.org>
Fixes: a60f7a3e ("bootstd: Add a virtio bootdev")
Reported-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 0821147e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment