After a lot of experimenting, I have managed to install NetBSD on my UEFI laptop with cgd encryption.
Things seemed to go fine during installation, and after configuring the network, I am able to ping google.com.
However once I properly boot into the system, I get messages telling me the device couldn't load its firmware. These are what (I think) are all the relevant lines from dmesg:
[ 2.468734] urtwn0 at uhub1 port 1
[ 2.498731] urtwn0: Realtek (0x0bda) 802.11n NIC (0x818b), rev 2.10/2.00, addr 2
[ 2.648732] urtwn0: MAC/BB RTL8192EU, RF 6052 2T2R, address a0:a3:f0:90:77:ae
[ 2.688731] urtwn0: 1 rx pipe, 3 tx pipes
[ 18.918732] urtwn0: autoconfiguration error: failed load firmware of file rtl8192eefw.bin (error 2)
[ 18.918732] urtwn0: cannot assign link-local address
[ 18.948731] urtwn0: autoconfiguration error: failed load firmware of file rtl8192eefw.bin (error 2)
[ 18.968732] urtwn0: autoconfiguration error: failed load firmware of file rtl8192eefw.bin (error 2)
[ 18.968732] urtwn0: cannot assign link-local address
And this is the output of ifconfig:
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
status: active
inet6 ::1/128 flags 0x20<NODAD>
inet6 fe80::1%lo0/64 flags 0 scopeid 0x2
inet 127.0.0.1/8 flags 0
urtwn0: flags=0x8803<UP,BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ssid "" nwkey 65536:"","","",""
powersave off
address: a0:a3:f0:90:77:ae
media: IEEE802.11 autoselect
status: no network
And in /var/log/messages, I found these lines repeating over and over:
Apr 9 18:00:10 Adora wpa_supplicant[8296]: ioctl[SIOCS80211, op=23, val=0, arg_len=0]: Invalid argument
Apr 9 18:00:10 Adora wpa_supplicant[8296]: urtwn0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
Few things to note:
- I tried NetBSD without encryption on that same laptop, and the device worked fine.
- The file 'rtl8192eefw.bin' does exist on the system, at /libdata/firmware/if_urtwn/rtl8192eefw.bin
- This is NetBSD 10.0
What can be done?