Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[mt6573][kernel source] ALPS development environment

OP Chrizzly92

4th January 2013, 04:53 AM   |  #1  
OP Senior Member
Flag Dresden
Thanks Meter: 218
 
437 posts
Join Date:Joined: Jul 2012
Donate to Me
More
I can't post to the development section because i'm new here, so feel free to move this thread
I've found some really interesting things around the internet.
I got an mt6573 device half a year ago(Star A920) and ported over some ROM'S.
Now i wan't to get deeper, the problem is the sourcecode from mediatek. Alcatel has released its sources (OT918d, OT991d) which are mt6573 phones. For building the mediatek Android, we need other files, which were not included in their sources.
Now it's getting interesting:
I've found this on the internet:
www.github.com/fanjunwei/mytqe
It seem like this is the development environment for the ALPS MTK builds.
I also found this "How-To" for the environment.
http://wenku.baidu.com/view/86c3bad7...648d74748.html
..and the kernelsource for the alcatel 991d.
http://www.sourceforge.net/projects/...ar.xz/download
I'm trying to build an android from sources, maybe we are successfull together.

If I'm wrong - correct me, please.

edit: sucessfully build Android 2.3.6 from sources!!! ( ALPS.GB.FDD2.MP.V4.5 , e1101_v73_jbl1ctp_a515, Kernel Version 2.6.35.7 )
Last edited by Chrizzly92; 6th January 2013 at 11:32 PM. Reason: sucessfull!
The Following 7 Users Say Thank You to Chrizzly92 For This Useful Post: [ View ]
13th January 2013, 11:52 AM   |  #2  
mandeep1's Avatar
Member
Flag Jabalpur
Thanks Meter: 9
 
55 posts
Join Date:Joined: Oct 2011
More
Whoa bro !
can u make a guide how to compile from sources ?
14th January 2013, 10:27 AM   |  #3  
Senior Member
Flag milan
Thanks Meter: 40
 
276 posts
Join Date:Joined: Jan 2010
More
Quote:
Originally Posted by Chrizzly92

I can't post to the development section because i'm new here, so feel free to move this thread
I've found some really interesting things around the internet.
I got an mt6573 device half a year ago(Star A920) and ported over some ROM'S.
Now i wan't to get deeper, the problem is the sourcecode from mediatek. Alcatel has released its sources (OT918d, OT991d) which are mt6573 phones. For building the mediatek Android, we need other files, which were not included in their sources.
Now it's getting interesting:
I've found this on the internet:
www.github.com/fanjunwei/mytqe
It seem like this is the development environment for the ALPS MTK builds.
I also found this "How-To" for the environment.
http://wenku.baidu.com/view/86c3bad7...648d74748.html
..and the kernelsource for the alcatel 991d.
http://www.sourceforge.net/projects/...ar.xz/download
I'm trying to build an android from sources, maybe we are successfull together.

If I'm wrong - correct me, please.

edit: sucessfully build Android 2.3.6 from sources!!! ( ALPS.GB.FDD2.MP.V4.5 , e1101_v73_jbl1ctp_a515, Kernel Version 2.6.35.7 )

it's cool!!
can you make a tutorial for comiling android from source?
14th January 2013, 04:07 PM   |  #4  
OP Senior Member
Flag Dresden
Thanks Meter: 218
 
437 posts
Join Date:Joined: Jul 2012
Donate to Me
More
look at the second link i've posted. there is an complete tutorial. (setting up a virtual machine, for example). you have to use "./makeMtk baoxue r" to build the komplete system with recovery, boot.img etc.
then u need some cust_xxx.c files from the alcatel sources, or the build fails. ( copy them manually to the folders, shown in the error logs of the builds).
I have to get deeper into it, maybe compiling a new kernel for our devices. Sure I will make an Tutorial, but at first i have to know exactly what im dooing. I hope someone else can help me, so we can get the best results out of it.
18th January 2013, 12:11 AM   |  #5  
godofgeeks's Avatar
Senior Member
Thanks Meter: 139
 
283 posts
Join Date:Joined: Mar 2012
Donate to Me
More
Quote:
Originally Posted by Chrizzly92

I can't post to the development section because i'm new here, so feel free to move this thread
I've found some really interesting things around the internet.
I got an mt6573 device half a year ago(Star A920) and ported over some ROM'S.
Now i wan't to get deeper, the problem is the sourcecode from mediatek. Alcatel has released its sources (OT918d, OT991d) which are mt6573 phones. For building the mediatek Android, we need other files, which were not included in their sources.
Now it's getting interesting:
I've found this on the internet:
www.github.com/fanjunwei/mytqe
It seem like this is the development environment for the ALPS MTK builds.
I also found this "How-To" for the environment.
http://wenku.baidu.com/view/86c3bad7...648d74748.html
..and the kernelsource for the alcatel 991d.
http://www.sourceforge.net/projects/...ar.xz/download
I'm trying to build an android from sources, maybe we are successfull together.

If I'm wrong - correct me, please.

edit: sucessfully build Android 2.3.6 from sources!!! ( ALPS.GB.FDD2.MP.V4.5 , e1101_v73_jbl1ctp_a515, Kernel Version 2.6.35.7 )


Congratulations buddy, a tut by your experience shall be highly helpful
Last edited by godofgeeks; 18th January 2013 at 12:18 AM.
18th January 2013, 03:26 AM   |  #6  
OP Senior Member
Flag Dresden
Thanks Meter: 218
 
437 posts
Join Date:Joined: Jul 2012
Donate to Me
More
Xperia Neo V? thas NOT an mt6573 based Phone. maybe you have a chinese fake or something, then u could be right here.
The Following User Says Thank You to Chrizzly92 For This Useful Post: [ View ]
29th January 2013, 02:39 PM   |  #7  
balamu96m's Avatar
Senior Member
Flag Chennai
Thanks Meter: 945
 
1,023 posts
Join Date:Joined: May 2011
More
Great work! what is the latest news??
23rd February 2013, 04:15 PM   |  #8  
Member
Thanks Meter: 29
 
37 posts
Join Date:Joined: Feb 2010
Header is missing
Hi pals,

the Problem is that the repack-MT6577.pl assumes tht the needed Header information is already in the zImage, which is because normally you would pass the zImage which you extractet from a original boot.img to the script. So it will not boot until you append the Header to the zImage,
i extracted the Header with dd and build a zImage with it. Will try that out now

Edit:
the header is the first 512bytes of the original zImage

Edit2:
It boots with my custom kernel Forgot to mention my device: Alcatel OT998 (sold by Base in Germany, almost the same as OT997/OT997D)

Edit3: sorry Wrong Thread, as it is a different MTK-Platform but the info correct for you also i guess
Last edited by HUELK; 23rd February 2013 at 04:26 PM. Reason: sorry wrong thread
The Following User Says Thank You to HUELK For This Useful Post: [ View ]
23rd February 2013, 06:00 PM   |  #9  
balamu96m's Avatar
Senior Member
Flag Chennai
Thanks Meter: 945
 
1,023 posts
Join Date:Joined: May 2011
More
Re: [mt6573][kernel source] ALPS development environment
Quote:
Originally Posted by HUELK

Hi pals,

the Problem is that the repack-MT6577.pl assumes tht the needed Header information is already in the zImage, which is because normally you would pass the zImage which you extractet from a original boot.img to the script. So it will not boot until you append the Header to the zImage,
i extracted the Header with dd and build a zImage with it. Will try that out now

Edit:
the header is the first 512bytes of the original zImage

Edit2:
It boots with my custom kernel Forgot to mention my device: Alcatel OT998 (sold by Base in Germany, almost the same as OT997/OT997D)

Edit3: sorry Wrong Thread, as it is a different MTK-Platform but the info correct for you also i guess

Again nice work!

Can you a somewhat detailed tutorial??
Last edited by balamu96m; 23rd February 2013 at 06:05 PM.
23rd February 2013, 08:08 PM   |  #10  
Member
Thanks Meter: 29
 
37 posts
Join Date:Joined: Feb 2010
Quote:
Originally Posted by balamu96m

Again nice work!

Can you a somewhat detailed tutorial??

hi ,
sorry sure i can give detail, well at least i try:

1. Get the zImage from a working boot.img eg with unmkbootimg or split_bootimg.pl

2. The needed header is in the first 512bytes of the zImge extract that:
dd if=<zImgeOrig> of=header bs=512 count=1

3. Append the header to the build zImage
3.1 dd if=header of=zImageMod
2.2 dd if=zImageCustom of=zImageMod seek=512

4. Repack Boot.img with repack-MT65xx.pl as known

5. Flash through CWM:
I flash it to my device over the adb console after putting the Image on the sdcard with adb push:
dd if=/sdcard/<boot.img> of=/dev/bootimg

NOT TESTET: flashing through the cwm update-script with write_raw_image("boot.img", "/dev/bootimg");


Thats the way i got it up to boot, but i have some Problems with the permission of pvrsrvkm.ko know, i building CM10 for my Device if anyone wants to know...

i guess you can easily modify the repack-MT6577.pl to include that for fresh kernels, i will have a look at that in the next days.

Greetz HUELK

<-----THANKS Button
Last edited by HUELK; 23rd February 2013 at 08:25 PM. Reason: forgot flashing

The Following 10 Users Say Thank You to HUELK For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes