Author Topic: Internal Microdrive To Install Apps  (Read 6039 times)

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« on: February 15, 2006, 10:25:17 am »
I have noticed during this firsts days of problems with my new C3100 that when I install the most part of programs can be installed but don't work.
My idea is to use my C3100's internal microdrive to install lib's, apps and all, I think that internal flash is too small.
I want to have installed the rom in the internal flash and leave the rest for this type of memory that is also used like RAM (I don't know it's name   , maybe swap?)

What I should do to the microdrive for make work the programs?
How can I use the rest of the internal flash like "RAM"?

I have searched in the forum but I haven't found anything important.

Thanks in advance
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #1 on: February 15, 2006, 03:40:31 pm »
Quote
I have noticed during this firsts days of problems with my new C3100 that when I install the most part of programs can be installed but don't work.
My idea is to use my C3100's internal microdrive to install lib's, apps and all, I think that internal flash is too small.
I want to have installed the rom in the internal flash and leave the rest for this type of memory that is also used like RAM (I don't know it's name   , maybe swap?)

What I should do to the microdrive for make work the programs?
How can I use the rest of the internal flash like "RAM"?

I have searched in the forum but I haven't found anything important.

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

Make sure that symlinks are being made when you install to the microdrive - run ipkg-link to do this after installation (it should happen automatically, but I find that the graphical tool isn't so good).

As far as swap goes, it isn't quite the same as ram - I'd recommend putting this on the microdrive due to the amount of writing that takes place. Do a search for swap in this forum and you'll find heaps.
SL6000-L, RC12

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #2 on: February 15, 2006, 03:48:55 pm »
- the RAM is where the programs are executed
- the internal flash is comparable to the hard disk of a pc. packages can be  stored (ie installed) either on the internal flash or on the microdrive or other card or..
- swap is a part of the storage that the system can use as RAM  when the RAM is exhausted, ie when you run too many application at the same time

to install programs on your microdrive, you need to have a partition formatted with a unix filesystem (ext2 for instance)

see also:
http://mail.pdaxrom.org/contrib/docs/parti..._and_format.txt
and
http://www.pdaxrom.org/index.php?showid=43&menuid=8
« Last Edit: February 15, 2006, 03:49:11 pm by pgas »
SLC-860 cacko / senao wifi

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #3 on: February 15, 2006, 06:04:12 pm »
Ok, I got it, never do a swap file in any type of flash memory, so there is only one choice, the internal microdrive.

Quote
to install programs on your microdrive, you need to have a partition formatted with a unix filesystem (ext2 for instance)

I have the MD formated in ext2 (one question, diferences between ext2 and ext3??) but now I am thinking about make a partition of 2,5GB in fat and the rest (about 1,3GB) in ext2 or ext3 for apps. How much is recomended for swap file?

What I still do not understand are the symlinks, although a program or a library is in another place that is not the internal flash, can I do somethig to "tell the system" that all the programs and libraries are in MD? (I think that this is the problem why apps don't run on my device...)

PD: I have seen that by default, my internal microdrive has 3 partitions:
- /dev/hda1 9725 (1k-blocks) ext2
- /dev/hda2 9755 (1k-blocks) ext3
- /dev/hda3 3917024 (1k-blocks) vfat (now in ext2)
With what purpose are they there?

Thanks for your replies  
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #4 on: February 15, 2006, 07:33:07 pm »
Quote
Ok, I got it, never do a swap file in any type of flash memory, so there is only one choice, the internal microdrive.

Quote
to install programs on your microdrive, you need to have a partition formatted with a unix filesystem (ext2 for instance)

I have the MD formated in ext2 (one question, diferences between ext2 and ext3??) but now I am thinking about make a partition of 2,5GB in fat and the rest (about 1,3GB) in ext2 or ext3 for apps. How much is recomended for swap file?

What I still do not understand are the symlinks, although a program or a library is in another place that is not the internal flash, can I do somethig to "tell the system" that all the programs and libraries are in MD? (I think that this is the problem why apps don't run on my device...)

PD: I have seen that by default, my internal microdrive has 3 partitions:
- /dev/hda1 9725 (1k-blocks) ext2
- /dev/hda2 9755 (1k-blocks) ext3
- /dev/hda3 3917024 (1k-blocks) vfat (now in ext2)
With what purpose are they there?

Thanks for your replies  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114943\"][{POST_SNAPBACK}][/a][/div]

Difference between ext2 and ext3 is just journalling in ext3 (otherwise same file system).

You can tell your system about all the progs on the drive by calling 'ipkg-link mount /mnt/cf' (or wherever your MD is mounted) in one of your startup scripts after the drive is mounted, or just manually on the command line.
SL6000-L, RC12

andresgriego

  • Newbie
  • *
  • Posts: 48
    • View Profile
Internal Microdrive To Install Apps
« Reply #5 on: February 15, 2006, 08:29:24 pm »
I also read recently that ext3 isn't good for the Zaurus because an ext3 filesystem will take more CPU cycles than an ext2 will, to do an equivalent operation.

But I'm just a noob, so I could be full of it.  
SL-C3100 "Io"- XScale-PXA270 rev 7
Cacko 1.23 1029311005

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #6 on: February 16, 2006, 12:18:06 am »
Quote
What I still do not understand are the symlinks, although a program or a library is in another place that is not the internal flash, can I do somethig to "tell the system" that all the programs and libraries are in MD?

more info on ipk :
http://mail.pdaxrom.org/contrib/docs/ipk.txt
SLC-860 cacko / senao wifi

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #7 on: February 16, 2006, 03:19:58 am »
Pgas too many thanks for your links!! They are very useful!
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #8 on: February 19, 2006, 09:39:47 am »
Hi again!

I have made 3 partitions and formatted them:
- hda1 1,5GB in ext2
- hda2 65 in ext2 (I have made a swapfile of 64MB)
- hda3 2,5GB in vfat

I have installed all the programs in hda1 and they work except those:
- Firefox --> I can open it but any button work, I cant do anything with the bowser.
- VIM --> I can open it but instantly It closes doing anything
- ROX filer --> I cant open it
- Gaim --> Apparently it works ok but when I ad my MSN account, when I try to sign on, in the 3rd step of connection ("Retrieving buddy list") all the Gaim windows are closed automatically >_<

I have made a "ipkg-link mount /dev/ide" but I cant solve any problems. Is very important for me that Gaim works,

What I am doing wrong?
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #9 on: February 19, 2006, 02:13:48 pm »
Quote
- Firefox --> I can open it but any button work, I cant do anything with the bowser.
- VIM --> I can open it but instantly It closes doing anything
- ROX filer --> I cant open it
- Gaim --> Apparently it works ok but when I ad my MSN account, when I try to sign on, in the 3rd step of connection ("Retrieving buddy list") all the Gaim windows are closed automatically >_<

I have made a "ipkg-link mount /dev/ide" but I cant solve any problems. Is very important for me that Gaim works,

What I am doing wrong?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115329\"][{POST_SNAPBACK}][/a][/div]

It seems you are on the right track - especially if other programs installed on the microdrive are working. Have you tried starting these programs from a terminal to see if you get any messages?
SL6000-L, RC12

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #10 on: February 19, 2006, 05:41:57 pm »
Quote
It seems you are on the right track - especially if other programs installed on the microdrive are working. Have you tried starting these programs from a terminal to see if you get any messages?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115351\"][{POST_SNAPBACK}][/a][/div]

I have tried and I get this messages:
- When I try to sign on, in the 3rd step of connection ("Retrieving buddy list") and all the Gaim windows are closed automatically, the terminal says "aborted"
- When I run ROX Filer I have this message:
Code: [Select]
# rox
#
(ROX-Filer:23649): GLib-GObject-WARNING **: cannot register existing type `GtkIconTheme'

(ROX-Filer:23649): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `'
- With VIM I have this:
Code: [Select]
vim: relocation error: vim: undefined symbol: __divsi3
                                                                                         #
- With Firefox I havent any message

What I am doing wrong?  
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #11 on: February 19, 2006, 06:53:41 pm »
Quote
Quote
It seems you are on the right track - especially if other programs installed on the microdrive are working. Have you tried starting these programs from a terminal to see if you get any messages?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I have tried and I get this messages:
- When I try to sign on, in the 3rd step of connection ("Retrieving buddy list") and all the Gaim windows are closed automatically, the terminal says "aborted"
- When I run ROX Filer I have this message:
Code: [Select]
# rox
#
(ROX-Filer:23649): GLib-GObject-WARNING **: cannot register existing type `GtkIconTheme'

(ROX-Filer:23649): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type `'
- With VIM I have this:
Code: [Select]
vim: relocation error: vim: undefined symbol: __divsi3
                                                                                         #
- With Firefox I havent any message

What I am doing wrong?  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=115360\"][{POST_SNAPBACK}][/a][/div]

The vim error is covered in [a href=\"https://www.oesf.org/forums/index.php?showtopic=6390]this old thread[/url], and the glib error also seems to be library related. Do you have different or strange versions of libraries installed? Which version of pdaXrom are you using?
SL6000-L, RC12

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #12 on: February 20, 2006, 11:34:29 am »
As far as I know I havent any strange versions of libraries installed.
I use the last version of pdaXrom 1.1.0
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #13 on: February 20, 2006, 12:19:57 pm »
where did you find the applications?
there:
http://mail.pdaxrom.org/1.1.0beta1/ ?
SLC-860 cacko / senao wifi

Yoru

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
    • http://
Internal Microdrive To Install Apps
« Reply #14 on: February 21, 2006, 04:22:29 am »
yes, all the apps I have are from pdaxrom.org
C3100 with pdaXrom
1GB SD Sandisk EXTREME III
4GB CF Sandisk EXTREME III
CF D-Link Air 660W