How to use virtio qemu nic?

Alexander Tormasov a.tormasov at innopolis.ru
Fri Jun 3 12:12:39 CEST 2022


    Good day!
I want to compile my network http golang sample using the following command

make -C build/arm_v8a/ KERNEL=hw BOARD=virt_qemu run/go_http

Where I can find example of usage virtio nic for arm ?

I try to use scrcpy sample for universal run file , and add something like below - but it fail:

proc binary_nic_drv { } {
if {[have_board linux]} { return "linux_nic_drv" }
if {[have_board pc]} { return "ipxe_nic_drv" }
if {[expr [have_board virt_qemu] && [have_spec arm_64]]} { return "virtio_mmio_nic" }
if {[expr [have_board virt_qemu] && [have_spec x86_64]]} { return "virtio_pci_nic" }
return "unknown_nic_drv"
}

…

set depot_pkgs "[depot_user]/pkg/[drivers_nic_pkg]"
lappend depot_pkgs [depot_user]/src/[binary_nic_drv]

if [have_board linux] {
lappend depot_pkgs [depot_user]/src/linux_rtc_drv
} else {
if [have_board pc] {
lappend depot_pkgs [depot_user]/src/rtc_drv
} else {
lappend depot_pkgs [depot_user]/src/dummy_rtc_drv
}
}

puts $depot_pkgs
import_from_depot $depot_pkgs

(Use binary_nic_drv in config)

…

lappend_if $use_nic boot_modules [binary_nic_drv]
…

build_boot_image $boot_modules

append qemu_args " -m $mem_size -nographic -smp $num_cpu"
append_qemu_nic_args "hostfwd=tcp::5555-:80"

run_genode_until forever


Fail:

 Library stdcxx
  Program test/go_http/go_http
make[1]: Leaving directory '/var/services/homes/admin/gen/22.05/build/arm_v8a'
genode build completed
genodelabs/pkg/drivers_nic-virt_qemu genodelabs/src/virtio_mmio_nic genodelabs/src/dummy_rtc_drv
Error: recipe for 'src/virtio_mmio_nic' not found - unable to guess version
make: *** [Makefile:421: run/go_http] Error 1
make: Leaving directory '/var/services/homes/admin/gen/22.05/build/arm_v8a'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20220603/a62c9dea/attachment.htm>


More information about the users mailing list