Author Topic: Installing to CF or SD?  (Read 1650 times)

mr_clark

  • Newbie
  • *
  • Posts: 20
    • View Profile
Installing to CF or SD?
« on: September 22, 2004, 12:26:29 am »
I'm running OZ 3.3.5 and I read somewhere that you can install apps on the CF or SD cards but I can't seem to figure out what to do. Are there any How-tos on how to do this?

kic

  • Newbie
  • *
  • Posts: 47
    • View Profile
Installing to CF or SD?
« Reply #1 on: September 23, 2004, 12:04:48 pm »
I'm not sure on this, so I hope someone will come in and correct me if I'm not, but I just installed OZ yesterday, and it looks like you'd want to setup a destination in the packet manager. Open that up, go to (may not be the exact wording) Action --> Configuration, click on the Destination tab, and create a new destination. Label it whatever you want (sd, cf, etc) and make it /mnt/card or /mnt/cf and I think that'll do it. I'm not sure if you'll need to "select" the destination before you install or if it'll ask when you install, but give that a shot.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing to CF or SD?
« Reply #2 on: September 23, 2004, 12:15:41 pm »
Or from the command line:

check that /etc/ipkg.conf contains the lines (the important bit is the /mnt/*, the bit before it just gives the name which can be passed to ipkg using the -d flag):
dest sd /mnt/card
dest cf /mnt/cf

Then do:
ipkg install -d sd package_name.ipk
ipkg install -d cf package_name.ipk

etc.


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

mr_clark

  • Newbie
  • *
  • Posts: 20
    • View Profile
Installing to CF or SD?
« Reply #3 on: September 24, 2004, 03:38:29 pm »
Okay I've tried this with a couple of packages and keep getting the following error:

# ipgk install -d sd ice_bloxx_1.0.0_arm.ipk
postinst script returned status 2
ERROR: fbvncserver.postinst returned 2

I received the same error when trying to install zsafe.

My sd card is formatted as VFAT. Is that a problem. I did read somewhere about how you used to have the cars formatted ext2 or ext3 because of the symlinks it creates. But I thought that was fixed in later ROMs?

Thanks for your help.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing to CF or SD?
« Reply #4 on: September 24, 2004, 04:16:17 pm »
Quote
postinst script returned status 2

Out on a limb here...

I have a feeling that this is because in the postinst script (Which you'll find somewhere under /mnt/card/usr/lib/ipkg) the script is called using bash, and OZ doesn't have bash, only sh. A quick fix is to create a symlink like so:

ln -s /bin/sh /bin/bash

See whether that fixes it.


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

mr_clark

  • Newbie
  • *
  • Posts: 20
    • View Profile
Installing to CF or SD?
« Reply #5 on: September 24, 2004, 07:31:01 pm »
Nope. tried that and have the same issue.

I tried installing zsafe and ice_bloxx and a couple of other programs and get the same error.

Any suggestions?

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Installing to CF or SD?
« Reply #6 on: September 25, 2004, 10:44:44 am »
OZ doesn't have bash????!?! Good god!

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing to CF or SD?
« Reply #7 on: September 25, 2004, 11:05:32 am »
Quote
OZ doesn't have bash????!?! Good god!

I think it has ash? Something like that, seems to do much the same job, but probably cut down to save weight.

Quote
Nope. tried that and have the same issue.

I tried installing zsafe and ice_bloxx and a couple of other programs and get the same error.

Any suggestions?

Take a look in the postinst file (e.g. fbvncserver.postinst), they will be somewhere under:
/mnt/card/usr/lib/ipkg/
(for you as you installed to sd, for other mount points change accordingly).

See whether you can spot the problem. If not post the scripts here and I'll see whether I can spot anything.


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

mr_clark

  • Newbie
  • *
  • Posts: 20
    • View Profile
Installing to CF or SD?
« Reply #8 on: September 25, 2004, 02:43:20 pm »
I can't find a postinst file anywhere.

What am I doing wrong? Its very strange.

One other problem I'm having is reformatting my 64MB SD card. I try a 'mkfs.ext2 /dev/mmcda1' and it seems to work just fine but when I go to remount the SD Card it shows up as still formatted VFAT. I even tried manually doing a 'mount -t ext2 /dev....' but then it says its the wrong file format.

Slightly off topic here (but I want to try different things here and maybe get something that works) What ROMs do people recommend for the SL-5000D?

I was thinking of trying the ROM from Thekompany.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Installing to CF or SD?
« Reply #9 on: September 25, 2004, 05:17:19 pm »
Quote
# ipgk install -d sd ice_bloxx_1.0.0_arm.ipk
postinst script returned status 2
ERROR: fbvncserver.postinst returned 2

I'd not noticed that the package you are installing and the error come from different packages.

Have you tried 'ipkg remove fbvncserver' before the installation (to get rid of the error)?

Quote
Slightly off topic here (but I want to try different things here and maybe get something that works) What ROMs do people recommend for the SL-5000D?

I was thinking of trying the ROM from Thekompany.

Each to their own; I'd stick with OZ if I were you (but I'm biased of course).

Quote
One other problem I'm having is reformatting my 64MB SD card. I try a 'mkfs.ext2 /dev/mmcda1' and it seems to work just fine but when I go to remount the SD Card it shows up as still formatted VFAT. I even tried manually doing a 'mount -t ext2 /dev....' but then it says its the wrong file format.

That's odd; two possibilities :- your mkfs isn't working or you need to use fdisk to change the partition type flag. Not sure.


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

mr_clark

  • Newbie
  • *
  • Posts: 20
    • View Profile
Installing to CF or SD?
« Reply #10 on: September 26, 2004, 05:17:18 pm »
Your solution worked. I uninstalled the fbvncserver ipkg and now I can install other software without a problem.

Is there  another good VNC server available for my zaurus 5000D? I really liked fbvncserver with the view of the full unit.