tox: use virtio nic driver
This commit is contained in:
parent
1534843747
commit
3312f27035
|
@ -26,7 +26,6 @@ let toArgsXML =
|
||||||
|
|
||||||
let tox-bootstrap =
|
let tox-bootstrap =
|
||||||
Init::{
|
Init::{
|
||||||
, verbose = True
|
|
||||||
, routes =
|
, routes =
|
||||||
[ ServiceRoute.parent "Timer"
|
[ ServiceRoute.parent "Timer"
|
||||||
, ServiceRoute.child "Platform" "platform_drv"
|
, ServiceRoute.child "Platform" "platform_drv"
|
||||||
|
@ -72,7 +71,7 @@ let tox-bootstrap =
|
||||||
, nic_drv =
|
, nic_drv =
|
||||||
Child.flat
|
Child.flat
|
||||||
Child.Attributes::{
|
Child.Attributes::{
|
||||||
, binary = "ipxe_nic_drv"
|
, binary = "virtio_pci_nic"
|
||||||
, provides = [ "Nic" ]
|
, provides = [ "Nic" ]
|
||||||
, resources = Init.Resources::{
|
, resources = Init.Resources::{
|
||||||
, caps = 128
|
, caps = 128
|
||||||
|
@ -124,9 +123,26 @@ let tox-bootstrap =
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
, Init.Config.Policy::{
|
||||||
|
, label = Init.LabelSelector.prefix "test-pci"
|
||||||
|
, content =
|
||||||
|
[ XML.leaf
|
||||||
|
{ name = "pci"
|
||||||
|
, attributes = toMap { class = "ALL" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
, test-pci =
|
||||||
|
Child.flat
|
||||||
|
Child.Attributes::{
|
||||||
|
, binary = "test-pci"
|
||||||
|
, reportRoms = [ label "acpi" ]
|
||||||
|
, config = Init.Config::{ attributes = toMap { rom = "acpi" } }
|
||||||
|
, routes = [ ServiceRoute.child "Platform" "platform_drv" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,9 @@
|
||||||
platform_drv
|
platform_drv
|
||||||
posix
|
posix
|
||||||
report_rom
|
report_rom
|
||||||
|
rom_logger
|
||||||
|
(genodeSources.make "test/pci")
|
||||||
vfs_lwip
|
vfs_lwip
|
||||||
virtdev_rom
|
|
||||||
virtio_nic_drv
|
virtio_nic_drv
|
||||||
]) ++ (with legacyPackages; [ libtoxcore ]);
|
]) ++ (with legacyPackages; [ libtoxcore ]);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user