<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
Good day!
<div>I want to compile my network http golang sample using the following command</div>
<div><br>
</div>
<div>make -C build/arm_v8a/ KERNEL=hw BOARD=virt_qemu run/go_http</div>
<div><br>
</div>
<div>Where I can find example of usage virtio nic for arm ?</div>
<div><br>
</div>
<div>I try to use scrcpy sample for universal run file , and add something like below - but it fail:</div>
<div><br>
</div>
<div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
<div>proc binary_nic_drv { } {</div>
<div>if {[have_board linux]} { return "linux_nic_drv" }</div>
<div>if {[have_board pc]} { return "ipxe_nic_drv" }</div>
<div>if {[expr [have_board virt_qemu] <span style="color: rgb(205, 49, 49);">&&</span> [have_spec arm_64]]} { return "virtio_mmio_nic" }</div>
<div>if {[expr [have_board virt_qemu] <span style="color: rgb(205, 49, 49);">&&</span> [have_spec x86_64]]} { return "virtio_pci_nic" }</div>
<div>return "unknown_nic_drv"</div>
<div>}</div>
<br>
</div>
</div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
…</div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
<div style="line-height: 21px;">
<div><br>
</div>
<div>set depot_pkgs "[depot_user]/pkg/[drivers_nic_pkg]"</div>
<div>lappend depot_pkgs [depot_user]/src/[binary_nic_drv]</div>
<br>
<div>if [have_board linux] {</div>
<div>lappend depot_pkgs [depot_user]/src/linux_rtc_drv</div>
<div>} else {</div>
<div>if [have_board pc] {</div>
<div>lappend depot_pkgs [depot_user]/src/rtc_drv</div>
<div>} else {</div>
<div>lappend depot_pkgs [depot_user]/src/dummy_rtc_drv</div>
<div>}</div>
<div>}</div>
<br>
<div>puts $depot_pkgs</div>
<div>import_from_depot $depot_pkgs</div>
<br>
<div></div>
</div>
</div>
<div>(Use <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 21px; white-space: pre; -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255);">binary_nic_drv in config)</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 21px; white-space: pre; -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255);"><br>
</span></div>
<div>…</div>
<div><br>
</div>
<div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
<div>lappend_if $use_nic boot_modules [binary_nic_drv]</div>
<div></div>
</div>
</div>
<div>
<div>…</div>
<div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
<div><br>
</div>
<div>build_boot_image $boot_modules</div>
<br>
<div>append qemu_args " -m $mem_size -nographic -smp $num_cpu"</div>
<div>append_qemu_nic_args "hostfwd=tcp::5555-:80"</div>
<br>
<div>run_genode_until forever</div>
<br>
</div>
</div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
<br>
</div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
Fail:</div>
<div style="-webkit-text-size-adjust: auto; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;">
<br>
</div>
<div> Library stdcxx</div>
<div> Program test/go_http/go_http</div>
<div>make[1]: Leaving directory '/var/services/homes/admin/gen/22.05/build/arm_v8a'</div>
<div>genode build completed</div>
<div>genodelabs/pkg/drivers_nic-virt_qemu genodelabs/src/virtio_mmio_nic genodelabs/src/dummy_rtc_drv</div>
<div>Error: recipe for 'src/virtio_mmio_nic' not found - unable to guess version</div>
<div>make: *** [Makefile:421: run/go_http] Error 1</div>
<div>make: Leaving directory '/var/services/homes/admin/gen/22.05/build/arm_v8a'</div>
</div>
<div></div>
</body>
</html>