diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-02-22 08:06:02 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-22 10:24:33 +0100 |
commit | 96a54e50c26624972b82172e7b538167e7a2c9a9 (patch) | |
tree | ef1cf2a121f8a80cea8f6be128b28b0f9b245671 /arch/arm | |
parent | bdc87d8661b6650909de2fa1c4d23721f6a1ce1a (diff) | |
download | barebox-96a54e50c26624972b82172e7b538167e7a2c9a9.tar.gz barebox-96a54e50c26624972b82172e7b538167e7a2c9a9.tar.xz |
block: add VirtIO block device driver
With this driver enabled, -device virtio-blk-device can now be passed
to Qemu for barebox to detect a VirtIO block device mapping a host
file or block device.
If barebox is passed as argument to the Qemu -kernel option, no device
tree changes are necessary.
Example:
$ qemu-system-arm -m 256M -M virt -nographic \
-kernel build/images/barebox-dt-2nd.img \
-device virtio-rng-device \
-drive if=none,file=/tmp/first.hdimg,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-drive if=none,file=/tmp/second.hdimg,format=raw,id=hd1 \
-device virtio-blk-device,drive=hd1
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions