Author Topic: Installing Apps on OZ  (Read 7486 times)

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« 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?
Zaurus C-1000

gerald_clark

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • http://
Installing Apps on OZ
« Reply #1 on: May 29, 2004, 02:01:41 pm »
Go to http://www.linux-migration.org
Follow the instructions on moving root to a SD card.
This frees all ram for running programs.

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« Reply #2 on: May 29, 2004, 02:15:59 pm »
But what OZ calls Ram internally, the installation calls storage.
Zaurus C-1000

Hotrodder

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://www.hotrodding.net
Installing Apps on OZ
« Reply #3 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.

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« Reply #4 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!!
Zaurus C-1000

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« Reply #5 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 :-(
Zaurus C-1000

al

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • http://
Installing Apps on OZ
« Reply #6 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.
SL-5500 OZ3.5.2, 256SD, 256CF, WiFi, etc
SuSE 9.2 Pro, WinXP Pro

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« Reply #7 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.
Zaurus C-1000

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Installing Apps on OZ
« Reply #8 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.  )
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...

al

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • http://
Installing Apps on OZ
« Reply #9 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.
SL-5500 OZ3.5.2, 256SD, 256CF, WiFi, etc
SuSE 9.2 Pro, WinXP Pro

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« Reply #10 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?
Zaurus C-1000

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Installing Apps on OZ
« Reply #11 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?
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Installing Apps on OZ
« Reply #12 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
Zaurus C-1000

circuit_breaker

  • Newbie
  • *
  • Posts: 8
    • View Profile
Installing Apps on OZ
« Reply #13 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..

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Installing Apps on OZ
« Reply #14 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

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/
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...