webOS Nation Forums >  Homebrew >  WebOS Internals > Optware for webOS 2.0
Optware for webOS 2.0

  Reply
Like Tree1Likes

 
LinkBack Thread Tools Display Modes
Old 12/23/2010, 08:39 AM   #1 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default Optware for webOS 2.0

Optware is a set of command-line Linux packages which are available for installation on webOS devices. Some of these packages are available directly in Preware (like the OpenSSH SFTP Server, which is the first thing I install on any new device), but most of the 1700+ packages can only be installed using the ipkg-opt utility on the Linux command line.

For webOS 2.0, we're going to change the way that Optware is installed on the device.

Previously, /opt was a bind mount of /var/opt (located physically on the /var partition).

Now that Palm have moved email attachments and database files out of /var into the filecache and mojodb partitions, they have also reduced the size of /var, making it no longer suitable for use by Optware as an installation area.

So the next version of the Optware bootstrap package will set up a loopback mounted ext3 filesystem in a file at /media/internal/.optware/optware.ext3 with a default size of 64MiB (it can be manually resized to any size you want, without losing data, at any later time).

This new version is in the optware testing feeds. The location of these feeds should be obvious to anyone who has done any alpha testing for WebOS Internals previously, as it uses the same feed URL naming convention. If you need to ask, then you need to search elsewhere first.

If you upgrade the Optware bootstrap package in Preware, then it should migrate all your data from /var/opt to the new location.

Please post in this thread if you are alpha testing the 1.5.0 or later version of Optware bootstrap.

Remember this is alpha testing.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals

Last edited by rwhitby; 12/24/2010 at 02:16 AM.
rwhitby is offline   Reply With Quote
Old 12/23/2010, 10:01 AM   #2 (permalink)
Member
 
Join Date: Jul 2010
Posts: 11
Likes Received: 0
Thanks: 5
Thanked 2 Times in 2 Posts
Default

I'm currently on preware 1.5 with my pre2
decibeat is offline   Reply With Quote
Old 12/23/2010, 12:26 PM   #3 (permalink)
Member
 
scoutcamper's Avatar
 
Join Date: Jun 2009
Location: Near the California Allen SETI Array
Posts: 128
Likes Received: 0
Thanks: 13
Thanked 15 Times in 15 Posts
Default

I am testing Optware 1.5 on my Pre 2
__________________
Palm 3C>>M100>>M500>>Tungsten T5>>Tungsten TX>>Treo 600>>Treo 650>>Centro>>Pre>>Pre+>>Pre2
scoutcamper is offline   Reply With Quote
Old 12/23/2010, 02:00 PM   #4 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

Rod I am testing 1.5 and once I install 1.5 and try to generate my keys I can't get the Pre to go into USB mode. This happened this morning and I thought it was a coincidence. I doctored Pre and I have reinstalled it twice with the same result both times.. I tested to ensure it went to usb mode before install and when I try to put it into usb mode it shows the usb drive on Pre for about 3 seconds and then comes back up saying phone is offline. I have done a luna restart and a complete restart after installs. I can't get Preware to open up either. Trying to use Webosqi to uninstall the OPtware and related packages also just gives me a white screen in webosqi with nothing listed. I am running Preware 1.5.1

Trying to go in via a linux command line gives me a resource is temporarily unavailable.
__________________
My contributions to customizing the Palm Pre.

Browser Mega Mix|Email Mega Mix|Additional Sync Days|
Disable Various Phone Sounds|Priority Discard Buttons|

Sign up for SugarSync Get 500MB extra space
Sign up for Dropbox Get 250MB extra space
mamouton is offline   Reply With Quote
Old 12/23/2010, 02:15 PM   #5 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Yep, I know why it's not going into USB mode. USB mode tries to unmount /media/internal, which is where the loopback file is stored. I'm working on a fix which will close down sshd when you go into USB mode.

-- Rod

Last edited by rwhitby; 12/24/2010 at 02:16 AM.
rwhitby is offline   Reply With Quote
Old 12/23/2010, 02:16 PM   #6 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by decibeat View Post
I'm currently on preware 1.5 with my pre2
Preware or Optware?

-- Rod
rwhitby is offline   Reply With Quote
Old 12/23/2010, 02:18 PM   #7 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

Quote:
Originally Posted by rwhitby View Post
Yep, I know why it's not going into USB mode. USB mode tries to unmount /media/internal, which is where the loopback file is stored. I'm working on a fix which will close down sshd when you go into USB mode.

-- Rod

Thanks I think I am setting a record for doctoring today. I didn't see any other way to fix the issue. Well that is why I love alpha testing. I posted a comment in Preware thread about 1.5.1. as well.
__________________
My contributions to customizing the Palm Pre.

Browser Mega Mix|Email Mega Mix|Additional Sync Days|
Disable Various Phone Sounds|Priority Discard Buttons|

Sign up for SugarSync Get 500MB extra space
Sign up for Dropbox Get 250MB extra space
mamouton is offline   Reply With Quote
Old 12/23/2010, 09:34 PM   #8 (permalink)
Member
 
scoutcamper's Avatar
 
Join Date: Jun 2009
Location: Near the California Allen SETI Array
Posts: 128
Likes Received: 0
Thanks: 13
Thanked 15 Times in 15 Posts
Default

Quote:
Originally Posted by mamouton View Post
Thanks I think I am setting a record for doctoring today. I didn't see any other way to fix the issue. Well that is why I love alpha testing. I posted a comment in Preware thread about 1.5.1. as well.
No, Jack87 has that, he doctored close to 100 times yesterday

-- Sent from my Palm Pre using Forums
__________________
Palm 3C>>M100>>M500>>Tungsten T5>>Tungsten TX>>Treo 600>>Treo 650>>Centro>>Pre>>Pre+>>Pre2
scoutcamper is offline   Reply With Quote
Old 12/23/2010, 10:54 PM   #9 (permalink)
Member
 
jack87's Avatar
 
Join Date: Jun 2009
Location: Salt Lake City, Ut
Posts: 1,225
Likes Received: 9
Thanks: 78
Thanked 179 Times in 128 Posts
Default

Quote:
Originally Posted by scoutcamper View Post
No, Jack87 has that, he doctored close to 100 times yesterday

-- Sent from my Palm Pre using Forums
Haha I just stumbled upon this thread and happen to see me mentioned.... Which is very true might I add... in every WebOS flavor you can think of :-)...

I to have installed optware 1.5 on WebOS 2.0.1. USB drive mode is not working for me either.
__________________
MatterOfFactJack

Last edited by jack87; 12/23/2010 at 11:10 PM.
jack87 is offline   Reply With Quote
Old 12/24/2010, 01:16 AM   #10 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Version 1.5.1 uploaded. USB mode problem is still there, but I fixed a fatal bug in the post-remove script.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 12/24/2010, 02:16 AM   #11 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Version 1.5.2 now uses /media/cryptofs/optware.ext3 for the loopback file. Now USB mode seems to work. Keep an eye out for /opt going read-only, and let me know under what conditions it does if you see if happen.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 12/24/2010, 02:54 AM   #12 (permalink)
Member
 
Join Date: Feb 2010
Posts: 117
Likes Received: 6
Thanks: 22
Thanked 10 Times in 10 Posts
Default

Quote:
Originally Posted by rwhitby View Post
Version 1.5.2 now uses /media/cryptofs/optware.ext3 for the loopback file. Now USB mode seems to work. Keep an eye out for /opt going read-only, and let me know under what conditions it does if you see if happen.

-- Rod
I was testing this since 1.5.0 too and also had the USB mode bug. I just installed 1.5.2 and USB mode is finally working again =) thank you!
ice8lue is online now   Reply With Quote
Old 12/25/2010, 10:21 AM   #13 (permalink)
Homebrew Developer
 
patrickc's Avatar
 
Join Date: Apr 2010
Location: Tennessee
Posts: 235
Likes Received: 7
Thanks: 40
Thanked 23 Times in 18 Posts
Default

I am using Optware 1.5.2 with Preware 1.5.1
__________________
webOSroundup and Project Macaw contributor
Remember, if I helped you, please click on the little or ♥ to the right
patrickc is offline   Reply With Quote
Old 03/20/2011, 10:24 AM   #14 (permalink)
Member
 
Xamil's Avatar
 
Join Date: Sep 2010
Posts: 27
Likes Received: 0
Thanks: 19
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by rwhitby View Post
it can be manually resized to any size you want, without losing data, at any later time
resize2fs don't work with ext3. i used this manual: How To Resize ext3 Partitions Without Losing Data | HowtoForge - Linux Howtos and Tutorials it works, but hard to use for many users. why not ext2?
__________________
Sorry for my English =)
Xamil is offline   Reply With Quote
Old 03/20/2011, 08:14 PM   #15 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by Xamil View Post
resize2fs don't work with ext3. i used this manual: [url= To Resize ext3 Partitions Without Losing Data | HowtoForge - Linux Howtos and Tutorials[/url] it works, but hard to use for many users. why not ext2?
All the rest of the Linux filesystems on the device use ext3. Resize works fine, just treat the ext3 fs as ext2 for the resize.


-- Rod
rwhitby is offline   Reply With Quote
Liked by bill.allrobots.org likes this.
Old 07/15/2011, 06:32 PM   #16 (permalink)
Member
 
Join Date: Apr 2010
Posts: 100
Likes Received: 0
Thanks: 6
Thanked 4 Times in 4 Posts
Default

Hi Rod, I am stumped right now. Currently running webOS 2.1 on an unlocked developer device pre2. I have been using optware v1.6.0 up until yesterday, but I have tried to update to 1.6.1 and have come across an issue. I get an error that says failed to migrate var/opt to /opt. I removed and tried to install fresh, but still get the same error. Now, I've tried to go back and reinstall v1.0.0, but I still get an error and now cannot reinstall any optware pkgs.
Any ideas?
thanks,
tp
thePretender is offline   Reply With Quote
Old 07/15/2011, 06:34 PM   #17 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by thePretender View Post
Hi Rod, I am stumped right now. Currently running webOS 2.1 on an unlocked developer device pre2. I have been using optware v1.6.0 up until yesterday, but I have tried to update to 1.6.1 and have come across an issue. I get an error that says failed to migrate var/opt to /opt. I removed and tried to install fresh, but still get the same error. Now, I've tried to go back and reinstall v1.0.0, but I still get an error and now cannot reinstall any optware pkgs.
Any ideas?
thanks,
tp
Uninstall all your optware apps. reboot. reinstall.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 07/15/2011, 07:28 PM   #18 (permalink)
Member
 
Join Date: Apr 2010
Posts: 100
Likes Received: 0
Thanks: 6
Thanked 4 Times in 4 Posts
Default

I have tried that as well, I don't remember if I have pulled the battery, so I will try that and test once again. Any thoughts besides Dr'ing?
thePretender is offline   Reply With Quote
Old 07/15/2011, 07:33 PM   #19 (permalink)
Developer
 
rwhitby's Avatar
 
Join Date: Apr 2003
Location: Adelaide, Australia - follow @webosinternals on Twitter visit www.webos-internals.org and www.facebook.com/webosinternals
Posts: 10,220
Likes Received: 546
Thanks: 90
Thanked 8,534 Times in 2,806 Posts
Default

Quote:
Originally Posted by thePretender View Post
I have tried that as well, I don't remember if I have pulled the battery, so I will try that and test once again. Any thoughts besides Dr'ing?
Posting the full ipkg log would be a good start.

-- Rod
__________________
WebOS Internals and Preware Founder and Developer
You may wish to donate by Paypal to donations @ webos-internals.org if you find our work useful.
All donations go back into development.
www.webos-internals.org twitter.com/webosinternals facebook.com/webosinternals
rwhitby is offline   Reply With Quote
Old 07/15/2011, 10:41 PM   #20 (permalink)
Member
 
Join Date: Apr 2010
Posts: 100
Likes Received: 0
Thanks: 6
Thanked 4 Times in 4 Posts
Default

Hi Rod, yep, was in process of getting it, here it is:
Begin
Nothing Interesting.
Download
% Total % Received % Xferd Average Speed Time Time Time Current
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 8588 100 8588 0 0 14500 0 --:--:-- --:--:-- --:--:-- 51734
Identify
org.webosinternals.optware
Install
{"returnValue":true , "ticket":1, "subscribed":true}
{ "ticket":1 , "status":"STARTING" }
{ "ticket":1 , "status":"CREATE_TMP" }
{ "ticket":1 , "status":"VERIFYING" }
{ "ticket":1 , "status":"IPKG_INSTALL" }
{ "ticket":1 , "status":"SUCCESS" }
Mkdir-Prerm
Nothing Interesting.
Install-Prerm
Nothing Interesting.
Postinst
-1: Unable to run command: IPKG_OFFLINE_ROOT=/media/cryptofs/apps /bin/sh /media/cryptofs/apps/usr/lib/ipkg/info/org.webosinternals.optware.postinst 2>&1
stop: (00721/600502929) Unknown job: org.webosinternals.optware
rmdir: '/var/opt': Directory not empty
umount: can't umount /opt: Invalid argument
cp: can't create '/opt/bin/openssh-ssh': File exists
cp: can't create '/opt/bin/openssh-scp': File exists
cp: can't create '/opt/bin/ssh-keyscan': File exists
cp: can't create '/opt/bin/ssh-add': File exists
cp: can't create '/opt/bin/ssh-keygen': File exists
cp: can't create '/opt/bin/sftp': File exists
cp: can't create '/opt/bin/ssh-agent': File exists
cp: can't create '/opt/bin/dbclient': File exists
cp: can't create '/opt/etc/openssh/ssh_config': File exists
cp: can't create '/opt/etc/openssh/sshd_config': File exists
cp: can't create '/opt/etc/openssh/moduli': File exists
cp: can't create '/opt/libexec/ssh-keysign': File exists
cp: can't create '/opt/libexec/sftp-server': File exists
cp: can't create '/opt/sbin/sshd': File exists
cp: can't create '/opt/sbin/dropbearmulti': File exists
cp: can't create '/opt/sbin/.fuse_hidden0000001000000003': File exists
cp: can't create '/opt/sbin/dropbearconvert': File exists
cp: can't create '/opt/sbin/openvpn': File exists
cp: can't create '/opt/sbin/dropbearkey': File exists
cp: can't create '/opt/sbin/dropbear': File exists
ERROR: Error migrating /var/opt to /opt
Remove
Removing package org.webosinternals.optware from root...
(offline root mode: not running org.webosinternals.optware.prerm)
Delete
Nothing Interesting.
Failed
Nothing Interesting.
thePretender is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0