yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] thederekjay:
Now it might be possible, but speaking from personal experience I have had nothing but trouble compiling on 32 bit machine. As far as your kernel, if you were able to generate a zimage, then u successfully compiled the kernel. the zimage might be larger depending on the compression method you set in your config file. Also i would double check to make sure that you have loaded the default config for your device..
[myTouch 4G Android Development] ghost_og:
I did load the device config but did not mess with any compression settings which was why I was stumped when it wouldn't boot. I figured using the device config and the source without changing anything should have produced the same size file.

I'll probably just have to wait for a 64-bit rig. At least for now I can compile the ROM. Thank you for the feedback.
[myTouch 4G Android Development] Elloco305:
Thank you for this. :)
[myTouch 4G Android Development] GriefNorth:
Please, hel pme with this error, i try compile cm7 but i have error with camera

I don't understand what i do incorrect
[myTouch 4G Android Development] aaraya1516:
Is anybody attempting to build CM10?

I've run into a couple issues. And I don't know if these were the correct actions to take.

You need to add this file:

https://github.com/CyanogenMod/andr...ece9593a0175a0cf/include/linux/msm_vidc_enc.h

then in that file add:

#define VEN_IOCTL_SET_SLICE_DELIVERY_MODE \
_IO(VEN_IOCTLBASE_ENC, 50)

Then you need to add

#define VDEC_EXTRADATA_NONE 0x00000001
#define VDEC_IOCTL_SET_FRAME_RATE \
_IOW(VDEC_IOCTL_MAGIC, 29, struct vdec_ioctl_msg)
enum vdec_output_order {
VDEC_ORDER_DISPLAY = 0x1,
VDEC_ORDER_DECODE = 0x2
};

to msm_vidc_dec.h

This is using a 3.x kernel from https://github.com/elginsk8r/htc7x30-3.0

I still haven't completed a build, still troubleshooting, but it looks hopeful for now. I'll post any other issues I encounter, and please correct me if these are absurd changes.

For the error with

MSMFB_OVERLAY_VSYNC_CTRL

This needs to be patched in as well: http://paste.giev.de/view/86f3cce6
[myTouch 4G Android Development] sykopompos:
I have been running 64 bit system for awhile so I myself have not gotten the chance to experence what would happen with 32 bit but from what I have heard from others you will get some funky behavior. Now a little android anatomy lesson: most of the android source and in compiling relies on the GNU make/gcc, the bottom end code of android is the kernel, the modules, and the lower operating files. We then have the dalvik vm which is in a sense a java runtime enviroment/jre. So according to this logic make will compile everything fine but according to JBQ gingerbread is meant to work with the 64bit 1.6 java so our issue would be how the 32 bit would cause odd behavior in our apps. NOW this is only saying say that gingerbread aosp needs 64 bit, cm is based on aosp but has highly evolved from it and even though a lot of the changes on seen on the framework level, there are highly modified code throught the source including the build files
[myTouch 4G Android Development] jmt.dev:
i agree. the site won't let me download the guide.

could you repost the link?
[myTouch 4G Android Development] foxdl99:
Holy crap! I never even thought to compile the kernel! I can really impress my wife now.:eek:
[myTouch 4G Android Development] sykopompos:
I have one actually for 10.10 I just gotta find it
[myTouch 4G Android Development] stlouie65:
Quick question on this. How would you compile for Froyo using this guide?
[myTouch 4G Android Development] sykopompos:
Cm6 or aosp?
[myTouch 4G Android Development] rjhay22:
Wow! You are the man! :) Thank you for sharing this to the community.

Edit: The link doesnt work though. Cant download the file :(
[myTouch 4G Android Development] sykopompos:
How to add things in from gerrit will be coming tonight since a lot of people are asking about it
[myTouch 4G Android Development] stlouie65:
Cm6 would be preferred, and if you do have a link where I can get the aosp stuff too. I really want to learn how to Cook, so I can contribute more
[myTouch 4G Android Development] rjhay22:
Edit: The link doesnt work though. Cant download the file :(
[myTouch 4G Android Development] sykopompos:
I am looking for another copy of it
[myTouch 4G Android Development] sykopompos:
Just switch the -gingerbread to -froyo (new source folder something like ~/cm6 if you have the space is best) the build process is the same just different prop files

Aosp is gonna take a lot of work and once the cm7src project ends then I can start doing all the groundwork for aosp
[myTouch 4G Android Development] stlouie65:
Appreciate that Grid, thanks
[myTouch 4G Android Development] DGarmon:
gridlock32404 THANK you, this is something I have been looking for, thanks for all your work you put into this guide . One question, would you happen to have an offline copy of your guide? Here at work, firewall blocks any photo sharing site so I can't see the screen shots. I tried to just print to pdf, but it's not formatting the page layout right.
[myTouch 4G Android Development] sykopompos:
I do not have an offline version as this will be getting constantly updated. Also photobucket just sent me a email saying I am excedding bandwidth so that could be bad :( might have to find another option for the screenshot hosting if these go down
[myTouch 4G Android Development] bubonik:
Set up a Google Sites page.
[myTouch 4G Android Development] bobsbbq:
This is the same problem I had when I did a tutorial for making transparent icons using a provided template. Step by step. Photobucket was over run and the pictures went down.

BTW I'm going to have to redo my Ubuntu and start from scratch. But before I do I have to make sure everything on my Laptop is backed up, as it is on the same hard drive as my Win7, WinXP. I don't want to take a chance at something going wrong.

Q. Should I go with 10.10 Ubuntu since I'm starting over? Is there any advantage, or is 10.04 just as good.

PS this thread is going to be so long that by the time I'm ready it will be like reading a book. LOL
[myTouch 4G Android Development] sykopompos:
10.10 or 10.04, I just like the newest so I got 10.10 and it is quite stable for me :) I hope my pics don't go down
[myTouch 4G Android Development] bubonik:
CM7 compiling guide has missing brackets for image tags. Just finished my first build, went smoothly and compiled first try.
[myTouch 4G Android Development] sykopompos:
Fixed, thanks for pointing it out :)
[myTouch 4G Android Development] foxdl99:
10.10 just added some ui tweaks as well as the software store purchase option. It's pretty well the same thing as 10.04. 10.04 is the LTS version right now which means they are actively providing support for it, but 10.10 is almost identical. The next LTS comes out in April.
[myTouch 4G Android Development] insestito:
Hi, you can compiling this to Motorola Cliq ???

thanks !!
[myTouch 4G Android Development] adianlorenzana:
That's such a sentence.

Anyway, great work on the guide, just what a budding coder like myself needed :)

I do wish the picture worked though :(
[myTouch 4G Android Development] sykopompos:
Are the screen shots down, damn photobucket slammed my account for excessive bandwidth :)

Anybody know of a good alt?

Hopefully you as a budding coder do well and maybe you can also help with my aosp project I am beginning to work on

Also I really didn't understand the sentence, I think he was asking about compiling for the cliq
[myTouch 4G Android Development] iblaststatic2020:
So?

I get to the point where I'm entering the line

curl https://android.git.kernel.org/repo >~/bin/repo

and I get this prompt.

curl: (6) Couldn't resolve host 'android.git.kernel.org'

I have done all the previous steps correctly and not sure why i'm getting this and what to do to get this to work. any ideas?
[myTouch 4G Android Development] philosophics:
Everytime I try to make bacon, I get a different error every time. It's always .o files and then waiting for unfinished jobs.

When I get back to my desktop, I will update the post with ...a log of sorts...
[myTouch 4G Android Development] daz1uk:
Wow, now that's a guide! Thank-you very much for putting this together.
[myTouch 4G Android Development] imabrokendownload:
Try imgur
[myTouch 4G Android Development] sykopompos:
That sounds like a connection error
[myTouch 4G Android Development] sykopompos:
You might be missing proprietary files which will cause the build to fail
[myTouch 4G Android Development] philosophics:
I followed the How-to step by step. Everything except making bacon works.

This is the latest error I got...

This one 5 minutes later...

They're always different errors. Never the same. I've deleted the entire directory and started over twice. Even with the cyanogen wiki how-to trying to build froyo, it does not work...

I have no idea where the problem could be. This ubuntu 10.10 is pretty much updated stock along with the android stuff so...

Another fresh directory/repo/sync/build and now this

Going to try again...
[myTouch 4G Android Development] erezak:
Great guide. Not one issue following it.

Thank you.
[myTouch 4G Android Development] sykopompos:
That is looking like your gcc compilier itself is crashing and I am not sure of a fix for that
[myTouch 4G Android Development] bobsbbq:
just a minor thing for noobs like me copy and pasting. There is a capital M on mkdir Here:

REPO

Repo is a tool that makes it easier to work with Git in the context of Android. It is a almost the same as Git and we will go into the differences at a later time

we are gonna make sure that we are in our right directory so

cd ~

~ means home/user dir, so in my case it would be /home/sykopompos/ but using ~ allows us to simplify our use.

[B]Mkdir bin[/B]

export PATH=${PATH}:~/bin

by typing echo $PATH we can see the all of what is in our path

curl https://android.git.kernel.org/repo >~/bin/repo

to get the repo script
[myTouch 4G Android Development] ripmeck:
thanks gridlock! . i got it all working perfectly!. ive been looking for this for the past year. cyanogen's wiki wasnt helping me out too much.

i assume that since im on a mytouch 4g, i would replace every "vision" placed in the tutorial with "glacier" right?

and FYI guys .. i started off with a 32 bit system and it gave me an error when compiling gingerbread. had to reformat and put 64-bit and it worked like a charm :)

now that i have my signed file , now what? during which portion of the guide am i able to edit the files before i compile ? .. im an extreme noob and have just started taken my first programming class so bare with me lol

THANKS GRIDLOCK!
[myTouch 4G Android Development] erezak:
I believe you mean that the users should not use capital M, right?
[myTouch 4G Android Development] sykopompos:
it should be a lower case m, linux is case sensitive and that was a case of auto correction at work. It should be and I will correct it later

mkdir
[myTouch 4G Android Development] demolitions:
Thanks very much for the guide, gridlock.

If you know anything about this, I just need starters.

I already succeeded in compiling my own gingerbread for the G1, but i'd like to compile at least Froyo for a tablet bought with Eclair, however it isn't in the devices directory in the cm6 git.

Which files do I need, and can I extract them from the Eclair build that's on the tablet now?
[myTouch 4G Android Development] sykopompos:
Name changes are good :)

Depends on the tablet, there is a lot of work involved in porting a new device. I suggest you find the manufactor's website and find the open source files for the device. You need those open source hardware files and kernel source, without those it will be highly difficult
[myTouch 4G Android Development] demolitions:
Welcome changes, even in name :D

The device is (just for the record) a HSG X5A-G (which is a particular version of the X5A), but the manufacturer's website is (apart from being completely in chinese, with an awful english taken more or less directly from google translate) completely void of any download, I've managed to find an original image here on XDA, but the open source android files you refer to are pretty much unavailable.

Do you know any other means of obtaining them? apart from writing them from scratch, i mean :)
[myTouch 4G Android Development] sykopompos:
You will have to send a e-mail requesting the open source files that they are bound to by use of gpl code. Once requested they are supposed to supply them
[myTouch 4G Android Development] demolitions:
Ok thanks, I'll try that way.
[myTouch 4G Android Development] everest.deth:
Quick one here, im at the point where i have to select the partition where ubunto will run and i had set a new 13 gb partition apart for this but when i select it it (and i hit format as ext4) it says no root file system is defined, please correct this from partioning menu :(

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] bobsbbq:
You have to specify a mount point. Use / for root, and if you are using a second partition for your home then mount at /home.

I think I made one for root 10-15 gb, another one for /home 20 gb, and a 4gb swap partition.
[myTouch 4G Android Development] everest.deth:
What is the difference between /root and /home?

Btw i set 13gbs and it is telling me if iwould like to set a swap space, should i return to windows and create a new parition for swap space only?

Thanks :)

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] everest.deth:
Lol i just decided to go through with the instalation.

Ill let u guys know if something goes wrong :D

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] bobsbbq:
root is where all the system files are. Think of it as your windows folder. /home is like My documents, where you will be keeping all your stuff. Having /home on a separate partition could save your data in the case you have a problem with the linux system files.

I think it is better to manually create your own partitions. If you do as I outlined above you will have 3 partitions plus whatever else you may have for windows etc. Your system files on one partition mounted at / and your data home files mounted at /home and a swap partition.
[myTouch 4G Android Development] everest.deth:
Thanks for the clarification, im downloading java right now :)

Btw can i add the /home partition afterwards?

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] bobsbbq:
I don't think so but I'm not sure. Maybe someone else can answer that one.
[myTouch 4G Android Development] sykopompos:
You can but it really is not prefered to do but you can with something like ubuntu tweak
[myTouch 4G Android Development] Ducter:
Hows your AOSP guide coming sykopompos? I keep killing my AOSP build environment with my goofs lol..
[myTouch 4G Android Development] sykopompos:
I got the basic source in place and pullable to others but I am at a conflicted point and I am not sure which way to go. As it is right now, the froyo proprietary files along with the hardware files have been highly modified by the cm team to work with gingerbread which for me doing the bulk of the legwork on this source leaves me at a crossroads. Do I fork into my source the modified files (of course give credit to the cm team there) so everything works out the box or do I spend the many many hours doing these all over again just to come up with similar results?
[myTouch 4G Android Development] Ducter:
I would use whats been provided, with credit as you mentioned. Thats the spirit of open source I would say. I had my son tweet kmobs about the .mk files and how I would go about getting them working for AOS and like you said, his response was they have been highly modified...I would see no reason to re-tackle the same issues they have already honestly.
[myTouch 4G Android Development] everest.deth:
# Update the Loc var to where YOU stored the testsign.jar file !

...hmmm am i supposed to change the part that says "to where YOU stored the testsign.jar file !" for the actual path to the file? :confused: :confused: :confused:

And if i have to...it is the path to what file, i do not remember storing any testsign.jar file...only the new document named text where i am pasting the info :(
[myTouch 4G Android Development] everest.deth:
I cannot get adb devices to work :(

Sent from my rooted glacier running CM7 and grankin's oc kernel :D

This is my terminal: (As you can see my $PATH is set for Platform-tools...idk what is wrong :( )

deth@deth-desktop:~$ cd ~

deth@deth-desktop:~$ adb devices

No command 'adb' found, did you mean:

Command 'cdb' from package 'tinycdb' (main)

Command 'gdb' from package 'gdb' (main)

Command 'aub' from package 'aub' (universe)

Command 'dab' from package 'bsdgames' (universe)

Command 'zdb' from package 'zfs-fuse' (universe)

Command 'mdb' from package 'mono-debugger' (universe)

Command 'tdb' from package 'tads2-dev' (multiverse)

Command 'pdb' from package 'python' (main)

Command 'jdb' from package 'openjdk-6-jdk' (main)

Command 'ab' from package 'apache2-utils' (main)

adb: command not found

deth@deth-desktop:~$ echo $PATH

/home/deth/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/deth/androidsdk/tools:/home/deth/androidsdk/platform-tools

deth@deth-desktop:~$ lsusb

Bus 005 Device 002: ID 04f3:0103 Elan Microelectronics Corp.

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems)

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 005: ID 0bb4:0c96 High Tech Computer Corp.

Bus 001 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

EDIT: sooo..nvm xD i got it :P
[myTouch 4G Android Development] bobsbbq:
I'm not 100% sure but I think it is supposed to be tools, not plarform-tools.
[myTouch 4G Android Development] everest.deth:
It is platform tools with the new sdk :)

Btw, can anyone tell me htf to enter ~ with my keyboard :? I always have to copy paste it :(

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] psp2:
too hard for me .
[myTouch 4G Android Development] sykopompos:
The little button next to the 1? Shift plus that little button makes ~
[myTouch 4G Android Development] sykopompos:
Me too, too much work also
[myTouch 4G Android Development] everest.deth:
so...i was repo synchin for the first time...thought it'd be a good idea to go to sleep (:( ) and when i wake up...i did not have enough space for the source xD

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] sykopompos:
The aosp source in itself is around 2-3gb and I am not sure about cm7, then you will need around 10gb free space just for the compiling
[myTouch 4G Android Development] everest.deth:
I just added an extra 17 gbs into the partition :) now i just have to redownload the source :)

Although it takes a while with a 3mbps connection :S

But i am patient :)

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] sykopompos:
The compilation could take up to several hours. I have done it on a netbook and used to take 9 hours.

The first sync is the longest
[myTouch 4G Android Development] everest.deth:
I am hoping itll finish within the next two hours :D

Btw once again..thanks for the guide :cool:

Sent from my rooted glacier running CM7 and grankin's oc kernel :D
[myTouch 4G Android Development] everest.deth:
Ok, so when i have the cm7 source good to go..i try to do "cd device" (to extract the propietary files) ..but device is definitely not a known location xD...i tried only "cd htc/glacier" (i am using the glacier at the time) ...and it still says it is an unknow location :confused:

See my attempts XD...(adb does recognize the device=

deth@deth-desktop:~$ adb devices

List of devices attached

SH0AWT700921	device

deth@deth-desktop:~$ cd device

bash: cd: device: No such file or directory

deth@deth-desktop:~$ cd htc/glacier

bash: cd: htc/glacier: No such file or directory

deth@deth-desktop:~$ cd htc

bash: cd: htc: No such file or directory

deth@deth-desktop:~$ cd ~

deth@deth-desktop:~$ cd device

bash: cd: device: No such file or directory

deth@deth-desktop:~$ cd htc/glacier

bash: cd: htc/glacier: No such file or directory

deth@deth-desktop:~$ cd htc/mt4g

bash: cd: htc/mt4g: No such file or directory

:confused:
[myTouch 4G Android Development] sykopompos:
You are connected but you are in your /desktop folder and not your source, if you named the source cm7 the cd ~/cm7/device/htc/glacier/ then run the extract-files.sh
[myTouch 4G Android Development] everest.deth:
OK, so Its compiling :D

Edit: So i have my home made cm sandwich :cool: Thanks to grid for the guide and the cm team for the source :)

Second Edit: Ok, so i have my kernel ready to go, in order to fastboot the zimage and flash the wifi modules, do i need to c & p those two files to the platform tools directory? , if so, do i push the wifi module first or do i fastbot the kernel? :P btw, where do i push the wifi module to?

If instead of doing that i want to replace the existing files at cm7/device/htc/vision/ ...will i have to make clean and bacon again?
[myTouch 4G Android Development] pconwell:
Compiling CyanogenMod

If you want more information on compiling CyanogenMod, check out the official cm wiki:

wiki.cyanogenmod.com/
[myTouch 4G Android Development] sykopompos:
The official cm wiki is garbage, doesn't explain anything, extremely outdated. Will you please stop posting that in my thread please and maybe try updating the wiki with info since donut
[myTouch 4G Android Development] everest.deth:
+1 :cool: ...
[myTouch 4G Android Development] pconwell:
What are you talking about? Have you looked at the wiki since donut?

And what doesn't it explain exactly? It gives step-by-step instructions on how to build from source.

Additionally, it is a wiki - which means anyone can edit it. If you have an issue, why don't you edit it and stop complaining about it?
[myTouch 4G Android Development] sykopompos:
Actually I looked at it the other day and still thought it hasn't been updated since donut. Just cause it gives you for different devices doesn't mean it has been updated. Look at the kernel source part or the fact that you are still running commands from the 1.6 Android source page that are unneeded. I don't write up a guide for no good damn reason unless it was needed and btw my guide has been written up for over a year when there was no wiki, I just updated it. Maybe the step by step instructions might be good for you but the feedback on it isn't all that great and doesn't tell you why you doing something or explain anything plus where can you ask questions?

I don't do wikis they are too impersonal for me
[myTouch 4G Android Development] sykopompos:
Also I didn't complain about it, I did something I wrote a guide that explains it more in depth. You are the one who came in my thread trying to sell the wiki and I told you the reason for the guide. Plus this thread is also meant to cover other sources and not just cm, aosp doesn't build the same way. I am still working on the other guides, I had screenshots and all attached but I just need to reload them because of all the bandwidth that has been used and Photobucket killed the pictures. I have received tons of praise about these guides because how much better of a job it ford than the wiki. So once again apparently it was need so get that horse out my thread and move on and try to be usefully some other place

Kthxbye