aloksinha2001 / picuntu-3.0.8-alok

Integrated kernel for Picuntu 3.0.8-alok+
Other
36 stars 34 forks source link

MT5931 Wifi and MT6622 Bluetooth support #2

Open Galland opened 11 years ago

Galland commented 11 years ago

Thanks for adding the Rikomagic Mediatek code. From my side, I've found more Linux-like drivers in this repo: git://github.com/Anderxale/7300-kern.git

Take a look at folder: 7300-kern/common/drivers/amlogic/wifi/mtk_5931/

UPDATE: The repo has been deleted!! I cloned it a couple weeks ago. I'll reupload the mtk folder to a repo of my own

tyeo098 commented 11 years ago

@mrhall4d

I'm using a mk809iii knockoff which has the 3066 and the MT5931 wifi chipset. It also has an ethernet port, but lspci doesn't exist in my linuxroot nor lshw so I have no idea how to identify it.

WPA_Supplicant is not installed on my system either xD

I do have a very pretty XFCE desktop though!

tonikasch commented 11 years ago

@tyeo098 I guess you will have to open it in order to identify your ethernet chip :)

qla commented 11 years ago

Hello, im looking for active link with rom + recovery that u use for MK802IIIs ?

mrhall4d commented 11 years ago

little bit further up the post is kernel + modules

tyeo098 commented 11 years ago

@Galland @usumfabricae

Was this code merged with the Alok's master branch?

aloksinha2001 commented 11 years ago

Nope.

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Wed, Aug 28, 2013 at 8:14 PM, tyeo098 notifications@github.com wrote:

@Galland https://github.com/Galland @usumfabricaehttps://github.com/usumfabricae

Was this code merged with the Alok's master branch?

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23420294 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

tyeo098 commented 11 years ago

@aloksinha2001

...should it be?

BerberNeri commented 11 years ago

@usumfabricae Sorry I'm far from home till 15.09. As soon I get there I'll post the dmesg.

25.08.2013, 12:04, "usumfabricae" notifications@github.com:

@BarberNeri: I would like to compare dmesg messages in Android and Picuntu could you dump the android dmesg during wifi switch off and switch on ? and the dmesg part on picuntu just after insmod wlan.ko

I would also see the value of gpio pin 279 e 281 before and after insmod wlan.ko in picuntu.

@mrhall4d: can't your device boot Android anymore ? If you have replaced only the recovery partition image, standar boot should bring you into android.

for you both: you can get a debug enabled copy of wlan.ko from https://github.com/usumfabricae/Linux_3188_bin.git

— Reply to this email directly or view it on GitHub.

Ivan Blagoy Der Erste Kanal Russland (Channel One Russia) Studio Leiter Reinhardtstrasse 55, 10117 Berlin +491704615414

aloksinha2001 commented 11 years ago

It should, will help a lot of other folks - additionally, it will help in getting this into the mainline for PicUntu ! :)

Alok

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Wed, Aug 28, 2013 at 8:24 PM, tyeo098 notifications@github.com wrote:

@aloksinha2001 https://github.com/aloksinha2001

...should it be?

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23421006 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

tyeo098 commented 11 years ago

Well I'm still unable to connect to WPA using the GUI... here is dmesg, any ideas?

[ 8477.919262] [wifi] wlan0 netif_carrier_off [ 8477.931033] cfg80211: Calling CRDA to update world regulatory domain [ 8481.162648] initRssiHistory. [ 8481.203026] [wifi] wlan0 netif_carrier_on [ssid:Mvix-Main 50:46:5d:6b:f8:c0] [ 8481.219639] --> mtk_cfg80211_set_default_key() [ 8481.220290] initRssiHistory. [ 8481.220347] [wifi] wlan0 netif_carrier_off [ 8481.221466] cfg80211: Calling CRDA to update world regulatory domain [ 8489.102083] initRssiHistory. [ 8489.115584] [wifi] wlan0 netif_carrier_on [ssid:Mvix-Main 50:46:5d:6b:f8:c0] [ 8489.141407] --> mtk_cfg80211_set_default_key() [ 8489.142207] initRssiHistory. [ 8489.142274] [wifi] wlan0 netif_carrier_off [ 8489.148496] cfg80211: Calling CRDA to update world regulatory domain [ 8497.027318] initRssiHistory. [ 8497.051747] [wifi] wlan0 netif_carrier_on [ssid:Mvix-Main 50:46:5d:6b:f8:c0] [ 8497.101332] --> mtk_cfg80211_set_default_key() [ 8497.101892] initRssiHistory. [ 8497.103495] [wifi] wlan0 netif_carrier_off [ 8497.113585] cfg80211: Calling CRDA to update world regulatory domain

