Jump to content


Photo

Additional kernel modules for WM8650 tablets


  • Please log in to reply
30 replies to this topic

#1 zombah

zombah

    Newbie

  • Jr. Member
  • Pip
  • 7 posts

Posted 25 May 2011 - 06:34 AM

Hello,
I made some additional kernel modules from WonderMedia public kernel sources, must fit
all Vestinious, Uberoid and factory firmwares for WM8650.
Myself i only tested tun.ko, which seems to work fine. Feel free to test.

Simply put on your sd or flash and insmod with root rights all dependecies or
make modifications to init.rc.

Which modules included:
1) tun.ko (vpn support)
2) cifs package (slow-work.ko,cifs.ko,nls-utf8.ko)
3) bluetooth package (all modules from wm8650 kernel)
4) ip_tables package (all xtables modules which don't require kernel recompilation, probably enough for walldroid)

Updated package with more modules

Edited by zombah, 20 September 2011 - 03:52 PM.


#2 iriki

iriki

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 131 posts

Posted 25 May 2011 - 07:36 PM

3) bluetooth package (all modules from wm8650 kernel)


I am _VERY_ insterested in the Bluetooth because using this as a GPS unit would be more than amazing ;)

However I've been immensely busy lately plus my experience with Android kernels is close to zero so I guess I have to wait for a kind soul ;)

Thanks in advance \o\

#3 zombah

zombah

    Newbie

  • Jr. Member
  • Pip
  • 7 posts

Posted 26 May 2011 - 02:51 AM

I am _VERY_ insterested in the Bluetooth because using this as a GPS unit would be more than amazing ;)

However I've been immensely busy lately plus my experience with Android kernels is close to zero so I guess I have to wait for a kind soul ;)

Thanks in advance \o\


You can test blutooth compatibility this way:
1) opet terminal or connect local in connect bot
2) su
3) insmod bluetooth.ko
4) insmod btusb.ko
5) connect your bt dongle to u-box
6) dmesg

In dmesg you must see info about your dongle connected and detected.
All futher step missing for now, because firmwares is not bluetooth ready.

#4 iriki

iriki

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 131 posts

Posted 26 May 2011 - 04:55 PM

5) connect your bt dongle to u-box
6) dmesg

In dmesg you must see info about your dongle connected and detected.


I dmesg'ed before and after I connected the dongle, here's the output:


usb usb1: wakeup_rh (auto-start)
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
uhci_hcd 0000:00:05.0: port 2 portsc 0093,00
hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-2: new full speed USB device using uhci_hcd and address 2
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: device descriptor read/64, error -71
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: device descriptor read/64, error -71
usb 1-2: new full speed USB device using uhci_hcd and address 3
usb 1-2: default language 0x0409
usb 1-2: udev 3, busnum 1, minor = 2
usb 1-2: New USB device found, idVendor=0a12, idProduct=0001
usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
usb 1-2: Product: BT2.0
usb 1-2: uevent
usb 1-2: usb_probe_device
usb 1-2: configuration #1 chosen from 1 choice
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: uevent
usbserial_generic 1-2:1.0: usb_probe_interface
usbserial_generic 1-2:1.0: usb_probe_interface - got id
btusb 1-2:1.0: usb_probe_interface
btusb 1-2:1.0: usb_probe_interface - got id
usb 1-2: adding 1-2:1.1 (config #1, interface 1)
usb 1-2:1.1: uevent
drivers/usb/core/inode.c: creating file '003'
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004

The BT dongle I have lights up a red light as soon as I plug it into a computer, but here the light doesn't light up. Tried a few apps just for the kicks, but it stays "turning on bluetooth"

All futher step missing for now, because firmwares is not bluetooth ready.


Will patiently wait for any genius to discover how to activate BT ;)

Thanks in advance.

Edited by iriki, 26 May 2011 - 04:56 PM.


#5 riandroidzx

riandroidzx

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 36 posts

Posted 02 June 2011 - 04:39 PM

I dmesg'ed before and after I connected the dongle, here's the output:


