make on driver from ( Jetson/Network Adapters - eLinux.org ), while changing the kernel source to /usr/src/$(KVER)/kernel and KVER=$(shell uname -r)
Said to first do make modules_prepare on kernel folder, did it
make, sudo make install → asked for directory to puth 8812au.ko → gave liv/modules/KVER/kernel/drivers/net/wireless , where the other are. With this, it instelled fine.
sudo modprobe 8812au → said cannot allocate memory. After this I rebooted and had no ifconfig, no internet, and nothing from internet drivers.
[ 248.658114] vmap allocation for size 19832832 failed: use vmalloc=<size> to increase size.
You can try adding vmalloc=320M in /boot/extlinux/extlinux.conf. It is a bit risky and you should create another entry there and during the Jetson boot use the serial cable to interrupt the bootloader and select that new entry. If you don’t mind flashing the board again, you can just add the option to the existing “APPEND” line.
I think you can check the vmalloc allocation and usage like this on Jetson:
That worked and solved the problem - but yet another one appeared: if I dont plugin the device, everything is okay. When I do plug it in, I return to the previous state, no internet, no ping, no ifconfig.
do " make ". If it asks to make modules_prepare on /usr/src/linux-headers-KVER, do so
do “sudo make install”
do “sudo modprobe 8812au”
if it gives an error saying it cannot allocate memory, add vmalloc=512M on /boot/extlinux/extlinux.conf , as suggested by @kulve . Then reboot. If the error persists or if the driver does not work, you may need to reflash TK1 and add vmalloc to the file right after the first boot, reboot again, and proceed from step one.
Kulve, this wouldn’t be possible without your help. Thank you!