Page 2 of 5

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Thu Dec 27, 2012 6:45 pm
by mvheezik
Hi Ricky,

thanks for your detailed reply.
It's been a while since I compiled a linux kernel (back in the day when they were even monolithic). With your instructions I think I will succeed.

As for your remark on the chipset. I allready have the minand image installed and lsusb clearly states 0dba:8179 as network device.
It seems that I have to do this the hard way.

I will let you know the result.

Regards,

Martijn

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Tue Jan 08, 2013 8:48 pm
by bpbrunopinto
rickyzhang wrote:
mvheezik wrote:
rickyzhang wrote:I don't use android at all. I doubt if Linux driver can work on android.

Do you have Linux kernel source code and its build env? If not, this may not help you. You got to build kernel and driver by yourself.

In any case, I'm going to write down the whole compiling process in my personal blog soon. You can start everything from scratch.


Hi rickyzhang,

great that you solved this. I'm looking into fixing this problem for my own device. I was wondering, do I need to compile a whole new kernel or will the wifi driver sufice?
Any luck yet updating your personal blog in this regard?

Regards,

Martijn van Heezik


Hi Martijn,
I'm busy with my Hackberry board in this holidays. Sorry, I haven't got time to update my blog. In any case, here is quick info you need:

1. Download linaro pre-built image form here : http://www.4shared.com/archive/3Vqh1veX ... alimg.html
Deploy this image to you SD card. This image runs fastest in my mk802II among all pre-built image. But it can't bring up the wifi chipset.
(This is rootfs, u-boot that I'm working on. The credit should goes to the website here http://www.csksoft.net/blog/post/mk802_ ... build.html)


2. Follow instruction to get Linux kernel source:
git clone https://github.com/amery/linux-allwinner.git
git checkout 23e5456879db0175f571dec43095c49e181e0b10

3. Download rtl8188eu from another linux source:
git clone https://github.com/Red54/linux-shumeipai2.git

copy its driver folder ../drivers/net/wireless/rtl8188eu to Linux source code from step 2

4. Change Makefile and Kconfig so that add new driver compile option in kernel

Modify .../drivers/net/wireless/Kconfig in Linux source from step 2
add :
source "drivers/net/wireless/rtl8188eu/Kconfig"

Modify .../drivers/net/wireless/Makefile in Linux source from step 2
add:
obj-$(CONFIG_RTL8188EU) += rtl8188eu/

5. Modify build config

Download optimized config file from Toby
wget http://dryft.net/mk802/config_3.0.36-t3.gz
gunzip -c config_3.0.36-t3.gz > .config

Base on this config file, run menucofnig to enable compiling new driver
make ARCH=arm menuconfig
Goes to ->drivers->newowrk->wireless, you should see rtl8188eu that you added in step 4. If there's no such option, revisit step 3.

6. Build you image and deploy the kernel and module file to SD card. (Google any kernel compile process for mk802II. They are the same procedure)

Step 3,4,5 are for rtl8188eu wifi chipset. They are not documented in any online tutorial yet. Let me know if it works for you.

BTW, before you jump into it, right after step1, boot Linux and run lsusb. Make sure your MK802II used the same wifi chipset as mine. I believe there may be many variant in MK802II manufactured in China. Good luck!

Cheers,
Ricky


That seems realy hard. Can't you post your modified linaro online and post the link here? I bet i wouldn't be the only one appreciating it.
Thanks for the tutorial btw

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Fri Jan 11, 2013 5:31 am
by rickyzhang
I can share kernel + module. It's around 17MB. But I don't know how to share it.

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Sat Jan 12, 2013 5:25 pm
by zooted
I can share kernel + module. It's around 17MB. But I don't know how to share it.


You can use a free file host like Mediafire, Multiupload, Rapidshare, 4shared, etc.

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Sun Jan 13, 2013 6:43 am
by redpotatoes
Anyone modified the 20121031 (latest official firmware to this date) to include the rtl8188 wifi driver ?

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Mon Jan 14, 2013 12:57 am
by rickyzhang
zooted wrote:
I can share kernel + module. It's around 17MB. But I don't know how to share it.


You can use a free file host like Mediafire, Multiupload, Rapidshare, 4shared, etc.

Here you go:

kernel:
http://www.mediafire.com/?rduzm93dnvridax
module:
http://www.mediafire.com/?b069rz08ft7jxd8

Deploy the first package to your boot partition and second one in your rootfs

run depmod -a, lsmod to see if 8188eu get loaded.

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Tue Jan 15, 2013 3:02 am
by csgregg
I'm working on the same thing... but my Linux is very rusty!

Can you walk me through deploying these two packages to the boot partition and rootfs...

Thanks !

-- Chris

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Tue Jan 15, 2013 9:37 am
by serox_21
Hi,
I had the same problem with the wirelless driver but your kernel and modules fixed it.
Thanks for sharing this files

How I deployed the packages:
- mount the sd card with linaro version in a linux OS (to have access to boot and / partions)
- extract kernel archive and copy all 3 files to boot partion (the boot partition is the smaller one (17 Mb)) replacing existing files
- extract the module arhive and copy the lib/modules/3.03.6-t3+ folder to second partion from SD card (the larger one) to /lib/modules (existing folder 3.0.36-t3+ from sd card will be overwritten )
- unmount the sd card and insert it in the MK802 II device and power it on
- the new modules should be loaded and the wireless card should work

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Tue Jan 15, 2013 10:22 am
by serox_21
After I installed the compiled kernel with wireless support, I can't hear no sound on the TV?

Have anyone had this issue?
How to check if the correct sound driver is installed?

P.S. I didn't checked, if with the default kernel the sound worked

Re: [SOLVED]MK802 II wifi issue in Linux

PostPosted: Wed Jan 16, 2013 9:39 am
by serox_21
serox_21 wrote:After I installed the compiled kernel with wireless support, I can't hear no sound on the TV?

Have anyone had this issue?
How to check if the correct sound driver is installed?

P.S. I didn't checked, if with the default kernel the sound worked


Fixed by adding .asoudrc config file to home folder