-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MT5931 Wifi and MT6622 Bluetooth support #2
Comments
Very interesting... Looks like we have a match... atleast on the face of it... Can you spend some time, to get a pull request for me to merge into main Alok On Wed, Apr 3, 2013 at 11:50 PM, Galland [email protected] wrote:
http://www.linkedin.com/profile/view?id=12406006&trk=tab_pro |
Yes I'll try that. I'm currently uploading the code to: https://github.com/Galland/MTK5931 If you want to follow-up on my findings, I've been posting everything to http://hwswbits.blogspot.com |
Very impressive documentation on the blog... When I get to update the Let's hope the next wifi and bt adventures work out... :) Alok On Thu, Apr 4, 2013 at 12:03 AM, Galland [email protected] wrote:
http://www.linkedin.com/profile/view?id=12406006&trk=tab_pro |
Any views or thoughts on this, mate ? Alok On Wed, Apr 3, 2013 at 2:49 PM, Alok Sinha [email protected] wrote:
http://www.linkedin.com/profile/view?id=12406006&trk=tab_pro |
I'm stuck with that part :( I moved to the 3D. I wish you better luck with it! |
Ok - if the 3D has worked for you.. then it might be useful to merge the forks... ?? Alok |
That's great! we have been working on this, but did not get it to work. Could you elaborate on how did you integrate the MTK5931 repo into the picuntu kernel? from that point I can help you with getting it fully working. Awesome work! |
Here is the latest MT5931 WIFI_RAM_CODE (released today!): About the gpio, the pins are likely to be the same for many other sticks since they tend to copy Rockchip's standard PCB design, so hopefully your work will help many people, please let me know when you upload your source :) |
You have done an excellent job with this. Thank you very much! We are currently working very hard on the last released kernel (which includes rk3188 support), which may include an updated driver along with the FW I linked you to (that link points to this kernel). Thanks again for your development updates! |
I'll check that driver to see wether it works with his firmware. I saw some changes in the source that could solve this issue. I'll keep you updated |
I've just finished tonight the changes required for the rk3188 kernel to boot also for rk3066 devices. There is a config option for MT5931 and MT662X that I guess enables those drivers. |
Great Work ! Thanks |
Hello guys, unrelated to this issue, but for me a bit related since I have the mediatek chip as well, and that's not working yet. Currently running this external usb network adapter, and it's working like a charm. |
now a quick and dirty test: GPIO failed Long dmesg : [ 0.000000] Initializing cgroup subsys cpuset |
check arch/arm/mach-rk30/board-rk30-sdk-sdmmc.c usumfabricae used these ones in his iMito stick and communicated with it: For reference: |
Successfully tested compile it as a module: Build wlan.ko replace Makefile with Makefile.modulein Linux3188/drivers/net/wireless/mt5931 and fix KDIR within Makefile in ./os/linux/gl_init.c uncomment the following |
Can I open another Issue on ISOCHRONOUS USB data transfer. Is there anyone interested in fixing this kind of bug? |
6/21/2013 next compiling test |
by the way, just found a "wifi_launcher" folder under /drivers/net/wireless and see that it is the one calling "rockchip_wifi_init_module" (a symbol exported by mt5931), maybe that has to be compiled in (need to modify wireless Makefile to include that folder) |
committed changes on https://github.com/usumfabricae/Linux3188 |
No succes on MK802IIIS: [ 1.361765] mt6622_probe. Inspection: board-rk30-sdk-sdmmc.c Next test: |
HINT: NEW: module wlan.ko on MK802IIIS insmod /lib/modules/3.0.36+/kernel/drivers/net/wireless/mt5931/wlan.ko rmmod wlan [ 2508.796052] Remove wlan! |
Guys Thanks for the fantastic work you guys are doing, taking this forward. I regret, I have not been able to contribute, as much I would have liked. 3188 and real life is making sure of that. Alok |
When I was working on it, one of the things I tried was to check the debug on android, and compare with the Linux insmod log. |
RubCaj could you try https://github.com/usumfabricae/Linux3188 For some obscure reason seems that there's something different in GPIO management in this kernel release (didn't check if it's define related) but in the end for IMITO I didn't need to change RK30SDK_WIFI_GPIO_POWER_N definition. I only did a few changes to load wlan as a module and Kconfig, Makefile and .config to compile as I wish. If this doesn't work, could you try dumping GPIO (https://github.com/usumfabricaeGPIO_DUMP.git a wonderful utility I found in internet during this testing period. You need to compile the module against the same kernel header version of your working ANDROID kernel) and try switching on and off wifi to check which GPIO pin are changing. If you wish I could help in the late afternoon (now it's 11 am here). |
A lot of thanks usumfabricae modprobe wlan Result: Open FW image: WIFI_RAM_CODE failed [ 5623.612679] MT5931 SDIO WiFi driver (Powered by Rockchip,Ver 2.12) init. your hint with |
WIFI_RAM_CODE is a firmware, you can find it in /drivers/net/wireless/mt5931/fw_.... |
It should go under /system/etic/firmware/Wifi_ram_code (uppercase) it's hardcoded in one of mt5931 define. Since i'm testing on hybrid Linux/android rootfs image it wasn't an issue to me. Maybe we can put it in Kconfig. You can use the app to read gpio registrer values and dump them on a file. Just call it From a script passing one gpioid atre the other. Later i can share the script. Don't expect something magic. There're further options i'm still investigating. |
Great! finally success. Thats it background:
and in ../drivers/net/wireless/mt5931/os/linux/gl_kal.c you find the hardcoded path
so the firmware-file must be fixed in the folder Thanks guys |
Hello, thanks to all who make this possible 😄 and get: and then: and get: I'm missing the whole point, I don't know which module I have to load to make bluetooth work or what else I have to do... |
I'll jump in and grind the bluetoof out this wknd with ya. I betcha we figger it out with the clues above. Anyone else notice that bluetooth operating around this device crushes the wi-fi signal? Just me? |
put libbluetooth_mtk.sohttps://github.com/usumfabricae/MT6622_hciattach/blob/master/build/picuntu/libbluetooth_mtk.so Load module bt_hwctl.ko (power control for bluetooth chipset) Than it should work. 2013/10/7 anibarro [email protected]
|
Thanks a lot usumfabricae! It seems to be working fine, but no devices are shown while scanning... I will keep digging :) |
Dear Omegamoon! Galland commented: |
Hi to everybody. First things first:
I've been able to compile Usumfabricae's Kernel and Modules. Everything works and I've got WiFi. But (correct if I'm wrong!) his Kernel don't have 2D/3D acceleration. Not licking anybody's ass: thank you for sharing you're findings. p.s. In case anyone ran into this issue, with Usumfabricae's Kernel, WiFi drops every second with Wicd installed. Once I purged it all went smooth, even with Network Gnome Manager. Most probably my fault but, that's how I worked around it. Cheers! |
Never mind. |
Hi to everyone, For 3 days, I'm trying to make my 802IIIS device running Picuntu. Many thanks! |
@Sytex |
@joalenquer I start to try what you suggested now. I will try it with homeio_rc1, will report after finish. Edit: After posting this, I found that you mentioned picuntu 4.5. I cannot find a fileset from it. All the download links get the same .7z file, where are only img files inside (4.5_nand). Do you know, where to download from the fileset? |
@Sytex Picuntu 4.5: |
@joalenquer
Edit: After it connects, it say in Wicd window bottom: Connected to mikro2 az 0% (IP:192.168.1.54) Edit2: Weird, but I have internet. ifconfig shows no IP at wlan0, iwconfig shows disconnected, but I have network... :-/ |
@Sytex Now: Let me know how it went and we will continue from here. |
Hi, Sorry, I had to go away too yesterday! Today I made the steps, and I have stable network. I had to configure one of my AP's to open network, but it wor Many-Many thanks to you!!! Waiting for the further instructions :-) |
@Sytex
If so, you can do the next steps from your Picuntu instead of your PC. Now, on to 2D/3D: Let me know how it went and we'll continue from here |
Hi! I'm using Picuntu 4.5 and xfce4 start OK! A made the settings, you wrote. The systems font went huge (icons, xfce terminal), as you can see in the pic, it was much smaller before the steps. Ideas? Or further steps? :-) Now I have to go away, I can try the next steps tomorrow. (It's 5pm here now) |
@Sytex Let me know how it went and, if you want, we will continue with some more tweaking. As for chromium gpu-internals: p.s. - English is not my native language (I'm Portuguese) so don't worry. As long as we understand each other... |
Hi! The screen is OK now, thank You for the new files! Waiting for the further settings, etc. Edit: es2gears is running with 105-115 fps |
@Sytex es2gears: Network:
CPU (WARNING: HEATSINK REQUIRED!!! It will melt your device!!!):
Monitor CPU temps:
Let me know |
Network Gnome Manager installed, it works, but only with open networks. Do I have to intall anything else to get it work with WP I have no extra coolers, so I haven't made the CPU settings. Conky installed, it show's the CPU is running at 1.01Ghz (around 60-65 celsius) |
@Sytex I suggest you to get a fan and apply it. It's a all new device with CPU overclock. Mine is at 1.61GHz, 30º~50º. |
Okay, later I will apply a fan on it, but I have to figure out where to get power supply for it. (Maybe from USB port). lsmod: Do you have idea how to test that is mali working properly? Because:
|
Can some one make a image to flash for the less fortunate to know what we're doing. : ) |
Noob here - please be warned I know next to nothing about drivers and kernels. I have a Rikomagic MK802 IIIS and looking for a WIFI solution a few days ago I ended up here and began following the instructions in this post: #2 (comment) At some stage previously, my OTG microUSB port on my stick became damaged, so I took the case off the stick and tried to fix it but managed to break a couple of the pins which previously connected the port to the circuit board. As far as I know, I now have no way of flashing a the 3.0.36+ kernel (I think mine is 3.0.8). Is there any way I can use the above WIFI fix with my kernel? Is there any way other than via the OTG port to flash a new kernel? |
@joalenquer |
I have an mk802iiis that i'd like to get wifi going on as well. any news? |
Dear all, In first place, thank you for all the effort and time. I have a Rikomagic mk802iiis (8gb) with 3066 and mt5931. I worked on this device all last week, reading and reading a lot of forums, posts, and so on. There are several offline files and very tricky guides, so it was very difficult for me to find a comprehensive guide to install linux on this device. I finally got it working, however the wifi is not working. After reading this thread at least 5 times, I can't get the wifi working. The dmesg never show this line I have several questions, maybe you can help me with some answers :)
3.0.36+: recovery.img; user_gpio (module and binary); wlan.ko and WIFI_RAM_CODE. I used 3.0.8+ kernel, but wlan.ko didn't work, so I changed to 3.0.36+, but user_gpio link now is offline, so I'm stucked. Should I compile my things by my own and stop bothering you? :)
Thanks again for all your effort. Regards! |
I need to know how to boot picuntu on measy u2a from sdcard without booting android first and then reboot recovery. I'd like to boot directly to linux |
@tohyob What does that have to do with the MT5931 driver? |
Well, after all I will encounter the problem about MT5931; but at the present time I need to boot measy u2a from sdcard... I don't know where to ask, hoping an answer by some member of this forum, where you and others have already moved around. Any reference? |
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
The text was updated successfully, but these errors were encountered: