yashsingh1/xdaforums huggingface dataset:
[myTouch 3G, Magic Android Development] ATeam-MrT:
If we managed to build an image for sapphire, would this be for the new or the old radio?
[myTouch 3G, Magic Android Development] Szusz:
There's a reply on a previous page for that question.
[myTouch 3G, Magic Android Development] pellen:
Cool, got a little curious about compiling my own ROM...but does it work with the 32A or is this only for the 32B?
[myTouch 3G, Magic Android Development] Szusz:
Well, I wouldn't say it's your own ROM... It would be better to say that it's 'plain' ROM. Unless you'll customize it to your likings.
[myTouch 3G, Magic Android Development] pellen:
Sorry for using the wrong words Mr. Nitpick :p
[myTouch 3G, Magic Android Development] magicdroid:
managed to build Froyo image.. but got stuck loop-booting on 32A old radio:

keep getting a lib not found exception:

Unable to dlopen(/system/lib/libandroid_servers.so): Cannot load library: link_image[1995]: failed to link libandroid_servers.so

and the file is in the lib folder.
[myTouch 3G, Magic Android Development] ChevyNo1:
I am getting the same issue booting on a Moto Droid ... glad it's not just me!
[myTouch 3G, Magic Android Development] mizuchi:
Downloading now.. will probably test tomorrow.. I mean, 800KiB/s? Seriously.. Google servers could do better than that..

I'm also interested in how to implement NCommander's camera drivers.. if anyone has any info/howto for this, please let me know.. I own a Docomo HT-03A which is essentially the 32B Magic..

Quick noob question, this won't overwrite my Amon RA's recovery image right? I noticed that there are no recovery.img, so I guess I'll be OK.. just wanted to make sure..
[myTouch 3G, Magic Android Development] anhtuanbkcse:
I built froyo and flashed img files into my HTC Magic, but the screen stop at boot screen. anyone can help?
[myTouch 3G, Magic Android Development] dferreira:
I'm building the images as I type this.

http://android-developers.blogspot.com/2010/06/froyo-code-drop.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+(Android+Developers+Blog)

According to the link, AOSP is now structured differently. Froyo is already merged into master branch, but I have a feeling that something messed up. I'm building it using froyo as branch. If that doesn't work, I'll take a look at the master repository and see if it runs. This is a good day indeed!

I'll keep you guys posted. If I succeed, I'll post the .img files for your delight :)
[myTouch 3G, Magic Android Development] theillustratedlife:
dferreira, thanks for all your support. You did great work with St0kes AOSP 2.1 ROM, and now for FroYo as well.
[myTouch 3G, Magic Android Development] ATeam-MrT:
I doubt this is true for 32A new radio...
[myTouch 3G, Magic Android Development] rhcp011235:
Nice.

Which rom are you running? Which link? Maybe ill try it.

John
[myTouch 3G, Magic Android Development] Bladyle:
unfortunately me too. ..
[myTouch 3G, Magic Android Development] tnpapadakos:
if you mean cyanogen's rom, at least it will give us something to look at, maybe solve our camera problem, etc, port it to 32a
[myTouch 3G, Magic Android Development] ATeam-MrT:
Yes, maybe we can then simply use the 2.1 camera files then along with sanpei's kernel in 2.2...
[myTouch 3G, Magic Android Development] lele5800:
where i can get 2.1 camera files and dictionary files to try in the 2.2 rom ?

anyone can do a list of files that i can get and test in the new rom ?
[myTouch 3G, Magic Android Development] caoboth:
Just my own that i compiled up and modified.

Working

GPS (working with built in library so not using older eclair lib)

Sound

Wifi

Bluetooth etc

Not working

Gallery3D

Camera

Oh and ive not done a boot animation (figure thats last thing to sort out).

Uploading to drop box in case its of any use to anyone http://dl.dropbox.com/u/8689072/caoboth-update-v1.0.zip
[myTouch 3G, Magic Android Development] shadow_empire1:
Linpack result?
[myTouch 3G, Magic Android Development] caoboth:
MFLOPS 3.49

Time 1.55 Seconds

Norm Res 3.36

Precision 2.220446049250313E-16
[myTouch 3G, Magic Android Development] rhcp011235:
Thanks for the upload.

Has anyone put the camera fix + the gallery fix yet?
[myTouch 3G, Magic Android Development] dekans:
With the given script, I do not manage to build a sapphire image. (with choice 5)

there's no rule to build the target "out/target/product/sapphire/obj/STATIC_LIBRARIES/libboot_board_dream_sapphire_intermediates/libboot_board_dream_sapphire.a"
[myTouch 3G, Magic Android Development] dferreira:
Yep, I'm also getting that error since Google updated AOSP this morning :( We'll need to wait for them to fix it!
[myTouch 3G, Magic Android Development] dekans:
Okay, I had a similar error yesterday.

So I wait thx :)
[myTouch 3G, Magic Android Development] rhcp011235:
Crap. I was hoping for a 2.2 rom today :(
[myTouch 3G, Magic Android Development] rhcp011235:
CM6-ALPHA is out of the N1.

Perhaps someone here can take the fixes for the GPS/Camera/Gallery?

I would but i dont know what im doing :)
[myTouch 3G, Magic Android Development] rhcp011235:
Hey.

I wiped. Then flashed your rom.

Seems to come up and see's my 3G. I setup the APN as well.

Apps2SD doesnt seem to show? and i have a 4G card in.

any ideas on this?

Seems very fast so far.
[myTouch 3G, Magic Android Development] rhcp011235:
Ah. This rom is not rooted :) I tried to su - permission denied :)
[myTouch 3G, Magic Android Development] rhcp011235:
Hello,

I was in the cygogen chan on freenode.

http://www.mediafire.com/file/wz2mzomzmgb/cyanogen_dream_sapphire-ota-eng.krylon360.zip

This rom has root. But it has no camera. and no market working.

Perhaps this can be to help for someone.
[myTouch 3G, Magic Android Development] rhcp011235:
Not sure if this helps people:

http://kanged.net/mirror/gapps/
[myTouch 3G, Magic Android Development] LaRoach:
I fixed this error by doing the following:

I commented out the following two lines in the android.sh script:

#repo init -u git://android.git.kernel.org/platform/manifest.git -b $BRANCH

and

#repo sync #update repo's

I then went into the device directory:

cd device/htc/dream-sapphire/

and rolled back the commit that caused this:

git checkout froyo-release

You can see the latest change that caused this here:

http://android.git.kernel.org/?p=device/htc/dream-sapphire.git;a=summary

It looks like it's the one labeled "sapphire makefile should only be included for ARM builds". There is one change beyond the "froyo-release" branch that one could put back in if you want.

Note: I'm a complete noob at the android building thing so if this is a completely boneheaded way to do this apologies in advance!
[myTouch 3G, Magic Android Development] rhcp011235:
Hey.

CM6 alpha is out as well as a modded by a friend

http://www.tinyurl.com/extremefroyo
[myTouch 3G, Magic Android Development] dferreira:
Just change the BRANCH variable on the script to "froyo" and we are good to go again. Something is broken on the master branch.
[myTouch 3G, Magic Android Development] dferreira:
Updated to v2, check first post.
[myTouch 3G, Magic Android Development] capychimp:
still 32b in first port?
[myTouch 3G, Magic Android Development] JackMagic:
Just putting together a flashable .zip based on V2 for 32B :) Will upload in a sec.

Edit: Getting working g-apps sorted before uploading basic ROM.
[myTouch 3G, Magic Android Development] dferreira:
Yes, 32B only, but easily ported to 32A (replacing the libgps and kernel). Also, latest gapps from FRF83 N1 should work too (I've tested and they work, some issues with hdpi graphics tho).
[myTouch 3G, Magic Android Development] capychimp:
yeah i know :) gonna mess a bit with it, nice with the linker :)
[myTouch 3G, Magic Android Development] :
To get the camera and video working for 32A we may need to compile for 32A in first thread and we'll probably need to wait for HTC to release the drivers.
[myTouch 3G, Magic Android Development] JackMagic:
Okay..

