Author Topic: OZ - Symbolic links _  (Read 2955 times)

highfell

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://
OZ - Symbolic links _
« on: February 08, 2004, 04:55:04 am »
Quick question.

I have been trying out the various roms and thought I would try out OZ again, a month later (and wiser) about the Zaurus.

Basically, I cannot instal any opie ipks successfully. The error is to do with \'symbolic\' links , when installing a IPK to Ram i get the following message:

\'creating symbolic links for /mnt/cf/sampl.ipk
Failed to link /mnt/ram/. to/.\'

I have found our how to add these symbolic links using file manager - make symlinks but I cannot seem to find the right link or am not linking in the right way.  In fact I seem to have loads of symlinks - could that in itself be a problem

Also does the /. mentioned above mean the absolute \'base\' folder or does it mean the /root folder?

Please can someone help me & point me in the right direction , as I am presumably 85% there but just missing the final 15%, and it is driving me scatty.  :cry:

I was up until the early hours trying to solve it last night and I am v. frustrated not being able to see the true wonders of OZ and opie !!!  

Thanks for any help.


Nigel Bamber

sl-5500
SL 5500 128 CF card ; Bluetooth Anycom CF
TKR v1.0 Cacko Kernel 32/30 memory layout

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
OZ - Symbolic links _
« Reply #1 on: February 08, 2004, 11:11:02 am »
Take a look at my explanation of what ipkg does with symlinks here: http://www.zaurususergroup.com/index.php?n...iewtopic&t=1533

Basically what you\'re seeing isn\'t an error. Do the icons not appear? In that case restart opie (Shutdown applet), if it still doesn\'t work run \'ipkg-link mount /mnt/ram\', then restart opie again.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

highfell

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://
OZ - Symbolic links _
« Reply #2 on: February 08, 2004, 03:25:13 pm »
The icons appear but when I tap on them, I get the message

Error - Could not start the application  XXX

I am not sure that the actual program file (bin file) is being loaded - is that possible.

Tried to use run \'ipkg-link mount /mnt/ram\' in Konsole but that didn\'t seem to achieve anything? Have also retstarted opie.

My CF card is Vfat . So should I try Ext 2?? I thought that to flash a rom you needed to format the CF as Vfat. Can you flash with Ext2?

I even tied to instal opie-formatter to root. This time I didn\'t get a symlink failure but I got the
Error - Could not start the application  Formatter.

Nigel Bamber
SL 5500 128 CF card ; Bluetooth Anycom CF
TKR v1.0 Cacko Kernel 32/30 memory layout

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
OZ - Symbolic links _
« Reply #3 on: February 08, 2004, 05:01:24 pm »
Try running the applications in question from the command line to get some more info. If the icon appears then chances are it has been installed correctly (the icon file has and it would be strange for everything else to fail and this to work).

What version of OZ are you running?

What is the app in question?

Where did you get it from?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

highfell

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://
OZ - Symbolic links _
« Reply #4 on: February 09, 2004, 04:07:43 am »
Quote
Try running the applications in question from the command line to get some more info. If the icon appears then chances are it has been installed correctly (the icon file has and it would be strange for everything else to fail and this to work).
Si

The bin files were not being loaded. I put a symlink in /opt/qtpalmtop/bin/ to both /mnt/cf and mnt/ram and the bin file (for opie-pdf) was installed successfully.

HOWEVER, whist I don\'t now get the error couldn\'t start filename, now I get the eggtimer icon for 15 secs or so but opie-pdf doesn\'t start ??

Quote
What version of OZ are you running? 

In system info is says OZ 3.2 and OPIE 0.9.3 snapshot (although I have copied the 1.03 stable feed package files).

Quote
What is the app in question? 

Where did you get it from? 

All the apps that I am trying to install are from that feed. I just can\'t get any to run !

I tried the your suggestion of \'ikpg-link\' in konsole and had to put /usr/sbin/ first and then put quotes around \'/mnt/ram\', and it found the ipks that I had \'installed\' but it still wouldn\'t run them, but the bin file hadn\'t been probably been loaded for these, as that was before I put the /opt/qtpalmtop/bin link in mentioned above.

Quote
Try running the applications in question from the command line to get some more info

OK have just tried this for qpdf and I get the following messages:
    loading of image \'qdpf-icon\' is not ideal ...........
    loading of image \'opie-sh/opieish\' is not ideal
    QImage/Qpixmap - 2 null entries
    Qir:readDIr Entries: cannot read from directory :/mnt/ram segmentation fault[/li]


What I don\'t understand is why I am having these problems and other people don\'t seem have ? Clearly some files are either not being loaded or not linked to. I am using downloaded files from the OZ site and using their zImage-SL-5500-40memory-24storage.bin file (not the debug version), as suggested for newbies!

Thinking about it should I be using OZ3.3.5 rather than 3.2? I must admit that I had though that I had downloaded was using OZ3.3.5 but perhaps I didn\'t and I am using OZ3.2 - is it possible that there is a conflict between OZ3.2 and using opie feed 1.03??!!

Another question,  should I change the format of my CF  to Ext2, but will I be able to flash the ROm from it using initrd.bin and zImage? On the OZ instal guide it says that cards should not be formatted ext2? So how would you flash the Rom then?

I appreciate your help. I am slowly beginning to learn. Final question, is their any documentation on the web relating to the file structure of OZ or other ROms and what is loaded onto internal strorage or internal memory (ram) or CF; i.e. bins/opts/qtpalmtop etc. etc.


Nigel Bamber
SL 5500 128 CF card ; Bluetooth Anycom CF
TKR v1.0 Cacko Kernel 32/30 memory layout

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
OZ - Symbolic links _
« Reply #5 on: February 09, 2004, 08:05:30 am »
There may be some incompatibility with the later opie ipks (in terms of the libraries), I don\'t know I\'ve never tried.

There are problems with symlinks on fat16/vfat cards (they aren\'t supported), this shouldn\'t cause issues for the most part as the symlink just points to the fat filesystem (and therefore exists on OZ\'s jffs2 filesystem), but sometimes there are other random symlinks which need to be created all on the fat fs - and this won\'t work.

You won\'t be able to flash with an ext2 card, but you could always flash then change the format, then change back if you want to flash again.

Don\'t worry about the errors except for the last one:

Quote
Qir:readDIr Entries: cannot read from directory :/mnt/ram segmentation fault

I presume that /mnt/ram does exist as you\'re running the right sort of kernel, but this may be an indication of the lib incompatibilities. I would recommend upgrading to 3.3.6pre1 (there are some caveats though, everything works fine, but you may need the compat libs. Nevertheless this is the way of the future and I\'m quite happy to help you getting it running).

Quote
I appreciate your help. I am slowly beginning to learn. Final question, is their any documentation on the web relating to the file structure of OZ or other ROms and what is loaded onto internal strorage or internal memory (ram) or CF; i.e. bins/opts/qtpalmtop etc. etc.

No problem. I don\'t have a RAM disk so nothing needs to be there. Basically all Qtopia/Qpie apps are stuck under /opt/QtPalmtop/ - in bin, lib, and so on. All of the system as it comes after you flash is on the internal flashROM, then if you install things to cf, sd (or ram) they are placed subdirs of /mnt/<mount point>/opt/QtPalmtop/ and symlinked to the appropriate location as if they had been installed to the flashROM.

The rest of the system is pretty much standard Linux.

Hope that helps a little.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

highfell

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://
OZ - Symbolic links _
« Reply #6 on: February 10, 2004, 11:49:03 am »
I have tried OZ3.3.5 now as I have it on the PC and I wanted to try and get something up and running (!) before trying the next version of OZ. My logic is that if I can get the OZ335 to work then I can get the other one to work as well.

Some success, Portabase (other roms version) is now installed (as an aside what an excellent program that is) and also some games (Backgammom, Froot etc. ).

I still cannot get Sheet to install - for some reason the actual program file itself that should go into the bin directory is not installed there ?? I have tried to symlink but without success. I am using the Hancom IPKs for the latest Sharp Rom. Any help?

With regard to EXT2, I formatted a CF disk to this format, but then discovered that I couldn\'t transfer any file to the CF (via a USB card reader) as the PC told me that the CF disk wasn\'t formatted - so I am back to square one on that one!?

Another question, is it possible to sync using Intellisync on OZ & OPIE? I have a business need to sync my Calendar & Contacts with Outlook. I could use Intellysync beforehand with TKR etc. but there doesn\'t appear to be PC link to create a serial connection (as we use NT in the office) using OZ/Opie , hopefully there is a workaround?

Thanks for your help as ever


Nigel Bamber
SL 5500 128 CF card ; Bluetooth Anycom CF
TKR v1.0 Cacko Kernel 32/30 memory layout

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
OZ - Symbolic links _
« Reply #7 on: February 11, 2004, 12:03:59 pm »
Quote
I am using the Hancom IPKs for the latest Sharp Rom. Any help?

You can\'t use these you have to grab the old version which went with the 2.38 ROMs

Quote
With regard to EXT2, I formatted a CF disk to this format, but then discovered that I couldn\'t transfer any file to the CF (via a USB card reader) as the PC told me that the CF disk wasn\'t formatted - so I am back to square one on that one!?

It won\'t work on Windows, but you can still transfer stuff across to it by using the cradle (and ssh/sftp or ftp or samba if you install it)

Quote
Another question, is it possible to sync using Intellisync on OZ & OPIE? I have a business need to sync my Calendar & Contacts with Outlook. I could use Intellysync beforehand with TKR etc. but there doesn\'t appear to be PC link to create a serial connection (as we use NT in the office) using OZ/Opie , hopefully there is a workaround?

The old version of intellisync works fine (as in the one which came with the old ROM). A serial ppp connection is doable, there were some scripts on the devnet and they may also be in the openzaurus.org FAQ.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

highfell

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • http://
OZ - Symbolic links _
« Reply #8 on: February 12, 2004, 05:22:10 pm »
In between times, I realised that I needed to use the old Hancom ones and with the exception of Presenter have installed sucessfully. I tried to follow the instructions on a HOW-to about installing it but when you understand the commands , follow them parrot fashion and it doesn\'t work you don\'t know what to do?

Regarding syncing, the only thing that I have found is syncing with a linus machine and all the advice is directed towards putting a script onto the PC. Can someone help me change the settings on the Zaurus or do I just put that script onto the Zaurus. I had already set up NT on the laptop sucessfully to sync with the Sharp Rom or TKR, so I assume its just the Zaurus that needs changing.

Since I\'m on a role for getting questions anwered, which book does anyone suggest for learning about linux. I  also have a spare PC I was going to instal Linux on and was thinking about getiing a RED Hat V9 book which came with intsallation disks. To begin with though I just want to know abour some of the commands on the scripts that I see like Tar, RM or Grep etc.

Thanks as always


Nigel Bamber
SL 5500 128 CF card ; Bluetooth Anycom CF
TKR v1.0 Cacko Kernel 32/30 memory layout