2019-05-22 08:32:44 +00:00
|
|
|
assert_spec x86
|
|
|
|
|
|
|
|
if {(![have_spec nova] && ![have_spec foc])} {
|
2015-06-08 22:45:34 +00:00
|
|
|
puts "Platform is unsupported."
|
|
|
|
exit 0
|
|
|
|
}
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2015-01-08 21:09:08 +00:00
|
|
|
if {[have_include "power_on/qemu"]} {
|
2014-07-10 06:35:23 +00:00
|
|
|
puts "\nRun script does not support Qemu.\n"
|
2014-02-12 12:53:42 +00:00
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2017-08-14 08:50:00 +00:00
|
|
|
if { [get_cmd_switch --autopilot] && [have_spec x86_32] } {
|
|
|
|
puts "Run script does not support autopilot mode on 32 bit"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2018-05-31 09:19:31 +00:00
|
|
|
if {[have_spec nova]} {
|
2024-05-02 09:26:25 +00:00
|
|
|
proc kernel_output { } { return "logmem" }
|
2018-05-31 09:19:31 +00:00
|
|
|
}
|
|
|
|
|
2019-03-04 12:53:40 +00:00
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
2021-05-25 11:40:09 +00:00
|
|
|
[depot_user]/src/fs_rom \
|
2019-03-04 12:53:40 +00:00
|
|
|
[depot_user]/src/init \
|
2021-05-25 11:40:09 +00:00
|
|
|
[depot_user]/src/libc \
|
|
|
|
[depot_user]/src/libiconv \
|
2020-07-23 13:14:54 +00:00
|
|
|
[depot_user]/src/nitpicker \
|
2021-05-25 11:40:09 +00:00
|
|
|
[depot_user]/src/part_block \
|
2024-05-30 13:46:57 +00:00
|
|
|
[depot_user]/src/platform \
|
|
|
|
[depot_user]/src/acpi \
|
2022-09-26 15:31:19 +00:00
|
|
|
[depot_user]/src/pci_decode \
|
|
|
|
[depot_user]/src/report_rom \
|
2021-05-25 11:40:09 +00:00
|
|
|
[depot_user]/src/stdcxx \
|
|
|
|
[depot_user]/src/vfs \
|
2021-05-10 09:02:16 +00:00
|
|
|
[depot_user]/src/vfs_pipe \
|
2021-05-25 11:40:09 +00:00
|
|
|
[depot_user]/src/vfs_import \
|
2021-05-10 09:02:16 +00:00
|
|
|
[depot_user]/src/jpeg
|
2019-03-04 12:53:40 +00:00
|
|
|
|
|
|
|
if {$use_vms > 1} {
|
|
|
|
import_from_depot [depot_user]/pkg/themed_wm
|
|
|
|
}
|
|
|
|
|
2021-05-25 11:40:09 +00:00
|
|
|
if {$use_usb} {
|
2024-05-30 13:46:57 +00:00
|
|
|
import_from_depot [depot_user]/src/pc_usb_host \
|
|
|
|
[depot_user]/src/usb_hid
|
2021-05-25 11:40:09 +00:00
|
|
|
}
|
|
|
|
|
usb: session renewal & new client API
Replace the USB session API by one that provides a devices ROM only,
which contains information about all USB devices available for this client,
as well as methods to acquire and release a single device.
The acquisition of an USB device returns the capability to a device session
that includes a packet stream buffer to communicate control transfers
in between the client and the USB host controller driver. Moreover,
additional methods to acquire and release an USB interface can be used.
The acquisition of an USB interface returns the capability to an interface
session that includes a packet stream buffer to communicate either
bulk, interrupt, or isochronous transfers in between the client and the
USB host controller driver.
This commit implements the API changes in behalf of the Genode C API's
USB server and client side. Addtionally, it provides Usb::Device,
Usb::Interface, and Usb::Endpoint utilities that can be used by native
C++ clients to use the new API and hide the sophisticated packet stream API.
The adaptations necessary target the following areas:
* lx_emul layer for USB host and client side
* Linux USB host controller driver port for PC
* Linux USB client ports: usb_hid_drv and usb_net_drv, additionally
reduce the Linux tasks used inside these drivers
* Native usb_block_drv
* black_hole component
* Port of libusb, including smartcard and usb_webcam driver depending on it
* Port of Qemu XHCI model library, including vbox5 & vbox6 depending on it
* Adapt all run-scripts and drivers_interactive recipes to work
with the new policy rules of the USB host controller driver
Fix genodelabs/genode#5021
2023-09-14 08:55:11 +00:00
|
|
|
if {!$use_usb} {
|
|
|
|
import_from_depot [depot_user]/src/black_hole
|
|
|
|
}
|
|
|
|
|
2021-05-25 11:40:09 +00:00
|
|
|
if {$use_rumpfs} {
|
2024-08-22 09:54:07 +00:00
|
|
|
import_from_depot [depot_user]/src/vfs_rump
|
2021-05-25 11:40:09 +00:00
|
|
|
}
|
|
|
|
|
2014-05-28 12:48:33 +00:00
|
|
|
append build_components {
|
2024-05-31 15:24:20 +00:00
|
|
|
driver/ahci
|
|
|
|
driver/framebuffer
|
|
|
|
driver/rtc
|
|
|
|
driver/ps2
|
2023-11-17 15:46:32 +00:00
|
|
|
lib/qemu-usb lib/libyuv
|
2022-09-26 15:31:19 +00:00
|
|
|
virtualbox5
|
2014-02-12 12:53:42 +00:00
|
|
|
}
|
|
|
|
|
2023-11-17 15:46:32 +00:00
|
|
|
lappend_if [expr $use_serial] build_components server/log_terminal
|
2022-09-01 11:12:13 +00:00
|
|
|
lappend_if [expr $use_ram_fs || $use_usb] build_components lib/vfs_import
|
2016-10-19 12:52:59 +00:00
|
|
|
lappend_if [expr $use_cpu_load] build_components app/trace_subject_reporter
|
|
|
|
lappend_if [expr $use_cpu_load] build_components app/cpu_load_display
|
2017-01-31 14:13:58 +00:00
|
|
|
lappend_if [expr $use_cpu_load] build_components app/top
|
2023-11-17 15:46:32 +00:00
|
|
|
lappend_if [have_spec nova] build_components app/log_core
|
2014-02-12 12:53:42 +00:00
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
2020-02-28 14:38:28 +00:00
|
|
|
if {$use_rumpfs && !$use_ram_fs} {
|
2022-02-11 14:11:03 +00:00
|
|
|
set rump_writeable true
|
2020-02-28 14:38:28 +00:00
|
|
|
} else {
|
2022-02-11 14:11:03 +00:00
|
|
|
set rump_writeable false
|
2020-02-28 14:38:28 +00:00
|
|
|
}
|
|
|
|
|
2014-02-12 12:53:42 +00:00
|
|
|
set config {
|
2016-10-19 12:52:59 +00:00
|
|
|
<config verbose="yes" prio_levels="4">}
|
|
|
|
|
|
|
|
if {$use_vms > 1} {
|
|
|
|
append config "
|
|
|
|
<affinity-space width=\"${affinity_space_width}\" height=\"1\"/>"
|
|
|
|
}
|
|
|
|
|
|
|
|
append config {
|
2014-02-12 12:53:42 +00:00
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
2019-05-06 08:34:47 +00:00
|
|
|
<service name="LOG"/>
|
2015-06-08 22:45:34 +00:00
|
|
|
<service name="VM"/>}
|
|
|
|
|
2016-10-19 12:52:59 +00:00
|
|
|
append_if [expr $use_cpu_load] config {
|
|
|
|
<service name="TRACE"/>}
|
|
|
|
|
2015-06-08 22:45:34 +00:00
|
|
|
append config {
|
2014-02-12 12:53:42 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
2015-03-30 16:00:43 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2014-02-12 12:53:42 +00:00
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
|
|
|
|
2014-02-12 12:53:42 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
2022-09-26 15:31:19 +00:00
|
|
|
|
|
|
|
<start name="platform_reports">
|
|
|
|
<binary name="report_rom"/>
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Report"/>
|
|
|
|
<service name="ROM"/>
|
|
|
|
</provides>
|
|
|
|
<config>
|
2024-05-30 13:46:57 +00:00
|
|
|
<policy label="pci_decode -> system" report="acpi -> acpi"/>
|
|
|
|
<policy label="platform -> devices" report="pci_decode -> devices"/>
|
2022-09-26 15:31:19 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="acpi" caps="350">
|
2022-09-26 15:31:19 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<route>
|
|
|
|
<service name="Report"> <child name="platform_reports"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="pci_decode" caps="350">
|
2022-11-18 13:11:38 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2022-09-26 15:31:19 +00:00
|
|
|
<route>
|
|
|
|
<service name="ROM" label="system"> <child name="platform_reports"/> </service>
|
|
|
|
<service name="Report"> <child name="platform_reports"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="platform" caps="400" managing_system="yes">
|
2022-09-26 15:31:19 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Platform"/>
|
|
|
|
</provides>
|
|
|
|
<config>
|
2024-05-30 13:46:57 +00:00
|
|
|
<policy label_prefix="ps2"> <device name="ps2"/> </policy>
|
|
|
|
<policy label_prefix="ahci"> <pci class="AHCI"/> </policy>
|
|
|
|
<policy label_prefix="nic" info="yes"> <pci class="ETHERNET"/> </policy>
|
|
|
|
<policy label_prefix="audio">
|
2022-09-26 15:31:19 +00:00
|
|
|
<pci class="AUDIO"/> <pci class="HDAUDIO"/> </policy>
|
2024-05-30 13:46:57 +00:00
|
|
|
<policy label_prefix="fb" info="yes"> <pci class="VGA"/> </policy>
|
|
|
|
<policy label_prefix="usb" info="yes"> <pci class="USB"/> </policy>
|
2022-09-26 15:31:19 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="devices"> <child name="platform_reports"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="ahci" priority="-1">
|
2016-03-09 14:32:23 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<provides><service name="Block"/></provides>
|
2015-05-08 17:45:38 +00:00
|
|
|
<config>
|
2019-01-06 20:17:07 +00:00
|
|
|
<policy label_prefix="part_block" device="0" writeable="yes"/>
|
2015-05-08 17:45:38 +00:00
|
|
|
</config>
|
2014-02-12 12:53:42 +00:00
|
|
|
</start>
|
2022-09-26 15:31:19 +00:00
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="ps2" priority="-1">
|
2022-09-26 15:31:19 +00:00
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<config/>
|
|
|
|
<route>
|
|
|
|
<service name="Event"> <child name="event_filter" label="ps2"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="fb" priority="-1" caps="150">
|
|
|
|
<binary name="vesa_fb"/>
|
2022-09-26 15:31:19 +00:00
|
|
|
<resource name="RAM" quantum="32M"/>
|
|
|
|
<config/>
|
|
|
|
</start>
|
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="pc_rtc" priority="-1">
|
2022-09-26 15:31:19 +00:00
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Rtc"/>
|
|
|
|
</provides>
|
|
|
|
</start>
|
|
|
|
|
2019-01-06 20:17:07 +00:00
|
|
|
<start name="part_block" priority="-1">
|
2016-03-09 14:32:23 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<provides><service name="Block"/></provides>
|
2014-02-12 12:53:42 +00:00
|
|
|
<route>
|
2024-05-30 13:46:57 +00:00
|
|
|
<any-service><child name="ahci"/> <parent/><any-child/></any-service>
|
2014-02-12 12:53:42 +00:00
|
|
|
</route>
|
2016-10-12 13:20:04 +00:00
|
|
|
<config>}
|
|
|
|
append_if [expr $use_rumpfs] config {
|
2017-07-31 17:53:34 +00:00
|
|
|
<policy label_prefix="rump_fs" partition="4" writeable="yes"/>}
|
2016-10-12 13:20:04 +00:00
|
|
|
append_if [expr !$use_rumpfs] config {
|
2017-07-31 17:53:34 +00:00
|
|
|
<policy label_prefix="vbox1 -> raw" partition="3" writeable="yes"/>}
|
2016-10-12 13:20:04 +00:00
|
|
|
append config {
|
2014-02-12 12:53:42 +00:00
|
|
|
</config>
|
2016-10-12 13:20:04 +00:00
|
|
|
</start>}
|
|
|
|
|
2018-05-31 09:19:31 +00:00
|
|
|
append_if [have_spec nova] config {
|
|
|
|
<start name="log_kernel">
|
|
|
|
<binary name="log_core"/>
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<config period_ms="2000"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" unscoped_label="log_core"> <parent/> </service>
|
|
|
|
<service name="ROM" unscoped_label="ld.lib.so"> <parent/> </service>
|
|
|
|
<service name="ROM" label="log"> <parent label="kernel_log"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
</route>
|
|
|
|
</start>}
|
|
|
|
|
2016-10-12 13:20:04 +00:00
|
|
|
append_if [expr $use_rumpfs] config {
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="rump_fs" priority="-1" caps="200">
|
2019-10-07 14:12:41 +00:00
|
|
|
<binary name="vfs"/>
|
2022-09-15 12:05:06 +00:00
|
|
|
<resource name="RAM" quantum="64M"/>
|
2014-02-12 12:53:42 +00:00
|
|
|
<provides><service name="File_system"/></provides>
|
2019-10-07 14:12:41 +00:00
|
|
|
<config ld_verbose="yes">
|
|
|
|
<vfs>
|
2022-09-15 12:05:06 +00:00
|
|
|
<rump fs="ext2fs" ram="48M"/>
|
2019-10-07 14:12:41 +00:00
|
|
|
</vfs>}
|
2016-10-19 12:52:59 +00:00
|
|
|
|
2016-10-12 13:20:04 +00:00
|
|
|
append_if [expr $use_rumpfs && $use_ram_fs && $use_overlay_from_disk] config {
|
2017-03-27 11:58:50 +00:00
|
|
|
<policy label_prefix="overlay_from_disk" root="/ram" writeable="no"/>}
|
2016-10-12 13:20:04 +00:00
|
|
|
append_if [expr $use_rumpfs] config {
|
2022-02-11 14:11:03 +00:00
|
|
|
<default-policy root="/" writeable="} $rump_writeable {"/>
|
2016-08-01 09:40:21 +00:00
|
|
|
</config>
|
2014-02-12 12:53:42 +00:00
|
|
|
<route>
|
2019-01-06 20:17:07 +00:00
|
|
|
<any-service><child name="part_block"/> <parent/><any-child/></any-service>
|
2014-02-12 12:53:42 +00:00
|
|
|
</route>
|
2014-05-23 07:26:57 +00:00
|
|
|
</start>}
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2014-09-23 11:01:47 +00:00
|
|
|
append_if [expr $use_ram_fs] config {
|
2020-04-20 12:00:57 +00:00
|
|
|
<start name="ram_fs" priority="-1" caps="1800">
|
|
|
|
<binary name="vfs"/>}
|
2016-10-19 12:52:59 +00:00
|
|
|
append_if [expr $use_ram_fs] config "
|
2017-01-31 14:13:58 +00:00
|
|
|
<resource name=\"RAM\" quantum=\"[expr $use_vms * 8 * 128]M\"/>"
|
2016-10-19 12:52:59 +00:00
|
|
|
append_if [expr $use_ram_fs] config {
|
2014-09-23 11:01:47 +00:00
|
|
|
<provides><service name="File_system"/></provides>
|
|
|
|
<config>
|
2020-04-20 12:00:57 +00:00
|
|
|
<vfs>
|
|
|
|
<ram/>
|
|
|
|
<import>}
|
2016-10-19 12:52:59 +00:00
|
|
|
for { set i 1} { $i <= ${use_vms} } { incr i} {
|
|
|
|
append_if [expr $use_ram_fs] config "
|
2020-04-20 12:00:57 +00:00
|
|
|
<dir name=\"ram${i}\">
|
|
|
|
<rom name=\"${overlay_image}\"/>
|
|
|
|
</dir>"
|
2016-10-19 12:52:59 +00:00
|
|
|
}
|
2015-02-19 10:59:31 +00:00
|
|
|
append_if [expr $use_ram_fs] config {
|
2020-04-20 12:00:57 +00:00
|
|
|
</import>
|
|
|
|
</vfs>
|
|
|
|
|
2016-10-19 12:52:59 +00:00
|
|
|
<!-- constrain sessions according to their labels -->}
|
|
|
|
for { set i 1} { $i <= ${use_vms} } { incr i} {
|
|
|
|
append_if [expr $use_ram_fs] config "
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix=\"vbox${i} -> from_ram_fs\" root=\"/ram${i}\" writeable=\"yes\"/>"
|
2016-10-19 12:52:59 +00:00
|
|
|
}
|
|
|
|
append_if [expr $use_ram_fs] config {
|
2014-09-23 11:01:47 +00:00
|
|
|
</config>
|
2016-08-01 09:40:21 +00:00
|
|
|
<route>}
|
|
|
|
append_if [expr $use_ram_fs && $use_overlay_from_disk] config "<service name=\"ROM\" label=\"${overlay_image}\">"
|
|
|
|
append_if [expr $use_ram_fs && $use_overlay_from_disk] config {
|
|
|
|
<child name="overlay_from_disk"/></service>}
|
|
|
|
append_if [expr $use_ram_fs] config {
|
|
|
|
<any-service> <parent/> <any-child/></any-service>
|
|
|
|
</route>
|
|
|
|
</start>}
|
|
|
|
|
|
|
|
append_if [expr $use_ram_fs && $use_overlay_from_disk] config {
|
|
|
|
<start name="overlay_from_disk" priority="-1">
|
|
|
|
<binary name="fs_rom"/>
|
2016-10-19 12:52:59 +00:00
|
|
|
<resource name="RAM" quantum="32M"/>
|
2016-08-01 09:40:21 +00:00
|
|
|
<provides><service name="ROM"/></provides>
|
2016-10-12 13:20:04 +00:00
|
|
|
<route>}
|
|
|
|
append_if [expr $use_rumpfs && $use_ram_fs && $use_overlay_from_disk] config {
|
|
|
|
<service name="File_system"><child name="rump_fs"/></service>}
|
|
|
|
append_if [expr $use_ram_fs && $use_overlay_from_disk] config {
|
2020-08-13 11:39:09 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2016-08-01 09:40:21 +00:00
|
|
|
</route>
|
2014-09-23 11:01:47 +00:00
|
|
|
</start>}
|
|
|
|
|
2016-10-19 12:52:59 +00:00
|
|
|
append_if [expr $use_cpu_load] config {
|
|
|
|
<start name="trace_subject_reporter" priority="-1">
|
|
|
|
<resource name="RAM" quantum="6M"/>
|
|
|
|
<config period_ms="500">
|
|
|
|
<report activity="yes" affinity="yes"/>
|
|
|
|
</config>
|
2015-02-22 18:04:55 +00:00
|
|
|
<route>
|
2023-12-04 10:53:26 +00:00
|
|
|
<service name="TRACE"><parent label=""/></service>
|
2016-10-19 12:52:59 +00:00
|
|
|
<service name="LOG"><parent/></service>
|
|
|
|
<service name="Timer"><child name="timer"/></service>
|
|
|
|
<service name="Report"><child name="report_rom"/></service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<any-service><parent/></any-service>
|
2016-10-19 12:52:59 +00:00
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="cpu_load_display" priority="-1">
|
|
|
|
<resource name="RAM" quantum="6M"/>
|
|
|
|
<config/>
|
|
|
|
<route>
|
|
|
|
<service name="LOG"><parent/></service>
|
|
|
|
<service name="Timer"><child name="timer"/></service>
|
|
|
|
<service name="ROM" label="trace_subjects"><child name="report_rom"/></service>
|
2020-06-11 14:06:21 +00:00
|
|
|
<service name="Gui"><child name="nitpicker"/></service>
|
2017-01-18 16:10:07 +00:00
|
|
|
<any-service><parent/></any-service>
|
2015-02-22 18:04:55 +00:00
|
|
|
</route>
|
2017-01-31 14:13:58 +00:00
|
|
|
</start>
|
|
|
|
|
2017-09-05 21:05:43 +00:00
|
|
|
<start name="top" priority="-1">
|
2017-01-31 14:13:58 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config period_ms="10000"/>
|
|
|
|
<route>
|
2023-12-04 10:53:26 +00:00
|
|
|
<service name="TRACE"><parent label=""/></service>
|
2017-01-31 14:13:58 +00:00
|
|
|
<service name="LOG"><parent/></service>
|
|
|
|
<service name="Timer"><child name="timer"/></service>
|
|
|
|
<service name="Report"><child name="report_rom"/></service>
|
|
|
|
<any-service><parent/></any-service>
|
|
|
|
</route>
|
2014-05-23 07:26:57 +00:00
|
|
|
</start>}
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2015-02-22 18:04:55 +00:00
|
|
|
append_if [expr $use_usb] config {
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="usb" caps="200">
|
|
|
|
<binary name="pc_usb_host"/>
|
2017-08-23 12:23:33 +00:00
|
|
|
<resource name="RAM" quantum="20M"/>
|
2020-08-13 14:03:59 +00:00
|
|
|
<provides> <service name="Usb"/> </provides>
|
2015-02-22 18:04:55 +00:00
|
|
|
<route>
|
2020-08-13 14:03:59 +00:00
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2016-03-09 14:32:23 +00:00
|
|
|
<any-service><parent/><any-child/></any-service>
|
2015-02-22 18:04:55 +00:00
|
|
|
</route>
|
usb: session renewal & new client API
Replace the USB session API by one that provides a devices ROM only,
which contains information about all USB devices available for this client,
as well as methods to acquire and release a single device.
The acquisition of an USB device returns the capability to a device session
that includes a packet stream buffer to communicate control transfers
in between the client and the USB host controller driver. Moreover,
additional methods to acquire and release an USB interface can be used.
The acquisition of an USB interface returns the capability to an interface
session that includes a packet stream buffer to communicate either
bulk, interrupt, or isochronous transfers in between the client and the
USB host controller driver.
This commit implements the API changes in behalf of the Genode C API's
USB server and client side. Addtionally, it provides Usb::Device,
Usb::Interface, and Usb::Endpoint utilities that can be used by native
C++ clients to use the new API and hide the sophisticated packet stream API.
The adaptations necessary target the following areas:
* lx_emul layer for USB host and client side
* Linux USB host controller driver port for PC
* Linux USB client ports: usb_hid_drv and usb_net_drv, additionally
reduce the Linux tasks used inside these drivers
* Native usb_block_drv
* black_hole component
* Port of libusb, including smartcard and usb_webcam driver depending on it
* Port of Qemu XHCI model library, including vbox5 & vbox6 depending on it
* Adapt all run-scripts and drivers_interactive recipes to work
with the new policy rules of the USB host controller driver
Fix genodelabs/genode#5021
2023-09-14 08:55:11 +00:00
|
|
|
<config>
|
|
|
|
<report devices="yes"/>
|
2024-05-30 13:46:57 +00:00
|
|
|
<policy label_prefix="usb_hid"><device class="0x3"/></policy>
|
usb: session renewal & new client API
Replace the USB session API by one that provides a devices ROM only,
which contains information about all USB devices available for this client,
as well as methods to acquire and release a single device.
The acquisition of an USB device returns the capability to a device session
that includes a packet stream buffer to communicate control transfers
in between the client and the USB host controller driver. Moreover,
additional methods to acquire and release an USB interface can be used.
The acquisition of an USB interface returns the capability to an interface
session that includes a packet stream buffer to communicate either
bulk, interrupt, or isochronous transfers in between the client and the
USB host controller driver.
This commit implements the API changes in behalf of the Genode C API's
USB server and client side. Addtionally, it provides Usb::Device,
Usb::Interface, and Usb::Endpoint utilities that can be used by native
C++ clients to use the new API and hide the sophisticated packet stream API.
The adaptations necessary target the following areas:
* lx_emul layer for USB host and client side
* Linux USB host controller driver port for PC
* Linux USB client ports: usb_hid_drv and usb_net_drv, additionally
reduce the Linux tasks used inside these drivers
* Native usb_block_drv
* black_hole component
* Port of libusb, including smartcard and usb_webcam driver depending on it
* Port of Qemu XHCI model library, including vbox5 & vbox6 depending on it
* Adapt all run-scripts and drivers_interactive recipes to work
with the new policy rules of the USB host controller driver
Fix genodelabs/genode#5021
2023-09-14 08:55:11 +00:00
|
|
|
<policy label_prefix="vbox1">
|
|
|
|
<device vendor_id="0x13fe" product_id="0x5200"/> <!-- platinum stick -->
|
|
|
|
<device vendor_id="0x148f" product_id="0x2573"/> <!-- ralink wifi -->
|
|
|
|
<device vendor_id="0x1f75" product_id="0x0917"/> <!-- intenso stick -->
|
|
|
|
<device vendor_id="0x04f9" product_id="0x0051"/> <!-- brother printer -->
|
|
|
|
<device vendor_id="0x090c" product_id="0x6000"/> <!-- hama sd/hc reader -->
|
|
|
|
<device vendor_id="0x1b1c" product_id="0x1a09"/> <!-- voyager gt stick -->
|
|
|
|
<device vendor_id="0x1b1c" product_id="0x1a03"/> <!-- voyager stick -->
|
|
|
|
<device vendor_id="0x04b3" product_id="0x310d"/> <!-- lenovo mouse -->
|
|
|
|
<device vendor_id="0x04b3" product_id="0x310c"/> <!-- lenovo mouse -->
|
|
|
|
<device vendor_id="0x04b3" product_id="0x3025"/> <!-- lenovo keyboard -->
|
|
|
|
<device vendor_id="0x046a" product_id="0x0001"/> <!-- cherry keyboard -->
|
|
|
|
<device vendor_id="0x0482" product_id="0x0015"/> <!-- kyo printer -->
|
|
|
|
<device vendor_id="0x04a9" product_id="0x2220"/> <!-- canon scanner -->
|
|
|
|
<device vendor_id="0x067b" product_id="0x2303"/> <!-- prolific serial -->
|
|
|
|
<device vendor_id="0x0583" product_id="0x2060"/> <!-- snes controller -->
|
|
|
|
<device vendor_id="0x045e" product_id="0x028e"/> <!-- x360 controller -->
|
|
|
|
<device vendor_id="0x046d" product_id="0xc00e"/> <!-- logitech mouse -->
|
|
|
|
<device vendor_id="0x0984" product_id="0x0066"/> <!-- lenovo DVDRW -->
|
|
|
|
<device vendor_id="0x174c" product_id="0x5106"/> <!-- delock SATA -->
|
|
|
|
</policy>
|
|
|
|
</config>
|
2015-02-22 18:04:55 +00:00
|
|
|
</start>
|
2021-05-25 11:40:09 +00:00
|
|
|
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="usb_hid" priority="-1" caps="140">
|
2021-05-25 11:40:09 +00:00
|
|
|
<resource name="RAM" quantum="11M"/>
|
|
|
|
<route>
|
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
|
|
|
<service name="Event"> <child name="event_filter" label="usb_hid"/> </service>
|
|
|
|
<service name="ROM" label="report"> <child name="report_rom"/> </service>
|
2024-05-30 13:46:57 +00:00
|
|
|
<service name="Usb"> <child name="usb"/> </service>
|
2021-05-25 11:40:09 +00:00
|
|
|
<any-service><parent/><any-child/></any-service>
|
|
|
|
</route>
|
|
|
|
</start>}
|
2015-02-22 18:04:55 +00:00
|
|
|
|
usb: session renewal & new client API
Replace the USB session API by one that provides a devices ROM only,
which contains information about all USB devices available for this client,
as well as methods to acquire and release a single device.
The acquisition of an USB device returns the capability to a device session
that includes a packet stream buffer to communicate control transfers
in between the client and the USB host controller driver. Moreover,
additional methods to acquire and release an USB interface can be used.
The acquisition of an USB interface returns the capability to an interface
session that includes a packet stream buffer to communicate either
bulk, interrupt, or isochronous transfers in between the client and the
USB host controller driver.
This commit implements the API changes in behalf of the Genode C API's
USB server and client side. Addtionally, it provides Usb::Device,
Usb::Interface, and Usb::Endpoint utilities that can be used by native
C++ clients to use the new API and hide the sophisticated packet stream API.
The adaptations necessary target the following areas:
* lx_emul layer for USB host and client side
* Linux USB host controller driver port for PC
* Linux USB client ports: usb_hid_drv and usb_net_drv, additionally
reduce the Linux tasks used inside these drivers
* Native usb_block_drv
* black_hole component
* Port of libusb, including smartcard and usb_webcam driver depending on it
* Port of Qemu XHCI model library, including vbox5 & vbox6 depending on it
* Adapt all run-scripts and drivers_interactive recipes to work
with the new policy rules of the USB host controller driver
Fix genodelabs/genode#5021
2023-09-14 08:55:11 +00:00
|
|
|
append_if [expr !$use_usb] config {
|
2024-05-30 13:46:57 +00:00
|
|
|
<start name="usb" caps="200">
|
usb: session renewal & new client API
Replace the USB session API by one that provides a devices ROM only,
which contains information about all USB devices available for this client,
as well as methods to acquire and release a single device.
The acquisition of an USB device returns the capability to a device session
that includes a packet stream buffer to communicate control transfers
in between the client and the USB host controller driver. Moreover,
additional methods to acquire and release an USB interface can be used.
The acquisition of an USB interface returns the capability to an interface
session that includes a packet stream buffer to communicate either
bulk, interrupt, or isochronous transfers in between the client and the
USB host controller driver.
This commit implements the API changes in behalf of the Genode C API's
USB server and client side. Addtionally, it provides Usb::Device,
Usb::Interface, and Usb::Endpoint utilities that can be used by native
C++ clients to use the new API and hide the sophisticated packet stream API.
The adaptations necessary target the following areas:
* lx_emul layer for USB host and client side
* Linux USB host controller driver port for PC
* Linux USB client ports: usb_hid_drv and usb_net_drv, additionally
reduce the Linux tasks used inside these drivers
* Native usb_block_drv
* black_hole component
* Port of libusb, including smartcard and usb_webcam driver depending on it
* Port of Qemu XHCI model library, including vbox5 & vbox6 depending on it
* Adapt all run-scripts and drivers_interactive recipes to work
with the new policy rules of the USB host controller driver
Fix genodelabs/genode#5021
2023-09-14 08:55:11 +00:00
|
|
|
<binary name="black_hole"/>
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Usb"/> </provides>
|
|
|
|
<config> <usb/> </config>
|
|
|
|
</start>
|
|
|
|
}
|
|
|
|
|
2020-02-28 14:38:28 +00:00
|
|
|
append_if [expr $use_serial] config {
|
|
|
|
<start name="log_terminal" priority="-1">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides>
|
|
|
|
<service name="Terminal"/>
|
|
|
|
</provides>
|
|
|
|
</start>}
|
|
|
|
|
2014-02-12 12:53:42 +00:00
|
|
|
append config $config_of_app
|
|
|
|
|
|
|
|
append config {
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
2024-01-19 10:15:31 +00:00
|
|
|
lappend boot_modules {*}[build_artifacts]
|
2014-02-12 12:53:42 +00:00
|
|
|
|
2017-01-10 14:30:02 +00:00
|
|
|
lappend_if [expr $use_ram_fs && !$use_overlay_from_disk] boot_modules $overlay_image
|