OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: dansawyer on August 11, 2004, 10:17:18 am

Title: help installing packages on 3.3.6pre1
Post by: dansawyer on August 11, 2004, 10:17:18 am
All,

I am having a devil of a time installing packages on 3.3.6pre1. The system is a Zaurus 5500 with a fresh re-flash and an SD card. Package installs us space on the / path and run out of space. The result is the Zaurus locks up out of space.

How is the Zaurus set up to force package installls to an SD card?

Is there a step by step howto somewhere?

After the flash how is the SD card configured?

After the flash how are the packages mounted? What path should the Zaurus be in? What are  the commands?

Thanks,
Dan
Title: help installing packages on 3.3.6pre1
Post by: TimW on August 11, 2004, 10:37:38 am
If you are using the Packages app that comes with OZ then you can tell the app whether to install to root, sd or cf just before you click the Start button. There is a drop down list at the top right of that window (IIRC).

So select the packages, press the green arrow thingy button to get the list of things which are to be installed and then select the destination before pressing start.

That is all that is necessary using the gui.

If you are doing it from the command line do

ipkg -d sd install package-name

Then after installation of everything is complete do

ipkg-link mount /mnt/card

to get the links set up.

If the sd destination isn't already set up there are ways to do that but you shouldn't have to. If you do I'll try and explain that later.
Title: help installing packages on 3.3.6pre1
Post by: diesel1 on August 11, 2004, 07:19:30 pm
You must have the SD formatted as ext2.

I then ran this script (found on the web) on a clean flash of the rom, before installing any ipks.

#!/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


The Z will reboot.

You should now have no problem installing ipks to / or /mnt/card.

Simon.
Title: help installing packages on 3.3.6pre1
Post by: lardman on August 12, 2004, 04:03:05 am
Note that if you run the above script then your Z won't run without the SD card inserted as you've moved all of Opie (the GUI) to run from the card.

Si