Author Topic: free rom space on sl 5500 with openzaurus 5500 ??  (Read 6010 times)

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
free rom space on sl 5500 with openzaurus 5500 ??
« on: November 24, 2003, 09:39:23 pm »
All,

What is the free space remaining on ROM after an install of openzaurus 3.2??

On my system there are only about 2.2 mb remaining. This seems small. Is it normal?

Are there options? Is there a configuraiton howto??

Dan

Izydorr

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://www.daniel.pultusk.net
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #1 on: November 25, 2003, 03:28:55 am »
This is space that wasn\'t available for You when using Sharp ROM. This is where the system is being held. It\'s just a little bonus to RAM space. You can use it normally and istall software there.

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #2 on: November 25, 2003, 04:40:06 am »
Just a little clarification.

The 5500 has 16MB of FlashROM memory. The original Sharp ROM treats it as actual ROM, it is strictly read-only. OZ treats it as regular read-write memory and manages to squeeze itself into less than 14MB, making the two or so MB available for your files. Use this space for absolutely vital data - the FlashROM will keep it even if your Z goes without juice for months.

In addition to that, you still have the 64MB of RAM which the original Sharp ROM splits as 32MB main memory / 32MB filesystem. With OZ, you can choose the proportion between main memory and filesystem, depending on which kernel you download.

FlashROM is mounted at /, the filesystem portion of RAM is mounted at /mnt/ram. This means that when you have files in any directory under /mnt/ram, they are stored in RAM, otherwise they are stored in FlashROM (you can see the mount points by opening up Konsole and entering \"df -h\"). In the Settings ] System Info ] Storage screen, FlashROM is called \"Internal Storage\" and the RAM filesystem is called \"Internal Memory\".

z.

PS. just out of curiousity, does anyone have an idea what it would take to make the main memory / filesystem split dynamically adjustable? I think it could come in handy sometimes...
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #3 on: November 25, 2003, 08:31:11 am »
Quote
PS. just out of curiousity, does anyone have an idea what it would take to make the main memory / filesystem split dynamically adjustable? I think it could come in handy sometimes...

Shuffling the physical addresses around when you change the memory size shouldn\'t cause too many problems as I\'d assume this kind of thing happens anyway while the kernel is running. What might cause a problem is whether changing the total size dynamically rather than having it DEFINEd (is it, I\'ve no idea?) at compile time will introduce problems into the rest of the kernel - lots of changes, etc.

In the short term, if you really want something like this then rather than modifying the kernel you might think about creating a variable sized swap file in the disk part of the memory. That said, it isn\'t quite such a nice solution I agree. The Psion 5 could dynamically change it\'s storage vs. \'RAM memory\' ratio almost over the entire range of its available memory which is quite cool. I don\'t know how though.


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

jchung

  • Full Member
  • ***
  • Posts: 137
    • View Profile
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #4 on: November 25, 2003, 10:05:24 am »
It probably would be less headache to just have a swap file in the RAM area..
C700 w/ Cacko 1.21b | 5500 w/ tkcROM
C760 w/ Cacko 1.21b
Lexar 256MB SD | Viking 1GB CF
Netgear MA701 WiFi | Ambicom WL1100C WiFi
Sharp CE-AG06 Camera | PDAir Leather Case | PDAir 3 in 1 stylus | G2 PDA Screen Protector

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #5 on: November 25, 2003, 02:21:08 pm »
The reason for the question was I ran out of memory trying to install a package. Where do packages go? I assmume the ROM.

Dan

jchung

  • Full Member
  • ***
  • Posts: 137
    • View Profile
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #6 on: November 25, 2003, 02:56:06 pm »
where are you installing the packages to? / or /mnt/ram
C700 w/ Cacko 1.21b | 5500 w/ tkcROM
C760 w/ Cacko 1.21b
Lexar 256MB SD | Viking 1GB CF
Netgear MA701 WiFi | Ambicom WL1100C WiFi
Sharp CE-AG06 Camera | PDAir Leather Case | PDAir 3 in 1 stylus | G2 PDA Screen Protector

dansawyer

  • Sr. Member
  • ****
  • Posts: 293
    • View Profile
    • http://
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #7 on: November 25, 2003, 03:14:28 pm »
I don\'t know.

I just did a ipkg install *.pkg
 
df shows / is now at 82% use and /mnt/ram is at 1% use. What goes in ram anyway??  I am using a 40/24 split.

Is /mnt/ram saved across a reboot (I don\'t think so)

Is it saved across a battery exchange (I think so)

With the exception of power loss can we think of the 16mb of ROM and the 24 mb /mnt/ram as exchangeable??

Dan

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #8 on: November 26, 2003, 04:28:28 am »
Dan,

you need to install packages to a different destination. If you use plain \"ipkg install\" it all goes to /, i.e. the FlashROM. You want to install packages to /mnt/ram (the RAM filesystem), /mnt/card (your SD card) or /mnt/cf (your CF card). The way to do this is

ipkg -d <destination> install whatever.ipk

where <destination> is one of the destinations specified in /etc/ipkg.conf. By default these are root, ram, sd and cf.

Alternatively, you can use the GUI installer (Settings > Packages). When installing, there\'s a Destination list box where you can choose among available destinations.

There is one gotcha: if you try to install, say, to /mnt/cf when the CF card is not mounted, the packages will still end up in the FlashROM. But usually the .ipk itself is on a card so that shouldn\'t be a problem :wink:

Regarding the memory/filesystem ratio: had I known there\'d be so many responses I would\'ve started a new thread. The swapfile idea is quite obvious and elegant, I think. Shame I hadn\'t thought of it myself. Now if I could only find an applet with a slider that would adjust the swap file size in real-time  :twisted:

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #9 on: November 26, 2003, 12:35:27 pm »
@zenyatta:
There\'s an applet which uses opie-sh to turn it on and off (on killefiz), I\'d have thought that modifying this would be pretty easy. Actually, you could almost automate the process and have a script/daemon running at all times to check how much free memory/space you have and adjust as required, possibly after warning you (the wonders of opie-sh).

@dansawyer:
Quote
df shows / is now at 82% use and /mnt/ram is at 1% use. What goes in ram anyway?? I am using a 40/24 split.

This RAM is the same as the normal memory which you\'d be using with one of the Sharp ROMs. Personally I use the 64-0 (i.e. no storage) split and store any non-essential apps on an MMC card. Anything which I really need - libs, system utils, etc. - (and which is small enough) I stick in the flashROM.

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

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
free rom space on sl 5500 with openzaurus 5500 ??
« Reply #10 on: November 27, 2003, 05:27:10 pm »
@lardman:
For me the issue is strictly academic. I enjoy 512MB of CF sweetness so I run at 64-0 too... I doubt I will have an incentive to look at it more closely.

@dansawyer:
I just read your last post carefully, seems I hadn\'t answered your questions at all, had I? You assumptions are largely right but I\'m not sure whether /mnt/ram gets lost in a reboot. I believe as long as you don\'t do hard reboot (sticking a pin into the little hole in the middle of the back cover) it stays fine. It can perish if your Z runs out of energy or if you leave the battery out for too long. FlashROM stays OK with no energy.
As for why your /mnt/ram is full you\'ll just have to use Konsole or the file manager. A useful Konsole command is \"du -h -s /some/directory\" which tells you how much space /some/directory takes up.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)