Jump to content

Build from source, kernel/aosp


Recommended Posts

Posted

Hey guys, i've been out of the loop on this a bit, and unfortunately a Linux f*ck up meant I deleted all my custom scripts.... ARRGGGHHH!

Anyway, if you're having trouble getting boot images working but my superboots are flashing / booting OK, then let me know and i'll help as best I can.

Half considering buying a Liquid again too, lol! :)

P

Posted
Half considering buying a Liquid again too, lol! B)

wazzup with Nexus? not happy? :)

Posted
Regarding the issue you have informed about the release of kernel source code ,further the PVT defcont not being released . Further request to call our Acer Technical support Line as they might help you further .

Actually the quote can be interpreted in other ways. It has quite strange wording and are not even correct sentences.

Perhaps they are just repeating the question you mailed about and are forwarding you to the support line.

Or I'm just graping at straws :)

Posted

Yeah it doesn't look like they say "The PVT will not be released".

They didn't really answered you I think.

Posted
Yeah it doesn't look like they say "The PVT will not be released".

They didn't really answered you I think.

written now,tomorrow i hope in an response,i'll let you informed!!

Posted (edited)
or is there another way

There is always another way. It just gets harder, more frustrating and very annoying.

@maxisma Is it possible to get the config out of that?

Doesn't you just get a bunch off assembler code? But you maybe can read that freaking language...

EDIT: @Verb they didn't repeat me but bais could have right...

Edited by pajn
Posted

I've not downloaded the kernel source as yet, is there an 'extract-ikconfig'?

That's used for extracting the kernel config from the kernel binary without needing to run it. It relies on the kernel being compiled with CONFIG_IKCONFIG=y, which is possible, even if they did set CONFIG_IKCONFIG_PROC=n. Fingers crossed eh.

P

Guest chingy1788
Posted

Anythings possible with reverse engineering... just takes time and effort

maxisma, we have your back xD

Posted
I've not downloaded the kernel source as yet, is there an 'extract-ikconfig'?

That's used for extracting the kernel config from the kernel binary without needing to run it. It relies on the kernel being compiled with CONFIG_IKCONFIG=y, which is possible, even if they did set CONFIG_IKCONFIG_PROC=n. Fingers crossed eh.

P

Yes. I didn't know about that, interesting.

Posted

I'm not massively optimistic, but it's another thing to rule out. I'm downloading the kernel now, and will give it a go myself too.

P

Posted
I've not downloaded the kernel source as yet, is there an 'extract-ikconfig'?

That's used for extracting the kernel config from the kernel binary without needing to run it. It relies on the kernel being compiled with CONFIG_IKCONFIG=y, which is possible, even if they did set CONFIG_IKCONFIG_PROC=n. Fingers crossed eh.

P

yes there is

#!/bin/sh

# extracts .config info from a zImage file

# uses: binoffset (new), dd, zcat, strings, grep

# $arg1 is zImage filename

binoffset="./scripts/binoffset"

test -e $binoffset || cc -o $binoffset ./scripts/binoffset.c || exit 1

IKCFG_ST="0x49 0x4b 0x43 0x46 0x47 0x5f 0x53 0x54"

IKCFG_ED="0x49 0x4b 0x43 0x46 0x47 0x5f 0x45 0x44"

dump_config() {

file="$1"

start=`$binoffset $file $IKCFG_ST 2>/dev/null`

[ "$?" != "0" ] && start="-1"

if [ "$start" -eq "-1" ]; then

return

fi

end=`$binoffset $file $IKCFG_ED 2>/dev/null`

start=`expr $start + 8`

size=`expr $end - $start`

dd if="$file" ibs=1 skip="$start" count="$size" 2>/dev/null | zcat

clean_up

exit 0

}

usage()

{

echo " usage: extract-ikconfig zImage_filename"

}

clean_up()

{

if [ "$TMPFILE" != "" ]; then

rm -f $TMPFILE

fi

}

if [ $# -lt 1 ]

then

usage

exit 1

fi

TMPFILE=`mktemp -t ikconfig-XXXXXX` || exit 1

image="$1"

# vmlinux: Attempt to dump the configuration from the file directly

dump_config "$image"

GZHDR1="0x1f 0x8b 0x08 0x00"

GZHDR2="0x1f 0x8b 0x08 0x08"

# vmlinux.gz: Check for a compressed images

off=`$binoffset "$image" $GZHDR1 2>/dev/null`

[ "$?" != "0" ] && off="-1"

if [ "$off" -eq "-1" ]; then

off=`$binoffset "$image" $GZHDR2 2>/dev/null`

[ "$?" != "0" ] && off="-1"

fi

if [ "$off" -eq "0" ]; then

zcat <"$image" >"$TMPFILE"

dump_config "$TMPFILE"

elif [ "$off" -ne "-1" ]; then

(dd ibs="$off" skip=1 count=0 && dd bs=512k) <"$image" 2>/dev/null | \

zcat >"$TMPFILE"

dump_config "$TMPFILE"

fi

echo "ERROR: Unable to extract kernel configuration information."

echo " This kernel image may not have the config info."

clean_up

exit 1

Guest maxisma
Posted (edited)

damned :)

./extract-ikconfig ~/bo.img-kernel.gz config

ERROR: Unable to extract kernel configuration information.

This kernel image may not have the config info.

Edited by maxisma
Posted

Bah...

ERROR: Unable to extract kernel configuration information.

This kernel image may not have the config info.

:)

P

Guest maxisma
Posted
Bah...

:)

P

So, same result as me..

Then we'll really have to reverse-engineer..

This is going to be a torture.

Posted

If we have different versions of the liquid kernel, it might be worth trying against them.

P

Posted (edited)
Bah...

:)

P

badword acer i will not buy any more acer prodcut.

paul,only 1 kernel released as i've saw

Edited by erto90
Guest maxisma
Posted
If we have different versions of the liquid kernel, it might be worth trying against them.

P

I tried it with some of the leaked "RUUs", no luck.

Posted (edited)
I tried it with some of the leaked "RUUs", no luck.

let me know,if you don't find any good kernel/boot.img only way that remain is the annoyng and long reverse eng?

Edited by erto90
Posted
badword acer i will not buy any more acer prodcut.

paul,only 1 kernel released as i've saw

ehh i wont say that i truly believe sky is the limit with this device, i just think.....

1. they released this phone knowing it was still beta feeling pressure to enter the market before the new year to generate sales with this branch of acer to generate capital and support

2. they have not figured out how to fix there own problems.... even with the leaks the radio still needs much work, several errors across the board with device

3. as far as this messed up kernel release i think that one they don't want to be proven incompetent when they don't have there own problems fixed yet and i think it is still a mess because it was never ready to begin with

lets face it acer very quickly jumped into the mobile market and i think bit off more than they can chew the hardware is there but they don't yet have the means to support there devices its new to them, hence these vague responces we all get when contacting them, might as well be calling the service providers tech support where the read and go through the manual they have infront of them but can not differ from it or skip a step :) our advantage will be our own impatience where as they feel they have time to fix because they already are selling the devices we have them and want them to reach their potential now !!

Posted (edited)
Hey guys, i've been out of the loop on this a bit, and unfortunately a Linux f*ck up meant I deleted all my custom scripts.... ARRGGGHHH!

Anyway, if you're having trouble getting boot images working but my superboots are flashing / booting OK, then let me know and i'll help as best I can.

Half considering buying a Liquid again too, lol! :)

P

Paul, I'm glad t see you back here.. I've already compiled a mkbootimg to create a working boot.img but cannot be tested without flashing first..

So, can you tell me what you have done to make the acer bootloader recognize the img?? I think its related with the hash calculated and placed in the header, right??

Can you tell what I need to change to let it be recognized??

Best regards

Edited by disc0
Posted

Paul, can you please share your knowledge how to pack kernel and ramdisk in the proper way that fastboot accepts? Your superboot is the only image that we have seen so far to boot without flashing it (meaning it works with: "fastboot -i 0x0502 boot <superboot.img>"). Other images will always fail the bootloader verification.

PS. We don't necessarily need PVT defconfig, because we can compile the kernel with PVT board type. Of course, it's not guaranteed it will work that way but it might.

Posted (edited)
Paul, can you please share your knowledge how to pack kernel and ramdisk in the proper way that fastboot accepts? Your superboot is the only image that we have seen so far to boot without flashing it (meaning it works with: "fastboot -i 0x0502 boot <superboot.img>"). Other images will always fail the bootloader verification.

(...)

I want it too :|

(...)

PS. We don't necessarily need PVT defconfig, because we can compile the kernel with PVT board type. Of course, it's not guaranteed it will work that way but it might.

I already tried that but didn't work :\ .. They have must done some magics with the configuration !!!!

Edited by disc0
Posted

C:\liquid>fastboot -i 0x0502 boot plopp

downloading 'boot.img'... OKAY

booting... OKAY

But the phone freeze on "Booting Linux..." :)

Tried and try some options to disable the Acer boot logo.

Guest CedricGatay
Posted

Keep up the good work vache, kernel doesn't want to compile on my Snow Leopard laptop, will try to install a virtualized environnment asap...

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.