LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 01-12-2013, 04:04 AM   #1
ashishbpatil123
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Memory Issue in ARM 9 Embedded Linux.


I am writing an embedded application based on ARM 9 v5 processor, and using NAND of size 64 MB. My problem is that when I copied the text or binary files of sized 3-4 MB the free physical memory gets reduced by only few KB's, whereas ls -l show the file size in MB.

By repeating same process i reached one point where df command shows me 10 MB size is free and du show the total size 239MB.

how this can be happen as i have only 64MB of NAND how i am able to add files upto 239 MB of size.

please reply. i need help to solve this problem.

Thank in advanced.
 
Old 01-12-2013, 02:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,535

Rep: Reputation: 148Reputation: 148
What filesystem are you using for your flash?
 
Old 01-14-2013, 12:05 AM   #3
ashishbpatil123
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
We use JFFS2 File system.
 
Old 01-17-2013, 03:13 AM   #4
rocq
LQ Newbie
 
Registered: Jan 2013
Location: Netherlands
Distribution: Ubuntu
Posts: 21

Rep: Reputation: Disabled
Quote:
when I copied the text or binary files of sized 3-4 MB the free physical memory gets reduced by only few KB's, whereas ls -l show the file size in MB
Possibly this is because the file is cached and will actually be written later (reboot, interval, whatever). You can force writing to flash immediately with 'sync' (http://www.manpagez.com/man/8/sync/)

Quote:
By repeating same process i reached one point where df command shows me 10 MB size is free and du show the total size 239MB.
Take a look at your partition map: 'cat /proc/mtd'. What does that say? It is common for embedded systems to have a static partition map which the programmer has to provide at compile time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ARM Embedded Linux Prashant.Linux10 Linux - Newbie 0 10-22-2011 09:36 AM
rs232 communication speeds over Embedded linux ARM gigin Linux - Mobile 5 11-11-2010 01:21 AM
Compiling for embedded arm linux mvhurlburt Linux - Embedded & Single-board computer 1 06-16-2009 09:06 AM
embedded linux on ARM audiogreenie Linux - Embedded & Single-board computer 1 02-02-2009 11:52 AM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration