# # Check for platform support # proc buffer_size_kib {} { if {[have_spec pl180]} { return [expr 12 * 1024] } if {[have_spec imx8q_evk]} { return [expr 1024] } if {[have_spec imx6]} { return [expr 1024] } if {[have_spec imx53] && ![have_spec foc]} { return [expr 1024] } if {[have_spec rpi]} { return [expr 4 * 1024] } if {[have_spec omap4]} { return [expr 4 * 1024] } if {[have_spec arndale]} { return [expr 1024] } puts "\n Run script is not supported on this platform. \n"; exit 0; } proc sd_card_drv {} { if {[have_spec pbxa9]} { return pbxa9_sd_card_drv } if {[have_spec imx8q_evk]} { return imx8q_evk_sd_card_drv } if {[have_spec imx6q_sabrelite]} { return imx6q_sabrelite_sd_card_drv } if {[have_spec imx53]} { return imx53_sd_card_drv } if {[have_spec rpi]} { return rpi_sd_card_drv } if {[have_spec omap4]} { return omap4_sd_card_drv } if {[have_spec arndale]} { return arndale_sd_card_drv } puts "\n Run script is not supported on this platform. \n"; exit 0; } # # Build the boot modules # set build_components { core init timer drivers/sd_card } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory # # Install the config # append config { } append_platform_drv_config append config { } install_config $config # # Create the boot image # set boot_modules { core ld.lib.so init timer } append boot_modules [sd_card_drv] append_platform_drv_boot_modules build_boot_image $boot_modules # # Run and evaluate the test # # If we run on qemu, provide a virtual disk # set disk_image "bin/sd_card.img" if {[have_include power_on/qemu]} { if { [file exists $disk_image] == 0 } then { catch { exec dd if=/dev/zero of=$disk_image bs=1M count=512 } } append qemu_args "-drive file=$disk_image,format=raw,if=sd,cache=writeback " append qemu_args "-nographic " } run_genode_until "--- SD card benchmark finished ---" 120 exec rm -f $disk_image