Skip to content

Commit

Permalink
Add support for NVidia Jetson Nano (abperiasamy#300)
Browse files Browse the repository at this point in the history
* Added support for NVidia Jeston Nano

* Added support for NVidia Jetson Nano
  • Loading branch information
JasonAlexander authored and harshavardhana committed Jul 16, 2019
1 parent 99fbe64 commit d277c36
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Makefile
Expand Up @@ -72,8 +72,11 @@ CONFIG_AP_WOWLAN = n
######### Notify SDIO Host Keep Power During Syspend ##########
CONFIG_RTW_SDIO_PM_KEEP_POWER = y
###################### Platform Related #######################
CONFIG_PLATFORM_I386_PC = y
# Jeston Nano Headers
# /usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9
CONFIG_PLATFORM_I386_PC = n
CONFIG_PLATFORM_ARM_RPI = n
CONFIG_PLATFORM_ARM_JET_NANO = y
CONFIG_PLATFORM_ANDROID_X86 = n
CONFIG_PLATFORM_ANDROID_INTEL_X86 = n
CONFIG_PLATFORM_JB_X86 = n
Expand Down Expand Up @@ -909,6 +912,17 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
INSTALL_PREFIX :=
endif

# NVidia Jetson Nano
ifeq ($(CONFIG_PLATFORM_ARM_JET_NANO), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
ARCH := arm64
KVER ?= $(shell uname -r)
KSRC := /usr/src/linux-headers-$(KVER)-ubuntu18.04_aarch64/kernel-4.9
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/realtek/rtl8812au/
endif

ifeq ($(CONFIG_PLATFORM_ACTIONS_ATM702X), y)
EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_PLATFORM_ANDROID -DCONFIG_PLATFORM_ACTIONS_ATM702X
#ARCH := arm
Expand Down
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -6,6 +6,10 @@ for AC1200 (801.11ac) Wireless Dual-Band USB Adapter

This code is base on version 4.3.14 from https://github.com/diederikdehaas/rtl8812AU

### Update for NVidia Jestson Nano support

This code was forked from https://github.com/abperiasamy/rtl8812AU_8821AU_linux

## Known Supported Devices:

```
Expand All @@ -19,6 +23,12 @@ This code is base on version 4.3.14 from https://github.com/diederikdehaas/rtl88
# sudo make -f Makefile.dkms install
```

### Compiling for NVidia Jeston Nano

```sh
# CONFIG_PLATFORM_ARM_JET_NANO = y
```

### Compiling for Raspberry Pi

Install kernel headers and other dependencies.
Expand Down

0 comments on commit d277c36

Please sign in to comment.