# # 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 app/pci_decode drivers/acpi drivers/platform drivers/rtc drivers/wifi/pc server/report_rom server/dynamic_rom server/nic_router test/lwip/http_srv lib/vfs_wifi lib/vfs_jitterentropy lib/vfs_lwip } 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"]] { } install_config $config set firmware_modules { iwlwifi-1000-5.ucode iwlwifi-3160-17.ucode iwlwifi-3168-29.ucode iwlwifi-5000-5.ucode iwlwifi-6000-4.ucode iwlwifi-7260-17.ucode iwlwifi-7265-17.ucode iwlwifi-7265D-29.ucode iwlwifi-8000C-36.ucode iwlwifi-8265-36.ucode iwlwifi-9000-pu-b0-jf-b0-34.ucode iwlwifi-9000-pu-b0-jf-b0-46.ucode iwlwifi-QuZ-a0-hr-b0-63.ucode regulatory.db regulatory.db.p7s } # # 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 pc_wifi_drv wifi.lib.so vfs_wifi.lib.so nic_router platform_drv acpi_drv pci_decode test-lwip_httpsrv vfs_lwip.lib.so } append boot_modules $firmware_modules build_boot_image $boot_modules run_genode_until forever # vi: set ft=tcl :