1
當我使用qemu-system-riscv
時,我發現-net
選項不起作用。這是否意味着qemu-system-riscv
不支持添加網絡設備?qemu-system-riscv現在可以添加網絡設備嗎?
當我使用qemu-system-riscv
時,我發現-net
選項不起作用。這是否意味着qemu-system-riscv
不支持添加網絡設備?qemu-system-riscv現在可以添加網絡設備嗎?
是,QEMU-系統riscv僅支持HTIF控制檯或SiFive UART,檢查https://github.com/riscv/riscv-qemu(你可以嘗試定義額外的控制檯/個UART,並開始老牌經典PPP over serial)
目前RISC-V電路板定義僅提供HTIF控制檯設備。從riscv-linux中刪除了對其他基於HTIF的設備的支持;結果,QEMU不再支持他們。
實際上有兩個如此命名的 「板」 用於QEMU RISC-V(虛擬機,它的存儲器及其外圍設備的定義),兩者都在這裏:https://github.com/riscv/riscv-qemu/tree/master/hw/riscv
/* TODO: VIRTIO */
* This provides a RISC-V Board with the following devices: * * 0) HTIF Test Pass/Fail Reporting (no syscall proxy) * 1) HTIF Console * * These are created by htif_mm_init below. * * This board currently uses a hardcoded devicetree that indicates one hart.
sifive_uart_create
)計時器中。完全相同的Virtio實現設備:/* TODO: VIRTIO */
* This provides a RISC-V Board with the following devices: * * 0) UART comptible with that expected by the SiFive U500 SDK * * This board currently uses a hardcoded devicetree that indicates one hart.
非常感謝您的回答。我發現了這個問題,現在我正在使用lowRISC芯片作爲我的實驗平臺來添加以太網支持。 :-) –
@ZesuoWang,lowRISC芯片有沒有網絡支持?還是AXI接口?如果我的答案提供了足夠的詳細信息以檢查qemu中是否存在risc-v的網絡支持,則可以(或不可以)通過點擊左側的「v」形按鈕(接近投票上/下按鈕)來接受它將問題標記爲已回答/已關閉。 – osgx