Skip to content

Instantly share code, notes, and snippets.

@allanbatista
Last active January 22, 2021 19:43
Show Gist options
  • Save allanbatista/708db0a17f03ccfb9b70275eebdb2f5b to your computer and use it in GitHub Desktop.
Save allanbatista/708db0a17f03ccfb9b70275eebdb2f5b to your computer and use it in GitHub Desktop.
Install TP-Link Archer T2U Nano on Jetson Nano

references by https://forum.odroid.com/viewtopic.php?t=34769 power by odroid

Download and install

apt update && apt upgrade && apt dist-upgrade
apt install git bc dkms
git clone --depth 1 https://github.com/whitebatman2/rtl8821CU.git
cd rtl8821CU/

export DRV_NAME=rtl8821CU
export DRV_VERSION=5.2.5.3
mkdir /usr/src/${DRV_NAME}-${DRV_VERSION}
git archive master | sudo tar -x -C /usr/src/${DRV_NAME}-${DRV_VERSION}

Edit Makefile

vim /usr/src/rtl8821CU-5.2.5.3/Makefile

before

CONFIG_PLATFORM_I386_PC = y
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM_RPI3 = n

after

CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM_RPI3 = y
@cscovino
Copy link

cscovino commented Jul 9, 2020

Hi, I'm trying following this steps but it seems that there are missing commands/steps.

@thejauffre
Copy link

thejauffre commented Jan 22, 2021

According to the linked guide, there are just a few steps to perform the driver installation:

dkms add -m ${DRV_NAME} -v ${DRV_VERSION}
dkms build -m ${DRV_NAME} -v ${DRV_VERSION}
dkms install -m ${DRV_NAME} -v ${DRV_VERSION}

and add this to .bashrc to enable autostart on boot:

usb_modeswitch -KW -v 0bda -p 1a2b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment