[ 34 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: 1.4.5 Jail Settings and OTA Updates
PostPosted: Sun Jul 04, 2010 1:51 pm 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
I got a report last night about a PDK game that failed to start on a 1.4.5 O2 phone in Germany because it wasn't able to write to the /media/internal/appdata directory. What was odd was that the user reported that the reason for the problem was the game was running as a non-root user (this is expected in 1.4.5), and their /media/internal was mounted with dmask=0022 which would only allow non-root to create and write to files (this is not expected). The system we ship from Palm has dmask set to 0000.

If any of you are running homebrew kernels or have patches installed, can you let me know what you get for the command "grep /media/internal /proc/mounts". On my 1.4.5 Pre, I see

Code:
/dev/mapper/store-media /media/internal vfat rw,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0
/dev/mapper/store-media /var/palm/jail/com.ancient-workshop.frog/media/internal vfat rw,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0


The first line is the original mount, the second line is the jail bind mount for the game I ran earlier on this boot.

Thanks!


Last edited by unwiredben on Mon Jul 05, 2010 3:11 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail and Homebrew kernels
PostPosted: Sun Jul 04, 2010 3:57 pm 

Joined: Sat Oct 24, 2009 9:29 pm
Posts: 21
Hi,
this also happened to me. In the fstab there was no umask=0000 for /media/internal. After doctoring the phone it is there now.
I had the UberKernel running on my O2 GSM Pre while doing the update.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail and Homebrew kernels
PostPosted: Sun Jul 04, 2010 6:46 pm 

Joined: Fri Oct 30, 2009 8:32 pm
Posts: 483
Location: Switzerland
/dev/mapper/store-media /media/internal vfat rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0

O2 german GSM Pre, was running Uberkernel before updating to 1.4.5

Markus

_________________
Markus
http://www.thinmachine.ch
http://twitter.com/thinmachine
webOS Apps: Moo, Toot, AnimalMemory, SBB Fahrplan Beta, Tuts+, MigrosFinder


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail and Homebrew kernels
PostPosted: Sun Jul 04, 2010 6:54 pm 

Joined: Fri Dec 11, 2009 10:45 pm
Posts: 488
Location: Germany
Code:
/dev/mapper/store-media /media/internal vfat rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0


Also, my two not yet released PDK apps, apparently jailed:
Code:
/dev/mapper/store-media /var/palm/jail/de.mydomain.app.app1/media/internal vfat rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0
/dev/mapper/store-media /var/palm/jail/de.mydomain.app.app2/media/internal vfat rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0


German original GSM Pre.

I did have the Uberkernel installed before 1.4.5., but I removed it completely before the update and have been on stock kernel since then. A few patches are still installed though.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail and Homebrew kernels
PostPosted: Sun Jul 04, 2010 10:47 pm 
User avatar

Joined: Thu Jul 16, 2009 6:48 pm
Posts: 155
Location: Adelaide, Australia
FYI, UberKernel does not touch /etc/fstab at all. Nor does any other WebOS Internals application, service, plugin or kernel. We consider /etc/fstab to be off-limits, specifically because we know that Palm will regularly update it in OTA webOS updates. This is also one of the reasons why our OpenSSH instructions use ssh keys instead of setting a root password (cause Palm updates /etc/passwd too).

Whilst it is right to report anything like this along with your bug report to Palm, I want to reassure you that it is extremely unlikely that running UberKernel at the time is the cause of this problem.

-- Rod

_________________
WebOS Internals and Preware Founder and Developer


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail and Homebrew kernels
PostPosted: Mon Jul 05, 2010 3:10 am 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
Could you all post what your /etc/fstab has for /media/internal and what device and OS version you're using. On my device, I see

Code:
/dev/mapper/store-media /media/internal vfat    utf8,shortname=mixed,umask=0000 0       0


However, this is a device that has been doctored. I didn't do the OTA update, as it's not yet available on Sprint. I'm going to have to go back to doctors for 1.4.1 and earlier and see if /etc/fstab was set differently before. Maybe this is something that the OTA isn't updating.

It's good to hear this probably isn't homebrew related, Rod. I hadn't noticed the umask argument in /etc/fstab, so I thought it could be different module settings for a default umask.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 3:26 am 
User avatar

Joined: Thu Jul 16, 2009 6:48 pm
Posts: 155
Location: Adelaide, Australia
Unlocked GSM Pre Plus, OTA updated from 1.4.1 to 1.4.5

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed 0 0

Unlocked GSM Pixi Plus, OTA updated from 1.4.1 to 1.4.5

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed 0 0

Sprint Pre, doctored to 1.4.1.1

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed 0 0

Unlocked GSM Pre, OTA updated from 1.4.1 to 1.4.5

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed 0 0

(will re-doctor the above device to 1.4.5 to confirm)

FrankenPre (Spanish GSM Pre with CDMA comms board), doctored to 1.4.5

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed,umask=0000 0 0

Unlocked German GSM Pre, OTA updated from 1.4.1 to 1.4.5

/dev/mapper/store-media /media/internal vfat utf8,shortname=mixed 0 0

-- Rod

_________________
WebOS Internals and Preware Founder and Developer


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 4:54 am 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
Thanks... I've checked how the /etc/fstab file is generated and installed on the device, and I think we've found a flaw in the OTA update scheme. I've reported it to higher authorities, and I hope we'll get this resolved soon. Thanks for all your help.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 7:44 am 
User avatar

Joined: Thu Jul 16, 2009 6:48 pm
Posts: 155
Location: Adelaide, Australia
I confirmed on one of my devices that OTA updated from 1.4.1 to 1.4.5 and I then re-doctored to 1.4.5 directly that the /etc/fstab entry was different for the two cases as you've described.

-- Rod

_________________
WebOS Internals and Preware Founder and Developer


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 9:46 am 

Joined: Sat Nov 21, 2009 10:06 pm
Posts: 16
On german Pre/O2 OTA from 1.4.1 to 1.4.5:

I confirm. I've a lot of Gameloft and Glu-Mobile Games.
Actually installed the terminal from Webos-Internals (Thank's for this).
I'am using grep as told from Unwiredben. (I'am not familar with this linux stuff, more the Javascript/HTML-programmer).
After that a huge list from all the game-dirs appears. All Fmask and Dmask entrys are set to 0022.

All PDK-Games are running so far, exept Asphalt 5, wich exits after loading a track.(Menues and selections are working). Maybe related ?

Should i doctor my phone ? Or is a fix (OTA) in the works ?

Hope this helps.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 12:43 pm 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
If you have shell access to your phone (SSH or novaterm), you can fix this by editing the /etc/fstab file and changing the line with /dev/mapper/store-media to read

Code:
/dev/mapper/store-media        /media/internal    vfat    utf8,shortname=mixed,umask=0000   0    0


This should just involve adding the ",umask=0000" line to the end of the flags section.

The symptoms of this problem are that PDK games won't be able to save their configuration data. Depending on how they're coded, they might crash at that poiint or they could just continue but without your progress being saved.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 1:12 pm 

Joined: Fri Dec 11, 2009 10:45 pm
Posts: 488
Location: Germany
unwiredben wrote:
If you have shell access to your phone (SSH or novaterm), you can fix this ..


Ok thanks, the fix worked for me. I changed the fstab file with Vim and now have:
Code:
/dev/mapper/store-media /media/internal vfat rw,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8 0 0


However, I guess most people won't be able to do this.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 2:00 pm 

Joined: Sat Nov 21, 2009 10:06 pm
Posts: 16
Blacklight wrote:
However, I guess most people won't be able to do this.


I will try later. I have to reinstall the PDK/SDK after my PC-Setup was killed by a hardware failure.

But Blacklight is absolutely right. This needs a OTA Hotfix as soon as possible, because the "normal customer" can't do this.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 9:38 pm 

Joined: Mon Jul 05, 2010 9:35 pm
Posts: 447
Location: Germany
Thank you very much for this fix. It works!

But I think it isn't a solution for all Pre users who want to play Asphalt 5 etc.

_________________
Apps: File Explorer - Image
QuickChat for Facebook - Image
Archive Manager - a great app for extracting and creating archives (zip, rar, 7z etc.)
FTPit! - full-featured FTP client for webOS
Twitter: @pcworldSoftware


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 05, 2010 10:31 pm 
User avatar

Joined: Mon Mar 15, 2010 1:03 pm
Posts: 27
Location: France
Hi,

Quote:
If you have shell access to your phone (SSH or novaterm), you can fix this by editing the /etc/fstab file and changing the line with /dev/mapper/store-media to read

I'm desperately unable to modify it using vi: the file system is read only. Does anybody know if it is possible to remount it in read/write mode? And if yes, would it be possible to give me the command line?

Thanks.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Tue Jul 06, 2010 1:14 am 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
The command lines are
Code:
mount -o remount,rw /


and when you're done
Code:
mount -o remount,ro /


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Tue Jul 06, 2010 7:50 am 
User avatar

Joined: Mon Mar 15, 2010 1:03 pm
Posts: 27
Location: France
Ok, shame on me...
Anyways, thanks a lot, that worked my engine is now able to save its data again :)


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Tue Jul 06, 2010 4:42 pm 

Joined: Sat Nov 21, 2009 10:06 pm
Posts: 16
Hello, this workaround does it well.
Also Asphalt5 comes back to life.


OTA Fix planned for the normal user ?


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Tue Jul 06, 2010 4:47 pm 
User avatar

Joined: Thu Jul 16, 2009 2:37 pm
Posts: 5177
Location: HP (Palm), Austin, TX (@unwiredben on Twitter)
This was a holiday weekend in the US, so most of our engineers are just getting back today. We're looking into the problem, but there are no announcements yet.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Sun Jul 11, 2010 8:11 pm 

Joined: Sat Oct 24, 2009 9:29 pm
Posts: 21
Any progress on this? This is a major problem for me. People cannot use my application which I distribute via PreWare.


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 12, 2010 5:53 pm 

Joined: Tue Dec 01, 2009 10:26 pm
Posts: 22
Bueller?


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 12, 2010 6:51 pm 
Site Admin

Joined: Thu Jul 16, 2009 4:56 am
Posts: 3615
Location: Sunnyvale
Bueller?

_________________
HP Palm webOS Developer Community Manager
pdc@palm.com


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 12, 2010 6:52 pm 
Site Admin

Joined: Thu Jul 16, 2009 4:56 am
Posts: 3615
Location: Sunnyvale
okay, seriously. Work's being done, but nothing I can say quite yet. but I expect to see resolutions soon.

_________________
HP Palm webOS Developer Community Manager
pdc@palm.com


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Mon Jul 12, 2010 7:27 pm 

Joined: Tue Dec 01, 2009 10:26 pm
Posts: 22
Thanks!


Top
 Profile  
 
 Post subject: Re: 1.4.5 Jail Settings and OTA Updates
PostPosted: Tue Jul 13, 2010 2:35 am 

Joined: Sat Oct 10, 2009 4:37 am
Posts: 100
I ran "grep /media/internal /proc/mounts" on my 1.4.1.1 Sprint Pre and It returned fmask=0022 and dmask=0022. I don't think this is a 1.4.5 specific issue. I should have brought this up awhile ago when I couldn't launch my PDK app through the proper protocol(non-root user). I was using the terminal from webos-internal to launch it which is root.

Hopefully my info helps shed a little more light on this.

_________________
Rocking out Pre 1.4.5 and TP 3.0.2

Published TP Apps:
Anagramarama HD

Published Phone Apps
Anagramarama
DDII Free


Top
 Profile  
 
Display posts from previous:  Sort by  
   [ 34 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron