Custom Kernel? Add Wifi-Card

Started by FirstSoul, March 03, 2020, 06:58:20 PM

Previous topic - Next topic
Hin there,

i have an Ralink RT5390R and its supported by FreeBSD.
There is only an identification problem.
Look here: https://forums.freebsd.org/threads/ralink-rt5390r-wifi-in-freebsd.72224/
The Solution:

1. open (/usr/src/sys/dev/ral/if_ral_pci.c) in text editor.

2. put:
{ 0x1814, 0x539b, "Ralink Technology RT5390R" }
in line 104

3. then "cd /usr/src"

4. then run command: make -j4 kernel

5. then put (wlans_ral0="wlan0") in /etc/rc.conf

6. then reboot

7. finally, run command (ifconfig wlan0 create wlandev ral0)


So 1. open (/usr/src/sys/dev/ral/if_ral_pci.c) in text editor.

2. put:
{ 0x1814, 0x539b, "Ralink Technology RT5390R" }
in line 104

3. then "cd /usr/src"

4. then run command: make -j4 kernel

5. then put (wlans_ral0="wlan0") in /etc/rc.conf

6. then reboot

7. finally, run command (ifconfig wlan0 create wlandev ral0)


So /usr/src/sys/dev/ral/if_ral_pci.c is the needed file. So how can i make an costum kernel or add this to opnsense?`
The entry is missing:
https://github.com/opnsense/src/blob/master/sys/dev/ral/if_ral_pci.c