Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP JordanRulz

21st December 2012, 04:41 AM   |  #1  
JordanRulz's Avatar
OP Senior Member
Thanks Meter: 199
 
139 posts
Join Date:Joined: Jul 2012
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 03:27 AM.
The Following 49 Users Say Thank You to JordanRulz For This Useful Post: [ View ]
21st December 2012, 08:20 AM   |  #2  
Member
Flag London
Thanks Meter: 8
 
87 posts
Join Date:Joined: Mar 2012
More
Good effort bro!
21st December 2012, 08:29 AM   |  #3  
Member
Flag Bangalore
Thanks Meter: 15
 
62 posts
Join Date:Joined: Apr 2011
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, 08:07 PM   |  #4  
kayuz's Avatar
Senior Member
Thanks Meter: 16
 
147 posts
Join Date:Joined: Apr 2012
More
ahahaha, great work! bring to the old O2X a new system!
22nd December 2012, 12:09 AM   |  #5  
SuperSkill's Avatar
Senior Member
Flag Kristiansand
Thanks Meter: 1,159
 
1,673 posts
Join Date:Joined: Jun 2011
More
Interesting tread, I'll look at the files. Let's hope this will be a cooperative tread to make this
22nd December 2012, 04:10 AM   |  #6  
Account currently disabled
Flag Singapore City
Thanks Meter: 1,201
 
565 posts
Join Date:Joined: Nov 2012
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, 04:26 AM   |  #7  
JordanRulz's Avatar
OP Senior Member
Thanks Meter: 199
 
139 posts
Join Date:Joined: Jul 2012
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, 06:15 AM   |  #8  
rmrajm1's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 242
 
340 posts
Join Date:Joined: May 2012
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, 06:56 AM   |  #9  
R0B3RTF1SH3R's Avatar
Senior Member
Flag Auckland
Thanks Meter: 197
 
988 posts
Join Date:Joined: Apr 2012
good stuff man., were not the flaming community of yester year
5th January 2013, 12:40 AM   |  #10  
JordanRulz's Avatar
OP Senior Member
Thanks Meter: 199
 
139 posts
Join Date:Joined: Jul 2012
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