# # Configure wireless lan # proc wifi_ssid { } { return $::env(GENODE_WIFI_SSID) } proc wifi_psk { } { return $::env(GENODE_WIFI_PSK) } # # widi_drv config generator (supporting a network list) # # You may script your tests with this function in the dynamic_rom config below. # The syntax for the networks parameter is # # { ssid protection passphrase explicit_scan } # # Example dynamic_rom config: # # { # } [wifi_config 30 5 no [list "net1 WPA2 net1_psk no" "net2 WPA2 net2_psk no"]] { # # # } [wifi_config 30 5 no [list "net1 WPA2 net1_psk no" "net2 WPA2 net2_psk yes"]] { # } set wifi_verbose false set wifi_verbose_state false proc wifi_config { connected_scan_interval scan_interval rfkill networks } { global wifi_verbose global wifi_verbose_state set config "\n" foreach n $networks { append config " \n" } append config "\n" return $config } # # Restrict platforms # assert_spec x86 # # Build # set build_components { core init timer drivers/rtc drivers/wifi server/report_rom server/dynamic_rom server/nic_router test/lwip/http_srv lib/vfs/jitterentropy lib/vfs/lwip } source ${genode_dir}/repos/base/run/platform_drv.inc append_platform_drv_build_components build $build_components create_boot_directory # # Generate config # append config { } [wifi_config 30 5 no {}] { } [wifi_config 30 5 no [list "[wifi_ssid] WPA2 [wifi_psk] yes"]] { } [wifi_config 30 5 yes [list "[wifi_ssid] WPA2 [wifi_psk] yes"]] { } [wifi_config 30 5 no [list "[wifi_ssid] WPA2 [wifi_psk] yes"]] { } append_platform_drv_config append config { } install_config $config set firmware_modules { iwlwifi-6000-4.ucode iwlwifi-6000g2a-6.ucode iwlwifi-6000g2b-6.ucode iwlwifi-7260-17.ucode iwlwifi-7265-17.ucode iwlwifi-7265D-29.ucode iwlwifi-8000C-36.ucode iwlwifi-8265-36.ucode regulatory.db } # # Boot modules # # generic modules set boot_modules { core ld.lib.so init timer rtc_drv report_rom dynamic_rom vfs_jitterentropy.lib.so libc.lib.so vfs.lib.so libcrypto.lib.so libssl.lib.so wpa_driver_nl80211.lib.so wpa_supplicant.lib.so wifi.lib.so wifi_drv nic_router test-lwip_httpsrv vfs_lwip.lib.so } append boot_modules $firmware_modules append_platform_drv_boot_modules build_boot_image $boot_modules run_genode_until forever # vi: set ft=tcl :