Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
Kernel for Aoson M12
Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
1
2014/08/09 - 13:09
sp_Permalink sp_Print

Hello team,

After several weeks of reading through the forums i decided to give a try to compiling a kernel for the Aoson M12 (the 512Mb version) and got some encouraging results - wifi, sound, battery (most of the time - sometimes it can get "out of sync" if the charger is plugged when the tablet is switched off), touchscreen are now working.  I still have  some issues which I cannot solve by myself and the following is my experience:

1) First of all I started with the AN9G2 as the base config and started changing modules for the hardware elements. I have very little programming knowledge, so I mostly tweaked and experimented with the config menu, read through some of the code to try and understand some logic, compiled, and then see what works on my tablet.  

2) Rotation does not work, Androsensor reports "waiting for event" and dmesg reports

<4>[    3.049764] mma8452 devid:0
<6>[    3.053324] mma8452: invalid devid
<4>[    3.056798] mma8452_probe error -834342208
<4>[    3.061126] gs_mma8452: probe of 0-001a-1 failed with error -1

3) My tablet has 2 cameras, a front GC0308 and a back GT2005.  Setting FCAM or GC0308 in config results in a working front cam (only).  The only way I get the back cam to work (although mirrored) is by setting GT2005 (only) in the config.  Setting GT2005back or BCAM in the config will make neither front nor back cam work.

4) Leaving the board type as OdysQ (like the AN9G2 config) leaves a bit more than 235Mb ram but changing the board type to a NeoX leaves quite some more precious ram - 295Mb :)

5) I experimented with some more aggressive (lower) values in board-odys-neox.c for PMEM_GPU_SIZE/UI/VPU sizes and actually noticed this would leave even much more ram.  Tablet still booted and behaved normally (actually a bit smoother) and I could not notice any deterioration in graphics from normal usage - can you recommend some tests that could be run to verify this?

6) Physical Buttons are not all mapped correctly on my tablet (Power button works ok, but back is mistaken as "menu" and menu is not even detected). I don't know if this helps but CWM's testkey gives the following results:  Under GB CWM the Power button is 116, Back is 158, Menu is 59, while under the 4.2.2 CWM the Power button is 116, Back is 59, Menu is nil.

I would appreciate any help please and can provide dmesg logs (for the old kernel when I was still running GB and also for the new trial one).  I am attaching the config I came up with so that other users will be able to use it or experiment even if it is not perfect.

Thanks a lot and please keep up the good work - these tablets are working like new with your help :)

Avatar
Oma7144

Moderator

Firmware Guru
Forum Posts: 5664
Member Since:
2012/10/06
sp_UserOfflineSmall Offline

Thanks Received: 1266
2
2014/08/09 - 14:45
sp_Permalink sp_Print

Great. Which build do you use?

Here we had another try on the M12 kernel ... long ago, but maybe useful.

http://forum.xda-developers.com/showthread.php?p=36465985

- Oma -

The following users say thank you to Oma7144 for this useful post:

drums
Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
3
2014/08/09 - 17:46
sp_Permalink sp_Print

Hi.. I'm using CrewRKTablets_CM10.1_RK29_Loox_4.2.2_v1.2.4

I'll go through the xda posts again.. thank you for the link..

Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
4
2014/08/30 - 01:13
sp_Permalink sp_Print sp_EditHistory

Made some progress.. both cams are now working together, and am getting excellent performance with dmesg reporting 379MB memory and still good 1080 video playback on a 512MB tablet .. i can now also play PVZ2 LaughHow can I share changes with you?

Last challenge is rotation and i'm confused.. MMA8452 probe still fails and out of despair i tried compiling with MMA7660 driver instead.  I noticed there are different versions and  the one ending 'lastversionJK2' actually produces "mma7660 probe ok" in dmesg, but Androsensor still shows no events and continues to say it's an MMA8452Q.  Any ideas  will be appreciated please!! thanks a lot. 

PS: Attaching dmesg from my old GB rom (working rotation) and the new kernel with cm10.1.


Avatar
JochenKauz

Moderator

Firmware Guru
Forum Posts: 450
Member Since:
2012/11/19
sp_UserOfflineSmall Offline

Thanks Received: 76
5
2014/08/30 - 20:13
sp_Permalink sp_Print

Hi,

if you want to share, use github.

Don't be confused with the mma, the gsensor is often faked, like on NEO X8. Never trust the things that are reported from Android.

If mma7660 probes ok, then it could be a problem in the daemon name. Look at the driver there should be a corresponding name like mma8452_daemon. Depending on the libsensor.so of Android you could try gsensor_daemon.

If you upload your source to github I could have a look at it. 

The following users say thank you to JochenKauz for this useful post:

drums, admin
Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
6
2014/09/01 - 23:51
sp_Permalink sp_Print

Thanks to your valuable advice to not trust the things reported in Android Smile now I did some more progress and nearly solved..

So MMA7660 continued not working and after getting some debugging printed I found other messages saying there was no good probe after all. So I put my attention back to MMA8452 from basics and the problem seems to be a different way this tablet is set up (or rather not set up) to get a succesful probe.. I think it should not be difficult to fix now though I'll be busy for the next few days.

So many thanks and I hope to share soon so that another tablet will be fully working Cool

Avatar
yomismoeldsiempre
New Member
Forum Posts: 1
Member Since:
2014/09/16
sp_UserOfflineSmall Offline
7
2014/09/16 - 12:09
sp_Permalink sp_Print

I have an M12 too, if you need me to test something just ask, I want to help to make a good working version!

Unfortunately I have no programming skills, but I have some experience with command-line interfaces.

Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
8
2014/09/18 - 23:09
sp_Permalink sp_Print

OK... so I uploaded the mods to a fork on github at https://github.com/drums173/android_kernel_odys_neox_3.0.8 and it works fine now including rotation!  Added long-press shortcuts to the buttons with volume-controls, and some other possible tweaks. Smile

One small thing.. after booting i'm seeing just a couple of lines in dmesg at around 39 seconds saying: "_AllocateMemory fail! pool=6->9, Bytes=16384, Type=4".  Googling only came up with http://pastebin.com/JnQMYUYe which seems more serious and I have no idea what the context for that user was.  As far as I can see everything still works fine, but I can't trace where the msg is coming up from and tried with various memory settings (GPU from 128-32Mb, UI 64-40, VPU 64-40) but it keeps coming up.  

Am testing some other small modifications to the battery power_on capacity check since if I leave the tablet charging when switched off, unplug, and then power up, the capacity will remain stuck at the old_capacity value instead of new_capacity.  I haven't committed anything there yet.

Please feel free to test, review and adopt any changes too and if the CrewRK team wishes to put the compiled kernel on the CrewRK website.  Thanks above all to CrewRK for making this possible! Cool

The following users say thank you to drums for this useful post:

admin, Oma7144, JochenKauz
Avatar
JochenKauz

Moderator

Firmware Guru
Forum Posts: 450
Member Since:
2012/11/19
sp_UserOfflineSmall Offline

Thanks Received: 76
9
2014/09/22 - 20:40
sp_Permalink sp_Print

Hi drums,

glad to see that it worked!

I merged your fork into our repo on github and added your device to our build script(https://github.com/crewrktablets/android_kernel_odys_neox_3.0.8/commits/master). I also updated our custom kernel thread (http://crewrktablets.arctablet.com/?p=2575) with my build version of your kernel. If you want to give the kernel a try, I would be glad to hear from you.

Regarding the _AllocateMemory fail! error:

Does it happen also before your optimisation of the RAM?

I grepped the code and was not able to locate a partial string.

The following users say thank you to JochenKauz for this useful post:

drums
Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
10
2014/09/25 - 20:49
sp_Permalink sp_Print sp_EditHistory

Hi..

Thanks for the update..

I downloaded the compiled version from your custom kernel thread and unfortunately it was looping, but after checking my repo I realised I had not updated the last commit while testing some config options.. 

Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
11
2014/09/26 - 21:55
sp_Permalink sp_Print

I have just updated to Github now.. sorry my mistake

Avatar
JochenKauz

Moderator

Firmware Guru
Forum Posts: 450
Member Since:
2012/11/19
sp_UserOfflineSmall Offline

Thanks Received: 76
12
2014/09/28 - 15:42
sp_Permalink sp_Print

Hi,

I merged your change into our repo and updated the kernel page. Please try again.

If the kernel does not work, please sync our repo and build it on your own and try that kernel then.

 

Cheers

JochenKauz

The following users say thank you to JochenKauz for this useful post:

drums
Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
13
2014/09/28 - 16:52
sp_Permalink sp_Print

Hi JochenKauz,

Yes the newly built kernel now works fine - I downloaded from your kernel page crewrktablets_kernel_308_aoson_M12v512MB_201409281532_JB422.7z and it boots great..

As to your question about the _AllocateMemory fail! error, yes it occured even before the optimisations.  It doesn't seem to be a major problem in practice, but I am attaching logs from the new kernel and also I found a much older log from the GB kernel.

Thanks a lot!

Avatar
ConResaKa
New Member
Forum Posts: 1
Member Since:
2014/10/02
sp_UserOfflineSmall Offline
14
2014/10/02 - 10:30
sp_Permalink sp_Print

Hello to all the community.
Firstly thank you for the great work you are doing.

I have a "AOSON M19" I tested the kernel from the M12 and unfortunately does not work well after the first reboot.

I do not know if it would be very difficult to adapt to the M19.

It would be very good news to have a "custom kernel" of the M19 supports zram

Thank you and congratulations again

Avatar
drums
New Member
Forum Posts: 9
Member Since:
2014/02/01
sp_UserOfflineSmall Offline

Thanks Received: 3
15
2014/10/07 - 19:58
sp_Permalink sp_Print

Hi ConResaKa,

Apparently there are quite some differences between the M12 and M19.  But earlier this year another user asked about the M19 in this thread: http://www.arctablet.com/blog/forum/crewrktablets-rk2918-entwicklung-customroms-development-croms/which-build-and-kernel-for-an-aoson-m19/

You could find it useful.  But follow the warning in the thread and be careful about making a brick!

Good luck..

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online:
202 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (159), Phone (37), Tablet (6)

Top Posters:

Oma7144: 5664

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 430

maikal: 394

Newest Members:

orange05

tablette11

edigarry6

jendo

dubi123

vrata

Forum Stats:

Groups: 10

Forums: 185

Topics: 5884

Posts: 58444

 

Member Stats:

Guest Posters: 43

Members: 255404

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix