Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sombionix
Old
(Last edited by sombionix; 20th November 2010 at 10:20 PM.)
#1  
sombionix's Avatar
Retired Forum Mod - OP
Thanks Meter 2420
Posts: 1,608
Join Date: Nov 2009
Location: Salt Lake City, UT

 
DONATE TO ME
Default Internal/External Sdcard Mounting Fix - for all 2.2 roms - *11/20/10*

After doing some testing all morning, I believe we found what is causing the issue with the internal/external sdcard mounting which has plagued all Vibrant 2.2 roms. As many of you have seen, there have been a couple fixes posted. For some of you, after flashing the fixes, its resolved your issue. However, for some, its simply reversed the sdcard issue by either not showing the external sdcard at all, write protecting the sdcard, or limiting the amount of data that can be transferred.

Cause of the problem:
1. For starters, both of the leaked vold.config and vold.fstab files were written incorrectly. They were not corresponding with each other and also had missing information. This was causing the first set of issues from the first 2.2 rom.

2. After the first fix was posted, we noticed it simply reversed the sdcard mounts, and also limited the data to the ex-sdcard.

3. The second fix posted listed both sdcards, however write protected the ex-sdcard.

4. After further inspection last night, I followed the paths that the vold files were calling. Which are: sys/devices/platform/s3c-usbgadget/gadget/lun#

I noticed that in the directories, there was lun0 and lun1. The vold files were calling lun1 and lun2. I simply adjusted the vold files accordingly, flashed the fix and it worked! Both external drives displayed in the correct order, both as removable drives as they should.

I sent the fix to a team member, after flashing, his issue reversed, and he no longer could see the external drive, only the internal. I had him follow the vold paths like I did. Again, it is: sys/devices/platform/s3c-usbgadget/gadget/
His devices was calling lun0, lun1, and and extra file, lun2. I asked him what kernel he was running, and turns out he was running one of our experimental kernels that uses I9000 source code. I was using the stock Vibrant 2.2 kernel. After further examination, we found the the Vibrant kernel creates lun0 and lun1. I9000 sourced kernels creates lun0, lun1, and lun2. Therefore, the specific mounting fix is dependent upon which kernel you are using. That's why these fixes have been hit and miss for many of you. They have worked for many of you, while not working for other.

In short, the vibrant 2.2 kernel generates 2 lun files, lun0, lun1. The 2.2 kernels based off of I9000 source is generating 3 files, lun0, lun1, lun2. So, you have to have the correct vold files depending on which kernel you are using.

We've tested this back and fourth all morning and from what we can see, this is definitely the cause of the issue. Below, I've posted 2 flashable.zip files. One to flash if you are using a stock Vibrant 2.2 kernel. Another to flash if you are using a 2.2 kernel based off of the I9000 source. Please test and let me know if it works for you. So far its worked for all of us.

FLASH THIS IF YOU ARE USING A STOCK VIBRANT 2.2 KERNEL

FLASH THIS IF YOU ARE USING A 2.2 KERNEL BASED ON I9000 SOURCE
Follow Me On Twitter
Join Our Team Whiskey Group On Facebook!
Sombionix - Team Whiskey - Lead Developer/Founder
Samsung Galaxy S2
The Following 4 Users Say Thank You to sombionix For This Useful Post: [ Click to Expand ]
 
go_l_den
Old
#2  
Member
Thanks Meter 111
Posts: 98
Join Date: Sep 2010
Awesome, great work som! Could this possibly have anything to do with the 1/20 internal SD whipes that have been occuring with your new lag fix kernel? Regardless, it'd be great to know where the team is on fixing that issue. Thanks,

Go_L_Den
 
miikey_
Old
#3  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Oct 2010
Location: CLT
Is Onyx based on the stock Vibrant kernel or i9000 source kernel?
 
sombionix
Old
#4  
sombionix's Avatar
Retired Forum Mod - OP
Thanks Meter 2420
Posts: 1,608
Join Date: Nov 2009
Location: Salt Lake City, UT

 
DONATE TO ME
Quote:
Originally Posted by go_l_den View Post
Awesome, great work som! Could this possibly have anything to do with the 1/20 internal SD whipes that have been occuring with your new lag fix kernel? Regardless, it'd be great to know where the team is on fixing that issue. Thanks,

Go_L_Den
No, the wiping issue has nothing to do with this fix. The wiping is kernel related as far as we can tell. Being that the ULF we did was the first port to the vibrant, it was very experimental and contains dragons.

Nonetheless, let me know how this fix goes for ya.
Follow Me On Twitter
Join Our Team Whiskey Group On Facebook!
Sombionix - Team Whiskey - Lead Developer/Founder
Samsung Galaxy S2
 
sombionix
Old
#5  
sombionix's Avatar
Retired Forum Mod - OP
Thanks Meter 2420
Posts: 1,608
Join Date: Nov 2009
Location: Salt Lake City, UT

 
DONATE TO ME
Quote:
Originally Posted by miikey_ View Post
Is Onyx based on the stock Vibrant kernel or i9000 source kernel?
If it doesn't say it has the ULF kernel, than yes, its the stock kernel.
Follow Me On Twitter
Join Our Team Whiskey Group On Facebook!
Sombionix - Team Whiskey - Lead Developer/Founder
Samsung Galaxy S2
 
krylon360
Old
#6  
krylon360's Avatar
Recognized Developer
Thanks Meter 3084
Posts: 2,187
Join Date: May 2010
Location: Provo

 
DONATE TO ME
Quote:
Originally Posted by miikey_ View Post
Is Onyx based on the stock Vibrant kernel or i9000 source kernel?
Here is how you can tell if you are based on Stock or i9k
When you boot up, do you just see a Vibrant logo and only a Vibrant logo until the bootanimation kicks in? if so, you are stock.

When you boot up do you see a Vibrant Logo, then a i9k Logo or the famous Team Whiskey Logo, then the bootanimation? if so, you are i9k based.
If my post helped you, be sure to click the Thanks button.
Follow me on Twitter
Current Projects-
CYANOGENMOD for the NOOK COLOR

Past Projects
AOKP - Nook Color
RootzBoat - VZW GNEX
NEXUS S - PURE BIONIX 2.3.7 AOSP[/B]
SGS4G - CWM, Bionix Frost, Bionix Black Ice, Gingerbread Hacking. CM7
Samsung Vibrant - Past Project(s) - Bionix Frost, Bionix-V, 1.3.1, 1.3.0, Obsidian, Nero
LG G2X - Past Project - Bionix 2 / CWM
SK4G Past Project- CWM
 
moonfire711
Old
#7  
moonfire711's Avatar
Senior Member
Thanks Meter 367
Posts: 1,438
Join Date: Oct 2010
Location: North Logan, Ut.

 
DONATE TO ME
Thanks guys. This clears up the mystery I was having with the mount fix. I am not a dev and have done little coding in my day, but I was thinking this may have been the case after investigating the vold files. Great job tracking this down to keep us all happy and to keep your lunch money.
Phone: T-mobile Samsung Galaxy S III
Rooted Stock 4.1.2 ROM and Kernel

Video Installing Google Wallet on the Tmo GS3
Video for Backing up your IMEI

With google wallet working and 7-Eleven right down the street, a slurpee would be nice if you feel like spotting me one. They're cheaper than beer. Just click the pic.
 
Mr. Apocalypse
Old
#8  
Mr. Apocalypse's Avatar
Recognized Developer
Thanks Meter 1131
Posts: 1,556
Join Date: Jul 2009
Location: Houston, Tx

 
DONATE TO ME
so let me get this right before i **** this up cuz im a dumbass......

ONYX 4.2 is i9k based right....so i flash the one for i9000???



Follow me on Twitter: MrApocalypseDEV
Github: MrApocalypse
Goo-inside.me mirrors:MrApocalypse

LG G2x
ROM:ApocalyptoMIUI v2.2

My Creations
ROMs(G2x):Bionix 3 | Bionix Reloaded | Genesis
Themes:BlacKnight|GingerRED v3 | Matrix Boot Animations
Kernels:Immortality | Immortality-CM | 99Problemz


 
amd_203
Old
(Last edited by amd_203; 21st November 2010 at 12:03 AM.)
#9  
amd_203's Avatar
Senior Member
Thanks Meter 9
Posts: 202
Join Date: Mar 2010
Location: Bridgeport
Quote:
Originally Posted by fearless1964 View Post
so let me get this right before i **** this up cuz im a dumbass......

ONYX 4.2 is i9k based right....so i flash the one for i9000???
It depends on the one you chose, as stated above. It you chose Onyx 4.2 with stock kernel then you choose the stock kernel one. If you got Onyx with the Universal Lagfix then you choose the i9000 version.
Alex - amd_203
Twitter: http://twitter.com/alex_deida
Nexus One - Cyanogenmod 6.0
Samsung Vibrant - Trigger 2.9.3, VooDoo 5.X
G2 - CyanogenMod 7.0.3, Pershoot kernel 2.6.32.41
Sidekick 4G - GingerClone v2, Baliv 1.2 Kernel
Nexus S 4G - Bugless Beast, franco.Kernel
HTC One X
Blackberry Pearl>iPhone>Blackberry Curve 8310>iPhone 3G>Blackberry Curve 8900>Palm Pre>Nexus One>Samsung Vibrant>G2>Sidekick 4G>Nexus S 4G>iPhone 4S>HTC One X
 
miikey_
Old
(Last edited by miikey_; 21st November 2010 at 12:13 AM.)
#10  
Junior Member
Thanks Meter 0
Posts: 25
Join Date: Oct 2010
Location: CLT
Quote:
Originally Posted by fearless1964 View Post
so let me get this right before i **** this up cuz im a dumbass......

ONYX 4.2 is i9k based right....so i flash the one for i9000???
ULF Onyx is i9000 based

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

XDA University: Porting ClockworkMod Recovery to New Devices

Having a good recovery makes the process of modifying, tweaking, maintaining, … more

One Stop Guide Shop for the Newbie and Dev

It’s been well established that XDA-Developers isthedestination for resources relating to … more

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more