[Solved] Compiling Android on VirtualBox - Samsung Galaxy Mega

Currently im trying to compile omnirom on virtualbox...
my harddisk is having constant 100% activity
but the cpu process utilization is only 5% average
stuck at this stage for almost 2hour
Code:
----- Made recovery image: /android/omni/out/target/product/meliusltexx/recovery.img --------
Construct recovery from boot
mkdir -p /android/omni/out/target/product/meliusltexx/obj/PACKAGING/recovery_patch_intermediates/
PATH=/android/omni/out/host/linux-x86/bin:$PATH /android/omni/out/host/linux-x86/bin/imgdiff /android/omni/out/target/product/meliusltexx/boot.img /android/omni/out/target/product/meliusltexx/recovery.img /android/omni/out/target/product/meliusltexx/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
chunk 0: type 0 start 0 len 4460554
chunk 1: type 2 start 4460554 len 1010944
chunk 2: type 0 start 4977152 len 1536
Construct patches for 3 chunks...
patch 0 is 201 bytes (of 4460554)
patch 1 is 2193329 bytes (of 516598)
patch 2 is 155 bytes (of 1536)
chunk 0: normal ( 0, 4460554) 201
chunk 1: deflate ( 4460554, 2990776) 2193329 (null)
chunk 2: normal ( 7451330, 1342) 155
this is normal?

dynomist said:
Currently im trying to compile omnirom on virtualbox...
my harddisk is having constant 100% activity
but the cpu process utilization is only 5% average
stuck at this stage for almost 2hour
Code:
----- Made recovery image: /android/omni/out/target/product/meliusltexx/recovery.img --------
Construct recovery from boot
mkdir -p /android/omni/out/target/product/meliusltexx/obj/PACKAGING/recovery_patch_intermediates/
PATH=/android/omni/out/host/linux-x86/bin:$PATH /android/omni/out/host/linux-x86/bin/imgdiff /android/omni/out/target/product/meliusltexx/boot.img /android/omni/out/target/product/meliusltexx/recovery.img /android/omni/out/target/product/meliusltexx/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
chunk 0: type 0 start 0 len 4460554
chunk 1: type 2 start 4460554 len 1010944
chunk 2: type 0 start 4977152 len 1536
Construct patches for 3 chunks...
patch 0 is 201 bytes (of 4460554)
patch 1 is 2193329 bytes (of 516598)
patch 2 is 155 bytes (of 1536)
chunk 0: normal ( 0, 4460554) 201
chunk 1: deflate ( 4460554, 2990776) 2193329 (null)
chunk 2: normal ( 7451330, 1342) 155
this is normal?
Click to expand...
Click to collapse
Your virtual disk might have run out of space. What's its size?

I hv 2 virtual disks. 50GB and 100GB setup as LVM and extend it.
Initially I hv no idea omnirom required 25G as cache, that y I add another 100GB to the disk.
The single process took too long time, currently I hv save the state of the virtual machine. Hopefully I able to id the problem before I restart the machine.
Sent from my GT-I9205 using Tapatalk

dynomist said:
I hv 2 virtual disks. 50GB and 100GB setup as LVM and extend it.
Initially I hv no idea omnirom required 25G as cache, that y I add another 100GB to the disk.
The single process took too long time, currently I hv save the state of the virtual machine. Hopefully I able to id the problem before I restart the machine.
Sent from my GT-I9205 using Tapatalk
Click to expand...
Click to collapse
ccache is required only to make subsequent build faster. I have no experience of compiling omni, but CM/AOKP/PA take around 35 GB disk space for a single build.

Do u hv any idea what is the chunk and patch r trying todo?
I thought to build the recovery.img itself is just a small file/task.
Yet it cause my hdd activity 100% all the time.
Sent from my GT-I9205 using Tapatalk

[Solved]
solved the problem,
it seem the lvm think i hv 2 physical hdd disk... and increase the i/o operation
i remove the secondary virtual disk and extend the first one
now my virtualbox is fast~ hehe
i should do this on day one
Thank you for the tips on the virtual disk. :highfive:
ps: i hv successfully compile omnirom :victory: tomorrow going to flash it.
hopefully it will boot~

dynomist said:
solved the problem,
it seem the lvm think i hv 2 physical hdd disk... and increase the i/o operation
i remove the secondary virtual disk and extend the first one
now my virtualbox is fast~ hehe
i should do this on day one
Thank you for the tips on the virtual disk. :highfive:
ps: i hv successfully compile omnirom :victory: tomorrow going to flash it.
hopefully it will boot~
Click to expand...
Click to collapse
Share it with the community if it boots.

Silesh.Nair said:
Share it with the community if it boots.
Click to expand...
Click to collapse
Alright :good:
now im trying to hit 10posts b4 they allow me to post anything in developer thread
my configuration for this build is
OmniRom 4.4.2 + Linaro 4.8 for kernel + SaberMod 4.9 for android + -O3 optimization
but i have to remove
display-caf, audio-caf, media-caf, audiot-bt
do u have the same problem?

We need the caf repos, else you might have issues.
Sent from my GT-I9205 using Tapatalk

The repo i use for the caf is from omni and cm...
yet both produce the same problem
what is the caf really doing here? safe to remove?
btw what i m really concern is the audio-bt...

