Jump to content

Build from source, kernel/aosp


Recommended Posts

Posted

acer sucks... it is losing lot of customers i think... i'll write soon to acer

Posted
Ok, got 1Ghz cpu clock, but strangely, i noticed that the liquid dosn't look so smooth now! Changing the home screen hangs a little...

can you mix the original kernel with the 1ghz one? I mean just the cpu driver and scaling governors?

Posted
can you mix the original kernel with the 1ghz one? I mean just the cpu driver and scaling governors?

No, we dont have a proper config file, so the resulting kernel is unstable and the hardware is almost unusable..

Posted
No, we dont have a proper config file, so the resulting kernel is unstable and the hardware is almost unusable..

;) bem .. 1 mes até março

Guest Seth Cold
Posted
;) bem .. 1 mes até março

well... that's if they relase on the first days, could be easily 2 months or even more :D

do they HAVE to release another kernel version compatible with Eclair??

Posted (edited)
;) bem .. 1 mes até março

Pois, esperemos é q ja tenha o multitouch integrado pelo menos..

well... that's if they relase on the first days, could be easily 2 months or even more :D

do they HAVE to release another kernel version compatible with Eclair??

Yes they do.. wich will be another fight for us to get a working a configuration for it,for shure.. at least there will not be evt or dvt configs ..

Edited by disc0
Guest Seth Cold
Posted

amigos, no fórum devem escrever tudo em Inglês, ou se você quiser, nas duas línguas para que todos compreendam ;)

please write in english so we all understand, lucky me i can read/write some portuguese, cheers !

Posted
amigos, no fórum devem escrever tudo em Inglês, ou se você quiser, nas duas línguas para que todos compreendam ;)

please write in english so we all understand, lucky me i can read/write some portuguese, cheers !

Yes, lucky you, because is one pretty and hard language :D ..

Posted
Yes, lucky you, because is one pretty and hard language ;) ..

Written now to acer for this situation....hope in a good sense of acer......

Posted

You who work on this are doing an amazing job.

Pity job to see that the people who got a phone donated dont appear to be working on this, at all <.<

Posted
(...)

function smem_find (same as smem_alloc) - is intresting point of many bugs in this kernel, it defined in smd.c

Found the bug but couldn't fix it yet :|

Posted
Found the bug but couldn't fix it yet :|

there is no check of result smem_alloc in pm2.c - so this was reason why kernel reboots.

i checked acer_battery.c and found that it's failed to init battery because smem_alloc returns 0!

smem_find (function called from smem_alloc) returns 0 cause size of requested block and block found in memory have different size. so checking size returns 0 as error and error shows

<3>[ 6.844433] smem_find(85, 16): wrong size 32

<3>[ 6.954426] smem_find(333, 48): wrong size 96

<3>[ 7.184966] smem_find(85, 16): wrong size 32

i tried to remove size checking, kernel boots but nothing changed. battery still not wotking.

we need to digg in smem_find deeper to find why it finds blocks with different size than requested, and may be smd_private.h has invalid definitions of structures,so size is realy not equals with smem_find

Posted (edited)
there is no check of result smem_alloc in pm2.c - so this was reason why kernel reboots.

i checked acer_battery.c and found that it's failed to init battery because smem_alloc returns 0!

smem_find (function called from smem_alloc) returns 0 cause size of requested block and block found in memory have different size. so checking size returns 0 as error and error shows

<3>[ 6.844433] smem_find(85, 16): wrong size 32

<3>[ 6.954426] smem_find(333, 48): wrong size 96

<3>[ 7.184966] smem_find(85, 16): wrong size 32

i tried to remove size checking, kernel boots but nothing changed. battery still not wotking.

we need to digg in smem_find deeper to find why it finds blocks with different size than requested, and may be smd_private.h has invalid definitions of structures,so size is realy not equals with smem_find

Already digged and temporary fixed it

take a look in the new topic i created http://android.modaco.com/content/acer-liq...l-source-build/

if your thinking of that enum defenition, I think it was made to have more room to future expansition, but it doesn't matter, because SMEM_NUM_ITEMS is every time greater, so it passes always the check..

and the size checking you are talking about is the one of void "*smem_find(unsigned id, unsigned size_in)"?

for me it worked and I get battery...

Edited by disc0
Guest maxisma
Posted

So, the hardware key issue etc could be just a config error.. I'm digging arround in the source and I'm looking for possible drivers..

  • 2 months later...
Guest ivanmmj
Posted
Hmm, I can't understand what is going on:

In file included from /home/rasmus/Hämtningar/kernel/arch/arm/include/asm/page.h:26,

				 from include/linux/mm_types.h:14,

				 from include/linux/sched.h:61,

				 from arch/arm/kernel/asm-offsets.c:13:

/home/rasmus/Hämtningar/kernel/arch/arm/include/asm/glue.h:156:41: error: '#' is not followed by a macro parameter

make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1

make: *** [prepare0] Error 2

How ever did you get around this? I'm compiling the kernel for the droid eris and I'm getting the same error.

Sorry to revive an old thread, but this is the only place where it was mentioned in google. :huh: )

  • 2 months later...
Guest csics5
Posted
hi all, i'm trying to compile kernel under cygwin but i'm facing some issue with includes (i don't have a linux machine at the moment)

i've already setted up a crosscompiler and changed the makefile accordingly.

the build log in here: http://android.modaco.com/index.php?act=at...st&id=58802

can anybody help me?

tnx

I did't use cygwin, but I think works well. I just compile under Ubuntu. Did you install all the prerequisites?

If I remember good I installed the Android SDK. Have you installed it?

Guest Riekr
Posted
I did't use cygwin, but I think works well. I just compile under Ubuntu. Did you install all the prerequisites?

If I remember good I installed the Android SDK. Have you installed it?

mmm yes but i've not modified anything to point at it (didn't even found where to specify its location).

the log complains about somthing in /usr/include which belongs to cygwin.. the strange thing is that i found many peoples cross compiling under cygwin for different architectures. my opinion is either i've missed something or latest cygwin is broken at crosscompiling the kernel.

how android sdk is needed when compiling kernel?

Guest csics5
Posted
mmm yes but i've not modified anything to point at it (didn't even found where to specify its location).

the log complains about somthing in /usr/include which belongs to cygwin.. the strange thing is that i found many peoples cross compiling under cygwin for different architectures. my opinion is either i've missed something or latest cygwin is broken at crosscompiling the kernel.

how android sdk is needed when compiling kernel?

In the SDK (or NDK?) are included the arm eabi cross compiler. Do you have this? I wrote that I compile with this:

make ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

This is an ARM complier.

Is there any binary like this on your PC?

Guest Riekr
Posted
In the SDK (or NDK?) are included the arm eabi cross compiler. Do you have this? I wrote that I compile with this:

make ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

This is an ARM complier.

Is there any binary like this on your PC?

i've installed "arm-2010q1-188-arm-none-eabi.exe" from sourcery (g++ lite wich is free) and i'm using it (cs-make doesn't seem to work so i'm using the "make" utility boundled with cygwin) sourcery g++ lite should be compatible with cygwin as per documentation.

sorry but i can't find a cross compiler in android sdk, where should i download it?

anyway i'm setting up a linux machine at home but the big problem is that i don't have a broadband connection at home (just transferred ^^'), i still prefer cygwin since i can play with it at work.

Guest csics5
Posted (edited)
i've installed "arm-2010q1-188-arm-none-eabi.exe" from sourcery (g++ lite wich is free) and i'm using it (cs-make doesn't seem to work so i'm using the "make" utility boundled with cygwin) sourcery g++ lite should be compatible with cygwin as per documentation.

sorry but i can't find a cross compiler in android sdk, where should i download it?

anyway i'm setting up a linux machine at home but the big problem is that i don't have a broadband connection at home (just transferred ^^'), i still prefer cygwin since i can play with it at work.

Play with it at work? :)

So, from here download the nessesary things

http://android.git.kernel.org/

I used repo so I downloaded all the things, but I think it's enough just this. I don't known where is the prebuilt arm-eabi sorry.

Install git of course before this command.

git clone git://android.git.kernel.org/kernel/common.git android-kernel

And after that you should

make ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-

The path may vary of course. You need a .config file or add as a parameter.

EDIT: I have just found it. There is in platform/prebuilt.git.

So the correct command is : git clone git://android.git.kernel.org/platform/prebuilt.git

Edited by csics5
Guest Riekr
Posted

ehm yes, at least i can download and install later at home (lets say that :P )

2 more questions:

where is the cross compiler? (or is sourcery lite ok?)

in an another thread they suggested me to use "git://git.gitorious.org/liquide/kernel.git" which one is better for liquid? (i think in the latter one phusson has made some patch)

no problem for the .config, i already got it from my phone :D

thanks! :)

Guest csics5
Posted (edited)
where is the cross compiler? (or is sourcery lite ok?)

I edited the post please reread.

in an another thread they suggested me to use "git://git.gitorious.org/liquide/kernel.git" which one is better for liquid? (i think in the latter one phusson has made some patch)

This is a general kernel source at the Android git link.

You should use the Acer's one. Yes, phhusson also used the Acer's one. If you think you could use phhusson's one at the link what have you written or download it from Acer's website.

no problem for the .config, i already got it from my phone :)

The Acer's one is in the kernel source.

Edited by csics5

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.