Archivio mensile 27 January 2020

Driver 7610u for raspberry pi

TL;DR

jump to UPDATE DAY#3 there is the solution I’ve found for this problem.


Stuff like “looking for linux drivers” can make you incredible sad and happy at the same time. I’m helping out a friend of mine to setup a wifidongle on his raspberry pi. The product seems to be a TP Link AC600 but, like all the computer related hardware, brands are only brands… we need to see the chip and the chipset..

So it seems there is a mediatek chip 7610u in it, and that it’s not automatically recognized as a wifi dongle. How do I know it? Simple!! just type 

dmesg

and something about “can not find 7610u.bin” will appear.

Looking around (google) it seems that Mr. Engman wrote and distributed a super script that can install everything you want in a snap. But the script it’s not where it’s supposed to be (no…this link won’t work https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz ) But there are alternatives, or so it seems, download and install the scripts from here:

sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi

The command:

sudo install-wifi -h
will show details on using it. To install the driver on your current kernel you just need to run command

sudo install-wifi

This will select the driver you need and automatically download and install it. Done? Solved? No, Unfortunately “A driver does not exist for this update” and by “this update” it means kernel 4.19.97-v7+

When someone tells you that windows and mac works out-of-the-box, please do not start nerdy talking about the beauty of the open source and Richard Stallman … Linus Torvalds… just believe him/her.

And now what? Well… why don’t you compile your driver? Super!! There is a fabulous page here 

https://config9.com/linux/ubuntu/how-to-install-mediatek-mt7610u-rt2860-driver-2/

On How to do it, but it’s not the one you are looking for (move to day2 and you’ll find some clue). Right now, I’m laying on the floor (because I can use only the TV as a monitor) downloading 1Gb of Linux Kernel, just to setup the environment to compile the driver. It’ll be a long night/day.

 

UPDATE DAY#2

I need to compile driver from scratch, it seems the right documentation is this one

https://groenholdt.net/Computers/RaspberryPi/MediaTek-MT7601-USB-WIFI-on-the-Raspberry-Pi/MediaTek-MT7601-USB-WIFI-on-the-Raspberry-Pi.html

But no, it won’t work so do not follow that guide: there is something wrong in the MAKE file (or that what I’ve understood) because the make command exit with a status of 2 (status must be 0, when everything is ok) without particular informations on the reason why.

 

 

 

 

 

 

 

No way for this to work.

UPDATE DAY#3

After more struggling with make files, import and some changes in .c and .h files, I found good “how-to” here https://askubuntu.com/questions/674116/how-to-install-tp-link-t2uh-wireless-adapter-driver-ralink-mt7610u I re-write the same information here:

If you would install the driver you will need to compile the source. To do this you will need install git and clone the repository in your home directory.

sudo apt install git
cd ~
git clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
cd mt7610u-linksys-ae6000-wifi-fixes

Then type

sudo apt-get install build-essential linux-headers-$(uname -r)
make clean
make
sudo make install

You will need to work in the directory “mt7610u-linksys-ae6000-wifi-fixes” otherwise the process will not work. And finally

sudo apt-get install dkms  
sudo cp -R . /usr/src/mt7610u_sta-1.0
sudo dkms add mt7610u_sta/1.0
sudo dkms build mt7610u_sta/1.0
sudo dkms install mt7610u_sta/1.0

AND IT WORKS!

NOTE: I’ve only used command sudo dkms install mt7610u_sta/1.0 because, probably, kernel was already builded. Anyway… I had to modify the rtmp.h files, because there is a double definition of an ENUM. If you have the same errore, just remove the enum definition in the rtmp.h file.

This is the final result. You can see the dropdown menu for all the available wifi network, and I can navigate to a website (www.radiocittaperta.it the radio where I have a show every Sunday at 22.00 called Katzenjammer) 

Driver 7610u per raspberry pi

TL;DR

Andate diretti al UPDATE DAY#3 c’è la soluzione a questo problema.


Cose come “cercare driver Linux” possono renderti incredibilmente triste e felice allo stesso tempo. Sto aiutando un mio amico a configurare un dongle wifi sul suo Raspberry Pi. Il prodotto sembra essere un TP Link AC600 ma, come tutto l’hardware relativo ai computer, i marchi sono solo marchi… dobbiamo vedere il chip e il chipset..

Quindi sembra che ci sia un chip mediatek 7610u e che non sia riconosciuto automaticamente come dongle wifi. Come lo so? Semplice!! basta digitare

dmesg

e apparirà qualcosa su “impossibile trovare 7610u.bin”.

Guardandosi intorno (google) sembra che il signor Engman abbia scritto e distribuito un super script che può installare tutto ciò che vuoi in un attimo. Ma la sceneggiatura non è dove dovrebbe essere (no…questo link non funzionerà https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz ) Ma ci sono alternative, o almeno così sembra, scarica e installa gli script da qui:

sudo wget http://downloads.fars-robotics.net/wifi-drivers/install-wifi -O /usr/bin/install-wifi
sudo chmod +x /usr/bin/install-wifi

Il comando:

sudo install-wifi -h
mostrerà i dettagli sul suo utilizzo. Per installare il driver sul tuo kernel attuale devi solo eseguire il comando

sudo install-wifi

Questo selezionerà il driver necessario e lo scaricherà e installerà automaticamente. Fatto? Risolto? No, purtroppo “Non esiste un driver per questo aggiornamento” e con “questo aggiornamento” si intende kernel 4.19.97-v7+

Quando qualcuno ti dice che Windows e Mac funzionano immediatamente, per favore non iniziare a parlare da nerd della bellezza dell’open source e di Richard Stallman … Linus Torvalds … credici e basta.

E adesso? Beh… perché non compili il tuo driver? Super!! C’è una pagina favolosa qui

https://config9.com/linux/ubuntu/how-to-install-mediatek-mt7610u-rt2860-driver-2/

Dove si può vedere come si fa, ma non è quello che cerchi (vai al giorno2 e troverai qualche indizio). In questo momento, sono sdraiato sul pavimento (perché posso usare solo la TV come monitor) scaricando 1Gb di Linux Kernel, solo per configurare l’ambiente per compilare il driver. Sarà una lunga notte/giorno.

 

Aggiornamento DAY#2

Ho bisogno di compilare il driver da zero, sembra che la documentazione giusta sia questa

https://groenholdt.net/Computers/RaspberryPi/MediaTek-MT7601-USB-WIFI-on-the-Raspberry-Pi/MediaTek-MT7601-USB-WIFI-on-the-Raspberry-Pi.html

Ma no, non funzionerà quindi non seguire quella guida: c’è qualcosa che non va nel file MAKE (o quello che ho capito) perché il comando make esce con uno stato di 2 (lo stato deve essere 0, quando tutto va bene) senza particolari informazioni sul motivo.

 

 

 

 

 

 

 

Non c’è maniera per farlo funzionare.

Aggiornamento DAY#3

Dopo aver faticato di più con la creazione di file, l’importazione e alcune modifiche ai file .c e .h, ho trovato un buon “how-to” qui https://askubuntu.com/questions/674116/how-to-install-tp-link-t2uh-wireless-adapter-driver-ralink-mt7610u riscrivo le stesse informazioni qui:

Se vuoi installare il driver dovrai compilare il sorgente. Per fare ciò dovrai installare git e clonare il repository nella tua home directory.

sudo apt install git
cd ~
git clone https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes.git
cd mt7610u-linksys-ae6000-wifi-fixes

Poi digita

sudo apt-get install build-essential linux-headers-$(uname -r)
make clean
make
sudo make install

Dovrai lavorare nella directory “mt7610u-linksys-ae6000-wifi-fixes” altrimenti il processo non funzionerà. E infine

sudo apt-get install dkms  
sudo cp -R . /usr/src/mt7610u_sta-1.0
sudo dkms add mt7610u_sta/1.0
sudo dkms build mt7610u_sta/1.0
sudo dkms install mt7610u_sta/1.0

ED È FATTA, FUNZIONA!

NOTA: ho usato solo il commando sudo dkms install mt7610u_sta/1.0 perché, probabilmente, il kernel era già compilato. Comunque… ho dovuto modificare i file rtmp.h, perché c’è una doppia definizione di ENUM. Se hai lo stesso errore, rimuovi semplicemente la definizione enum nel file rtmp.h.

Questo è il risultato finale. Puoi vedere il menu a discesa per tutte le reti wifi disponibili e posso navigare su un sito Web (www.radiocittaperta.it la radio dove ho un programma ogni domenica alle 22.00 chiamato Katzenjammer)

Katzenjammer 26 gennaio 2020

  1. Here Comes Your Man – Pixies
  2. Bags – Clairo
  3. Me Want Marò Back – Pinguini Tattici Nucleari
  4. Zingara – Il cattivista – The Zen Circus
  5. Dance Of The Clairvoyants – Pearl Jam
  6. Via – Coez
  7. Looking Too Closely – Fink
  8. You Don’t Have to be Lonely – The Undercover Dream Lovers
  9. Open Wide – Say Yes Dog
  10. Is This a Dream? – Badly Drawn Boy
  11. Fight The Power – Public Enemy
  12. Walk This Way – Run–D.M.C., Aerosmith
  13. Sabotage – Beastie Boys
  14. There Is No Year – Algiers
  15. RIP Coyote Condo #5 – Grandaddy
  16. Summer Girl – HAIM
  17. Une Lune étrange – L’Epee
  18. Paper Cup – Real Estate Sylvan Esso

Katzenjammer del 19 gennaio 2020

  1. Calm Down aka I Should Not Be Alone – Ezra Furman
  2. Everything Else Has Gone Wrong – Bombay Bicycle Club
  3. Terza sveglia – Êtres
  4. One by One – Comateens
  5. Tutto Ciò Che Abbiamo – Ex-Otago
  6. Tuesday Morning – The Pogues
  7. The Look – Metronomy
  8. 1517 – The Whitest Boy Alive
  9. Steady, As She Goes – The Raconteurs
  10. Un’Estate Fa – Delta V
  11. Amore Di Plastica – Carmen Consoli
  12. Complicità (Here is the House) – Bluvertigo
  13. Can’t Keep No Good Boy Down – The Parlor Mob
  14. Takeaway – The Chainsmokers ILLENIUM Lennon Stella
  15. Acceleration – CANNIBALE
  16. Benedetto sei tu – Brunori Sas
  17. Cose dell’altro mondo – Dente
  18. C’est si bon – Thomas Dutronc Iggy Pop Diana Krall

Katzenjammer del 12 gennaio 2020

  1. My Honest Face – Inhaler
  2. Anche Fragile – Elisa, Brunori Sas
  3. Dance Monkey – Tones and I
  4. GOOD DIE YOUNG – Elley Duhé
  5. My Name is Dark – Grimes
  6. San Giovanni – Fulminacci
  7. Mia (con Calcutta) – Giovanni Truppi, Calcutta
  8. The Man Who Sold The World – David Bowie
  9. Coffee or Wine – Field Music
  10. Three Wishes – Stone Temple Pilots
  11. Adventure Shit – People Taking Pictures POW! Negro
  12. Pretty Fly (For A White Guy) – The Offspring
  13. My Favourite Game – The Cardigans
  14. painted on my heart – the cult
  15. From Out of Nowhere – Electric Light Orchestra
  16. When She Finds You – Shakespears Sister Richard Hawley
  17. What Presence?! – Orange Juice
  18. How I Miss You – Foo Fighters
  19. Don’t Give Up – Peter Gabriel

Katzenjammer del 5 gennaio 2020

  1. January 1979 – mewithoutYou
  2. First Time – Lifehouse
  3. Saturday Night – Suede
  4. Loud Like Love – Placebo
  5. Wake Up – Arcade Fire
  6. Sonica – Marlene Kuntz
  7. Everything Else Has Gone Wrong – Bombay Bicycle Club
  8. Did My Best – The Voidz
  9. Posthumous Forgiveness – Tame Impala
  10. Knights Of Malta – The Smashing Pumpkins
  11. Rocks – Primal Scream
  12. Friday I’m In Love – The Cure
  13. High And Dry – Radiohead
  14. Video Games – Manuel Agnelli, Rodrigo D’Erasmo
  15. Scorpio Rising – Death In Vegas
  16. Catch – Dana Gavanski
  17. everything i wanted – Billie Eilish

Capodanno 2020

Le foto del capodanno 2020. Discorso del presidente