2021-01-13 09:15:10 +00:00
|
|
|
if {[have_board imx7d_sabre] ||
|
|
|
|
[have_board imx6q_sabrelite] ||
|
|
|
|
[have_board rpi3] ||
|
|
|
|
[have_board zynq] ||
|
|
|
|
[have_board imx53_qsb_tz] ||
|
|
|
|
[have_board imx53_qsb] && [have_spec foc]} {
|
2017-01-31 11:12:18 +00:00
|
|
|
puts "\n Run script is not supported on this platform. \n";
|
|
|
|
exit 0
|
|
|
|
}
|
2015-06-05 11:54:33 +00:00
|
|
|
|
2021-02-18 08:04:39 +00:00
|
|
|
if {[get_cmd_switch --autopilot] && ([have_spec linux] ||
|
|
|
|
[have_board riscv_qemu])} {
|
2017-03-10 14:39:47 +00:00
|
|
|
puts "\nAutopilot run is not supported on this platform\n"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2015-06-05 11:54:33 +00:00
|
|
|
create_boot_directory
|
2019-05-03 11:19:17 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/pkg/[drivers_interactive_pkg] \
|
2020-07-01 20:26:11 +00:00
|
|
|
[depot_user]/src/nitpicker \
|
|
|
|
[depot_user]/src/gui_fb \
|
2019-05-03 11:19:17 +00:00
|
|
|
[depot_user]/src/init
|
|
|
|
build { test/fb_bench }
|
2015-06-05 11:54:33 +00:00
|
|
|
|
2019-05-03 11:19:17 +00:00
|
|
|
install_config {
|
2015-06-05 11:54:33 +00:00
|
|
|
<config>
|
|
|
|
<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"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2015-06-05 11:54:33 +00:00
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
2019-05-03 11:19:17 +00:00
|
|
|
</start>
|
2017-01-31 11:03:57 +00:00
|
|
|
|
2020-07-10 11:04:12 +00:00
|
|
|
<start name="drivers" caps="1500" managing_system="yes">
|
|
|
|
<resource name="RAM" quantum="120M"/>
|
2019-05-03 11:19:17 +00:00
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
2020-07-01 20:26:11 +00:00
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<service name="Capture"> <child name="nitpicker"/> </service>
|
2020-07-16 09:28:18 +00:00
|
|
|
<service name="Event"> <child name="nitpicker"/> </service>
|
2019-05-03 11:19:17 +00:00
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
2020-07-01 20:26:11 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="nitpicker">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
2020-07-16 09:28:18 +00:00
|
|
|
<provides>
|
|
|
|
<service name="Gui"/> <service name="Capture"/> <service name="Event"/>
|
|
|
|
</provides>
|
2020-08-13 15:25:21 +00:00
|
|
|
<config focus="rom">
|
2020-07-16 09:28:18 +00:00
|
|
|
<capture/> <event/>
|
2020-07-01 20:26:11 +00:00
|
|
|
<domain name="default" layer="1" width="1024" height="768"/>
|
|
|
|
<default-policy domain="default"/>
|
|
|
|
</config>
|
2020-07-16 09:28:18 +00:00
|
|
|
<route> <any-service> <parent/> <any-child/> </any-service> </route>
|
2020-07-01 20:26:11 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="gui_fb">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="Framebuffer"/> <service name="Input"/> </provides>
|
|
|
|
<config/>
|
|
|
|
<route>
|
|
|
|
<service name="Gui"> <child name="nitpicker"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2019-05-03 11:19:17 +00:00
|
|
|
</start>
|
2015-06-05 11:54:33 +00:00
|
|
|
|
|
|
|
<start name="test-fb_bench">
|
2017-03-16 15:56:16 +00:00
|
|
|
<!--
|
|
|
|
- We need this big amount of RAM because the VESA driver reports a
|
|
|
|
- large buffer on some hardware and the test mirrors this buffer in
|
|
|
|
- RAM.
|
|
|
|
-->
|
|
|
|
<resource name="RAM" quantum="72M"/>
|
2020-07-01 20:26:11 +00:00
|
|
|
<config/>
|
2015-06-05 11:54:33 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
2020-07-01 20:26:11 +00:00
|
|
|
set fd [open [run_dir]/genode/focus w]
|
|
|
|
puts $fd "<focus label=\"gui_fb -> \" domain=\"default\"/>"
|
|
|
|
close $fd
|
|
|
|
|
2019-05-03 11:19:17 +00:00
|
|
|
build_boot_image { test-fb_bench }
|
2015-06-05 11:54:33 +00:00
|
|
|
|
2017-01-31 12:30:44 +00:00
|
|
|
# disable QEMU graphic to enable testing on our machines without SDL and X
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2017-01-31 12:30:44 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until {.*--- Framebuffer benchmark finished ---.*\n} 40
|