mvadu wrote:Okay, this is for people who would like to compile this driver on their own! I was facing some issues in compiling a cleaned up version of the firmware maintained at
https://github.com/porjo/mt7601, and finally found the working set of instructions with help of few nice folks.
Note that updating gcc involves its own set of steps, as described in this guide
Code: Select all
1. mkdir src
2. cd src
3. git clone --depth 1 https://github.com/raspberrypi/firmware
4. git clone --depth 1 https://github.com/raspberrypi/linux
5. cat firmware/extra/uname_string
Linux version 3.18.10+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #775 PREEMPT Thu Apr 2 18:10:12 BST 2015 in my case
6. sudo nano linux/Makefile
7. Update EXTRAVERSION = last thee digits of uname -r (use uname -r | cut -c9-12 to get it)
9. Update gcc
8. sudo mkdir /boot/backup
9. sudo cp /boot/* /boot/backup/
10. sudo cp -r firmware/modules /lib
11. sudo cp -r src/firmware/boot /
12. sudo cp firmware/extra/Module7.symvers linux/Module.symvers
13. sync
14. sudo reboot
15. cd src/
16. sudo ln -s /home/pi/src/linux /lib/modules/$(uname -r)/build
17. cd linux
18. sudo gunzip -c /proc/config.gz > .config
19. sudo make oldconfig
20. sudo make modules_prepare
21. mkdir ~/git
22. cd ~/git
23. git clone https://github.com/porjo/mt7601
24. cd src
25. sudo make
26. sudo insmod /home/pi/git/mt7601/src/os/linux/mt7601Usta.ko
27. lsmod | grep 7601
Hello, I'm new to linux and to the forum.
I am assuming in step 24 is cd ~/src.
Step 25 is not working for me, it says
pi@raspberry ~/git/mt7601 $ sudo make
make: *** No targets specified and no makefile found. Stop.
Can anyone help me, please?
Edit: I got it! Step 24 is cd mt7601/src
BTW, step 11 there is a "~/" missing, before the src