# # \brief Virtual-machine monitor demo # \author Stefan Kalkowski # \date 2012-06-25 # assert_spec hw assert_spec platform_imx53 assert_spec trustzone build "core init server/tz_vmm" create_boot_directory install_config { } set init_uri "http://genode.org/files/images/imx53_qsb/initrd.gz" set linux_uri "http://genode.org/files/images/imx53_qsb/linux_trustzone.bin" if {![file exists bin/initrd.gz]} { puts "Download initramfs ..." exec >& /dev/null wget -c -O bin/initrd.gz $init_uri } if {![file exists bin/linux]} { puts "Download linux binary ..." exec >& /dev/null wget -c -O bin/linux $linux_uri } exec >& /dev/null wget -O bin/initrd.gz.md5 $init_uri.md5 exec >& /dev/null wget -O bin/linux.md5 $linux_uri.md5 cd bin exec md5sum -c initrd.gz.md5 exec md5sum -c linux.md5 cd .. build_boot_image "core init tz_vmm linux initrd.gz" # # Execute test case # run_genode_until {.*\/ #.*} 220 set serial_id [output_spawn_id] # Wait for network to settle down send -i $serial_id "sleep 5\n" send -i $serial_id "wget http://genode.org/\n" run_genode_until "Connecting to genode.org" 10 $serial_id run_genode_until {.*\/ #.*} 30 $serial_id exec rm bin/initrd.gz bin/initrd.gz.md5 bin/linux bin/linux.md5