Booting wifi-enabled linux on ESP32s3

Script that builds and flashes everything: https://gist.githubusercontent.com/jcmvbkbc/316e6da728021c8ff670a24e674a35e6/raw/c018a7c287051e15288dca01c6980480d13d7b20/rebuild-esp32s3-linux-wifi.sh

What can be done after booting:

Joining open network

# ip link set espsta0 up
# iw dev espsta0 connect <ssid>
# udhcpc -i espsta0

Joining WPA2 network

# ip link set espsta0 up
# cat > /tmp/ws.conf <<EOF
network={
ssid="ssid-name"
psk="password"
}
EOF
# wpa_supplicant -i espsta0 -c /tmp/ws.conf &
# udhcpc -i espsta0

Alternatively conf file may be generated with the wpa_passphrase program.