aloksinha2001 commented 11 years ago

Timezone settings ??

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Wed, Aug 28, 2013 at 11:18 PM, tyeo098 notifications@github.com wrote:

Well I'm still unable to connect to WPA using the GUI... here is dmesg, any ideas?

[ 8477.919262] [wifi] wlan0 netif_carrier_off [ 8477.931033] cfg80211: Calling CRDA to update world regulatory domain [ 8481.162648] initRssiHistory. [ 8481.203026] [wifi] wlan0 netif_carrier_on [ssid:Mvix-Main 50:46:5d:6b:f8:c0] [ 8481.219639] --> mtk_cfg80211_set_default_key() [ 8481.220290] initRssiHistory. [ 8481.220347] [wifi] wlan0 netif_carrier_off [ 8481.221466] cfg80211: Calling CRDA to update world regulatory domain [ 8489.102083] initRssiHistory. [ 8489.115584] [wifi] wlan0 netif_carrier_on [ssid:Mvix-Main 50:46:5d:6b:f8:c0] [ 8489.141407] --> mtk_cfg80211_set_default_key() [ 8489.142207] initRssiHistory. [ 8489.142274] [wifi] wlan0 netif_carrier_off [ 8489.148496] cfg80211: Calling CRDA to update world regulatory domain [ 8497.027318] initRssiHistory. [ 8497.051747] [wifi] wlan0 netif_carrier_on [ssid:Mvix-Main 50:46:5d:6b:f8:c0] [ 8497.101332] --> mtk_cfg80211_set_default_key() [ 8497.101892] initRssiHistory. [ 8497.103495] [wifi] wlan0 netif_carrier_off [ 8497.113585] cfg80211: Calling CRDA to update world regulatory domain

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23433866 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

tyeo098 commented 11 years ago

Huh? The module wont connect to a WPA AP

aloksinha2001 commented 11 years ago

I know,... its trying to connect to the regulatory domain (perhaps on account of the channels that you have configured)

"Calling CRDA to update world regulatory domain"

The zone info of your device determines which CRDA domain you fall under... so was thinking... mebe thats causing the problem...

Alok

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Thu, Aug 29, 2013 at 12:04 AM, tyeo098 notifications@github.com wrote:

Huh? The module wont connect to a WPA AP

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23437030 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

tyeo098 commented 11 years ago

Hmm... My timezone was off, but even after I set it correctly it is still not connecting. I can connect to unsecured network just fine though.

aloksinha2001 commented 11 years ago
  1. Have you hardcoded or selected > 12 channels for your wifi such as 13, or 14.
  2. Does it work with manual configuration - not using wicd but /etc/network/interfaces ?

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Thu, Aug 29, 2013 at 1:04 AM, tyeo098 notifications@github.com wrote:

Hmm... My timezone was off, but even after I set it correctly it is still not connecting. I can connect to unsecured network just fine though.

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23441153 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

aloksinha2001 commented 11 years ago

Also, hope you have rebooted or init after the timezone set.. the module may have loaded before your TZ setting effective.

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Thu, Aug 29, 2013 at 1:17 AM, Alok Sinha asinha@g8.net wrote:

  1. Have you hardcoded or selected > 12 channels for your wifi such as 13, or 14.
  2. Does it work with manual configuration - not using wicd but /etc/network/interfaces ?

On Thu, Aug 29, 2013 at 1:04 AM, tyeo098 notifications@github.com wrote:

Hmm... My timezone was off, but even after I set it correctly it is still not connecting. I can connect to unsecured network just fine though.

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23441153 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

tyeo098 commented 11 years ago

@aloksinha2001

I have rebooted since I set the timezone. I have not hardcoded anything.

My /etc/network/interfaces file only contains info for loopback. I still have to load the module on startup, so I added it to my /etc/modules file

aloksinha2001 commented 11 years ago

When you do the network config on the command line, do you succeed or do you get the same issues ?

Alok

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Thu, Aug 29, 2013 at 1:32 AM, tyeo098 notifications@github.com wrote:

@aloksinha2001 https://github.com/aloksinha2001

I have rebooted since I set the timezone. I have not hardcoded anything.

My /etc/network/interfaces file only contains info for loopback. I still have to load the module on startup, so I added it to my /etc/modules file

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23443081 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

aloksinha2001 commented 11 years ago

Try setting

iw reg set XX

On the command line, where XX is the TZ country code where u live in.

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

On Thu, Aug 29, 2013 at 1:44 AM, Alok Sinha asinha@g8.net wrote:

When you do the network config on the command line, do you succeed or do you get the same issues ?

Alok

On Thu, Aug 29, 2013 at 1:32 AM, tyeo098 notifications@github.com wrote:

@aloksinha2001 https://github.com/aloksinha2001

I have rebooted since I set the timezone. I have not hardcoded anything.

My /etc/network/interfaces file only contains info for loopback. I still have to load the module on startup, so I added it to my /etc/modules file

— Reply to this email directly or view it on GitHubhttps://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23443081 .

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

Alok Sinha Chief Executive Officer, Globus Eight Level 12, Tower 8C, DLF Phase II, Gurgaon, India 122002 Suite 600, 2201 Cooperative Way, Herndon, VA, USA 20171 Phone: +1-757-447-4642 | +91-9810159444 asinha@g8.net | www.g8.net

tyeo098 commented 11 years ago

bash: iw: command not found

I also do not have the network config script?

tonikasch commented 11 years ago

sudo apt-get install iw :)

tyeo098 commented 11 years ago

I cant, I dont have network! :)

tonikasch commented 11 years ago

So you can download it from... http://launchpadlibrarian.net/88984938/iw_3.2-1_armhf.deb and copy it to the sd card

then do dpkg -i iw_3.2-1_armhf.deb as sudo

tyeo098 commented 11 years ago

Done, done, done. No dice. Dmesg is still the same..

Is there a problem with WPA_supplicant?

tonikasch commented 11 years ago

I read some posts above that somebody chose the incorrect wpa_supplicant driver, I hope this is not the case

tyeo098 commented 11 years ago

It seems I'm using the correct cfg80211 driver... I think. That what what appears in dmesg.

tonikasch commented 11 years ago

Sorry!

For the network script, take a look at this comment: https://github.com/aloksinha2001/picuntu-3.0.8-alok/issues/2#issuecomment-23150619

bazuchan commented 11 years ago

@tyeo098 When I used incorrect wpa_supplicant driver dmesg looked just like yours. You need wext driver and only it (not nl80211).

tyeo098 commented 11 years ago

OK... I followed those instrcutions and I just get this:

ubuntu@rk3066dev:~$ sudo wpa_supplicant -Dwext -i wlan0 -c /etc/wpa.conf [sudo] password for ubuntu: rfkill: Cannot open RFKILL control device wlan0: No network configuration found for the current AP wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0 wlan0: Trying to associate with 50:46:5d:6b:f8:c0 (SSID='Mvix-Main' freq=2437 MHz) wlan0: Associated with 00:00:00:00:00:00 wlan0: CTRL-EVENT-DISCONNECTED bssid=50:46:5d:6b:f8:c0 reason=0 wlan0: Associated with 50:46:5d:6b:f8:c0 wlan0: WPA: Key negotiation completed with 50:46:5d:6b:f8:c0 [PTK=CCMP GTK=CCMP] wlan0: CTRL-EVENT-CONNECTED - Connection to 50:46:5d:6b:f8:c0 completed (auth) [id=0 id_str=]

Ping still shows nothing though.

tyeo098 commented 11 years ago

Oops. Have to run dhclient too haha.

Any idea how to change the XFCE network manager to use -Dwext instead?

Currently installing flash to run youtube videos and hopefully not cook the processor...

tonikasch commented 11 years ago

What network manager does XFCE use? I think it might be wicd or network manager. If you are using Wicd, you can make use of templates: http://wicd.sourceforge.net/templates.php In respect of the flash, are you trying Galland's post on flash for chromium under arm? http://hwswbits.blogspot.com.es/2013/04/flash-on-picuntu-linux-arm.html

tyeo098 commented 11 years ago

@tonikasch

Its Network Manager. I was not, and I do not terribly want to sign up for a 4shared account either.

tonikasch commented 11 years ago

oh, sorry, I didn't notice you had to register as I opened the link already logged in. will try to mirror it

Galland commented 11 years ago

ouch didn't notice that was the case! I'll change the post to link to a dropbox mirrored one

tonikasch commented 11 years ago

https://drive.google.com/folderview?id=0B1Y8Ntc7De3adk5yNHBqSjFYVDA&usp=sharing no login required

tyeo098 commented 11 years ago

Well since this has nothing to do with the now working wifi, I'll move my comments elsewhere. Thanks for the mirrors!

My only suggestion is to merge this with the master! It'll save lots of people trouble haha.

zmora2622 commented 11 years ago

Hello. I have another problem with running wifi in mk802iiis. I run insmod ./wlan.ko and see in iwconfig wlan1 Disconnected ESSID:"" MODE:Managed Access Point:00:00:00:00:04:40 Tx-Power=off RTS thr=0 B Fragment thr:off Encryption key:off Power Management period:2 Link Quality: 0 Signal level:0 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 RX invalid frag:0 Tx excessive retries:0 invalid misc:0 Missed beacon:0

after that i make file wpa_supplicant.conf ctrl_interface=wlan1 #wlan found with iwconfig update_config=1

network={ ssid="BBFDA" #ssid of wifi network proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="password" #password of WIFI network }

and start wpa_supplicant wpa_supplicant -Dwext -i wlan1 -c /etc/wpa_supplicant/wpa_supplicant.conf

and there i see rfkill:Cannot open RFKILL control device

i use this debug wlan.ko from @usumfabricae, any idea?

tonikasch commented 11 years ago

As per @tyeo098 log, that seems normal, perhaps related to bluetooth?

tyeo098 commented 11 years ago

@zmora2622

Make sure you are using the correct format for WEP/WPA/WPA2.

mrhall4d commented 11 years ago

any progress on the ug007?

mrhall4d commented 11 years ago

ok i want to try to install the kernel and modules from above i can install the kernel but i dont know how to or where to put the modules properlycould you help?

tyeo098 commented 11 years ago

I just placed it in the /home/ubuntu/ folder for testing.

Then run:

sudo insmod wlan.ko

If it returns nothing... great! It loaded correctly. Are you using a desktop env? You'll then need to go though the fun of setting up WPA_Supplicant and running dhclient (which it turns out... are two separate things! lol)

mrhall4d commented 11 years ago

ok thats what i dont get lsmod shows 8188.eu loaded and i can even iwscan and see my network but thats where i get stuck

tyeo098 commented 11 years ago

If you have the rt8188 then this module, etc will be of no use to you. This module (and entire discussion) is about the MT5931 wifi chipset, not the RT8188eu

tyeo098 commented 11 years ago

@mrhall4d Ok, so if you have the UG007, you have the MT5931 chipset, so ignore anything about the RT8188, thats like being concerned about windows drivers when you have a mac. Its two different pieces of hardware.

Don't run lsmod, ignore the currently loaded rt8188eu module. Copy the wlan.ko that has been posted here several times, to your home directory on your SD card file system. Then run: sudo insmod wlan.ko

It should return nothing.

mrhall4d commented 11 years ago

my mistake didnt mean 8188 but yes ko is loaded iwconfig shows wlan0

mrhall4d commented 11 years ago

just dont know where to go from there

tyeo098 commented 11 years ago

@mrhall4d

Okay haha. Are you using WPA/WPA2/WEP/etc? Or is it an open network?

mrhall4d commented 11 years ago

wpa

tyeo098 commented 11 years ago

@mrhall4d

Then you need to configure wpa_supplicant, so run:

sudo nano /etc/wpa.conf

and paste in:

ctrl_interface=/var/run/wpa_supplicant #wlan found with iwconfig update_config=1

network={ ssid="SSID" #ssid of wifi network proto=RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="SHARED-KEY" #password of WIFI network }

and save it with CTRL-O and CTRL-X (save, quit)

Then run wpa_supplicant with

sudo wpa_supplicant -Dwext -i wlan0 -c /etc/wpa.conf

Watch the console output, if you see something like 'completed successfully..' you're good. Then run

sudo dhclient wlan0

and

ping google.com

Thanks @zmora2622 because I copy-pasta'd your wpa.conf file and commands :)