# # Smartcard test # # NOTE: The vendor id and product id of the USB card reader to be used must be # configured for the application and for the USB driver. # if {[have_include "power_on/qemu"] || [have_spec linux]} { puts "Run script does not support Qemu or Linux" exit 0 } assert_spec x86_64 # # Please configure your reader's vendor and product IDs here # proc smartcard_vendor_id {} { return "0x04e6" } proc smartcard_product_id {} { return "0x5116" } # # Build # create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/test_usb_host-[board] \ [depot_user]/src/report_rom \ [depot_user]/src/init build { lib/libc lib/libm lib/vfs lib/posix lib/libusb lib/vfs_libusb lib/vfs_pipe test/smartcard } install_config { 2018-01-01 00:01 } # # Define USB host controller config # append usb_config { } set fd [open [run_dir]/genode/usb_host.config w] puts $fd $usb_config close $fd build_boot_image [list {*}[build_artifacts] Info.plist] run_genode_until { Response: 62 0A 82 01 38 83 02 3F 00 8A 01 05 90 00} 30 exec rm bin/Info.plist