yashsingh1/xdaforums huggingface dataset:
[myTouch 3G, Magic Android Development] jroid:
I have compiled 2.3.1 for the nexus S with

make -j4 otapackage

however,when I flash it just bootloops.. if I fastboot flash all the images it boots just fine though.

Any ideas?.. I'm also trying to find the url to sync gingerbread gapps but I can't find it.
[myTouch 3G, Magic Android Development] dferreira:
Just published the how-to for Nexus One: http://xdaforums.com/showthread.php?t=899674
[myTouch 3G, Magic Android Development] cougar694u:
dferreira,

Any idea on how to pull other device specific kernel/drivers and compile? For a tablet, for instance?

Is there a list of devices somewhere?

PS, would something like the extract-files.sh from the Nexus One build work?
[myTouch 3G, Magic Android Development] androcton:
I know it is the wrong thread to be asking this question, but I couldn't find the answer anywhere...How can I find instrument specific device-drivers? In my case, Samsung Galaxy S 4G (SGH-T959V)? Thanks in advance!
[myTouch 3G, Magic Android Development] ldrifta:
sorry if this question has been answered... but if follow this guide to compile, is the camera fix already in the source or do i need to still do the fix after puling the source?
[myTouch 3G, Magic Android Development] tvall:
If the fix was in aosp, we wouldn't need to fix it
[myTouch 3G, Magic Android Development] dferreira:
We might be able to get those missing libs from other ROM's, I'm looking for this right now.
[myTouch 3G, Magic Android Development] dferreira:
Got most of them from Cyanogen's ROM. Others I got from the SDK image. I'm compiling ATM, to see if we have a working Froyo development ROM out today.
[myTouch 3G, Magic Android Development] compuguy1088:
Can't wait for a stock/clean build of Android 2.2....
[myTouch 3G, Magic Android Development] mizuchi:
I found the other files apart from the liboemcamera.so.. I got libGLES_qcom.so and libstagefrighthw.so from Cyanogenmod5.0.8DS ROM and the liblvmxipc.so from ChiefzReloaded's Froyo ROM.. I'm still compiling at the moment, without these files.. if I get the same errors that you guys did, I'll add these files on.. but can you tell me where I might find the liboemcamera.so?
[myTouch 3G, Magic Android Development] magicdroid:
found liboemcamera.so on a hero 2.1 rom.. some devs in the G1 forum also have a froyo image that contains these files (but their liboemcamera.so is different in size).
[myTouch 3G, Magic Android Development] magicdroid:
I was building from the Froyo branch too.. managed to build but stuck in boot-loop... something about "android_servers.so lib not found".. but I've checked and it's there in the lib folder. Any idea? Something to do with /system/lib folder not accessible during boot?
[myTouch 3G, Magic Android Development] mizuchi:
Is anyone else getting this?

./android.sh: line 45: cd: /home/dzul1983/magicDroid/vendor/htc/sapphire-open/: No such file or directory
./android.sh: line 46: ./unzip-files.sh: No such file or directory

Probably didnt download the vendor files..

EDIT: found the sapphire files in magicDroid/device/htc/sapphire.. it has the unzip-files.sh in there so I assume it's the correct one?
[myTouch 3G, Magic Android Development] magicdroid:
two ways to get the vendor files:

1) from device with adb: make usb connection to phone and run "extract-files.sh" in the src/device/htc/sapphire folder

2) download the signed-google-ion-ota-14721.zip from developer.htc.com, rename it to sapphire_update.zip and copy it to src/ folder, then run "unzip-files.sh" from the folder mentioned above.

g'luck!
[myTouch 3G, Magic Android Development] Szusz:
After a few unsucessfull builds I've done some googling and found the following

http://www.lingnu.com/he/howto/72-android-aosp-htc-32a.html

It seems that the AOSP sources are somehow 'dedicated' to the 32B Magics, which is why I was unable to boot my phone and dferreira hadn't problems.

I've already included the kernel and wlan files in my sources, but having some issues with the compilation process, so will post the results in some time.
[myTouch 3G, Magic Android Development] mizuchi:
Thanks.. that's what I did.. I just renamed the zip file and it all worked out.. selected full_sapphire from the lunch list.. compiling now.. will check back in a few hours..

EDIT: strange.. the compile completed (I think) with many warnings but no error.. but I don't see any system.img.. I do see a userdata.img though.. anyone else have the same problem?
[myTouch 3G, Magic Android Development] maxisma:
"Unable to dlopen(/system/lib/libandroid_servers.so): Cannot load library: link_image[1995]: failed to link libandroid_servers.so"

I get that message on my HTC Hero too.
[myTouch 3G, Magic Android Development] Szusz:
Arter compile completes scroll up the output to check for errors. I have the same problem and got an error 'Argument list too long' but there have been quite a lot of output after it.
[myTouch 3G, Magic Android Development] :
Same here, compiled for sapphire. Wonder what's up with that..
[myTouch 3G, Magic Android Development] enatefox:
Also same "failed to link libandroid_servers.so" issue. jubeh's compiled it and it boots. I don't know what he did differently.
[myTouch 3G, Magic Android Development] cn.fyodor:
+1. Got this fatal error after compiling froyo source tree. Does anybody know how to fix it?
[myTouch 3G, Magic Android Development] aremcee:
This should happen to anyone with an msm7k device. For some reason, libaudio is falling out of its prelinked space. A quick and dirty fix is to build it without prelinking:

edit hardware/msm7k/libaudio/Android.mk

at around line 29, add a new line "LOCAL_PRELINK_MODULE := false". Place it right after the CLEAR_VARS. Rebuild libaudio with "mmm -B hardware/msm7k/libaudio", push the new libaudio.so to /system/lib/, and you should be up and running.
[myTouch 3G, Magic Android Development] dferreira:
Nice, thanks! I wonder if this little trick will get us a working camera too? Are there any side effects of not using a prelinked module?
[myTouch 3G, Magic Android Development] JackMagic:
Interesting stuff df, I've been following this thread since you posted :) I don't have a linux build or a VM set up at the moment otherwise I'd probably be tinkering myself.

Are you running the compiled source on your phone? jubeh has complied it for G1 but I don't think it has the necessary Sapphire build.prop or w/e (not tried running it).

Am looking forward to running Froyo though!
[myTouch 3G, Magic Android Development] Lox_Dev:
I modified the file:

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_PRELINK_MODULE := false

LOCAL_MODULE := libaudio

And tried several thing

- building the lib alone with mmm and then push out/target/product/hero/system/lib/libaudio.so

- I have tried 'make clean' and 'make' again

I still get the error. Weird.
[myTouch 3G, Magic Android Development] aremcee:
Add debug to linker, then. Edit bionic/linker/Android.mk , change DEBUG to 1 at line 37, "mmm -B bionic/linker", and push the new linker to /system/bin. It won't solve anything, but it should tell you which is the library that's actually failing.

If it's libaudio, you should see something like this:

E/linker ( 58): bionic/linker/linker.c:810| ERROR: OOPS: 58 prelinked library 'libaudio.so' mapped at 0x40009000, not at 0xa9700000
[myTouch 3G, Magic Android Development] darchstar:
the issue is that libhardware_legacy.so fails at compiling using a different vendor than the provided ones. i have no idea why though. if u build that lib for sapphire or dream, than it should be fine. I'm currently looking into that issue, alongside a plethora of other issues such as gps and camera.

provided is a good md5 checksum of what the libhardware_legacy.so should be: 6123710d10e9c333697de8f9baf01c33
[myTouch 3G, Magic Android Development] aremcee:
Depends on what's wrong with the camera. Mine is working, but it's on a Geeksphone ONE, and it's a custom libcamera.

Larger footprint, but it should be negligible.

Since you're building FroYo for msm7k chips, a heads up: don't bother building webkit with V8, there's some ARMv7 asm code in there that's causing SIGILL crashes on the browser. JSC with JIT is working great, though. (better than Eclair with V8 on the same device)
[myTouch 3G, Magic Android Development] eddieringle:
Prelinking just decreases the time it takes to load the module, so no, there aren't any major side effects.

EDIT: D'oh, need to refresh the browser after leaving it for awhile.
[myTouch 3G, Magic Android Development] dferreira:
Just updated the script to fit Froyo and compile both the latest kernel + wifi module. It's good to see what we have here on this thread :)
[myTouch 3G, Magic Android Development] dferreira:
To enable JIT on Froyo DalvikVM:

Edit dalvik/vm/Android.mk

Add this at the beginning:

WITH_JIT := true
[myTouch 3G, Magic Android Development] aremcee:
Actually... that won't work :)

If you look 35 lines down, you'll see that that line will be cancelled. Comment out the armv5te check :) (and the proper place to do the "WITH_JIT" config is the BoardConfig.mk file).

Another thing you want to add to BoardConfig is "ENABLE_JSC_JIT:=true". That'll give you JIT in the browser JSC engine.
[myTouch 3G, Magic Android Development] dferreira:
Nice! Thanks! Added instructions to first post.
[myTouch 3G, Magic Android Development] Lox_Dev:
Anyone knows the option to prevent libcamera from building ?
[myTouch 3G, Magic Android Development] lpasq:
dferreira...thanks man!

i'm a total noob so if you ignore me, i'd understand. i have a question/request for anyone.

i run a mac with a ubuntu vm and i've followed the tutorial in post one through and had no problem getting an update.zip created. i've also installed git-core and confirmed its running.

now i'd like to download the source files and compile, aosp 2.2. what must change in the post 1 code pasted here:

#!/bin/bash
#Created by dferreira (lizned.arierref@gmail.com)
#Checkout and compile master repositories out of source.android.com

SOURCE_FOLDER=~/magicDroid
BRANCH="master";
KERNEL="android-msm-2.6.32";

#Check for Repo
if [ ! -f ~/bin/repo ]
then
cd ~
mkdir bin
curl http://android.git.kernel.org/repo >~/bin/repo
chmod a+x ~/bin/repo
PATH="$HOME/bin:$PATH"
fi

#Create project folder
if [ ! -d $SOURCE_FOLDER ]
then
mkdir $SOURCE_FOLDER
fi

cd $SOURCE_FOLDER

#clean old compiled files, there can be new stuff!
make installclean
make clean

#Get updated source files from AOSP
repo init -u git://android.git.kernel.org/platform/manifest.git -b $BRANCH
git clone git://android.git.kernel.org/kernel/msm.git -b $KERNEL #clone latest kernel project
cd $SOURCE_FOLDER/msm
git pull #check if anything new
cd $SOURCE_FOLDER
repo sync #update repo's

#Get HTC drivers if they don't exist already on folder
cd ~/magicDroid
if [ ! -f sapphire_update.zip ]
then
wget --referer=http://developer.htc.com/google-io-device.html http://member.america.htc.com/download/RomCode/ADP/signed-google_ion-ota-14721.zip?
mv signed-google_ion-ota-14721.zip sapphire_update.zip
fi

#unzip the proprietary files from HTC for Sapphire
if [ ! -d vendor/htc/sapphire/proprietary ]
then
cd $SOURCE_FOLDER/device/htc/sapphire/
./unzip-files.sh
fi

#Compile latest kernel
cd $SOURCE_FOLDER/msm
make ARCH=arm msm_defconfig
make ARCH=arm CROSS_COMPILE=$SOURCE_FOLDER/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- zImage -j4

#copy kernel to source if success!
if [ -f $SOURCE_FOLDER/msm/arch/arm/boot/zImage ]
then
cp $SOURCE_FOLDER/msm/arch/arm/boot/zImage $SOURCE_FOLDER/device/htc/dream-sapphire/kernel
fi

#Compile wifi module to match the kernel
cd $SOURCE_FOLDER/system/wlan/ti/sta_dk_4_0_4_32
make KERNEL_DIR=$SOURCE_FOLDER/msm/ ARCH=arm CROSS_COMPILE=$SOURCE_FOLDER/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- -j4

#copy updated wlan.ko that matches the kernel
if [ -f $SOURCE_FOLDER/system/wlan/ti/sta_dk_4_0_4_32/wlan.ko ]
then
cp $SOURCE_FOLDER/system/wlan/ti/sta_dk_4_0_4_32/wlan.ko $SOURCE_FOLDER/device/htc/dream-sapphire/wlan.ko
fi

#setup compiling environment and build images
cd $SOURCE_FOLDER
. build/envsetup.sh

#cd $SOURCE_FOLDER
lunch
make -j4

#get to compiled folder
cd $SOURCE_FOLDER/out/target/product/sapphire/
echo 'Your files ready for flashing are here:'
ls *.img
[myTouch 3G, Magic Android Development] dferreira:
You need to paste that code into an empty file on Ubuntu, save it and then make it executable by typing in the terminal:

chmod 755 filename

After that, you need to run it like this:

./filename

That's it, it should download and compile everything for you :)
[myTouch 3G, Magic Android Development] dferreira:
On the BoardConfig.mk inside device/htc/sapphire, you need to change the USE_CAMERA_STUB to true.
[myTouch 3G, Magic Android Development] Jus10o:
thanks.. that helped me as well
[myTouch 3G, Magic Android Development] lpasq:
works good. now how to compile for passion?
[myTouch 3G, Magic Android Development] dferreira:
I don't have a passion, and the steps about the wifi modules are different for passion. If anyone knows how to compile it for passion, please advise.

I've just compiled and packaged the latest AOSP 2.2 running with JIT for 32B. Only the camera doesn't work, the rest is all good. Latest kernel + working wifi and calls. Go to first post to get it!

Enjoy!
[myTouch 3G, Magic Android Development] dferreira:
I'm really impressed with AOSP. Now we have fully supported Exchange, where it syncs with Calendar, Contacts and Email :D Meaning that, even if we don't add Google's Apps, you'll have access to your own personal information if we use Exchange with Google servers! Just add a new account, set your username and password as your Google credentials, and then when he asks for the server, change it to m.google.com and that's it, you'll have your Push working with everything.

Only thing not working is the Gallery3D, due to missing graphics (easy fix) and the camera (don't know how to fix it). No Google Market on this, I'll leave that to you to add, as I don't want problems with Google.

Pretty sweet.
[myTouch 3G, Magic Android Development] cn.fyodor:
Duplicated thread.
[myTouch 3G, Magic Android Development] tig33r:
Is AOSP 2.2 for 32A?
[myTouch 3G, Magic Android Development] shadow_empire1:
just flashed my 32A with your description on the first page:

C:\Downloads\dferreira_AOSP_Froyo_2.2>fastboot flash system system.img

sending 'system' (61551 KB)... OKAY [ 12.182s]

writing 'system'... OKAY [ 21.989s]

finished. total time: 34.171s

C:\Downloads\dferreira_AOSP_Froyo_2.2>fastboot flash boot boot.img

sending 'boot' (2302 KB)... OKAY [ 1.057s]

writing 'boot'... OKAY [ 1.400s]

finished. total time: 2.458s

C:\Downloads\dferreira_AOSP_Froyo_2.2>fastboot flash userdata userdata.img

sending 'userdata' (2 KB)... OKAY [ 0.407s]

writing 'userdata'... OKAY [ 2.096s]

finished. total time: 2.503s

Now my phone just shows the "HTC Magic" boot logo, and nothing happens.

>adb logcat

- waiting for device -
[myTouch 3G, Magic Android Development] pix27:
You can flash bcrook's 32A port of CM 5.0.8 kernel over this and it works like a charm...

http://xdaforums.com/showthread.php?t=592377
[myTouch 3G, Magic Android Development] DopyG:
SO you can compile this and then flash 5.0.8 32a port over?

Is it fast? :o

If it works on 32a combines with CM's kernel I'm going to try this!
[myTouch 3G, Magic Android Development] caoboth:
dferreira

Works a treat on my 32B (many thanks)

Currently compiling mine up at moment (however i cheated and kindly used your img interim). Now all we need to do is figure out how to add google apps and get camera driver sorted.

Andy
[myTouch 3G, Magic Android Development] shadow_empire1:
thx, looks good :)

@dferreira: maybe add this info to your first post...
[myTouch 3G, Magic Android Development] lovesickformina:
Can someone post *.zip file with this ROM? I am too lazy to flash via fastboot the *.img files and kind of scared. :P
[myTouch 3G, Magic Android Development] ElChibo:
me also.. i am also getting a failed if i try to flash from fastboot..
[myTouch 3G, Magic Android Development] Szusz:
Actually that didn't work for me. Flashed the img files from dferreira and then applied bcrook's kernel. Stuck in a bootloop.

EDIT: Forgot that bcrook's kernel is for the old radio. I've got new one.
[myTouch 3G, Magic Android Development] Jus10o:
try to add this line in /device/htc/whateveryourphoneis/froyo_whateveryourphoneis.mk

# skip libaudio

SKIP_PRELINK_LIBAUDIO := true

Then compile it again
[myTouch 3G, Magic Android Development] shadow_empire1:
looks like froyo builds are starting to come :)
[myTouch 3G, Magic Android Development] evilfry:
yay!!! marks the beginning of upcoming froyo roms, happy as hell :)
[myTouch 3G, Magic Android Development] DopyG:
Somebody should make a .zip, add Google Apps and activate JIT by default, then you got a very cool ROM that most people would like : D

The camera can always be fixed sooner or later XD
[myTouch 3G, Magic Android Development] ElChibo:
having that rom would be fantastic.. and id be soooooooo happy!
[myTouch 3G, Magic Android Development] unfnknblvbl:
it seemed to work nicely for me on my Magic 32A, but then I flashed the GAPPS package from CM5 and got stuck in a loop :(

Is there a GAPPS package for Froyo?
[myTouch 3G, Magic Android Development] anwoo:
Is it alot faster than cyan's 5.0.8?

not benchmarks. As in actual usage?
[myTouch 3G, Magic Android Development] amitabhishek:
This thread gotta be a sticky!:)
[myTouch 3G, Magic Android Development] JackMagic:
I can package/sign it as as update.zip with no trouble, I just don't really know what I'm doing when it comes to the update-script so am having no luck actually installing it via recovery thus far! :(
[myTouch 3G, Magic Android Development] ElChibo:
i wonder if this would help? http://androidforums.com/developer-101/8665-how-signing-roms.html
[myTouch 3G, Magic Android Development] JackMagic:
No signing the .zip isn't the issue, I just don't really know how to create a working update script for the recovery to install it from?
[myTouch 3G, Magic Android Development] ElChibo:
this thread has some things in it.. i dunno if it would help but there is a little help http://xdaforums.com/showthread.php?t=477646&page=2
[myTouch 3G, Magic Android Development] magicdroid:
Maybe add to the first post, that if you build the kernel from source (as you do with your script), it will only work on 32B devices (the google ION is a 32B Sapphire).

To make it work on a 32A, you need flash a 32A kernel.

But I guess some of you already figured that out.
[myTouch 3G, Magic Android Development] amitabhishek:
http://xdaforums.com/showthread.php?p=5900242

^^This is a good tut. to create update-script. The flip side is the dude lost interest midway and abandoned it. However it still packs lots of info.

One more thing, I am just flashing the ready-made .img(s) through a XP machine (since I am at work) and I am getting signature errors. I am surprised that no one else had this problem. Does the .img(s) need to be signed too?
[myTouch 3G, Magic Android Development] tbrummell:
Once someone has 2.2 running on a 32A with Brian's 5.0.8 kernel, could they install LinPack and run a test? Curious if 2.2 on the Magic has nearly the same performance increase as it does on Nexus One (ie: from 6.x MFlops to 30+Mflops...).
[myTouch 3G, Magic Android Development] Szusz:
I've managed to build a zip package for the Magic 32A NEW RADIO. Based on imgs published by dferreira. It installs without problems and works nice! :)

Features:

- kernel taken from Super-Hero V2 [Eris Dump] ROM.

- root

- busybox

- zipaligned apks (don't know if it gives any result)

- wireless tether

Cooked using Android Basic Kitchen 0.55

Tried to install Gapps and HTC_IME in a few different ways, but without any luck. Maybe someone else will make it.

Anyone willing to give it a try?

Link to Dropbox
[myTouch 3G, Magic Android Development] ra0031259:
32A

So i have a 32A, this works in any radio but, SPL it work for all SPL too?

I just have to flash this from my recovery?

Sorry but still learning... xD
[myTouch 3G, Magic Android Development] pellen:
I'm willing! Bring it on! :cool:
[myTouch 3G, Magic Android Development] Szusz:
Here it is :)
[myTouch 3G, Magic Android Development] pellen:
Awesome, will report back asap :)

EDIT: Works fine...will try to install some apps and play around :p
[myTouch 3G, Magic Android Development] ronni.rasmussen:
Sweet! Flashing now, will report as well.

Edit: And it's running :)

1) It won't bring up the keyboard. (solution just long press and select input)

2) Can gladly report that wifi is working "thumbsup*

3) Wireless tether works as well

4) Gallery works but have the rotating problems known from most other roms

5) Exchange works with both email and contacts

6) Most important, calls work :)

7) problems with geo locations, only testet on webpages

8) external audio works
[myTouch 3G, Magic Android Development] Daneshm90:
Hmm if its simple things like pushing/symlinking/removing files then perhaps ud be interested in this script im writing on

Link

I've barely worked on it though, still gotta add stuff like boot.img flashing and wiping partitions blah blah...
[myTouch 3G, Magic Android Development] Szusz:
It will, just long touch the input field and choose Input method.

Good to hear!
[myTouch 3G, Magic Android Development] simeonoff:
I am trying this out as well! Thanks!
[myTouch 3G, Magic Android Development] :
Did you manage to get external audio working?

How about GPS?
[myTouch 3G, Magic Android Development] k2r:
How can I fix gallery 3d? Can I help in something?

PS: This afternoon Portugal vs Spain, I'm from Spain :)
[myTouch 3G, Magic Android Development] Szusz:
Not sure what you mean by external audio. You mean speakerphone? It works.

No Market here, no ADB, so wasn't able to install any file manager and install Sygic Mobile Maps and test it.
[myTouch 3G, Magic Android Development] k2r:
Audio works perfect. GPS too.

If you want market can get market from jubeh's rom.
[myTouch 3G, Magic Android Development] simeonoff:
Hmm, strange.... I was able to adb install Astro! Anyone can provide a Market application for this rom? Any solution for gallery 3D and camera? Those are the only things that need a fix as of now!
[myTouch 3G, Magic Android Development] Szusz:
Direct link would be much appreciated ;)
[myTouch 3G, Magic Android Development] Szusz:
I'm on my dev Ubuntu OS which is bit messed up. Will try that under Win XP.
[myTouch 3G, Magic Android Development] ronni.rasmussen:
Market would be awesome!

Actually required for daily use, but nice work man!
[myTouch 3G, Magic Android Development] k2r:
files.androidspin.com/downloads.php?dir=jubeh/ROM/2.2/AOSP/&file=full_dream-ota-eng.jubeh.zip

Copy /system/app/MarketUpdate.apk in the same directory of your rom
[myTouch 3G, Magic Android Development] ronni.rasmussen:
Arg, i can't get adb to work so no pushing file for me. Probably have to reinstall driver.
[myTouch 3G, Magic Android Development] simeonoff:
OK guys, adb stopped working for me as well, after enabling the USB Mass storage adb stopped working... I hate to be a guinea pig :P
[myTouch 3G, Magic Android Development] :
Wow, sounds very promising. Nice work :D

Are apps like the weather widget able to identify your location?

How about Youtube?

What are Linpack? ~2.0?

I'm asking these questions because I have been playing with some Froyo ports to 32A 6.35 radio I did the past week and I was not able to get my network location to work, my audio (I could speak into the mic and hear people who called me, but the ringer and other noises would not work), GPS, camera, YouTube.

It would be AWESOME if someone was into putting together a complete Froyo (or near complete). Sanpei's OC 576 MHz kernel would also be worth trying - I can't remember if that's the one ahmgsk used in his Hero rom that Szusz used to pull the kernel for this.
[myTouch 3G, Magic Android Development] :
lefeudedieu, who does great work, also has a Froyo working for 32B. You may be able to pull some things from his build that might help. He's also got a QWERTY version (I assume that is for the hard keyboard but I'm not sure because I have a Magic and have never needed to try it).

http://forum.frandroid.com/forum/viewtopic.php?id=12153