Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,351 Members 41,038 Now Online
XDA Developers Android and Mobile Development Forum

[Q] [DEV][Firefox OS|B2G] - need help and review from senior android rom developper

Tip us?
 
nka11
Old
#1  
Junior Member - OP
Thanks Meter 5
Posts: 8
Join Date: Oct 2012
Prompt [Q] [DEV][Firefox OS|B2G] - need help and review from senior android rom developper

Hi,

I'm a noob, so i'm not allowed to post in developpement forum even if believe it's the correct place for this post.

I'm following the B2G porting guide for a Galaxy s3 device. (wiki.mozilla.org/B2G/Porting)

I'm starting from the samsung rom (XXBLH3) rooted.

Here are my files :
device profile : github.com/nka11/android-device-galaxys3
B2G fork for config/build files : github.com/nka11/B2G
and you will find here some notes taken during build : gist.github.com/3826507

Right now, the system.img (file available, see gist ) builds successfully and i modified the rooted boot.img to include init.b2g.rc.
I'm flashing with heimdall successfully but it fails booting (device hangs showing Samsung Galaxy S3 GT-I9300, first screen).

As i'm a noob (can't make link nor post in good places), i'm stalled here, i don't know what i can do to figure out why it don't work.

So i'm looking for an experienced rom builder on gs3 (or a firefox os expert) to review the profile, and would like to learn some tricks which may help me to debug on my own.

Hope someone can help

Regards
The Following 3 Users Say Thank You to nka11 For This Useful Post: [ Click to Expand ]
 
nka11
Old
#2  
Junior Member - OP
Thanks Meter 5
Posts: 8
Join Date: Oct 2012
Thumbs down still stalled

Hello,

Thanks for the silence.
I'm stalled, so changing my strategy and using the CM9.1 ROM as codebase.

I'll keey forum in touch anyway.
The Following User Says Thank You to nka11 For This Useful Post: [ Click to Expand ]
 
JJEgan
Old
#3  
Senior Member
Thanks Meter 4416
Posts: 23,036
Join Date: Oct 2010
Quote:
Originally Posted by nka11 View Post
Hello,

Thanks for the silence.
I'm stalled, so changing my strategy and using the CM9.1 ROM as codebase.

I'll keey forum in touch anyway.

Thanks for the silence.

Thats not the way a forum works and with that attitude you may find many developers not bothering to reply .

jje
 
nka11
Old
#4  
Junior Member - OP
Thanks Meter 5
Posts: 8
Join Date: Oct 2012
Quote:
Originally Posted by JJEgan View Post
Thanks for the silence.

Thats not the way a forum works and with that attitude you may find many developers not bothering to reply .

jje
Sorry, i was deep in dev and quite impatient. Just like many people here, I spend my spare time on this, so i can understand you felt insulted.
Anyway, I have a bugfix for heimdall 1.4, userdata image partition flash is now supported for GT-I9300 : github.com/Benjamin-Dobell/Heimdall/pull/56 . It may be useful for some people here.
 
nka11
Old
#5  
Junior Member - OP
Thanks Meter 5
Posts: 8
Join Date: Oct 2012
Tutorial News about porting

With CM9.1 rom :

Build successful but boot stalled at Samsung splash screen.

adb daemon active, so i can shell into the device.
After parsing dmesg, no error message found.

Going for further investigation.

I can give latest rom images on request.

Best regards
 
SnakeHaveYou
Old
#6  
Senior Member
Thanks Meter 85
Posts: 278
Join Date: Sep 2010
Interesting! I'll subscribe to this thread!
Ericsson DH318 > Motorola c353 > Motorola e380 > Nokia 6560 > Motorola RAZR V3 > Nokia 6131 > Nokia N73 > Apple iPhone 3G 16GB > Samsung SGH-I897 Captivate (very dead) > Samsung Galaxy S3 > Motorola Razr HD XT925

- Actual device: LG G2 D806 32GB
 
nka11
Old
#7  
Junior Member - OP
Thanks Meter 5
Posts: 8
Join Date: Oct 2012
Default a new attempt

Here are the extracts from dmesg i can suspect.

around line 263 :
<3>[ 2.222980] c1 init: could not import file /system/etc/init.local.rc
<4>[ 2.225921] c1 init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
<3>[ 2.409017] c1 init: cannot open '/initlogo.rle'

but as the kernel startup goes further, i don't know if i can suspect one of those lines. I've just commented
reference to init.local.rc in init.rc as it contains only CM specific service loading. Let's see later if we'll need
it with Firefox OS.
Later i can find these lines

<3>[ 2.643364] c2 init: cannot find '/system/bin/dmbserver', disabling 'dmb'
<3>[ 2.643446] c2 init: cannot find '/system/bin/bintvoutservice', disabling 'TvoutService_C'

but after checking in the CM9.1 backup, it appears that these files are not present in the rom.
it seems to reference proprietary binaries. I've checked in the samsung rom and found bintvoutservice but no dmbserver.
I've found the reference to these files in the init.smdk4x12.rc, so I commented the lines out for 'dmb'.

As above, it doesn't block the boot process.

I haven't noticed anything else, but something bothered me...
init.smdk4x12.rc isn't referenced in init.rc, however, init.rc content doesn't seems to be interpreted. So I moved
the import init.b2g.rc and chmod instructions to init.smdk4x12.rc.
Rebuilded the updated rom files for a new attempt.

Comportement changed : when i boot, the samsung splash screen disappears but the screen remains black and I have no access to adb...

Hard buttons seems to react as they light on when i touch them, but nothing else seems to work.

Where else could i watch ? Can someone explain (or reference a thread) init.rc/init.smdk4x12.rc on GT-I9300 ?
 
RuisuMercha
Old
#8  
Member
Thanks Meter 2
Posts: 49
Join Date: Apr 2010
Location: Recife
Any news ?
Current Devices:
Samsung Galaxy S3 I9300 - Stock - Rooted
Asus Eee Pad Transformer TF101 - Team EOS - Ubuntu Touch
New iPad 4 -32 gb wifi + 4g (Active)
 
vote_gough
Old
#9  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Aug 2010
Quote:
Originally Posted by RuisuMercha View Post
Any news ?
I remember seeing someone upload some Galaxy S III stuff for Firefox OS to Github a couple of weeks ago, but I can't find the link anywhere.
 
vote_gough
Old
#10  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Aug 2010
Found those links, I hope that they'll help anyone trying to port Firefox OS to the Galaxy S III.
Godspeed

https://github.com/Droid2Fox/android..._samsung_i9300

And another attempt
https://gist.github.com/nka11/3826507

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes