[PATCH 0/8] drivers: add VirtIO console, block device support

Sascha Hauer sha at pengutronix.de
Mon Feb 22 04:53:34 EST 2021


On Mon, Feb 22, 2021 at 08:05:56AM +0100, Ahmad Fatoum wrote:
> To make it easier to exchange data with paravirtualized barebox during
> testing, import parts of the VirtIO support in Linux and U-Boot.
> 
> API basically looks like U-Boot's, but driver boilerplate (like having
> a virtio bus) is taken from Linux. Headers are the Linux ones with some
> necessary modifications on top.
> 
> Quite nifty thing is that Qemu will fix up the device tree appropriately,
> so just compile in the drivers and it works. The vexpress_defconfig
> already does this, so this just works:
> 
>   $ qemu-system-arm -m 256M -M virt -nographic                  \
>  	-kernel ./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		        \
> 
> Ahmad Fatoum (8):
>   kbuild: add include/uapi to path
>   driver: Don't throw an error on probes that didn't find the device
>   drivers: add support for memory-mapped VirtIO paravirtualization
>   hw_random: add VirtIO RNG driver
>   serial: add basic VirtIO console driver
>   block: add VirtIO block device driver
>   ARM: vexpress: config: update for VirtIO support
>   Documentation: add Documentation on VirtIO for barebox

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list