Jump to content


Photo

Liquid Kernel Source Build

* * * * * 2 votes

  • Please log in to reply
192 replies to this topic

#1
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid
Ok, decided to create a new topic to resume everything in the init of what I accomplished so far..

I have hope that Acer would release a working kernel configuration, but until then lets play for safe and try to do something ourselves..


This is what I checked that works:

Make/receive calls
sms/mms
Touchscreen
Cpu Scalling
Bluetooth turns on (think it works, didn't test)
USB storage/debug
Battery (temporary fix, not safe)
reboot, via some program (because the same fix of battery)
Modem
1GHz cpu can be done but it makes the phone be less smoother (strange, hun..!?)
the buttons below the screen
system sound (didn't test music, but supose it will work too)
acceleromter
digital compass
sd card
light/proximity sensor
Hardware buttons
camera
vibrator
3d accel
GPS (couldn't test properly because I was inside home, but works)

now the bad part, what don't works
Wifi
Multitouch think could be achieved
(everything else not in working list)

There is lots of work to be done, mostly because some things work for now because of temporary fixes, witch means, highly unstable!

Some results from neocore test:
768Mhz 33.3FPS
1Ghz 34.7FPS (in parts of the test the cpu don't even goes to full load [1Ghz], really nice snapdragon ;))

Kernel repo added and kernel being uploaded
http://gitorious.org/liquidproject
Now we can all share our work..

create an account and send it to me so you can upload your changes

Before start building do:
make mrproper
cp acerconfig .config

and you are ready to build


liquidmkbootimg v.0.2:

Ok, so I flashed my liquid with the new 2.000.16 EMA that behnaam posted and found that acer have modified the bootloader.
The result is that in some cases liquidmkbootimg don't creates compatible boot images.

I don't yet fully understand how new liquid bootloader works, so I compilled a new liquidmkbootimg that can deploy the ramdisk in 3 different modes, see "liquidmkbootimg --help".

I'll explain how it works:

--deploy 0 -> Deploys the ramdisk inside the boot.img normally.
--deploy 1 -> Adds an extra pagesize before ramdisk.
--deploy 2 -> This is only in last resource. The ramdisk in boot.img of 2.000.16 starts at adress 0x219000, and this could be a predefined adress where liquid's bootloader searches for ramdisk.

--deploy 0 can be omitted, as is the default way. And --deploy 1 worked for me sometimes, so if your self compiled kernel don't works in default creation mode, test at least with mode 1.


Search for the new linux binary here.

Bootloader and recovery:

In case you flashed a bad boot.img with 2.000.16 ROM you will get yourself in a situation where you will think you f**ked up once and for all your phone because you can't get into bootloader with camera + power anymore. So, relax, its time to do some magic and make the bootloader appear on your screen..

1. turn off your phone (and unplug usb if plugged)
2. press camera + volume up and then without releasing this two buttons hit power and the phone will vibrate two times. Release all buttons.
3. take the battery out and put it back (don't touch any button on the phone)
4. connect the usb to your computer and you will the acer logo and then bootloader will pop up.
5. Say thanks to acer for making it so complicated (:

or just do "Camera + Back + Power". Thanks CedricGatay (;

Recovery is a bit more easy: (only usefull for who flashed Lickons recovery)
1. turn off your phone
2. hit camera + volume down and without releasing them hit power button and the phone will vibrate two times. Release.
3. Just hit the power button and wait for it to boot into recovery.


BTW:
Does someone want busybox and dropbear?? I ask this because I had my owns working in the last 1.008 and now I need to reinstall everything in new ROM and remembered to ask others..

Edited by disc0, 08 February 2010 - 05:23 AM.

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:

#2
solarw

solarw

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:Neo Freerunner, Acer Liquid

There is lots of work to be done, mostly because some things work for now because of temporary fixes, witch means, highly unstable!


give me config, or patches please)

  • 0

#3
behnaam

behnaam

    Enthusiast

  • MoDaCo Gold
  • PipPipPip
  • 259 posts
  • Location:Stockholm, Sweden
  • Interests:Android, UX and interaction design, tech and last but not least; Beer :D
  • Devices:Google Nexus One
  • Twitter:@benocharm

give me config, or patches please)


Set up a github for the kernel so that that its easy to add patches and fixes, from different people working on this ;) Alot easier than to send stuff back and forth.

  • 0
Follow me @benocharm on twitter for latest update on my work :)

Like my work? Consider buying me a beer :)

#4
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid

Set up a github for the kernel so that that its easy to add patches and fixes, from different people working on this ;) Alot easier than to send stuff back and forth.


Whell, never did that before but I could try tomorrow.. Is there some free server for that??

Download config here

on arch/arm/mach-msm/smd.c

void *smem_find(unsigned id, unsigned size_in)
{
	unsigned size;
	void *ptr;

	ptr = _smem_find(id, &size);
	if (!ptr)
		return 0;

/*	size_in = ALIGN(size_in, 8);
	if (size_in != size) {
		pr_err("smem_find(%d, %d): wrong size %d\n",
			   id, size_in, size);
		return 0;
	}*/

	return ptr;
}

Now I'll get some sleep, 7oc here, time to wake up and I'm going to sleep.. waaahoou :\


Ok, created repo here
http://gitorious.org/liquidproject

Create account and send me the username to add to can upload code.

EDIT
people acerconfig is here http://gitorious.org...ster/acerconfig
update your project and I think it would appear there.

and then do

make mrproper
cp acerconfig .config

and you are ready to build

Edited by disc0, 04 February 2010 - 05:29 PM.

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:

#5
solarw

solarw

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:Neo Freerunner, Acer Liquid

Whell, never did that before but I could try tomorrow.. Is there some free server for that??

Download config here

on arch/arm/mach-msm/smd.c

void *smem_find(unsigned id, unsigned size_in)
{
	unsigned size;
	void *ptr;

	ptr = _smem_find(id, &size);
	if (!ptr)
		return 0;

/*	size_in = ALIGN(size_in, 8);
	if (size_in != size) {
		pr_err("smem_find(%d, %d): wrong size %d\n",
			   id, size_in, size);
		return 0;
	}*/

	return ptr;
}

Now I'll get some sleep, 7oc here, time to wake up and I'm going to sleep.. waaahoou :\




i trying this too
just set return ptr; before align

  • 0

#6
solarw

solarw

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:Neo Freerunner, Acer Liquid
i download archive but not config found! binary file no text

  • 0

#7
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet

i download archive but not config found! binary file no text


Same for me, and damn can't have a working kernel cause of the size ;) Mine is always smaller even after adding 2048Kb

  • 0

#8
Seth Cold

Seth Cold

    Addict

  • Members
  • PipPipPipPipPip
  • 575 posts
  • Location:Medellin, Colombia
  • Devices:Samsung Galaxy S Captivate
  • Twitter:@coldonline
disc0, if you don't mind, i started a kernel thread on xda pointing to your proyect page, maybe someone there can help too ;)

http://forum.xda-dev...ad.php?t=628245

  • 0
Viva el DIM el poderoso!!
Follow me on twitter: http://twitter.com/coldonline
IMPROVEMENTWEAR.COM

#9
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid
I deleted the kernel, because it uploaded a bit of junk.. I'll upload again..

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:

#10
solarw

solarw

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:Neo Freerunner, Acer Liquid

Same for me, and damn can't have a working kernel cause of the size ;) Mine is always smaller even after adding 2048Kb


pad with zeroes at the end

or


cp stock-kernel ./template;
dd if=zImage of=./template conv=notrunc bs=1024 seek=2;

and kernel is equal size as stock)

  • 0

#11
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid
for those who already downloaded the kernel please delete it and wait for me to finish the upload and then download it again..

The config file is named acerconfig because hidden files are not uploaded!

It looks that acerconfig is corrupted, I'll create another one and re-upload soon..

Edited by disc0, 04 February 2010 - 03:50 PM.

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:

#12
malez

malez

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,423 posts
  • Gender:Male
  • Devices:Acer Liquid - Galaxy S2
  • Twitter:@malez2000
Thank you very much for your work

  • 0
If you enjoy what i do, i would really apprecite that you place a little gift
Posted ImagePosted Image Follow me on twitter http://twitter.com/malez2000Posted Image

LCR-F(royo)
malez recovery 0.6.1

#13
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet

pad with zeroes at the end

or
cp stock-kernel ./template;
dd if=zImage of=./template conv=notrunc bs=1024 seek=2;

and kernel is equal size as stock)


Thanks for the tip =)

  • 0

#14
amdnikos

amdnikos

    Regular

  • Members
  • PipPip
  • 135 posts
  • Devices:Acer Liquid

Some results from neocore test:
768Mhz 33.3FPS
1Ghz 34.7FPS (parts of the test, cpu don't even go to 1Ghz, really nice snapdragon :D)


hmm.so did u try 1gh or not? :(
did u mean that liquid is not stable on 1gh?prolly acer use the faulty one cpu's on liquid that could not handle the 1gh. ;)

  • 0

#15
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid

hmm.so did u try 1gh or not? :D
did u mean that liquid is not stable on 1gh?prolly acer use the faulty one cpu's on liquid that could not handle the 1gh. ;)


It can handle well, with 1Ghz max cpu scalling, the cpu don't even was used at max speed in all test, wich means that this processor its very powerfull and can handle neocore test well (till they relase another version that would push the cpu more :()

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:

#16
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid
people acerconfig is here http://gitorious.org...ster/acerconfig
update your project and I think it would appear there.

and then do

make mrproper
cp acerconfig .config

and you are ready to build

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:

#17
maxisma

maxisma

    I'm pretty awesome

  • Members
  • PipPipPip
  • 177 posts
  • Gender:Male
  • Location:Dorsten, Germany
  • Interests:Squash
    E-Guitar
    E-Bass
  • Devices:Acer Liquid MT & LG Optimus 2x
  • Twitter:@maxisma

people acerconfig is here http://gitorious.org...ster/acerconfig
update your project and I think it would appear there.

and then do

make mrproper
cp acerconfig .config

and you are ready to build


nice, building now..

  • 0
Follow me on Twitter: www.twitter.com/maxisma

Posted Image

Donate to MoDaCos Cancer Research fund


#18
solarw

solarw

    Newbie

  • Members
  • Pip
  • 20 posts
  • Devices:Neo Freerunner, Acer Liquid

people acerconfig is here http://gitorious.org...ster/acerconfig
update your project and I think it would appear there.

and then do

make mrproper
cp acerconfig .config

and you are ready to build



how are you using kernel bigger than stock kernel?
i build kernel with your config and it's bigger than i need

i trying mkbootimg and acermkbootimg but no working img in result

  • 0

#19
CedricGatay

CedricGatay

    Enthusiast

  • Members
  • PipPipPip
  • 241 posts
  • Gender:Male
  • Location:Tours, France
  • Interests:Software development
  • Devices:Nexus 4 / Nexus 7
  • Twitter:@Cedric_Gatay
# CONFIG_WLAN_80211 is not set
might be the cause of the wifi not working... I still doesn't have a correct build environment to compile, so I can't test further

  • 0
Take the time to try out my apps !
Come visit my Blog, need developers, ask for code-troopers !

#20
disc0

disc0

    Enthusiast

  • Members
  • PipPipPip
  • 231 posts
  • Gender:Male
  • Location:Porto/Funchal
  • Interests:Programming
  • Devices:Acer Liquid

how are you using kernel bigger than stock kernel?
i build kernel with your config and it's bigger than i need

i trying mkbootimg and acermkbootimg but no working img in result


are you using liquimkbootimg ??
extract ramdisk from pauls superboot and use the ramdisk.cpio.gz from it, not the ramdisk folder..

then just create with
liquidmkbootimg --cmdline 'console=tty boot_delay=50' zImage --ramdisk pauls-ramdisk.cpio.gz -o newboot.img

  • 0
disco custom kernel topic.

If you like my work, consider buying me a beer (:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users