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

Search This thread

JordanRulz

Senior Member
Jul 22, 2012
143
200
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:

nicholaschw

Senior Member
Nov 1, 2012
574
1,200
23
Singapore City
impactwow.zapto.org
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
 

JordanRulz

Senior Member
Jul 22, 2012
143
200
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"
 

rmrajm1

Senior Member
May 10, 2012
369
245
Bangalore
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....:good: :):):)
 
  • Like
Reactions: Patrick Morgan

Top Liked Posts

  • There are no posts matching your filters.
  • 49
    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.
    7
    New build is up.
    4
    Any new news about this project?
    Cant wait to try it on myself but need phone and some other befor i will try...

    Gesendet von meinem LG-P990

    no new news. I'm restarting again but making it easier to build so other people can help and I can restart more frequently. also, im using a new bl rom rite now so i have to make adaptations.
    3
    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
    2
    build instructions (for a non-working build, but still useful for f*cking around) were added.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone