Note: You can find a supported kernel HERE
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O patch1.mbox
$ wget https://lore.kernel.org/linux-arm-msm/[email protected]/raw -O patch2.mbox
$ git am patch1.mbox
$ git am patch2.mbox
Note: This are the commands to cross-compile. Compiling natively will work equally well.
$ ccache make -j $(nproc) \
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
KBUILD_OUTPUT=../build-arm64 \
dtbs
$ ccache make -j $(nproc) \
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
KBUILD_OUTPUT=../build-arm64
$ ccache make -j $(nproc) \
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \
KBUILD_OUTPUT=../build-arm64 \
bindeb-pkg
This will result in a linux-image-*.deb
file in the parent directory that you can install with dpkg -i
.
$ sudo apt install git build-essential libudev-dev
$ git clone https://github.com/andersson/qrtr.git
$ git clone https://github.com/andersson/qmic.git
$ git clone https://github.com/andersson/rmtfs.git
$ git clone https://github.com/andersson/pd-mapper.git
$ git clone https://github.com/andersson/tqftpserv.git
$ pushd qrtr && make && sudo make install && popd
$ pushd qmic && make && sudo make install && popd
$ pushd rmtfs && make && sudo make install && popd
$ pushd pd-mapper && make && sudo make install && popd
$ pushd tqftpserv && make && sudo make install && popd
$ wget https://github.com/kvalo/ath10k-firmware/blob/master/WCN3990/hw1.0/HL2.0/WLAN.HL.2.0-01387-QCAHLSWMTPLZ-1/firmware-5.bin?raw=true -O firmware-5.bin
bdwlan.b36
bdwlan.b37
bdwlan.b38
bdwlan.b3c
bdwlan.b3f
bdwlan.bin
wlanmdsp.mbn
qcdsp1v2850.mbn
qcdsp2850.mbn
$ sudo mkdir -p /readonly/firmware/image
$ sudo cp wlanmdsp.mbn /readonly/firmware/image
$ mkdir -p creating-board-2.bin/bdf
$ cd creating-board-2.bin
$ cp bdwlan.* creating-board-2.bin/bdf
$ wget https://github.com/aarch64-laptops/build/blob/master/misc/lenovo-yoga-c630/wifi/create-board-2.bin/make-board-2.bin.sh
$ chmod +x make-board-2.bin.sh
$ ./make-board-2.bin.sh
$ sudo mkdir -p /lib/firmware/ath10k/WCN3990/hw1.0
$ sudo cp board-2.bin /lib/firmware/ath10k/WCN3990/hw1.0
$ sudo cp firmware-5.bin /lib/firmware/ath10k/WCN3990/hw1.0
$ sudo mkdir /lib/firmware/qcom/c630
$ sudo cp qcdsp1v2850.mbn /lib/firmware/qcom/c630
$ sudo cp qcdsp2850.mbn /lib/firmware/qcom/c630/modem.mdt
$ sudo cp wlanmdsp.mbn /lib/firmware/qcom/c630
$ sudo systemctrl start qrtr-ns
$ sudo systemctrl start pd-mapper
$ sudo systemctrl start tqftpserv
$ sudo systemctrl start rmtfs
$ qrtr-lookup
$ sudo systemctrl enable qrtr-ns
$ sudo systemctrl enable pd-mapper
$ sudo systemctrl enable tqftpserv
$ sudo systemctrl enable rmtfs