Modify

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2578 closed defect (fixed)

/tmp only 1.0M though /proc/meminfo shows 6.0M of RAM

Reported by: anonymous Owned by: developers
Priority: normal Milestone:
Component: base system Version:
Keywords: Cc:

Description

Hi,

I installed OpenWRT White Russian 0.9 on a Linksys WAP54G with 6M of RAM using the Linksys webinterface firmware update function.
Everything worked fine but I have now the problem that OpenWRT assignes only 1.0M of RAM to /tmp.
So I'm not able to install additional packages or to perform another firmware upgrade.
I've already tried all recommended methods of installing a new image, but none worked for me because of insufficient /tmp space. I can't find any compatible image that's smaller than 1.0M.
Is there any possibility to increase the /tmp space? I would need at least 1.8M...
I've already tried to add 'size=2.0M' in the /tmp mount line of /sbin/mount_root but that has no effect.

Attachments (0)

Change History (11)

comment:1 Changed 10 years ago by anonymous

Only routers with a minimum of 4MB RAM and 16MB flash are supported.

comment:2 Changed 10 years ago by anonymous

You'r answer doesn't explain why only 1.0M is used for /tmp. There are 6MB RAM available.

comment:3 Changed 10 years ago by florian

  • Resolution set to worksforme
  • Status changed from new to closed

The ramdisk size calculation is done in /etc/preinit :

size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo)
mount none /tmp -t tmpfs -o size=$size

For a 16Mb system, it gives you 7Mb, for a 8Mb system, only 1Mb. If you are not happy with this value,just change the value of the l variable.

comment:4 Changed 10 years ago by anonymous

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Thanks for your answer. Unfortunately it doesn't help me :(

I've changed the l variable in /etc/preinit but 'df' shows still only 1.0M for /tmp after a reboot, even if I set 'mount none /tmp -t tmpfs -o size=2097152'

Do I have to do anything else than a reboot after editing /etc/preinit?

What could I do next?

comment:5 Changed 10 years ago by florian

  • Resolution set to wontfix
  • Status changed from reopened to closed

I guess the kernel refuses to setup too much memory for a ramdisk when there is only few RAM memory available. Anyway this is whiterussian and it is frozen, use kamikaze instead.

comment:6 Changed 10 years ago by anonymous

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Hi Florian,

I can't use kamikaze, since I don't know how to perform an upgrade with only 1.0M of /tmp available. :(

Isn't there any solution to get this issue solved or maybe an image that's small enough? Otherwise the box is useless for me.

Your help would be highly appreciated.

comment:7 Changed 10 years ago by loswillios

don't use the tickets as helpdesk. use tftp/serial/... to flash your device. or wget -O - |mtd or whatever you like

comment:8 Changed 10 years ago by anonymous

I wrote that none of these methods thats described in the wiki (inl. tftp, wget) works because of insufficient space.

comment:9 Changed 10 years ago by nbd

  • Resolution set to wontfix
  • Status changed from reopened to closed

devices with 8MB ram are not (and probably will not be for a while) supported by openwrt. since ram is already very limited on these devices, we will not increase the size of /tmp here

comment:10 Changed 10 years ago by anonymous

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Then someone should edit http://wiki.openwrt.org/WAP54GHowto and mention that OpenWRT doesn't support this device.

comment:11 Changed 10 years ago by olli

  • Resolution set to fixed
  • Status changed from reopened to closed

You can edit the wiki pages by yourself. Don't reopen again :P

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.