OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: niv on June 30, 2005, 08:44:32 pm
-
hi all,
well I am starting to really dig the zaurus :-)
Now I did a fresh flashing (after getting stock tring to run mozilla)
to install the programs I seek I use this method:
1. ssh from a pc to it
2. open ipkgfind in my web browser and hunt down the dependencies.
something that I learned is that the path must include /media/card if I am insatlling to SD.
two questions:
1. how to set a path for the libraries, so /media/card/package/usr/lib/somelib.so will work?
2. I remember that I had .profile and .bashrc in my home dir. now they are gone? I didn't erease them. where are they?
-
The normal user is zaurus, so it'd be:
/home/zaurus/.profile
-
The normal user is zaurus, so it'd be:
No, this is OpenZaurus not the Sharp ROM.
2. I remember that I had .profile and .bashrc in my home dir. now they are gone? I didn't erease them. where are they?
If you didn't erase them, then they should still be there. Did you use the -a switch with ls to show hidden files? 'ls -a'
something that I learned is that the path must include /media/card if I am insatlling to SD.
Sounds dubious, and I think I know why:
1. how to set a path for the libraries, so /media/card/package/usr/lib/somelib.so will work?
You don't need to do this. After you've installed a package to a storage card (or any dest other than root in fact), run 'ipkg-link add <package-name>' or 'ipkg-link mount /mount/point/path' to link all of the files on a given dest.
e.g.:
ipkg-link add opie-console
ipkg-link mount /media/card/packages
This way you don't have to mess about with altering paths, etc.
Si
-
10x Si
-
I'm still unable to make additional applications to run on my Z.
I've tried to install opie-calculator and dosfstools. Since I'm on 3.5.2 I've downloaded
them from the feed folder in the 3.5.2 tree.
I've tried to setup opie-calculator with the package manager, and dosfstools with the
line command
ipkg -d sd install dosfstools_2.10-r0_arm.ipk
They've both installed without pain.
However, "ipkg-link add opie-calculator" (the same with dosfstools) keeps telling me
"Package "opie-calculator" not found. Nor I get better results if I reboot the Z or if I try
ipkg-link mount /mnt/card1
Actually, is "card1" instead of "card" because I've partitioned my SD (first part FAT16; second EXT2) following this howto:
https://www.oesf.org/index.php?title=Multip..._a_CF_/_SD_card (https://www.oesf.org/index.php?title=Multiple_partitions_on_a_CF_/_SD_card)
Of course I've altered my ipkg.conf file to reflect that: I've changed
dest cf /mnt/card to dest cf /mnt/card1
Applications create the right paths in the card. All dosfstools are under /mnt/card1/usr/sbin, and are linked in /mnt/card1/usr/lib/ipkg/info.
Similarly everything right about opie-calculator (everything is in /mnt/card1/opt/QtPalmtop/...).
If I use "ipkg -list" dosfstools shows up (butt not opie-calculator).
Still, it seems I'm unable to link installed software.
I'm missing something? I've done something wrong? Maybe all of this is because of my partitioning?
-
However, "ipkg-link add opie-calculator" (the same with dosfstools) keeps telling me
"Package "opie-calculator" not found. Nor I get better results if I reboot the Z or if I try
It may be called something else - opie-calc for example.
Try 'ipkg list_installed *calc*' (something like that) to find out the name, or 'ipkg-link list /mnt/card1' to see everything installed to that dest, or just do 'ipkg-link mount /mnt/card1' to symlink everything you've installed to that dest.
Si
-
Thanks for the answer, but as I said, I've already tried with ipkg-link mount /mnt/card1 and I didn't get any result. I've also checked the location
of the installed files in the right subfolders, and the name of the installed applications. I have also the same problem with dosfstools.
Which is the way to link everything manually? I know the command (ln -s I suppose), but I don't know the location where to link. That way I can create a script at least which will do the job until I understand wht ipkg-link refuses to work.
-
Two things:
1. Is it named /mnt or /media in ipkg.conf as this is what it searches iirc,
2. I forgot, you need to tack a packages on the end:
ipkg-link mount /media/card1/packages
should do the trick,
Si
-
In my ipkg.conf it is /mnt/card1. And that is correct, it is the actual location where the card is mounted.
ipkg-link mount /mnt/card1/packages gives the following error:
*** Command: mount
ls: /mnt/card1/packages/usr/lib/ipkg/info/*.list: No such file or directory
*** Done.
A rapid check on /mnt/card1 shows that the actual location of the list files is on the following path: /mnt/card1/usr/lib/ipkg/info/ (where I think it is supposed to be).
That way I used:
ipkg-link mount /mnt/card1
and here's the result:
*** Command: mount
*** Command: add
*** Locating package
Package "dosfstools" not found.
*** Command: mount
*** Command: add
*** Locating package
Package "opie-calculator" not found.
*** Done.
It seems to me that the command is able to find the list files, read'em and learn which packages are installed. The problem is that the "add" command won't work,
as it won't work if I issue the direct command: ipkg-link add $PACKETNAMEHERE.
I really don't know how to overcome this. Maybe try to update ipkg? I don't think the partitions are the source of the problem, but maybe I'm wrong, even iof I do not understand why... I'm going to reformat the SD card and make it just one partition, to see how things will work out that way.
-
Yep, as I suspected. Making the SD card in just a big ext2 partition solves the problem. Still, I can't understand why...
-
Was the initial partition ext2?
Have a look at ipkg-link (it's just a script) and see if you can track down the problem - I imagine that others will have the same problem and would appreciate it being fixed,
Cheers,
Si
-
Yep, all the occourences in the "ipkg-link" are related to /mnt/card, so it's very likely that changing them to /mnt/card1 is going to give good results. I'll soon test this and report here. In the meantime thanks!
-
Ah, you're running an old version of OZ, I didn't notice that.
Try installing ipkg-link from the current feed (ignore any deps it asks for) as it now actually parses the contents of /etc/ipkg.conf to find dest entries.
Sorry I didn't spot this earlier,
Si
-
Is it generally possible to install content from a newer feed on older OZ versions? Is it safe?
I've done a quick test editing ipkg-link.
But problem is elsewhere, and I think I've spotted where it is: the second partition of the SD card is not mounted properly. I've of course added the line to the /etc/fstab file (/dev/mmcda2 /mnt/card1 auto defaults,noauto,noatime,user,exec,suid 0 0) and created the mountpoint directory. As a test I've tried to create a file on the two mount folders (with the card inserted in). The file is created, but just that on /mnt/card (the first partition) actually is on the card. /mnt/card1 is just a local folder. If I touch a file in it, when I remove the card the file is still there.
I suppose this is the trouble to manage to get a two partition SD to work properly.
-
I understand that mounting two partitions from an SD/CF card is now supported in 3.5.3 - requiring a change to sdcontrol iirc.
Is it generally possible to install content from a newer feed on older OZ versions? Is it safe?
It depends what it is - ipkg-link is just a script, it should have no lib deps, so it's fine, other stuff may not work as expected if APIs have changed or library functions have been removed.
Si
-
I've created and edited a sdcontrol file this way:
rebooted the Collie, sopped it before enterd Opie, logged as root. Then:
mount -n -o remount,rw /
cp /etc/sdcontrol /etc/sdcontrol2
then I've edited (with Vi) the new file this way:
DEVICE=/dev/mmcda1 -> DEVICE=/dev/mmcda2
MOUNT_POINT=/mnt/card -> MOUNT_POINT=/mnt/card1
SMB_MOUNT=/home/samba/SD_Card -> SMB_MOUNT=/home/samba/SD_Card1
But it doesn't work either. I suppose then OZ 3.5.3 is a requirement to get this to work. Thanks for all your help and assistance!