OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: omro on May 29, 2004, 01:40:48 pm

Title: Installing Apps on OZ
Post by: omro on May 29, 2004, 01:40:48 pm
Hi guys, I\'m very confused. When you installs apps on OZ, you get the choice of Root or Ram.

If you install it to the root, the app usually works fine. If you install it to the ram, it usually doesn\'t. Why\'s the root so small if you\'re meant to install everything to the Ram?
Title: Installing Apps on OZ
Post by: gerald_clark on May 29, 2004, 02:01:41 pm
Go to http://www.linux-migration.org (http://www.linux-migration.org)
Follow the instructions on moving root to a SD card.
This frees all ram for running programs.
Title: Installing Apps on OZ
Post by: omro on May 29, 2004, 02:15:59 pm
But what OZ calls Ram internally, the installation calls storage.
Title: Installing Apps on OZ
Post by: Hotrodder on May 30, 2004, 03:22:48 am
When your using the sharp OS the memory works like this.

16MB flash (where the os is, you cant install anything there) 32MB storage (this is where you install programs and keep your files) 32MB RAM (the memory)

In OZ the first 16MB is called root, but you can remove and install programs there. the next two sections depend on what you downloaded. for example zImage-2.4.18-5500-40memory-24storage.bin will give you 24MB storage (what OZ calls ram) and 40MB for your memory.

Odds are any problems you have installing are due to the time it\'s taking to switchover to the openembedded build system. OZ 3.3.6pre1 really is not supported anymore and is not compatable with alot of software. You just have to wait till openembedded version of OZ gets to the point it\'s ready for testing. Then you should start seeing more action as far as bugfixes and updates.
Title: Installing Apps on OZ
Post by: omro on May 30, 2004, 10:31:04 am
OpenEmbedded? Will it be any good? I\'m really liking OZ 3.2 and the O.Z 3.3.5 and 3.3.6 seemed really nice, though I couldn\'t get apps to install. If the next version is as good or better, I\'ll be very impressed!!
Title: Installing Apps on OZ
Post by: omro on June 07, 2004, 07:12:21 am
The linux-migration document doesn\'t seem to be much use for an OZ over 3.2 :-(
Title: Installing Apps on OZ
Post by: al on June 07, 2004, 07:48:08 am
Right, here\'s what to do. If you don\'t already have one, buy a 128 or 256Mb SD card.

Flash to OZ. 3.2 or 3.3.6

format the sd card as ext2

                Umount /mnt/card
   Mkfs.ext2 /dev/mmcda1
   Eject and re-insert card when done.

 then create and run the following script (or if your happier running it manually, just go through the steps. I usually run it from /mnt/card. Oh, and make sure you have the zaurus plugged in so it doesn\'t go into suspend. What it does is move some of the larger dirs to the sd card, freeing up space on root. Because OPT is moved, everything you install to root should be put on the sd card.

#!/bin/sh
clear
echo removing sdcard dirs if they exist
rm -r /mnt/card/usr
rm -r /mnt/card/root
rm -r /mnt/card/opt
rm -r /mnt/card/home
cd /
echo copying opt
cp -a /opt /mnt/card/opt
echo copying root
cp -a /root /mnt/card/root
echo copying home
cp -a /home /mnt/card/home
echo removing opt
rm -r /opt
echo removing root
rm -r /root
echo removing home
rm -r /home
ln -sf /mnt/card/opt /opt
ln -sf /mnt/card/root /root
ln -sf /mnt/card/home /home
echo rebooting please wait
init 6

Once this is done and the systems\'s rebooted, install everything to root.

Al.
Title: Installing Apps on OZ
Post by: omro on June 07, 2004, 07:58:02 am
Great, how awesome is that! Thanks :-)
Do you do this while running Opie or at a prompt?
How do you get it to terminate to a prompt in OZ 3.3.5? I couldn\'t work out how to do that with OZ 3.3.5, though was straightforward with OZ3.2. It would get to a prompt of some description and then not respond to keyboard presses.
Title: Installing Apps on OZ
Post by: bluey on June 07, 2004, 08:03:14 am
I\'ve been running OZ 3.3.6 with apps installed to SD (remember to install opie-symlinker, opie-update-symlinks do what it says when you can\'t see the apps installed by hand on the console with the ipkg utility) without a problem.

I was into moving everything to SD, but now I\'m quite happy. Remember if you install bash, to install it to root.

