Author Topic: how to: install to sd/cf from shell (ipkg)  (Read 2684 times)

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
how to: install to sd/cf from shell (ipkg)
« on: February 08, 2004, 04:06:15 pm »
Hi,

I can\'t find this ? answered in any faq:

How do you install to sd/cf from the shell using ipkg?

I\'ve tried \"ipkg -d /mnt/cf install <ipk>\" but that doesn\'t seem to work quite right (put prog in /mnt/cf/home/QtPalmtop/bin instead of /mnt/cf/QtPalmtop/bin and created ipkg db in /mnt/cf/opt/??).

I\'m trying to set-up a shell script to install all of my apps automatically after I reflash a rom and I want some things to be installed to sd.

Thanks,

~ray

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
how to: install to sd/cf from shell (ipkg)
« Reply #1 on: February 08, 2004, 04:54:05 pm »
On OZ (and I presume on the Sharp ROM):

ipkg -d <name> install ipkg_package_name.ipk

where name is one of: sd, ram, root, cf

Quote
put prog in /mnt/cf/home/QtPalmtop/bin instead of /mnt/cf/QtPalmtop/bin

Why would it be placed in /mnt/cf/QtPalmtop/bin? This directory doesn\'t exist in the root (/QtPalmtop/bin) anyway. The files will be placed in /mnt/cf/home/QtPalmtop/bin or /mnt/cf/opt/QtPalmtop/bin and symlinked to /opt/QtPalmtop/bin (which is the same as /home/QtPalmtop/bin if I remember correctly).

Quote
I\'m trying to set-up a shell script to install all of my apps automatically after I reflash a rom and I want some things to be installed to sd.

You want ipkg-link. It may be possible to get it to work on the Sharp ROMs.


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

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
how to: install to sd/cf from shell (ipkg)
« Reply #2 on: February 08, 2004, 11:12:39 pm »
Quote
On OZ (and I presume on the Sharp ROM):
ipkg -d <name> install ipkg_package_name.ipk
where name is one of: sd, ram, root, cf

hmm...  I just tried it with cf but it complained it doesn\'t know what it is.  It claims it only knows about \"root\" and \"tmpinst\".  This is consistent with what I found earlier when I followed the help text to /etc/ipkg.conf.  Is this broken maybe in tkcrom 2.5.1??

Quote
Quote
put prog in /mnt/cf/home/QtPalmtop/bin instead of /mnt/cf/QtPalmtop/bin

Why would it be placed in /mnt/cf/QtPalmtop/bin? This directory doesn\'t exist in the root (/QtPalmtop/bin) anyway. The files will be placed in /mnt/cf/home/QtPalmtop/bin or /mnt/cf/opt/QtPalmtop/bin and symlinked to /opt/QtPalmtop/bin (which is the same as /home/QtPalmtop/bin if I remember correctly).

Well, I\'ve been installing apps to my sd card on my 5500 for over a year and I\'ve yet to see it make a home or opt dir on my sd card.  The apps I\'ve installed there can all be found in /mnt/card/QtPalmtop/bin etc.  That\'s with the tkcrom and the sharp rom before that.  Perhaps it\'s different in OZ?

Quote
Quote
I\'m trying to set-up a shell script to install all of my apps automatically after I reflash a rom and I want some things to be installed to sd.

You want ipkg-link. It may be possible to get it to work on the Sharp ROMs.

What does it do?  I\'ll take a look at it.

Thanks!

~ray

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
how to: install to sd/cf from shell (ipkg)
« Reply #3 on: February 08, 2004, 11:43:58 pm »
a quick follow-up...

I just checked /etc/ipkg.conf on my 5500 and it too only lists root and tmpinst.  So I think we\'re still missing something.

 0ray

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
how to: install to sd/cf from shell (ipkg)
« Reply #4 on: February 09, 2004, 12:08:22 am »
I had to modify the ipkg.conf on my 5600 and add the lines:

dest sd /mnt/card
dest cf /mnt/cf

Then I could install to either...
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF

raybert

  • Full Member
  • ***
  • Posts: 233
    • View Profile
how to: install to sd/cf from shell (ipkg)
« Reply #5 on: February 09, 2004, 02:34:05 pm »
Rich,

Thanks for the response.

A question: when you install this way, do you get home and opt dirs on your cf/sd media?

I edited my ipkg.conf, as you said, and the result was the same as when I typed the path directly on the command line (i.e. \"ipkg -d /mnt/cf install app.ipk\") -- I got home and opt dirs.

This is not what happens when I install to cf/sd using the Software applet (i.e. it puts the binaries in QtPalmtop/bin; no home; no opt).

So it must be doing something different.  I\'d like to know what.

~ray

RichS

  • Full Member
  • ***
  • Posts: 146
    • View Profile
    • http://
how to: install to sd/cf from shell (ipkg)
« Reply #6 on: February 09, 2004, 03:14:13 pm »
Yes & no. As I rmember, I did have an opt dir on the card. I still have a home dir. But I think the software I was trying to install didn\'t work anyway and I deleted it?

Okay, after a quick search, I succesfully installed prboom and slrn_0.9.7.4_arm.ipk

I unseucesssfully installed (and removed) Shopper.1.2.0.arm.ipk and  dragonbane2_1.0.5b_arm.ipk

I no longer have an opt dir, and the home dir has root/applications and tmp, all empty...

So half my installs worked and half didn\'t... That\'s about all I know...
SL-5600 Sharp v.1.32 ROM
CE-AG06 camera
Linksys WCF-12 wireless CF
D-Link DCF-660W wireless CF (dead!)
Sandisk 64meg SD, 256meg CF
Kingston 512meg CF
Viking 128meg SD, 1 gig CF