Help - Search - Members - Calendar
Full Version: Installing Apps on OZ
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > Angstrom & OpenZaurus
omro
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?
gerald_clark
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
But what OZ calls Ram internally, the installation calls storage.
Hotrodder
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
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!!
omro
The linux-migration document doesn't seem to be much use for an OZ over 3.2 :-(
al
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.
omro
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.
bluey
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. wink.gif )
al
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.
omro
Oh dear, I just tried that after flashing to OZ 3.2 and ran the script and got the following error
CODE
/bin/sh: Can't open

Did I do something wrong?
bluey
You have to run the script by:

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

How did you do it?
omro
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 laugh.gif
circuit_breaker
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. wink.gif )


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
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/
circuit_breaker
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

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 / .. biggrin.gif

I figured it was an upgrade so I had the room where things were previous. is that a bad assumption?
Mickeyl
Yes, this is an incorrect assumption, since it is not an upgrade to the stable version.
circuit_breaker
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 biggrin.gif

now I just need vnc viewer and server..
circuit_breaker
quickly realizing 128mb isnt gonna satisfy my needs biggrin.gif
bluey
ehehehe wink.gif

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. wink.gif

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... smile.gif
circuit_breaker
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 ?)
InfoAddict
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: )
thies
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.
telemetric_au
QUOTE(al @ Jun 7 2004, 10:48 PM)
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.
*



questions:

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

-should there be a symlink for /usr/ ??
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.