qcom devices use CodeAuroraForum ( CAF ) repos.

Ok this is the first time I heard Code Aurora Forum.
Keke let me do some reading...
Sent from Windows 98

Im on ubuntu 12.04 lts i have set up built env. Now download the source.... cm11.0 how download your source..

If u planned to compile cm11, look at Silesh sign
Sent from Windows 98

I look at it how to download it...
Sent from my GT-I9205 using xda app-developers app

Hints: Google how to use cm repo and create ur own localmanifest...
Sent from Windows 98

I try it but i give me error... can you send me the file
Sent from my GT-I9205 using xda app-developers app

ZZZzzzzz....
u r suppose to use repo/git to pull from server!!!
download failed? no prob it can resume! :angel:
learn from here >> Build_for_serranoltexx
jus rename serrano to melius... the melius link u can get from silesh sig

Related

[LNX]Linux on HTC Hermes

Hello,
Anyone interested in porting linux to HTC Hermes? The Samsung processor is currently supported by vanilla 2.6 kernel
I tried running GNU HaRET 2006070419 version, here's the output of some commands:
Code:
# telnet 192.168.1.23 9999
Trying 192.168.1.23...
Connected to 192.168.1.23.
Escape character is '^]'.
Welcome, this is GNU/HaRET running on WindowsCE v5.1
PocketPC
HERM200
Minimal virtual address: 00010000, maximal virtual address: 7fffffff
CPU is ARM ARM arch 4T stepping 0 running in system mode
Enter 'HELP' for a short command summary.
-----------------
FB1: form=1 bpp=16 fbaddr=4E800000/10800000 x=240/2 y=320/480
FB0: form=160 bpp=16 fbaddr=4E800000/10800000 x=240/480 y=320/480
HaRET(1)# dump wince
Wince information
curr_perm: 00010001, memdiv: rdisk= 64 ram= 12493 pagesize= 4096
memdiv1: rdisk= 64 of 14612 ram= 12493 of 12493
memdiv2: 3 rdisk= 64 of 14612 ram= 12493 of 12493
OEMINFO: ncha=9
OEMINFO: HERM200
OEMINFO: HERM200
PLATFORMTYPE: PocketPC
PLATFORMTYPE: PocketPC
machine_id:0
audio_innum=1, audio_outnum=1
32snapshot failed
I don't think the Samsung SC32442A-400MHz processor is supported by this version of HaRET, but I found a page in russian where there is a version of HaRET for s3c2442 processors available!!
Here is some interesting output of this haret version:
Code:
# telnet 192.168.1.23 9999
Trying 192.168.1.23...
Connected to 192.168.1.23.
Escape character is '^]'.
Welcome, this is HaRET running on WindowsCE v5.1
Minimal virtual address: 00010000, maximal virtual address: 7fffffff
CPU is ARM ARM arch 4T stepping 0 running in system mode
Enter 'HELP' for a short command summary.
HaRET(1)# cpudetect
Warning: Detected CPU family: S3C24XX
HaRET(2)# cpuwgpio 1
Warning: Ready to watch s3c24xx GPIO
f0004 - GPA: 1
f0014 - GPB: 4e
f0024 - GPC: 3621
f0034 - GPD: 0
f0044 - GPE: f7e8
f0054 - GPF: d3
f0064 - GPG: 24be
f0074 - GPH: 7f
f00d4 - GPJ: 14b0
GPE changed to 0000f7e8
GPE changed to 0000f7c8
GPE changed to 0000f7e8
[...]
HaRET(3)# dump mmu mmu.txt
The MMU dump hungs the device
Samsung has also published manuals and datasheet of the processor, available here:
http://www.samsung.com/products/sem...ationProcessor/ARM9Series/SC32442/SC32442.htm
More information and kernel patches for Samsung SC32442A procesor can be found here:
http://www.fluff.org/ben/linux/
So, we have a lot of work to do... any developers able to help?
Wiki page
I've created a page on the wiki for the Hermes Linux port here:
http://wiki.xda-developers.com/index.php?pagename=Hermes_Linux
Forgive me for asking, but why would you want to put Linux on this device?
We've got enough issues getting support for the WM5 ROMs, don't you think?
If there's a good reason, I'd love to know what it is!
goestoeleven said:
Forgive me for asking, but why would you want to put Linux on this device?
We've got enough issues getting support for the WM5 ROMs, don't you think?
If there's a good reason, I'd love to know what it is!
Click to expand...
Click to collapse
If there's a mountain to be climbed... :wink:
That's what I figured... Good luck!
Well, may be climbing that mountain is the main reason. But here you have another, in my opinion, interesting reason:
http://www.linuxdevices.com/articles/AT7937511405.html
Re: Linux on HTC TyTN / Hermes
pof said:
The MMU dump hungs the device
Click to expand...
Click to collapse
What about running the "DUMP MMU" with gnuharet ? You can also try other commands
(POWERMON 10; NLED*)
They are ported from itsutils and should not depend on the CPU.
Hey cr2! Sorry for the late reply but I didn't see your post before
With gnuharet, powermon 10 works, shows this:
Code:
HaRET(4)# powermon 10
2146258 1 70 % 3792 359 0 410 0 0 -1 -1 0 255 255 0 -1 -1 0 0 0 4
2147264 1 70 % 3792 359 0 410 0 0 -1 -1 0 255 255 0 -1 -1 0 0 0 4
[...]
Also nled* commands work, I can make the device vibrate with "nled on 1" and stop it with "nledoff 1", etc..
The MMU DUMP was ok with gnuharet, see attached file!
I also updated the wiki page with some info about the Hermes hardware, as there are now pictures of the chipsets available, see this post:
http://forum.xda-developers.com/showthread.php?t=279151
yep.
got one. busy with htc sable. start when i'm done or bored.
Glad to see that lkcl and cr2 got an Hermes too
This sure means we'll see a linux kernel booting soon!
pof said:
Glad to see that lkcl and cr2 got an Hermes too
This sure means we'll see a linux kernel booting soon!
Click to expand...
Click to collapse
It sure would be damned sweet to get rid of M$'s OS on this device! By the way, how is Qtopia and other Linux PDA "stuff" doing these days? The last time I tried it was back on my IPAQ in... 2001 I think.
You have GPE and Opie as the main graphic environment used in handheld devices those days.
It seems that soon a new environment called OpenMoko will be released under a free license too, this one is more phone-focused than the others.
pof
thanks for the post , im glad i came across it,
somethings been on my mind for the last few days, a mate at work is always on about Linux so it got me thinking, id like to give it a try on my TyTN
Iv got 2 questions for you,
first is there a newbie guid to running Linux on PDA's il have a look on wiki next im sure il find something. is there any that you guys can recommand which you have found helpfull.
2nd Now this is the question thats bugging me,,,,,
Can we run 2 OS on a PDA????
is this poss? to have a dual boot option when the PDA starts so we can select either Linux or WM05, both on there own will run on the device, how about installing both at the same time, and then being able to boot with one,
just some thoughts>?
I might start another thread on this just incase this thread isnt getting anymore traffic
well time to get back to work and start doing the job im actually getting paid to do
N2h said:
first is there a newbie guid to running Linux on PDA's il have a look on wiki next im sure il find something. is there any that you guys can recommand which you have found helpfull.
Click to expand...
Click to collapse
Depends very much on which device you want to run linux, on the Hermes is not possible yet. But for the Universal or BlueAngel you have some guides here:
http://www.handhelds.org/moin/moin.cgi/Universal
http://www.handhelds.org/moin/moin.cgi/UniversalHowtoInstallLinux
http://www.handhelds.org/moin/moin.cgi/BlueAngel
N2h said:
Can we run 2 OS on a PDA????
is this poss? to have a dual boot option when the PDA starts so we can select either Linux or WM05, both on there own will run on the device, how about installing both at the same time, and then being able to boot with one,
Click to expand...
Click to collapse
You have WM5 on your flash, and Linux on the SD card. You start your pda with WinCE and then browse to storage card and run gnuharet.exe which will "destroy" WinCE and boot the Linux kernel and initrd found on FAT32 partition of SD card. Then from initrd, you mount the root filesystem on another partiton of the SD card...
pof thanks for the quick reply
il b ereading up on the guide links you have given,
also just to clarfy point 2
-----------------------
You have WM5 on your flash, and Linux on the SD card. You start your pda with WinCE and then browse to storage card and run gnuharet.exe which will "destroy" WinCE and boot the Linux kernel and initrd found on FAT32 partition of SD card. Then from initrd, you mount the root filesystem on another partiton of the SD card...
Today 02:05 PM
------------------------
by this means can we boot with WM and then run Linux from SD card once this is run would WM be completey wiped from device memory? so any data we had on the device for WM will be lost,
just so im explaing myself propley, i was wondering if you can keep both OS on the device and SD card boot from WM when you need that and when you want to use Linux boot with Linux but without losing you WM5 data etc.
same as some of the apple macs that can boot with windows and apple oc from the same machine and switch between the differnt OS's
thanks for the quick reply,
Iv got a collegue with universal I wonder if he will let me borrow his Universal??? lol
You can boot linux from SD card and you don't loose any data on WM5 when you shutdown linux and go back to WM5.
pof thanks mate,
il be hopefully running Linux on my Tytn,
you never know,,,,,,,,,,, by the time i learn and update myself on linux it may running on our devices
all the best to anyone else also trying!!!
I would love to try and help you guys, but i haven't got much experience in these kind of stuff. Where should i start looking for more info on the project?
The status of hermes linux port is always updated at this wiki page:
http://wiki.xda-developers.com/index.php?pagename=Hermes_Linux
All development happens at #htc-linux in freenode irc server, but unfortunately as of now there's not a booting kernel yet for the Hermes, so you need some knowledge of low level programming to help at this stage.
i actually have studied low level programming with assembly and c, but i'm not that familiar with kernels :-/.

[ROM][WIP] Fedora for Nook Color

Just saw some interest for Fedora install on Nook in another thread to my surprise. I thought I am the only pervert interested.
Anyway this is pretty raw at the moment. You need to know your way around Linux and have a Linux box (naturally).
Just not to disappoint you later on, here's what not working:
Only based on Fedora13 from upstream (F14 work is ongoing by Fedora-Arm team and I am just tracking them).
Wifi (still did not get to look into it)
BT (same)
accelerated graphics
Don't know of any touch-friendly WM, so defaults to Gnome.
Multitouch (disabled in driver at the moment since no userspace support anyway).
backlight control does not work, need to rewrite the kernel driver
Xorg does not know what to do with accelerometer input.
Probably tons of other things I forgot about.
You must be out of your mind if you want to try it on a tablet at this stage. Or just super curious.
You will need a microSD (at least 2G) card that you can dedicate to this.
Instructions:
Get "base" fedora sdcard image: http://nook.handhelds.ru/fedora/fedora-sdcard-v0.1.img.gz
Get base Fedora 13 beta3 rootfs: http://lists.fedoraproject.org/pipermail/arm/2011-May/001271.html
Get kernel modules for the kernel: http://nook.handhelds.ru/fedora/modules-2.6.32.9-fc13.tar.bz2
Unzip the base sdcard image and write it to your sdcard with dd.
run fdisk on the sdcard and add another partition covering the rest of sdcard in addition to the one already there. Write changes
do mkfs.ext4 /dev/yoursdcard2 (basically format the second partition you just created as ext4)
mount the /dev/yoursdcard2 somewhere as root (/mnt/somewhere later on)
untar the F13-beta3 rootfs to the /mnt/somewhere
Now you are almost ready, just need to fill some configs.
Edit /mnt/somewhere/etc/sysconfig/network-scripts/ifcfg-usb0 and add this there:
Code:
DEVICE=usb0
#BOOTPROTO=dhcp
BROADCAST=192.168.2.255
IPADDR=192.168.2.2
NETMASK=192.168.2.0
NETWORK=192.168.2.0
GATEWAY=192.168.2.1
ONBOOT=yes
Edit /mnt/somewhere/etc/resolv.conf and change "nameserver" there to 8.8.8.8
Add multitouch config in /mnt/somewhere/etc/X11/xorg.conf.d/touchscreen.conf
Code:
Section "InputClass"
Identifier "touchscreen"
MatchIsTouchScreen "on"
MatchProduct "cyttsp-i2c"
Driver "mtev"
Option "SendCoreEvents" "On"
Option "SwapAxes" "true"
Option "InvertY" "true"
EndSection
cd /mnt/somewhere/lib/modules and untar the modules file there.
umount /mnt/somewhere
Ok, now you are ready to do some stuff on the nook.
Insert your sdcard into the nook and boot it. You'll see Fedora text console. The installation is pretty basic.
Plug the nook into your Linux PC usb port. It should see a new network device
On the linux PC as root execute: ifconfig usb0 192.168.2.1 netmask 255.255.255.0
Enable ip forwarding on your host if you have it disabled (typically in /etc/sysctl.conf, the setting is ...ip_forward, make it =1. Run sysctl -p for the changes to make effect.
Enable internet access to internet for your nook via IP masquerading: iptables -t nat -I POSTROUTING -s 192.168.2.2 -j MASQUERADE ; iptables -I FORWARD -s 192.168.2.2 -j ACCEPT ; iptables -I FORWARD -d 192.168.2.2 -j ACCEPT
Now use ssh to login to your Nook: slogin [email protected] the root password is "fedoraarm" (no quotes)
Once logged into the nook, time to install some packages.
rpm -Uvh http://hongkong.proximity.on.ca/yum/base/12/arm/fake-kernel-provides-1.0.0-0.fc12.armv5tel.rpm
update the system: yum update ; yum install tar openssh-clients
Install the gnome environment: yum groupinstall 'GNOME Desktop Environment' --skip-broken
The gnome installation will take a while and will download everything from the net.
Now install the multitouch Xorg driver, get it at http://nook.handhelds.ru./fedora/xf86-input-mtev-0.1.12-1.armv5tel.rpm
Ok. Now you are ready to go. Run "startx &" and the Gnome will start on the nook. You can play with it a bit, use your finger as the mouse pointer.
You can add startx & at the end of e.g. /etc/init.d/rc.local to make it start on system startup or you can do it in a more pretty way.
There are some virtual keyboards in the repo. I tried gko and it sucks.
the "onboard" seems to be the one working best for me. "xvkbd" is a bit hard to operate.
The best one of them all is fvkbd, but it needs libfakekey missing from the repo, grab it at http://arm.koji.fedoraproject.org/p...3/armv5tel/libfakekey-0.1-6.fc13.armv5tel.rpm
Enjoy.
Fedora-arm homepage: http://fedoraproject.org/wiki/Architectures/ARM
I intend to include all the missing pieces into the fedora repo so that you don't need to install all those extra things. Also eventually I plan to add more hardware support and then hopefully migrate to a much newer kernel.
Ha, cool. Glad to see that not everyone thinks that only Ubootoo should be thrown on devices. I'll give this a twiddle for fun.
13 had Moblin, I wonder if that's any better for touch input..
Now i don't feel near as silly for working on my gentoo install for the nook!
Nice, I am still waiting on OpenSuSe
Why not try using Gnome 3? I just poked around in Fedora 15 today and saw the new UI, and I loved it. Bigger buttons, launcher dock, etc. Give it a look!
pts69666 said:
Why not try using Gnome 3? I just poked around in Fedora 15 today and saw the new UI, and I loved it. Bigger buttons, launcher dock, etc. Give it a look!
Click to expand...
Click to collapse
Fedora15 is not available for arm arch yet. But there is some work in that direction. So sure, once it's available I'd give it a try.
Great stuff here. I knows its early development, but fun none the less to see what our nooks can do.
And thanks verygreen for all your developments lately
Sent from my NookColor using Tapatalk
verygreen said:
Fedora15 is not available for arm arch yet. But there is some work in that direction. So sure, once it's available I'd give it a try.
Click to expand...
Click to collapse
in fedora 13,
Code:
su
yum install gnome-shell
...
============================================================================================================
Package Arch Version Repository Size
============================================================================================================
Installing:
gnome-shell i686 2.28.0-3.fc12 fedora 301 k
Installing for dependencies:
gjs i686 0.4-1.fc12 fedora 126 k
mutter i686 2.28.0-2.fc12 fedora 1.2 M
Transaction Summary
============================================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
...
gnome-shell -replace
I haven't tested it myself; however, it is something I found. My linux hard drive had hard drive failure. So, I am on windows in the meantime. Will report back later after testing it myself.
pts69666 said:
in fedora 13,
Code:
su
yum install gnome-shell
...
============================================================================================================
Package Arch Version Repository Size
============================================================================================================
Installing:
gnome-shell i686 2.28.0-3.fc12 fedora 301 k
Installing for dependencies:
gjs i686 0.4-1.fc12 fedora 126 k
mutter i686 2.28.0-2.fc12 fedora 1.2 M
Transaction Summary
============================================================================================================
Install 3 Package(s)
Upgrade 0 Package(s)
...
gnome-shell -replace
I haven't tested it myself; however, it is something I found. My linux hard drive had hard drive failure. So, I am on windows in the meantime. Will report back later after testing it myself.
Click to expand...
Click to collapse
No "gnome-shell" package in Fedora-arm repo at this moment,
Quite excited to see some work in bringing Fedora to the Nook Color! I <3 Fedora.
I just wish ARM had the same support as the full Fedora. Or that they would skip releases for Fedora ARM and go yearly... aka, skip to 15 next, then 17.
Could this be used to help port Ubuntu Touch?
moocow1452 said:
Could this be used to help port Ubuntu Touch?
Click to expand...
Click to collapse
No, Ubuntu Touch is based on CM and has very little in common with a full Linux port.

|SETUP| To Build AOSP On MAC [Dev's Only]

(This is not nessesary for MAC but you can have this for further use later,
In general you will need:
Python 2.4 -- 2.7, which you can download from python.org.
JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download both from java.sun.com.
Git 1.7 or newer. You can find it at git-scm.com)
Setting up a Mac OS X build environment
To build the Android files in a Mac OS environment, you need an Intel/x86 machine running MacOS 10.6 (Snow Leopard).
Android must be built on a case-sensitive file system because the sources contain files that differ only in case. We recommend that you build Android on a partition that has been formatted with the journaled file system HFS+. HFS+ is required to successfully build Mac OS applications such as the Android Emulator for OS X.
Creating a case sensitive disk image
If you want to avoid partitioning/formatting your hard drive, you can use a case-sensitive disk image instead. To create the image, launch Disk Utility and select "New Image". A size of 25GB is the minimum to complete the build, larger numbers are more future-proof. Using sparse images saves space while allowing to grow later as the need arises. Be sure to select "case sensitive, journaled" as the volume format.
You can also create it from a shell with the following command:
# hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
This will create a .dmg (or possibly a .dmg.sparsefile) file which, once mounted, acts as a drive with the required formatting for Android development. For a disk image named "android.dmg" stored in your home directory, you can add the following to your ~/.bash_profile to mount the image when you execute "mountAndroid":
# mount the android file image
function mountAndroid { hdiutil attach ~/android.dmg -mountpoint /Volumes/android; }
Once mounted, you'll do all your work in the "android" volume. You can eject it (unmount it) just like you would with an external drive.
Installing required packages
Install XCode from the Apple developer site http://developer.apple.com/. We recommend version 3.1.4 or newer, i.e. gcc 4.2. Version 4.x could cause difficulties. If you are not already registered as an Apple developer, you will have to create an Apple ID in order to download.
Install MacPorts from macports.org.
Note: Make sure that /opt/local/bin appears in your path BEFORE /usr/bin. If not, add
export PATH=/opt/local/bin:$PATH
to your ~/.bash_profile.
Get make, git, and GPG packages from MacPorts:
$ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
If using Mac OS 10.4, also install bison:
$ POSIXLY_CORRECT=1 sudo port install bison
Reverting from make 3.82
There is a bug in gmake 3.82 that prevents android from building. You can install version 3.81 using MacPorts by taking the following steps:
Edit /opt/local/etc/macports/sources.conf and add a line that says
file:///Users/Shared/dports
above the rsync line. Then create this directory:
$ mkdir /Users/Shared/dports
In the new dports directory, run
$ svn co --revision 50980 http://svn.macports.org/repository/macports/trunk/dports/devel/gmake/ devel/gmake/
Create a port index for your new local repository:
$ portindex /Users/Shared/dports
Finally, install the old version of gmake with
$ sudo port install gmake @3.81
Setting a file descriptor limit
On MacOS the default limit on the number of simultaneous file descriptors open is too low and a highly parallel build process may exceed this limit.
To increase the cap, add the following lines to your ~/.bash_profile:
# set the number of open files to be 1024
ulimit -S -n 1024
Next: Download the source
Your build environment is good to go! Proceed to downloading the source....
Why you posted this? It can be found on android's website. Also,you didn't post the whole tutorial.
why not simply install VirtualBox vor Mac and install a VM within?
...sometimes the life is complicated^^
@SWEATTAIMI did you actually manage to get a fully working build on mac? And if yes which version of OS X?
I've tried many times on OS X 10.7 and eventually ended up installing ubuntu on a separate partition...
secondary partition? what about the users here?
i use a VM on a small **** x86 notebook and can do all the development work + complete compiling. i thought a mac has much better hardware^^
I used to have ubuntu installed in vmware too but compiling took too long and it was really annoying. I rather prefer it this way... No shared resources
popdog123 said:
@SWEATTAIMI did you actually manage to get a fully working build on mac? And if yes which version of OS X?
I've tried many times on OS X 10.7 and eventually ended up installing ubuntu on a separate partition...
Click to expand...
Click to collapse
Fully working what ?
Sent from my LG-P500 using xda premium
ciaox said:
Why you posted this? It can be found on android's website. Also,you didn't post the whole tutorial.
Click to expand...
Click to collapse
This is full for mac
Its a setup only
Sent from my LG-P500 using xda premium
SWEATTAIMI said:
Fully working what ?
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
:|
10 char
popdog123 said:
:|
10 char
Click to expand...
Click to collapse
You mean build then i have not came to that point yet as i downloaded all sources on my Japanese lesson xD
Sent from my LG-P500 using xda premium
I wonder if this will work for ICS on 4GB macbook
caslca said:
I wonder if this will work for ICS on 4GB macbook
Click to expand...
Click to collapse
Yes it will worked on a macbook 2010 version
Sent from Mexico

[N1] {EXP} UbuntuPhone

Ubuntu Phone for Nexus One brought to you by Evervolv
Prereq:
Sdcard with sd-ext part. i.e. A second partition formated as ext4 and AT LEAST 1.5GB FREE space
Micro sdcard reader for pc.
Linux pc with sudo access. NO WINDOWS PCs
Will work on any hboot (including stock)
Click to expand...
Click to collapse
Intro:
Ubuntu is ~1GB so we must install to the sdcard. Instead of ****ing with a2sd
I have just modified the ramdisk to mount mmcblk0p2 (sdcard second partition)
directly to /data. The 'copy-tarball' script will push the ubuntu rootfs to the
proper location which is mounted as /data/ubuntu. The perms on this folder must
be correct or it will not boot, therefore no windows (unless someone gets it
working).
Click to expand...
Click to collapse
How it works:
Ubuntu did a fantastic job making this easy. Essentially all that is happening
is it boots android sans gui. During the bootup a service called ubuntu_chroot
runs which exports some vars, bind mounts some things, then chroots /data/ubuntu
and starts the ubuntu init process. From there the prebuilt ubuntu takes off.
Click to expand...
Click to collapse
Building:
The android side is now based on Evervolv v3.2.0 every device we support
can run ubuntu with minor changes.
to get source:
Code:
repo init -u git://github.com/Evervolv/android.git -b jellybean-ubuntuphone
repo sync
Click to expand...
Click to collapse
Whats working:
Wifi, Browser, THAT IS IT. It is slow, very very alpha.
Only install if you are curious.
Click to expand...
Click to collapse
Install:
---Download:
Grap the latest installer script, and android image from http://archive.evervolv.com/ubuntuphone/
Ive also uploaded the ubuntu rootfs i used to test it, you can try the latest nightlies but if they dont work download the latest ubuntu rootfs from above url
Click to expand...
Click to collapse
---Insert sdcard and mount
Most distros will automount. In that case just figure out what folder its in
e.g. /run/media/drew/blablabla
If not just open in in nautilus and figure out what folder its in.
Click to expand...
Click to collapse
---Unzip installer tools
Code:
$ cd ~/Downloads
$ unzip ev-nexusone-ubuntu-tools-1.zip
$ cd ev-nexusone-ubuntu-tools
---Copy the ubuntu rootfs to sdcard
Code:
# adjust paths accordingly.
$ bash copy-tarball.sh quantal-preinstalled-phablet-armhf.zip /run/media/drew/blablabla
---Install android images
like any other rom, fastboot update package and flashable zip available
no wipe needed
Click to expand...
Click to collapse
---Bootup
There is no bootanimation, just black screen. It might take up to 5 minutes to boot ubuntu. If you think it is stuck. Check logcat and dmesg
$ adb logcat -C
->> check for repeating errors
$ adb shell dmesg
->> check repeating errors e.g.
<6>[ 181.698364] init: ubuntu-session state changed from starting to pre-start
<6>[ 181.698608] init: ubuntu-session state changed from pre-start to spawned
<6>[ 181.715667] init: ubuntu-session main process (724)
<6>[ 181.716003] init: ubuntu-session state changed from spawned to post-start
<6>[ 181.716583] init: ubuntu-session state changed from post-start to running
post full logcat and dmesg
Click to expand...
Click to collapse
---Once booted
Code:
#swipe right to unlock
#drag down on network icon and connect to network (confirmed wpa2 personal works)
#use adb to set timezone and install ssh
$ adb shell
[email protected]:/ # ubuntu_chroot shell
#change to yours
[email protected]:/# echo "America/Chicago" > /etc/timezone
[email protected]:/# dpkg-reconfigure --frontend noninteractive tzdata
[email protected]:/# apt-get update
[email protected]:/# apt-get install openssh-server
# set reasonable hostname
[email protected]:/# echo n1 > /etc/hostname
# get out and reboot
[email protected]:/# exit
[email protected]:/ # exit
$ adb reboot
# do NOT reboot from within ubuntu chroot you must reboot from android
#connect ssh password phablet
ssh [email protected]
enjoy full command line goodness on your phone
[email protected]:~$ lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
[email protected]:~$ uname -a
Linux n1 2.6.38.8-evervolv-perdo-jellybean #1 PREEMPT Sun Feb 24 16:34:07 CST 2013 armv7l armv7l armv7l GNU/Linux
---Navigation
Softbuttons (home/menu/back/search) dont work and wont. ubuntu is swipe based and these would only inhibit usage
swipe up from bottom to get to app specific menu
swipe up from bottom to about halfway up screen untill you see the button (see last screenshot) to get to main menu (where you can close apps)
Click to expand...
Click to collapse
---Caveats
Allways keep it plugged in. There is no power management
Screen stays on all the time, and there is no way to turn off the device
except through adb.
Click to expand...
Click to collapse
To get back to regular android
boot recovery and run nandroid or flash latest evervolv nightly (or whatever)
Click to expand...
Click to collapse
Re: [N1][DEV] UbuntuPhone {EXP}
You are awesome thank you somuch!
Sent from my Nexus One using xda premium
Re: [N1][DEV] UbuntuPhone {EXP}
My God, this is beautiful. At this rate I'm never going to get rid of my nexus one.
Sent from my Nexus 7 using Tapatalk 2
Cool! Thanks very much! Love it and love you!!! Haha...
Nexus one ine the best of all time.
Awesome! Thanks texasice!
Superb!
Just when I thought that 4.2.1 is going to be the last flavor of Android I flash on my beloved N1, along comes texasice with a Ubuntu flavor.
Thanks a lot man! You rock!
Re: [N1][DEV] UbuntuPhone {EXP}
Can't wait until this is stable
You just got trolled by Dark Knight
This deserves a portal post
-DarkKnight- said:
Can't wait until this is stable
You just got trolled by Dark Knight
This deserves a portal post
Click to expand...
Click to collapse
+1 I agree with Dark Knight. Thoroughly deserves a portal post!
Re: [N1][DEV] UbuntuPhone {EXP}
Everyone send PMs to the portal writers
Nexus One deserves some glory again
You just got trolled by Darkknight
-DarkKnight- said:
Everyone send PMs to the portal writers
Nexus One deserves some glory again
You just got trolled by Darkknight
Click to expand...
Click to collapse
Didn't know whom to contact, so just sent a message to Jimmy Mcgee ( he posted something in the portal ). Not just this, but texasice's hard work deserves to be appreciated.
oh my god , i just formatted my PC and remove all development and linux stuff =/
i wanna try this so bad ,,, but i'll wait until we have windows installation guide
R: [N1][DEV] UbuntuPhone {EXP}
Ahmed radi said:
oh my god , i just formatted my PC and remove all development and linux stuff =/
i wanna try this so bad ,,, but i'll wait until we have windows installation guide
Click to expand...
Click to collapse
Use a virtual machine installation
Sent from my HTC Desire using xda app-developers app
Once ubuntu gets it more stable we'll post a custom ubuntu rootfs that can be flashed directly from recovery ( the *phablet*.zip is flashable but can only be used on devices with enough space on /data) For now you can probably modify the updater-script to install to /sd-ext/ubuntu if you dont have linux.
omg this is amazing man...
lovely though of making ubuntu touch for r beloved N1
would be booting to this soon
m in love with ubuntu touch
Re: [N1][DEV] UbuntuPhone {EXP}
Is ubuntu supposed to be less power hungry than JB or is exactly the same? Is it going to run fast on old phones?
I have my old nexus one and would love to revive it but JB is too buggy and power hungry for the n1.
Sent from my Nexus 4 using xda premium
Time For Ubuntu on my N1
Hey texas thanks again n u r official canonical dev
ill be ur tester
as i m thinking of keeping only ubuntu on my device as i dont use it .. its just in my shelf..
@texas just a question i m lil confused with sd card ....
as u say v need 1.5gb space n v have to make 2 partition
so should it be 1st partition of ext4 and 2nds partition ext4
or 1st partition fat32 and 2nd partition ext4 ??
and which partition should have 1.5gb free space?
sorry srrry sorry sorrryy dint read it in the xcitement lmao
got it right
thanks alot
n a slight error in android image flashable link
http://goo.gl/DGBOS]Flashable is not working
http://goo.gl/DGBOS <<< this is the right link
enjoy
I will use this if it can use as daily driver (text, call, wifi).
But this is goods news that even our N1 can flash this.
WOOOWWWWWWWW
Booted n was amazed with its UI
all finger gestures....to control the OS
Soon Lots of pics to be Uploaded
N Texas great oppurtunities ahead
Pics >>>> https://docs.google.com/folder/d/0B8s85NYpuJpgVlF2WkdFZGJBNzA/edit?usp=sharing
fkardame said:
WOOOWWWWWWWW
Booted n was amazed with its UI
all finger gestures....to control the OS
Soon Lots of pics to be Uploaded
N Texas great oppurtunities ahead
Pics >>>> https://docs.google.com/folder/d/0B8s85NYpuJpgVlF2WkdFZGJBNzA/edit?usp=sharing
Click to expand...
Click to collapse
Thanks man for sharing those pics..... I know its bad of me, but i cant help asking...
Can you upload a short video ???
Keep up the good work all the devs,, especially texasice...
regards
greg

Build freezes at building libwebviewchromium.so

Hi all!
I am building cm12 from 100% working sources but my build freezes when building libwebviewchromium.so.
My log is just like this
Code:
Install: /out/target/u8860/system/app/Email/Email.apk
{new line}
If I press ctrl+c I am getting
Code:
Install: /out/target/u8860/system/app/Email/Email.apk
make: Stopping building /out/target/u8860/blablbabla/libwebviewchromium.so
If I start building again, it freezes again. But if I pull this file from the simillar phone, the build is OK.
What is wrong?
for me compiling libwebviewchromium.so takes the longest compiling time. around 20-30minutes just to compile this
Sent from my LG-D410 using XDA Premium 4 mobile app
hadidjapri said:
for me compiling libwebviewchromium.so takes the longest compiling time. around 20-30minutes just to compile this
Sent from my LG-D410 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Sure, maybe I just need to wait more... But my CPU dont think so
UPD: Waited ~2hours and got absolutely freezed system.
After hard reboot I found 1.4gb libwebviewchromium.so file.
Hey mates :crying:
I have exactly same issue. I waited >20 mins but still at
Code:
target SharedLib: libwebviewchromium (/home/henry/cm11/out/target/product/aries/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so)
I recorded the size of the libwebviewchromium.so at one time, it is 1.4GB (1,405,675,432 bytes)
After several minutes, the size (after refresh) is still (1,405,675,432 bytes) !!! But the 'modified time' changes to the current time. But it doesn't freeze.
What should I do? Continue waiting?
Btw, I have already 4GB SWAP:
Code:
$ sudo swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 1998844 1994956 -1
/swapfile file 4194300 353196 -2
Help me!!! I am frustrated!!:crying:
henry0504 said:
Hey mates :crying:
I have exactly same issue. I waited >20 mins but still at
Code:
target SharedLib: libwebviewchromium (/home/henry/cm11/out/target/product/aries/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so)
I recorded the size of the libwebviewchromium.so at one time, it is 1.4GB (1,405,675,432 bytes)
After several minutes, the size (after refresh) is still (1,405,675,432 bytes) !!! But the 'modified time' changes to the current time. But it doesn't freeze.
What should I do? Continue waiting?
Btw, I have already 4GB SWAP:
Code:
$ sudo swapon -s
Filename Type Size Used Priority
/dev/sda5 partition 1998844 1994956 -1
/swapfile file 4194300 353196 -2
Help me!!! I am frustrated!!:crying:
Click to expand...
Click to collapse
One solution I've found is placing another libwebviewchromium.so into the directory out/target/product/aries/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/
I tried one from official sources, everything is ok but it is not usable on phone --> a lot of crashes
Try waiting as much as you can
I was building CM12 from source (in a VM) and when this part came, it took approx. 2 hrs 45 mins.
So try waiting. It will finish (possibly)
Cheers!
-Technohacker
up to 10 post hix,up for everyone
Guys, libwebchromium is a massive library, depending on your CPU it can take 1hr-3hrs.
So eat some crackers and drink some tea. You're in for a long ride
Cheers.
Oh and BTW, if you're building cyanogenmod in a VM like me and can't allocate more RAM, try partitioning your virtual hard disk to make a large swap partition. It can help
Sent from my GT-I9003 using XDA Free mobile app
My build gets successfully compiled but when I boot up the ROM,I get SystemUI FC.Does adding Chromium support will help it out?
PS - I was compiling Candy5 5.1.1 for my msm8226 device.
In AOSP 6.0 sources, libwebviewchromium build is replaced with a prebuilt version supplied by the chromium project. Really is a boon
Cheers!
Technohacker
well u can use Prebuilt Webviewchromiuim to speed up build
Here You Go
Add this flag to Boardconfig.mk
PRODUCT_PREBUILT_WEBVIEWCHROMIUM=yes
You say to wait, however I've been waiting for ages, and the tune on my virtual machine is about an hour behind, bit the time goes up in jumps

Categories

Resources