usb usb1: wakeup_rh (auto-start)
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
uhci_hcd 0000:00:05.0: port 2 portsc 0093,00
hub 1-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
usb 1-2: new full speed USB device using uhci_hcd and address 2
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: device descriptor read/64, error -71
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: uhci_result_common: failed with status 440000
usb 1-2: device descriptor read/64, error -71
usb 1-2: new full speed USB device using uhci_hcd and address 3
usb 1-2: default language 0x0409
usb 1-2: udev 3, busnum 1, minor = 2
usb 1-2: New USB device found, idVendor=0a12, idProduct=0001
usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
usb 1-2: Product: BT2.0
usb 1-2: uevent
usb 1-2: usb_probe_device
usb 1-2: configuration #1 chosen from 1 choice
usb 1-2: adding 1-2:1.0 (config #1, interface 0)
usb 1-2:1.0: uevent
usbserial_generic 1-2:1.0: usb_probe_interface
usbserial_generic 1-2:1.0: usb_probe_interface - got id
btusb 1-2:1.0: usb_probe_interface
btusb 1-2:1.0: usb_probe_interface - got id
usb 1-2: adding 1-2:1.1 (config #1, interface 1)
usb 1-2:1.1: uevent
drivers/usb/core/inode.c: creating file '003'
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004

The BT dongle I have lights up a red light as soon as I plug it into a computer, but here the light doesn't light up. Tried a few apps just for the kicks, but it stays "turning on bluetooth"



Will patiently wait for any genius to discover how to activate BT ;)

Thanks in advance.

if you find any way to activate bluetooth please let me know

#6 zombah

zombah

    Newbie

  • Jr. Member
  • Pip
  • 7 posts

Posted 08 June 2011 - 12:38 PM

Also compiled Bluetooth stuff from original froyo branch bluetooth system
Simply gunzip, tar xvf file from link to some folder on sdcard, then copy system folder to /
And apply patch to init.rc or make changes by hand:

--- init.rc.orig        2011-03-31 15:39:13.000000000 +0400
+++ init.rc     2011-06-08 21:30:05.000000000 +0400
@@ -329,6 +329,13 @@
 
     class_start default
 
+# insmod bluetooth modules
+    insmod /lib/modules/2.6.32.9-default/bluetooth.ko
+    insmod /lib/modules/2.6.32.9-default/btusb.ko
+    insmod /lib/modules/2.6.32.9-default/rfcomm.ko
+    insmod /lib/modules/2.6.32.9-default/bnep.ko
+    insmod /lib/modules/2.6.32.9-default/sco.ko
+
 ## Daemon processes to be run by init.
 ##
 #service console /bin/sh
@@ -449,30 +456,30 @@
     # init.rc does not yet support applying capabilities, so run as root and
     # let bluetoothd drop uid to bluetooth with the right linux capabilities
     group bluetooth net_bt_admin misc
-    disabled
+ #   disabled
 
 service hfag /system/bin/sdptool add --channel=10 HFAG
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+ #   disabled
     oneshot
 
 service hsag /system/bin/sdptool add --channel=11 HSAG
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+ #   disabled
     oneshot
 
 service opush /system/bin/sdptool add --channel=12 OPUSH
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+#    disabled
     oneshot
 
 service pbap /system/bin/sdptool add --channel=19 PBAP
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+#    disabled
     oneshot
 
 service installd /system/bin/installd

and restart tablet with reboot, bluetooth services will start.

But this is not enough we probably also need to create device in /dev for bluez,
make changes to bluetooth configs and maybe insert some properties with setprop.
Dont know yet where to go futher, maybe someone with working bluetooth on other
android device can give some tips.

#7 fannt

fannt

    Newbie

  • Jr. Member
  • Pip
  • 2 posts
  • LocationRussia

Posted 31 July 2011 - 02:37 PM

is there any chance to compile a module iptable_nat.ko and maybe some others that may be useful to make proxy work? without building a new kernel...

#8 cth2373

cth2373

    Newbie

  • Jr. Member
  • Pip
  • 2 posts

Posted 04 August 2011 - 04:45 AM

Hi I have a WonderMedia WM8650 and have wondered into this forum looking for stuff. Am I looking in the right place, it all looks a bit technical.

CTH2373

#9 iriki

iriki

    Advanced Member

  • Jr. Member
  • PipPipPip
  • 131 posts

Posted 11 August 2011 - 06:24 AM

Well I haven't got time to fiddle around bluetooth, would be nice if someone would want to help ;)

#10 PADMAN

PADMAN

    Advanced Member

  • FW Developer
  • PipPipPip
  • 252 posts

Posted 11 August 2011 - 11:37 AM

Hi there,
thanks for the modules, first of all. I am very interested to get iptables running on my MID V7 , green LED, with vibrate.
I copied the modules to the local disk, checked permissions (rwx for all) then tried to insert manually from the console with insmod command.

# su
# insmod /AndroidModules/ip_tables.ko
"Unknown symbol in module or invalid parameter"
<_<
So this didn't work. In order to check this out, I tried to insmod bluetooth.ko, which worked flawlessly. I figure that insmod basically seems to work, but not with ip_tables.ko.

Any idea why ? Any advice is very much appreciated.

Thanks in advance,
greetz,
PADMAN
Flytouch 2 (semi-official FW 3656)
generic MID V7 (WM8650)
Generic WM8850 MID dual camera (Uberoid JellyBean 0.7)
Coby Kyros MID1125 (stock FW)
TinJin i9220 MTK6575 phone (stock FW)

#11 fannt

fannt

    Newbie

  • Jr. Member
  • Pip
  • 2 posts
  • LocationRussia

Posted 11 August 2011 - 02:27 PM

Hi there,
thanks for the modules, first of all. I am very interested to get iptables running on my MID V7 , green LED, with vibrate.
I copied the modules to the local disk, checked permissions (rwx for all) then tried to insert manually from the console with insmod command.

# su
# insmod /AndroidModules/ip_tables.ko
"Unknown symbol in module or invalid parameter"
<_<
So this didn't work. In order to check this out, I tried to insmod bluetooth.ko, which worked flawlessly. I figure that insmod basically seems to work, but not with ip_tables.ko.

Any idea why ? Any advice is very much appreciated.

Thanks in advance,
greetz,
PADMAN



hey! try to insmod x_tables.ko first!
after that insmod ip_tables.ko will work. at least it worked for me.

but for proxy at least iptable_nat.ko is needed. i've tried unsuccessfully modules from other devices, but compiled form wm8650 kernel sources are needed. i am gonna try to compile them by myself, but don't know when will have time for it :(

#12 PADMAN

PADMAN

    Advanced Member

  • FW Developer
  • PipPipPip
  • 252 posts

Posted 13 August 2011 - 03:22 AM

Hi fannt,
thanks a ton for your hint....followed it, and it worked, no more error when insmodding ip_tables.ko. Now droidwall seems to work better, although it still crashes at some point. Will try to pick it up from there :rolleyes:

I am also interested in learning how to compile kernel modules, if you have any link or web resource where the process is explained, please share, I am all ears.

When it comes to proxy configuration, I have successfully tried "orbot" and "orweb" to proxify my Web connection. It works pretty well (even without ip_tables) for the orweb browser, which indeed uses the orbot proxy and anonymizes your IP when browsing. It also offers proxy support for other programs (telnet), but I did not test that yet.

Thanks again, and best regards,
PADMAN
Flytouch 2 (semi-official FW 3656)
generic MID V7 (WM8650)
Generic WM8850 MID dual camera (Uberoid JellyBean 0.7)
Coby Kyros MID1125 (stock FW)
TinJin i9220 MTK6575 phone (stock FW)

#13 MarioM.

MarioM.

    Newbie

  • Jr. Member
  • Pip
  • 2 posts

Posted 28 August 2011 - 10:19 AM

Hello,
I made some additional kernel modules from WonderMedia public kernel sources, must fit
all Vestinious, Uberoid and factory firmwares for WM8650.
Myself i only tested tun.ko, which seems to work fine. Feel free to test.

Simply put on your sd or flash and insmod with root rights all dependecies or
make modifications to init.rc.

Which modules included:
1) tun.ko (vpn support)
2) cifs package (slow-work.ko,cifs.ko,nls-utf8.ko)
3) bluetooth package (all modules from wm8650 kernel)
4) ip_tables package (all xtables modules which don't require kernel recompilation, probably enough for walldroid)

Link to modules archive


Hi, thanks for the modules, but I have some problems with bluetooth, I have followed the procedure, all relative modules are loaled and bin,app,etc,lib are in the correct place, i have made the modifications to init.rc, but the bluetooth are disabled, all applications with bluetooth support hang on "activating bluetooth". Do you have some suggestions in order to get it work ?

I have another little request, can you compile the "FTDI Usb to Serial" modules for this kernel ?

I have ePad ZX07d with WM8650.

Many thanks in advance.

#14 robcb85

robcb85

    Newbie

  • Jr. Member
  • Pip
  • 9 posts

Posted 16 September 2011 - 09:32 AM

Hi, thanks for the modules, but I have some problems with bluetooth, I have followed the procedure, all relative modules are loaled and bin,app,etc,lib are in the correct place, i have made the modifications to init.rc, but the bluetooth are disabled, all applications with bluetooth support hang on "activating bluetooth". Do you have some suggestions in order to get it work ?

I have another little request, can you compile the "FTDI Usb to Serial" modules for this kernel ?

I have ePad ZX07d with WM8650.

Many thanks in advance.


I second the request for the FTDI driver!

BTW, someone else has already done it for the 8505.

#15 Deucalion

Deucalion

    Newbie

  • Jr. Member
  • Pip
  • 1 posts

Posted 19 September 2011 - 03:01 PM

Also compiled Bluetooth stuff from original froyo branch bluetooth system
Simply gunzip, tar xvf file from link to some folder on sdcard, then copy system folder to /
And apply patch to init.rc or make changes by hand:

--- init.rc.orig        2011-03-31 15:39:13.000000000 +0400
+++ init.rc     2011-06-08 21:30:05.000000000 +0400
@@ -329,6 +329,13 @@
 
     class_start default
 
+# insmod bluetooth modules
+    insmod /lib/modules/2.6.32.9-default/bluetooth.ko
+    insmod /lib/modules/2.6.32.9-default/btusb.ko
+    insmod /lib/modules/2.6.32.9-default/rfcomm.ko
+    insmod /lib/modules/2.6.32.9-default/bnep.ko
+    insmod /lib/modules/2.6.32.9-default/sco.ko
+
 ## Daemon processes to be run by init.
 ##
 #service console /bin/sh
@@ -449,30 +456,30 @@
     # init.rc does not yet support applying capabilities, so run as root and
     # let bluetoothd drop uid to bluetooth with the right linux capabilities
     group bluetooth net_bt_admin misc
-    disabled
+ #   disabled
 
 service hfag /system/bin/sdptool add --channel=10 HFAG
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+ #   disabled
     oneshot
 
 service hsag /system/bin/sdptool add --channel=11 HSAG
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+ #   disabled
     oneshot
 
 service opush /system/bin/sdptool add --channel=12 OPUSH
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+#    disabled
     oneshot
 
 service pbap /system/bin/sdptool add --channel=19 PBAP
     user bluetooth
     group bluetooth net_bt_admin
-    disabled
+#    disabled
     oneshot
 
 service installd /system/bin/installd

and restart tablet with reboot, bluetooth services will start.

But this is not enough we probably also need to create device in /dev for bluez,
make changes to bluetooth configs and maybe insert some properties with setprop.
Dont know yet where to go futher, maybe someone with working bluetooth on other
android device can give some tips.


I am working on it too.
The next thing (i think) is bring /dev/hci0 up. For this operation i (we) need some compiled binary files what were not in your compressed file.

hcitool
hciconfig

we may also need for debugging:

l2tool
hcidump

Do you have them?

If you have them please share. There is no way i have to build them from source now.

#16 zombah

zombah

    Newbie

  • Jr. Member
  • Pip
  • 7 posts

Posted 20 September 2011 - 03:51 PM

I am working on it too.
The next thing (i think) is bring /dev/hci0 up. For this operation i (we) need some compiled binary files what were not in your compressed file.

hcitool
hciconfig

we may also need for debugging:

l2tool
hcidump

Do you have them?

If you have them please share. There is no way i have to build them from source now.


Dont have these files, need to grab them from some other froyo firmware for other device maybe.

Also made modules compilation with more netfilter and some usb-serial pls all who asked for them test
more netfilter + usb to serial

#17 robcb85

robcb85

    Newbie

  • Jr. Member
  • Pip
  • 9 posts

Posted 22 September 2011 - 08:26 AM

Also made modules compilation with more netfilter and some usb-serial pls all who asked for them test
more netfilter + usb to serial


ftdi_sio.ko loads and is able to receive data on my MID7 with Vestinious ROM. I haven't been able to confirm transmit yet. Many thanks!

#18 edmian

edmian

    Newbie

  • Jr. Member
  • Pip
  • 8 posts

Posted 10 October 2011 - 03:03 PM

Thanks for the extra modules, ip_tables works great and I was needed!
I Would like too, to build a kernel module for a device, an usb to ethernet adapter(mcs7830), I have the wondermedia wm8650 kernel source code, but I dont know what toolchain for crosscompiling to use... someone could help with this?
thanks in advance..
Edmian

#19 jdevega

jdevega

    Newbie

  • Jr. Member
  • Pip
  • 5 posts

Posted 13 October 2011 - 04:24 PM

Hi. How can i get the modules package that you have created?

Thanks in advance

PS: SORRY I JUST SAW THE LINK FEW SECOND AGO....THANKS A LOT. GREAT JOB

Edited by jdevega, 14 October 2011 - 03:11 PM.


#20 zombah

zombah

    Newbie

  • Jr. Member
  • Pip
  • 7 posts

Posted 14 October 2011 - 03:34 PM

Thanks for the extra modules, ip_tables works great and I was needed!
I Would like too, to build a kernel module for a device, an usb to ethernet adapter(mcs7830), I have the wondermedia wm8650 kernel source code, but I dont know what toolchain for crosscompiling to use... someone could help with this?
thanks in advance..
Edmian


Hello,
Any arm cross-compiling toolchain is suitable: CodeSourcery, Linaro, Android prebuilt etc.
Some more tips here




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users