Flashable v2 for 32B

Working:

- as in first post

- rooted

- running slightly quicker than before (seemingly)

- g-apps included: market/maps/navigation/gmail/news&weather/youtube (all fixed images)

-still no bootanimation or camera.

Linpak score: 3.65~

Download:

http://drop.io/lqvdcux/asset/froyo32b-dfbase-jm-v2-zip

NB: GPS in Maps/Navigation is working. Location in Browser and News&Weather Widget is not working, but this isn't solely related to GPS as far as I know.
[myTouch 3G, Magic Android Development] bigdbag:
Got a reboot while using the twitter app. Runs very smooth other than that.
[myTouch 3G, Magic Android Development] Szusz:
So the linker issues are gone right?

Could you post new mappings? Thanks!
[myTouch 3G, Magic Android Development] capychimp:
anyone knows how we get facebook contacts linked to contacts?
[myTouch 3G, Magic Android Development] Szusz:
Facebook is adding a note to your google contacts.
[myTouch 3G, Magic Android Development] capychimp:
but it wont make the link for adding the photo ;)
[myTouch 3G, Magic Android Development] blunden:
Building the latest AOSP master branch targeting the emulator (for some testing) using Ubuntu 10.4 32bit I get the following error:

In file included from /usr/include/fcntl.h:205,
from frameworks/base/core/jni/android_server_Watchdog.cpp:21:
In function ‘int open(const char*, int, ...)’,
inlined from ‘void dumpKernelStacks(JNIEnv*, _jobject*, _jstring*)’ at frameworks/base/core/jni/android_server_Watchdog.cpp:66:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [out/debug/host/linux-x86/pr/sim/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_server_Watchdog.o] Error 1

http://pastebin.com/iJUztYdG

Did anyone fix that?
[myTouch 3G, Magic Android Development] iznogoud77:
I believe you need to install libreadline5-dev for that to work.

Cheers
[myTouch 3G, Magic Android Development] mizuchi:
quick question,

I unwrapped the img files using the android kitchen, and replaced the liboemcamera.so from the F-Extreme ROM since it was working there.. I built the ROM using the kitchen and tried to flash it on my 32B Magic using recovery, but got this error;

E: Can't chown/mod /system/etc/bluez

(No such file or directory)

E: Failure at line 67:

set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluez

Installation aborted.

and it aborted the installation.. can someone tell me what the problem is? I can always try and build the system.img but I don't know how to convert the system folder in the zip output to system.img that I can use to try and fastboot instead..

Any help is appreciated..

EDIT:

edited the update-script and omitted the lines that had reference to the bluez folder and re-built the package.. it flashed fine and booted up without a problem.. however, the camera still doesn't work.. just replacing the liboemcamera.so from a froyo ROM with working camera doesn't seem to help..
[myTouch 3G, Magic Android Development] :
That error has nothing to do with the liboemcamera.so you replaced.

It is erroring on the permission in the update-script, line 67, where it is trying to set the permission for /system/etc/bluez. The problem is I am pretty sure that folder does not exist in your rom (I don't have access to my files while I am at work so I am guessing a bit from memory). If you don't have that folder in your rom (it is not present in 2.2 and was changed to another), then delete the line from your update-script.
[myTouch 3G, Magic Android Development] blunden:
I already have the newest version of that installed. :) Any other ideas?
[myTouch 3G, Magic Android Development] dferreira:
The master branch has been acting lately. We can't build for sapphire neither. I was able to build using froyo branch.
[myTouch 3G, Magic Android Development] mizuchi:
Thanks for the advice.. I did that and everything is OK now.. still no camera though :(

So far, here are the list of things that work on my 32B Magic

1. GPS

2. WiFi

3. Root (I rooted using the kitchen)

4. JIT? Linpack was giving me 3.6 MFLOPS average

5. G-Apps

6. Auto Rotation (guess that means the accelerometer is working)

Not working

1. Camera + Videocam (replaced liboemcamera.so from F-Xtreme but still no go)

2. Boot animation (realized that the media folder didn't have bootanimation.zip.. might try including one to see if it changes anything)

3. 3D? Neocore Benchmark didn't run.. only showed a black screen. Same with Quadrant Standard.. both downloaded from Market

Have to say, everything is a lot snappier compared to CM5, but I'll go back to CM5 until all main issues have been addressed..
[myTouch 3G, Magic Android Development] anwoo:
32A and 32B test kernels are out. An official CM release doesn't seem that far off. I'm guessing of course.
[myTouch 3G, Magic Android Development] rsmiff:
64 bit

Hi. I'm trying to compile android source for moto droid on ubuntu 10.4 64-bit. I get this error during 'make'...

build/tools/apriori/prelinkmap.c(168): library 'libc-ext.so' not in prelink map

make: *** [out/target/product/generic/symbols/system/lib/libc-ext.so] Error 1

anyone have any ideas? I have been searching google for a couple of days now and have found no answers.

**edit** crap...i see this thread is for sapphire but if anyone can help it's much appreciated...off to find the correct thread
[myTouch 3G, Magic Android Development] tnpapadakos:
um, where?
[myTouch 3G, Magic Android Development] baseman2009:
Besides the known issues, I have the problem, that Google Navigation doesn't run. The application keeps constantly freezing (while searching my position or calculating the route).

Any idea? :-)
[myTouch 3G, Magic Android Development] eyegor:
The camera works with pershoots 32A kernel for CM5.
[myTouch 3G, Magic Android Development] dferreira:
What? You say that the camera works by replacing the kernel only? Hum... that means that something is wrong at the kernel level, besides the camera.
[myTouch 3G, Magic Android Development] rhcp011235:
Anyone want to join a team. We are extrme mod. It's based off the CM release.

We have a chan on irc.freenode.net #ExtremeMod
[myTouch 3G, Magic Android Development] rhcp011235:
We have camera working. 3dgallery. Apps2SD in the works. Boot animation. GPS working.
[myTouch 3G, Magic Android Development] :
Please specify for what phone (32B/32A) and radio you have these things working.
[myTouch 3G, Magic Android Development] eyegor:
Yeah, it actually took a picture. :)

Sorry about its content, its just my mouse glowing just before i went to sleep :P
[myTouch 3G, Magic Android Development] rhcp011235:
Come join us on irc.freenode.net #ExtremeMod

we need 32A (G1) Testers.
[myTouch 3G, Magic Android Development] dferreira:
Which of the ROM's you use?
[myTouch 3G, Magic Android Development] eyegor:
Your version 2. It didnt want to compile on my comp so i downloaded the ready one.

Flashed it from fastboot and flashed pershoots 32a kernel for cm5 from recovery.
[myTouch 3G, Magic Android Development] dferreira:
OK, I'll dig around and see what's different between his kernel and the one at source.android.com.

Managed to get master branch compiling again: edit the file device/htc/dream-sapphire/boot/Android.mk and comment the ifeq and ifneq with # and again the last two lines.

Almost there with a perfect AOSP build :)

EDIT:

They just fixed the problem... all it was is parentesisitis acuttis!

http://android.git.kernel.org/?p=de...ff;h=0a68a36b6efc2aac80a6717810530961465e77be
[myTouch 3G, Magic Android Development] Bladyle:
Does it mean camera work now? :)
[myTouch 3G, Magic Android Development] lpasq:
question

first thing... thank you dferreira for posting this thread and the .sh which helped so many get into aosp builds.

second... as a noob learning to compile for my n1 by following this thread, i need help or someone to pointing me in the right direction.

my current build is almost ready for release but my current beta bug is that using the post-initial-boot google log-in will hang the server sync. when i reboot after hang, picasa and calendar are synced but conatcts and email require i have to log into google via market or gmail to get sync...and, exchange won't sync with server at all. Question: any one here deal with this problem?
[myTouch 3G, Magic Android Development] dferreira:
Yes, it means we already have a working camera driver, all it needs now is the kernel that makes use of it :)
[myTouch 3G, Magic Android Development] dferreira:
Exchange should work right from AOSP. My guess is you are using GApps that are not compatible with Froyo. Try getting a Froyo GApps package. I have one, but the graphics are all messed up. Besides the Market, using AOSP gives you already push email, contacts and calendar right from Google!

Add a new exchange account and on the server configuration, set it to m.google.com. That's it!

Good luck!

PS: I'll update the thread as soon as I fix the only remaining issue: camera!
[myTouch 3G, Magic Android Development] lpasq:
i shall and thank you
[myTouch 3G, Magic Android Development] lpasq:
i should have asked if these qualify as FroYo GApps: http://kanged.net/mirror/gapps/
[myTouch 3G, Magic Android Development] JackMagic:
The FR91 pack is working as far as I can remember (flash it over the top, don't add the .apks to /system/app), but have stopped playing about with what I'm running until camera is working :)
[myTouch 3G, Magic Android Development] lpasq:
shall attempt. appreciated!
[myTouch 3G, Magic Android Development] dferreira:
Just added the prelink map fixed for now on the first post. I'm assuming on the prelink map that you have changed hardware/msm7k/libaudio/Android.mk to not prelink that module (around line 28, after default(clear vars)).
[myTouch 3G, Magic Android Development] dferreira:
Just fixed the camera!!!

Unzip it and replace boot.img with this one, and you should be good to go ;) I found what needed to be changed at the kernel to get it working properly. Props to Cyanogen who did the hard work, I just followed his footsteps :)

Damn I love finding out how stuff works!
[myTouch 3G, Magic Android Development] :
Awesome news.

Is the change in the boot.img-kernel or in the ramdisk?

Is it possible to outline / document the change here so we can update the files we're working with?

Thanks
[myTouch 3G, Magic Android Development] dferreira:
Of course I'll share, I was going to update on the first post, but I guess I'll just add a link to this reply :)

The change is in the kernel sources:

http://github.com/CyanogenMod/cm-kernel/commit/68f2abbe70fe03305a3a08275a4f5d8a7578e2e8

http://github.com/CyanogenMod/cm-kernel/commit/8beee9c798e3d60f0a02a0d2e1a545a576f29878

So if you make these changes on the folder msm that gets check'ed out when running my script, you get a working camera again, compiling of course, libcamera2 that exists here:

http://github.com/CyanogenMod/android_hardware_msm7k
[myTouch 3G, Magic Android Development] JackMagic:
Nice going, thank you for sharing :)
[myTouch 3G, Magic Android Development] baltham:
I have stupid question, what should I do to run this rom on my 32A Magic step by step? I know how to use fastboot, but i don't which kernel i have use.
[myTouch 3G, Magic Android Development] :
Thanks dferreira for all of your hard work. We're enjoying the benefits :)
[myTouch 3G, Magic Android Development] tnpapadakos:
love the work you guys are doing, thanx for all your time and effort!

if you want to do more, check this thread i just started:

http://xdaforums.com/showthread.php?t=722729

would really appreciate the help, cant find any other way to get the question out there

irc is just too noisy and disorganized

pm me if you want, or have an answer
[myTouch 3G, Magic Android Development] dferreira:
There is something wrong with your link, doesn't work :)
[myTouch 3G, Magic Android Development] dferreira:
As suggested before, pershoot's kernel for 32A should work.
[myTouch 3G, Magic Android Development] tnpapadakos:
sorry:

http://xdaforums.com/showthread.php?t=722729
[myTouch 3G, Magic Android Development] Bladyle:
Hmm strange .. just make a wipe and then push 3 files from v2 on the first page, but then stuck on the first screen. Another issue it that in fastboot when type adb devices nothing appears.
[myTouch 3G, Magic Android Development] dferreira:
If you're in fastboot, the correct way to detect if your device is being detected is fastboot devices. Adb only works when on the recovery or when the system is running.
[myTouch 3G, Magic Android Development] Bladyle:
The problem was that I'm try to flash it to my 32A without read the first post :)

sorry
[myTouch 3G, Magic Android Development] pepours:
Hi,

I'm running with the version v2.1 of the rom and there is a problem , i didn't compile the all thing just took the zip file and the new boot.img to have a working camera.

With this boot.img, wifi is broken. When I try to activate it, it returns error.

I'm running with htc magic 32b

Sry for my bad english.
[myTouch 3G, Magic Android Development] dferreira:
Oh that's right... we need to compile a matching wlan.ko with the changed kernel. I'll release a new version later tonight, with all the goodies built in. Camera, LWP, all languages, fallback fonts etc.
[myTouch 3G, Magic Android Development] dferreira:
I've looked into your issue, and I'm sorry to tell you that I haven't got a clue neither :( Hopefully, some other developer should be able to help you. Have you tried to join Google Groups Android Platform? There are a lot of Android Framework Engineers from Google there, able to help!
[myTouch 3G, Magic Android Development] tnpapadakos:
thanx for looking at it

i'll check over there
[myTouch 3G, Magic Android Development] pepours:
I want know if the 3g network actually work on this rom ?

It's weird because in parameters -> about the phone -> status, there is the kind of mobile network, the phone acquire 3g but when I launch the web browser,it returns no connection.

Thanks for your help.

Edit: sry my fault, i didn't see that the phone doesn't have APN
[myTouch 3G, Magic Android Development] dferreira:
Sorry guys, I'm currently swamped with work and failed to deliver. I'll do my best to release a new version by the weekend.

We need to add BUILD_WITH_FULL_STAGEFRIGHT := true to your vendor's Buildxxx.mk to be able to record audio+video on the camera.
[myTouch 3G, Magic Android Development] dferreira:
Hi everyone,

I have good news and "bad" news... The good news is I'll be releasing tonight the updated version of AOSP.

The "bad" news is I got a Nexus One as a gift. So I'm selling out my HTC Magic that kept me company for the past year or so on eBay. If anyone's interested: eBay auction

I'll keep an eye for this thread of course, as I'll probably update the script for adding Nexus One to it.
[myTouch 3G, Magic Android Development] eyegor:
Awesome gift!

Good luck with your further conquests! :)
[myTouch 3G, Magic Android Development] slimatic:
what do the branches like 'android-msm-2.6.32' mean?

What does the android-msm-2.6.32 branch actually refer to in the git tree?

I have seen references to other branches like android-msm-2.6.27 and android-msm-2.6.29.

I am trying to understand the branches better. I noticed you used android-msm-2.6.32. Does this branch reference 'Froyo'? If so, how do I switch to other branches like cupcake, donut or eclair?

I was able to do see the branches by typing the following:

$ cd ~/magicDroid/msm
$ git branch -r
[myTouch 3G, Magic Android Development] InTr4nceWeTrust:
congrats on the new phone.

how's the stability and batt life of the aosp btw? i know with cyanogenmod the batt life for some people is terrible and stuff like adw launcher crash.
[myTouch 3G, Magic Android Development] baseman2009:
In my case, it's two times longer than before :)! Really great.

dferreira, did you release your "last" updated version?
[myTouch 3G, Magic Android Development] dferreira:
I usually navigate the tags and heads on source.android.com > Browse source on the left. The android-msm-2.6.32 is the newest stable kernel for MSM, it should be present together with Froyo, as it has been optimized a lot since last stable kernel (2.6.27).