FORUMS

XDA Recap: This Week In Android (May 17 – 23)

Another week, another recap. The Sunday tradition marches on this week with a fresh … more

Huawei To Sell Honor Smartphones Via Indian Retail Outlets

World’s fourth largest smartphone maker Huawei plans to now sell its … more

Sunday Debate: Are Smaller Bezels Better or Worth It?

Bezels have been getting smaller and smaller as the years go by, and while devices … more

LG G4 First Impressions and Unboxing – XDA TV

The latest in LG’s signature line of “G phones” has been released. … more
Post Reply Subscribe to Thread Email Thread

[ROM][WIP][HELP][NOOB] Firefox OS (B2G) for Optimus 2X: need help packaging

21st December 2012, 03:41 AM |#1  
JordanRulz's Avatar
OP Senior Member
Thanks Meter: 200
 
More
Before everyone starts flaming me and trying to kill me for being such a noob, i would like to say that i'm a teen and a noob.

ANYWAYS, i got bored and decided to have a go at porting Firefox OS to the Optimus 2X. After figuring out how to make a flashable zip out of .img's, I tested a bit. Unfortunately ADB doesnt work and I don't know how to do live kernel debugging.



What works: Kernel
What doesn't work: everything else

Source code: http://github.com/JordanRulz

Download:
First Semi-working attempt: http://d-h.st/juX (not a flashable zip)
2nd attempt: link on http://jordanrulz.tk/ (flashable)
3rd attempt (current): http://d-h.st/0We(flashable)

Turn signature verification off before flashing

BUILD INSTRUCTIONS (still doesn't work, but for anyone who thinks they might have the answer, go right ahead)
1.
Code:
git clone http://github.com/JordanRulz/B2G.git
2.extract a cm9 rom to B2G/my_device_backup
3.cd to the B2G directory and
Code:
ANDROIDFS_DIR=my_device_backup ./config.sh p990
and wait for the code to download. This has a good chance of failing because repo and git are stupid.
4.
Code:
./build.sh
5.edit core/sysroot/init.rc so that it imports init.p990.rc
6.go to line 98 of build/core/Makefile and change the build fingerprint to something acceptable by the build system
7.go online and find a wpa_ctrl.h and put it in hardware/libhardware_legacy/wifi/libwpa_client/wpa_ctrl.h
8.copy libcamera.so and libwpa_client.so from a cm9-based rom to out/target/product/p990/obj/lib/
9.it should turn out boot,img, system.img, a system folder, userdata.img, a userdata folder, etc. with adaptations, you should be able to craft a flashable zip out of the folders.

Please hit donate if you feel my work is worth donating to.
Last edited by JordanRulz; 2nd March 2013 at 02:27 AM.
The Following 49 Users Say Thank You to JordanRulz For This Useful Post: [ View ]
 
 
21st December 2012, 07:20 AM |#2  
Member
Flag London
Thanks Meter: 8
 
More
Good effort bro!
21st December 2012, 07:29 AM |#3  
Member
Flag Bangalore
Thanks Meter: 15
 
More
Way to go buddy.... Expecting this Rom for our beloved Optimus 2x. (me too a noob cant help much)..

Thanks and wish u best of luck..
21st December 2012, 07:07 PM |#4  
kayuz's Avatar
Senior Member
Thanks Meter: 16
 
More
ahahaha, great work! bring to the old O2X a new system!
21st December 2012, 11:09 PM |#5  
SuperSkill's Avatar
Senior Member
Flag Kristiansand
Thanks Meter: 1,159
 
More
Interesting tread, I'll look at the files. Let's hope this will be a cooperative tread to make this
22nd December 2012, 03:10 AM |#6  
Account currently disabled
Flag Singapore City
Thanks Meter: 1,201
 
Donate to Me
More
Ok. What i did similarly to my phone to get this up. First, use PowerISO and extract userdata.img and system.img. Once done, its just like system folder of android while userdata is just data folder for user's data. Obviously. And then, the boot.img goes to the same as a flashable rom zip root folder. So basically, they are the same as flashing cm. Just need to add another few commands for recovery.img so that the whole thing is flashed like cm10
The Following 3 Users Say Thank You to nicholaschw For This Useful Post: [ View ]
24th December 2012, 03:26 AM |#7  
JordanRulz's Avatar
OP Senior Member
Thanks Meter: 200
 
More
Quote:
Originally Posted by nicholaschw

Ok. What i did similarly to my phone to get this up. First, use PowerISO and extract userdata.img and system.img. Once done, its just like system folder of android while userdata is just data folder for user's data. Obviously. And then, the boot.img goes to the same as a flashable rom zip root folder. So basically, they are the same as flashing cm. Just need to add another few commands for recovery.img so that the whole thing is flashed like cm10

doesn't work. "invalid image file"
24th December 2012, 05:15 AM |#8  
rmrajm1's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 242
 
More
Angry
i think probably you can pm any recognised dev's for help....if you post a thread here i dont think anybody will try to help....you can pm the dev's like tonyp, harsh, carburano or anyone and you can ask for help in packaging and later on continue with your development....just an idea....
The Following User Says Thank You to rmrajm1 For This Useful Post: [ View ]
24th December 2012, 05:56 AM |#9  
R0B3RTF1SH3R's Avatar
Senior Member
Flag Auckland
Thanks Meter: 231
 
More
good stuff man., were not the flaming community of yester year
4th January 2013, 11:40 PM |#10  
JordanRulz's Avatar
OP Senior Member
Thanks Meter: 200
 
More
This is getting really frustrating, after restarting multiple times and over 10 failed attempts. I have forked all the repos to my github so that all that want to help are able to do so. http://github.com/JordanRulz
The Following User Says Thank You to JordanRulz For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
b2g, firefox os, optimus 2x
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes