Author Topic: Newbie: Proper Upgrade Procedure  (Read 4278 times)

simbaB

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://www.oakcourt.dyndns.org/~andrew/
Newbie: Proper Upgrade Procedure
« on: May 21, 2005, 04:15:15 pm »
Hi.

I'm relatively experienced with Linux on x86 (5 years), but this is my first foray into Linux in the embedded space. I recently purchased a refurbished Sharp Zaurus SL-5500 "collie". It has OpenZaurus 3.5.3 (32/32 kernel) on it. I would like to upgrade my packages to the latest versions, but "ipkg upgrade" only gets through a few packages before running out of space--which ends up truncating the QT/Embedded libs (libqte) and then the Zaurus won't boot into Opie. How should I go about upgrading my OpenZaurus installation to the latest version of available packages? Below, there is the output of the SSH session I tried to do this over. As a final related question, is the 32/32 kernel the best option? I have a 256MB CF card that I can use with this device, so maybe something else would be better?

Thanks,
Andrew

Code: [Select]
root@collie:/proc# ipkg update
Downloading http://openzaurus.org/official/unstable/3.5.3/upgrades//Packages.gz
Inflating http://openzaurus.org/official/unstable/3.5.3/upgrades//Packages.gz
Updated list of available packages in /usr/lib/ipkg/lists/upgrades
Downloading http://openzaurus.org/official/unstable/3.5.3/feed/base//Packages.gzInflating http://openzaurus.org/official/unstable/3.5.3/feed/base//Packages.gz
Updated list of available packages in /usr/lib/ipkg/lists/base
Downloading http://openzaurus.org/official/unstable/3.5.3/feed/libs//Packages.gzInflating http://openzaurus.org/official/unstable/3.5.3/feed/libs//Packages.gz
Updated list of available packages in /usr/lib/ipkg/lists/libs
Downloading http://openzaurus.org/official/unstable/3.5.3/feed/console/Packages.gz
Inflating http://openzaurus.org/official/unstable/3.5.3/feed/console/Packages.gzUpdated list of available packages in /usr/lib/ipkg/lists/console
Downloading http://openzaurus.org/official/unstable/3.5.3/feed/devel/Packages.gzInflating http://openzaurus.org/official/unstable/3.5.3/feed/devel/Packages.gz
Updated list of available packages in /usr/lib/ipkg/lists/devel
Downloading http://openzaurus.org/official/unstable/3.5.3/feed/opie/Packages.gz
Inflating http://openzaurus.org/official/unstable/3.5.3/feed/opie/Packages.gz
Updated list of available packages in /usr/lib/ipkg/lists/opie
root@collie:/proc# ipkg upgrade
Upgrading ipkg on root from 0.99.147-r1 to 0.99.148-r0...
Downloading http://openzaurus.org/official/unstable/3.5.3/upgrades//ipkg_0.99.148-r0_arm.ipk
Upgrading libipkg0 on root from 0.99.147-r1 to 0.99.148-r0...
Downloading http://openzaurus.org/official/unstable/3.5.3/upgrades//libipkg0_0.99.148-r0_arm.ipk
Not installing libipkg0 (0.99.148-r0) on root -- already installed.
Upgrading libqte2 on root from 2.3.10-r12 to 2.3.10-r14...
Downloading http://openzaurus.org/official/unstable/3.5.3/upgrades//libqte2_2.3.10-r14_collie.ipk
ipkg: write: No space left on device
Upgrading libts-0.0-0 on root from 0.0cvs20050403-r18 to 0.0cvs20050505-r18...
Downloading http://openzaurus.org/official/unstable/3.5.3/upgrades//libts-0.0-0_0.0cvs20050505-r18_arm.ipk
ipkg: //usr/lib/ipkg/info/libts-0.0-0.control: No space left on device
ipkg: //usr/lib/ipkg/info/libts-0.0-0.postinst: No space left on device
ipkg: /usr/lib/ts/collie.so: No space left on device
ipkg: /usr/lib/ts/mk712.so: No space left on device
ipkg: /usr/lib/ts/pthres.so: No space left on device
ipkg: /usr/lib/ts/variance.so: No space left on device
ipkg: /usr/lib/ts/linear_h2200.so: No space left on device
ipkg: /usr/lib/ts/arctic2.so: No space left on device
ipkg: /usr/lib/ts/dejitter.so: No space left on device
ipkg: /usr/lib/ts/ucb1x00.so: No space left on device
ipkg: /usr/lib/ts/corgi.so: No space left on device
ipkg: /usr/lib/ts/linear.so: No space left on device
ipkg: /usr/lib/ts/h3600.so: No space left on device
ipkg: /usr/lib/ts/input.so: No space left on device
ipkg: Cannot create symlink from ./usr/lib/libts-0.0.so.0 to 'libts-0.0.so.0.1.1': No space left on device
ipkg: /usr/lib/libts-0.0.so.0.1.1: No space left on device
can't get //usr/lib/ipkg/info/libts-0.0-0.control open for read
Configuring ipkg
/usr/bin/update-alternatives: 185: cannot create /usr/lib/ipkg/alternatives/ipkg.new: No space left on device
postinst script returned status 2
ERROR: ipkg.postinst returned 2
Configuring libipkg0
ldconfig: file /opt/QtPalmtop/lib/libqte.so.2 is truncated

ldconfig: file /opt/QtPalmtop/lib/libqte.so is truncated

ldconfig: file /opt/QtPalmtop/lib/libqte.so.2.3.10 is truncated

ldconfig: file /opt/QtPalmtop/lib/libqte.so.2.3 is truncated

ldconfig: Can't create temporary cache file /etc/ld.so.cache~: No space left on device
postinst script returned status 1
ERROR: libipkg0.postinst returned 1
Configuring libqte2
ldconfig: file /opt/QtPalmtop/lib/libqte.so.2 is truncated

ldconfig: file /opt/QtPalmtop/lib/libqte.so is truncated

ldconfig: file /opt/QtPalmtop/lib/libqte.so.2.3.10 is truncated

ldconfig: file /opt/QtPalmtop/lib/libqte.so.2.3 is truncated

ldconfig: Can't create temporary cache file /etc/ld.so.cache~: No space left on device
postinst script returned status 1
ERROR: libqte2.postinst returned 1
Configuring libts-0.0-0
ipkg_conf_write_status_files: Can't open status file: //usr/lib/ipkg/status for writing: No space left on device
ipkg_conf_write_status_files: Can't open status file: /media/cf/packages//usr/lib/ipkg/status for writing: No space left on device
ipkg_conf_write_status_files: Can't open status file: /media/card/packages//usr/lib/ipkg/status for writing: No space left on device
pkg_write_filelist pkg=ipkg returned 28
pkg_write_filelist pkg=libipkg0 returned 28
pkg_write_filelist pkg=libqte2 returned 28
pkg_write_filelist pkg=libts-0.0-0 returned 28
root@collie:/proc# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock4           14.1M     14.0M    120.0k  99% /
/dev/mtdblock6           31.0M     18.0k     29.4M   0% /media/ram
tmpfs                    14.7M     52.0k     14.7M   0% /var
root@collie:/proc#
[span style=\'font-size:8pt;line-height:100%\']Collie (not used) | Poodle (OZ/Opie 3.5.4.2-rc2)
Nokia 770 (ITOS 2006) | IBM Thinkpad R51 (Debian)
Intel Core 2 Duo/Desktop Board DG965RY (Debian)[/span]

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Newbie: Proper Upgrade Procedure
« Reply #1 on: May 21, 2005, 04:43:33 pm »
The index files are too big, add something like

lists_dir ext /path/to/more/storage

to /etc/ipkg.conf. That will put the index files in /path/to/more/storage instead of /usr/lib/ipkg/lists
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

veekoo

  • Newbie
  • *
  • Posts: 7
    • View Profile
Newbie: Proper Upgrade Procedure
« Reply #2 on: May 23, 2005, 02:51:25 am »
Other good rules:

* Don't use GUI, but use ipkg directly on console. You can really
  control where everyging goes

* Don't do "ipkg upgrade". If you have root on internal flash, you don't
  have room for that. You may try upgrading system packages one-by-one.

* Install applications on memory card:
# ipkg -t /media/ram/tmp -d sd  package-name
# ipkg-link mount /media/card/packages

I'm currently using OpenZaurus 48/24 kernel on collie, but I'm not using
ram storage on anything, so I'm thinking of moving into 64/0 kernel. I have
all documents and installed software on SD card. I bought
512 Kb SD card (those are cheap), so I have CF slot free for upgrades or
wlan card, if I can find cheap one.

veekoo

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
Newbie: Proper Upgrade Procedure
« Reply #3 on: May 23, 2005, 03:48:51 am »
koen: Thanks for the info! I had no clue at all about that lists_dir setting in ipkg.conf. I've just been doing things with a mess of symlinks...
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

glmason

  • Newbie
  • *
  • Posts: 27
    • View Profile
Newbie: Proper Upgrade Procedure
« Reply #4 on: May 24, 2005, 08:37:57 am »
Quote
The index files are too big, add something like

lists_dir ext /path/to/more/storage

to /etc/ipkg.conf. That will put the index files in /path/to/more/storage instead of /usr/lib/ipkg/lists
[div align=\"right\"][a href=\"index.php?act=findpost&pid=80854\"][{POST_SNAPBACK}][/a][/div]

Does this mean that after I change the path/to/more/storage... that I can safely remove the lists in /usr/lib/ipkg/lists ?

Also, what are the package names for the things in the PIM. I would like to remove all PIM application that are safe to remove as I have no desire to use any of the PIM applications.

And one last irksomquestion where do I change the offset for the internet time. Even though I set city time (it is the first city in the city list is the default for system right?) I still GMT instead of GMT -5.

Larry

PS You probablly hate it when someone asks three questions in one post...but I thought I sneak it in and no one would notice.

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Newbie: Proper Upgrade Procedure
« Reply #5 on: May 24, 2005, 08:50:00 am »
Quote
Quote
The index files are too big, add something like

lists_dir ext /path/to/more/storage

to /etc/ipkg.conf. That will put the index files in /path/to/more/storage instead of /usr/lib/ipkg/lists
[div align=\"right\"][a href=\"index.php?act=findpost&pid=80854\"][{POST_SNAPBACK}][/a][/div]

Does this mean that after I change the path/to/more/storage... that I can safely remove the lists in /usr/lib/ipkg/lists ?

[div align=\"right\"][a href=\"index.php?act=findpost&pid=81231\"][{POST_SNAPBACK}][/a][/div]

Correct, those files only needed when you install software to figure out where to get the depencies from. Booting will be faster too, since ipkg checks the lists on startup too.
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Newbie: Proper Upgrade Procedure
« Reply #6 on: May 24, 2005, 08:59:56 am »
Quote
Also, what are the package names for the things in the PIM. I would like to remove all PIM application that are safe to remove as I have no desire to use any of the PIM applications.

Look at the name of the .desktop file (for example) (in ~/Applications/) and use ipkg to find out which package a file belongs to - I can't remember the command off the top of my head though I'm afraid ('ipkg provides' ??).


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