General :: How To Fix Errors When Building ROM On Ubuntu
Mar 29, 2012
I have been successful a few times but lately if I fix all the make: errors I get a Java heap space error or a gc Java out of memory error. I have a pastebin and will post it when I get back home from work in the morning! I've gotten this errors running Ubuntu 10.04 building cm9, Codename and cm7. I thought at first it was virtual box. So I partitioned my hard drive and dual booted. What is wrong with my environment and Java?
I ran the command to sync with android-4.1.1_r1. Its literally been syncing for hours and still not done. I'm currently on /platform/pdk. As for Ubuntu, I've never used it before but I'm running the guide posted on XDA for building with Ubuntu and I've done everything to the point of syncing...which I'm waiting to advance after this is done.
When you have to pull the proprietary files it says to use the device name. In my case it would be Samsung_d2tmo (for T-Mobile sgs3) correct?
I downloaded the android source code, by following the steps here [URL] ....
then i started building the source code, by following this [URL] ....
$ make -j16
I get the following error (and a lot more similar to them after these lines)
Code: device/htc/dream-sapphire/libsensors/sensors.c:53:37: error: field 'device' has incomplete type device/htc/dream-sapphire/libsensors/sensors.c:59:34: error: field 'device' has incomplete type device/htc/dream-sapphire/libsensors/sensors.c:61:5: error: unknown type name 'sensors_data_t' [Code] .....
Earlier these lines, the make process does not complains of any missing files as such. Why these errors are coming up since i am just trying to begin and learn this stuff.
What is causing this, and more importantly what should i do to resolve them ?
I am building on Linux virtual Machine and have taken all care that the Environment is right, as given here [URL] ....
i am building on Ubuntu 11.10 64 Bit, the commands were, in order,
Code: source build/envsetup.sh lunch full-eng make -j16
Well the script should be working, it is 'ettin.sh' now. To get VNC to work on separate device just change 'eth0' to 'wlan0' or whatever other interface you know how to configure, like usb maybe, in the 'init.sh' script that resides in ~/ on the images you can download from [URL]....
Also on the different roms your storage might be different so just change that to what suites your environment,
After my first launch and exiting the VNC on my laptop (Ubuntu) My phones home button and a few other functions stopped working, a reboot remounts the root and system partitions and it goes back to normal essentially, I haven't noticed any adverse affects after the reboot.
I want to connect to backtrack over usb from Ubuntu on my laptop instead of from my phone. Is there a good way of doing this?
The thing is, I didn't chroot, I mounted the image, copied the contents of '/etc/*' and '/sbin/*' to the '*/etc' '*/sbin' dirs of the mounted image. and then mounted it's (the image's) contents to Androids rootfs '/' then I set up a little script to set up the environment and execute '/bin/bash -i init.sh' and again reset PATH to include /system/*.
Then in the init.sh script I want to set up a way to 'vnc' through' usb to backt4acks desktop. How would I do this?
I have ubuntu 11.10 running as a virtual machine on my macbookpro. When I connect my bionic, the prompt asks if I want to connect to mac or linux. I choose linux, but I cannot see the bionic on my ubuntu. When I go into my phone to manage the usb connection, I have tried storage and pc sync.
I am attempting to install Ubuntu on my rooted Samsung Infuse 4G. I have consulted several how-to articles here and elsewhere, but after several hours of work I am still stuck on the final lines of code in the terminal emulator app that a YouTube tutorial suggested. Below is the code that I have entered thus far, and the error code at the bottom of the list:
----------------- Ubuntu Chroot Bootloader v0.1 Ubuntu Bootloader is now installed! This process does NOT damage Android OS!
I have tried two different installation methods. The first one focused on accessing the advanced shell through Windows Command Prompt. This didn't work because the prompt froze after I typed in "advanced shell" (several attempts brought same results) .
I then tried the "easy" version that involved the terminal emulator app in the place of the command prompt. Assumedly, if I can resolve this last issue without causing any more, I should be able to access Ubuntu through Android VNC. It may be important to note that the time before last when I typed in the above code, I got a different error code. That error read: losetup: /dev/loop1: no such device or address. I don't know what made it change.
Since yesterday I have a big problem. Yesterday I think I deleted my Sensation XL, because now it's dead. The bootloader and the Charge-LED dont work anymore. No sign of life... Now I saw the tutorial how to unbrick a HTC. I downloaded Ubuntu, but if I use the brickdetect of the Sensation it just says: "Device can't be detected". Now my questions: Where can I get the Unbrick-package for the Sensation XL? Can I unbrick my Sensation XL with Ubuntu?
Are there any guides that show the user how to create a rom from scratch? I've seen multiple guides on creating a rom but they do so using the kitchen. I would prefer something that shows how to make a rom without a crutch.
I'm trying to compile cm7 from source under ubuntu 12.04.
I compiled successfully on ubuntu 10.04 before, but my notebook got broken So on my new notebook I installed 12.04 (64bit).
Repo remained the same.I tried to setup build enviroment as described here.Had to additionally install packages schedtool ,zlib1g-dev and pngcrush.Now in the end of the compile process I get the following error:
frameworks/base/core/java/com/google/android/mms/pdu/PduPersister.java:23: cannot find symbol symbol : class PduCache location: package com.google.android.mms.util import com.google.android.mms.util.PduCache;
I have been trying all morning and half g today trying to get the bloody thing to instill. I have followed the instructions in the txt file inside but when I go into terminal and CD into the folder and type Android like the instructions day it cannot find three file or if I try it as ./tools/android permission denied and I sudoed in before hands so I have root access.
I have downloaded the source code for my device - Lenovo S6000-H from the lenovo website but after reading many guides cant figure out how to compile it as all the rest use git to get the source. I also dont think I need to change any enviromental variables as its the source for my model.
Using ubuntu 12.04.3 with JDK 6u35 and have the latest Android JDK/NDK I have downloaded and install all needed programs and set up all my paths in ~/.bashrc
There isnt a single make file I can use to compile the whole system or does it need to be done in individual parts? Couldnt find a lunchrc file either so unsure on how to compile it to get a flashable rom..
I have a chinaphone and I'm trying to install a custom recovery so I can make/restore backups if anything messes up the phone, but it hasn't got an official clockwork mod recovery.
I've read that you can build a custom recovery using the ClockworkMod Builder website with the original recovery img extracted from the device,I tried using this method to extract the recovery: http:[url]....
Then I used an App called Online Nandroid Backup which has successfully created a recovery img for me, I ran it through the ClockworkMod Builder website but it says no changes were made.
recently I've been learning more and more about building AOSP builds since I'm not a huge fan of the bloated touchwiz rom's for the Stratosphere. I'm looking more for AOSP roms, like I had when I had the Evo.
1. I have all I need to build Android from source, I have the Android source, and I have sources from Samsung for the Stratosphere. This includes the kernel sources, and platform sources, how do I merge these two together?
2. Do I have to build a kernel when I build the rom, or do I build the kernel seperately?
<3>[ 154.264768] bcm4329: version magic '184.108.40.206-cyanogenmod-g1ad182f preempt mod_unload ARMv7 ' should be '220.127.116.11-cyanogenmod-g704f542 preempt mod_unload ARMv7 '
I've successfully built the samsung-kernel-crespo kernel from the cyanogenmod git. I unpacked a working ramdisk from a nightly and repacked it with my kernel, when i try to load the module i get the above error, The "extraversion" info that in the "about phone" tab in sittings is 18.104.22.168-cyanogenmod-g704f542, as well as the version of the modules. but for some reason the kernel is looking for that 'g1ad182f ' instead.
I loaded the module via fastboot boot boot.img and i didnt full on flash it to the phone. I backed up the working kernel module and put the new one in /system/lib/modules, rebooted the kernel and the wifi is still giving me an error.
If i try to manually insmod the module and it hangs, if i use modprobe then lsmod it says its "loading" but never loads.
the phone im working on is a nexus s if that matters.
I have an Alcatel one touch c7. MTK 6582 chipset, 5 inch , 480 x 854 resolution, stock 4.4.2. I tried every tutorial for bilding an cmw recovery , even the online builder and the mtkdroidtools method, bun none worked for me. Here is the original boot.img and recovery.img. [URL]...
I just got a Chinese phone, karbonn's titanium s5 (also known as cherry mobile skyfire 2.0) and want to build cyanogenmod 10.1/10.2 to this device. The problem is, there are no kernel sources released by company. Is it possible to make appropriate ramdisk changes without sources directly in boot.img?