I installed oz-compat to sd too. Remember to use makecompat on the link on root (since it gets copied to /opt/QtPalmtop.compat/bin instead of /mnt/card/opt/QtPalmtop.compat, if you use makecompat on the binary which is on the sd it\'ll be copied to root, and you don\'t want that.  )
Title: Installing Apps on OZ
Post by: al on June 07, 2004, 08:06:17 am
I tend to run it from Konsole with OPIE running. It\'s been tested both with 3.2 and 3.3.6.

On a fresh flash, create the script on your sd card, chmod it as executable, then run it. Once it reboots, it should be fine.

Al.
Title: Installing Apps on OZ
Post by: omro on June 07, 2004, 08:43:47 am
Oh dear, I just tried that after flashing to OZ 3.2 and ran the script and got the following error
Code: [Select]
/bin/sh: Can\'t open
Did I do something wrong?
Title: Installing Apps on OZ
Post by: bluey on June 07, 2004, 08:47:26 am
You have to run the script by:

sh script.sh
OR
chmod +x script.sh; ./script.sh

How did you do it?
Title: Installing Apps on OZ
Post by: omro on June 07, 2004, 08:51:30 am
I just tap clicked the file and changed the permissions in file manager. I found the error, the cut and paste from the site into the script file put a space after #!/bin/sh and this caused it to mess up.

I had a look at your posting bluey, sounds cool, but way too complicated for little old me
Title: Installing Apps on OZ
Post by: circuit_breaker on June 10, 2004, 09:03:31 pm
Quote
I\'ve been running OZ 3.3.6 with apps installed to SD (remember to install opie-symlinker, opie-update-symlinks do what it says when you can\'t see the apps installed by hand on the console with the ipkg utility) without a problem.

I was into moving everything to SD, but now I\'m quite happy. Remember if you install bash, to install it to root.

I installed oz-compat to sd too. Remember to use makecompat on the link on root (since it gets copied to /opt/QtPalmtop.compat/bin instead of /mnt/card/opt/QtPalmtop.compat, if you use makecompat on the binary which is on the sd it\'ll be copied to root, and you don\'t want that.  )


Where do i find opie-symlinker and the other pkg? they\'re not in the feed for 3.3.6-pre1 it looks.  So, if i have these then I don\'t need to do the symlinking script above to get root-dir-installed apps onto SD?

please expand on that a little more.. i have had nothing but a bad time with my zaurus so far, and I just got a SD card.  I did the trick above but after moving everything, I can\'t browse my apps folder with the make compat graphical app. weird.  so, i\'m reflashing it now..
Title: Installing Apps on OZ
Post by: bluey on June 10, 2004, 09:40:48 pm
I had to change the compat libs opie-sh script when I was with opt on sd, too.

I\'ve been installing to SD and the apps work fine, and the lag of running opie from the sd card is gone.

Check the opie feed: http://opie.handhelds.org/feed/openzaurus (http://opie.handhelds.org/feed/openzaurus)

Currently unstable is empty since June 4th.

Which Opie version comes with 3.3.6? 1.0.3?

Upgrade to 1.1.3: http://opie.handhelds.org/feed/openzaurus/....3/SL5xxx/gcc3/ (http://opie.handhelds.org/feed/openzaurus/1.1.3/SL5xxx/gcc3/)
Title: Installing Apps on OZ
Post by: circuit_breaker on June 10, 2004, 10:20:40 pm
Quote
I had to change the compat libs opie-sh script when I was with opt on sd, too.

I\'ve been installing to SD and the apps work fine, and the lag of running opie from the sd card is gone.

Check the opie feed: http://opie.handhelds.org/feed/openzaurus (http://opie.handhelds.org/feed/openzaurus)

Currently unstable is empty since June 4th.

Which Opie version comes with 3.3.6? 1.0.3?

Upgrade to 1.1.3:http://opie.handhelds.org/feed/openzaurus/1.1.3/SL5xxx/gcc3/
Hmm. 1.0.3 is what comes with it.  I just added that opie feed to ipkg.conf and ran ipkg upgrade .. then it filled my / ..

I figured it was an upgrade so I had the room where things were previous.  is that a bad assumption?
Title: Installing Apps on OZ
Post by: Mickeyl on June 11, 2004, 04:11:10 am
Yes, this is an incorrect assumption, since it is not an upgrade to the stable version.
Title: Installing Apps on OZ
Post by: circuit_breaker on June 12, 2004, 05:26:04 am
cool.. so I took the 3.3.6pre1 + opie 1.1.4 setup someone on here provided, and flashed that.  then I installed that opie-update-symlinks app from the opie 1.1.3 feed.. installed the compat libs from from spy.org. opie-sh to root, oz-compat and oz-compat-opie to sd.  is it a correct assumption that when installing pkgs from the cmdline with ipkg, you have to run ipkg-link for it to ever actually be added to the desktop?  is this something aqpkg does automatically? just wondering..

I\'ve figured out little bits. i\'ve got the compat libs working I think.  this is the most stable my zaurus has been, and I\'m installing apps to SD and it seems to be going ok.  / isn\'t filling up but i do only have 548kb left

now I just need vnc viewer and server..
Title: Installing Apps on OZ
Post by: circuit_breaker on June 12, 2004, 05:44:02 am
quickly realizing 128mb isnt gonna satisfy my needs
Title: Installing Apps on OZ
Post by: bluey on June 12, 2004, 07:44:22 pm
ehehehe

There could be apps you can uninstall from root and install to SD, so that you can free up more space on root. But if you install to SD, having \"just\" 500Kb shouldn\'t be such a problem.

I\'m pretty happy not having to do all that kung-foo to be able to install more apps, the booting lag was a frustrating too.

Despite the legitim frustration that Mickey shows sometimes, we should (I do) expect great things from future OE based releases. Faster, smaller, better and more applications. Getting all in one easily accessible location, with good tools for building, testing, and deploy apps, one can easily create their apps, or improve on existing ones, without worrying on how to make them work afterwards.

If just Sharp opened their eyes and supported the community and its efforts... (Maybe this site needs to have Japanese LOCALE, maybe Sharp Japan isn\'t seeing what\'s happening around here... I\'m j/k, but it\'s the only reason I find to understand the attitude allowed to Sharp/USA and Sharp/Europe... $/€/etc? Maybe...
Title: Installing Apps on OZ
Post by: circuit_breaker on June 12, 2004, 08:51:17 pm
Gah, my SD got corrupted.. I/O errors on most of the files.  I had formatted it ext2 initially- but fsck couldn\'t see the superblock. must have been really damaged.  so i fdisk\'d it, and it was listed as FAT, I deleted it and made a new ext2 part.  It\'s acting fine so far and I\'ve reinstalled everything I lost.  Hope I don\'t have that problem again as I\'ve seen some on here deal with.

Aside from that, i\'m happy to have a working, stable installation of OZ!

(it\'s a Kingston 128mb.  anyone have good/bad luck w/them ?)
Title: Installing Apps on OZ
Post by: InfoAddict on June 15, 2004, 07:46:41 pm
If I use this method of moving everything to the SD, will I still be able to remove my SD card on the fly to load ipkgs w/ the SD card reader on my laptop? or would that crash the system?

I\'m assuming I could still do it aslong as not apps are actively running. Just want to make sure before I hose my install. (again  :shock: )
Title: Installing Apps on OZ
Post by: thies on June 23, 2004, 06:40:04 pm
I must say the whole OZ thing is quite a disappointment so far. The documnentation on their site is lacking at best, I'm hitting 404s quite a bit and about 80% of all applications I attempt to install crash instantly if they install at all.
Title: Installing Apps on OZ
Post by: telemetric_au on April 19, 2006, 06:44:31 am
Quote
Right, here's what to do. If you don't already have one, buy a 128 or 256Mb SD card.

Flash to OZ. 3.2 or 3.3.6

format the sd card as ext2

                Umount /mnt/card
   Mkfs.ext2 /dev/mmcda1
   Eject and re-insert card when done.

 then create and run the following script (or if your happier running it manually, just go through the steps. I usually run it from /mnt/card. Oh, and make sure you have the zaurus plugged in so it doesn't go into suspend. What it does is move some of the larger dirs to the sd card, freeing up space on root. Because OPT is moved, everything you install to root should be put on the sd card.

#!/bin/sh
clear
echo removing sdcard dirs if they exist
rm -r /mnt/card/usr
rm -r /mnt/card/root
rm -r /mnt/card/opt
rm -r /mnt/card/home
cd /
echo copying opt
cp -a /opt /mnt/card/opt
echo copying root
cp -a /root /mnt/card/root
echo copying home
cp -a /home /mnt/card/home
echo removing opt
rm -r /opt
echo removing root
rm -r /root
echo removing home
rm -r /home
ln -sf /mnt/card/opt /opt
ln -sf /mnt/card/root /root
ln -sf /mnt/card/home /home
echo rebooting please wait
init 6

Once this is done and the systems's rebooted, install everything to root.

Al.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=29944\"][{POST_SNAPBACK}][/a][/div]


questions:

-i dont have a /root / directory ...

-should there be a symlink for /usr/ ??