if {![have_spec x86] && ![have_spec exynos5]} { puts "\nThe AHCI driver supports x86 architecture and exynos5 only\n" exit 0 } # # Build # set build_components { core init drivers/timer drivers/ahci test/blk/cli } lappend_if [have_spec acpi] build_components drivers/acpi lappend_if [have_spec pci] build_components drivers/pci lappend_if [have_spec pci] build_components drivers/pci/device_pd lappend_if [have_spec exynos5] build_components drivers/platform build $build_components create_boot_directory # # Generate config # set config { } append_if [have_spec exynos5] config { } append_if [have_spec acpi] config { } append_if [expr ![have_spec acpi] && [have_spec pci]] config { } append config { } append_if [have_spec acpi] config { } append config { } append_if [have_spec acpi] config { } append config { } install_config $config # # Boot modules # set boot_modules { core init timer ahci test-blk-cli } lappend_if [have_spec pci] boot_modules pci_drv lappend_if [have_spec acpi] boot_modules acpi_drv lappend_if [have_spec nova] boot_modules pci_device_pd lappend_if [have_spec exynos5] boot_modules platform_drv build_boot_image $boot_modules # # Qemu # set disk_image "bin/block.img" append qemu_args " -m 64 -nographic " append qemu_args " -drive id=disk,file=$disk_image,if=none -device ahci,id=ahci -device ide-drive,drive=disk,bus=ahci.0 -boot d" if { [file exists $disk_image] == 0 } then { # create random block device file puts "creating disk image \"$disk_image\"" catch { exec dd if=/dev/urandom of=$disk_image bs=512 count=20480 } } # # Test # run_genode_until "Tests finished successfully.*\n" 50