General :: Dealing With NonVolatile Memory In Embedded Applications
Nov 5, 2010
I currently work within an RTOS environment without an MMU and thus have access to the entire memory map of whatever application I'm working on. As is common in the embedded world, different parts of the memory map relate to different peripherals or different types of memory. For our next generation hardware, my company is looking at moving to an MMU-enabled processor and using Linux in some shape or form. Most of us in the dept are familiar with Linux, but we are not Linux gurus by any means. So how to explicitly indicate to Linux that we need certain portions of an application to be stored in NVRam and other portions of the application to NOT be based in NVRam has us confused. None of us have a clear understanding of how user memory is delved out by Linux and how we can influence Linux to use specific portions of the memory map at specific times.
For example in this new application, we expect to have 2 memory chips, both that are DDR3 interfaces. One is a standard DDR3 chip. The other is a non-volatile MRAM with a DDR3 interface so it can be accessed by a DDR3 controller and coexist with conventional DDR3 memory. But because the portion of the memory map that the MRAM will represent will be the only portion of non-volatile memory, we are unclear how we explicitly access MRAM addresses in an MMU-controlled environment. My hail-mary guess was that we would want to somehow tell Linux that we want the MRAM's memory space to be mounted as a RAM Drive and then we access that memory as though it is a file on a HD, except it is much higher speed since it will be at DDR3/MRAM speeds. Is there a better, more straight forward way to do this? Coming from an RTOS world, Linux is going to pose some serious challenges for us, but I think it will be the right move once we are all up to speed and are thinking Linux-centric.
View 1 Replies
ADVERTISEMENT
Dec 20, 2010
We have designed a board with Cirrus Logic(arm) processor, A Flash memory and some other peripherals have been connected to that. While building kernel we have selected MMU support. We have written few custom drivers for keypad,LED,LCD. But I would like to know how virtual memory mechanism can be helpful here even though there is no any hard disk has been connected. Where will be the virtual memory reside.
View 2 Replies
View Related
Mar 30, 2010
I am a newbie to Linux. I wanted to know how to explicitly manage memory for applications running on linux. For example, I want to create an application (using C) that has two separate physical address ranges associated with it. How do I assign explicitly those address ranges (the ranges are user defined) to the program?
View 7 Replies
View Related
Mar 7, 2010
What can you do when your linux system "can't find" dynamically linked libraries that are indeed installed in their correct locations? Case in point, I'm trying to run a program called 'ucanvcam':
oliver@human ~/installed/ucanvcam-0.1.6/bin $ ./ucanvcam
./ucanvcam: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
oliver@human ~/installed/ucanvcam-0.1.6/bin $ locate libgd.so.2
/usr/lib64/libgd.so.2.0.0
/usr/lib64/libgd.so.2
oliver@human ~/installed/ucanvcam-0.1.6/bin $ ldd ./ucanvcam
linux-gate.so.1 => (0xf7706000)
[...]
libgd.so.2 => not found
[...]
librt.so.1 => /lib32/librt.so.1 (0xf6b1e000)
How can I tell it to look for libgd.so.2 in /usr/lib64? And more importantly, why isn't it looking there, and where is it looking?
View 1 Replies
View Related
Jul 18, 2010
I have two NASes. I work off of one, and the other is used as a backup. As I have it set up now, it's slow. Running a backup takes a week. Even for 7 TB, with 1,979,407 files, this seems a bit outlandish,particularly as both systems are RAID-5 and the network is all gigabit. I've been digging about in the rsync man pages, and I really don't understand what differentiates the various topologies.Right now, all the processing is being done on the backup NAS, which has the main volume from the main NAS mounted locally over SMB. I suspect that the SMB overhead is killing me, particularly when dealing with lots of files.
I think what I need is to set up rsync on the main nas as a daemon, and then run a local rsync client to connect to it, which would hopefully allow me to completely avoid the whole SMB-in-the-middle affair, but aside from mentioning that it's there, I can find very little information on why one would want to use the daemon mode for rsync.
Here's my current rsync command line: rsync -r -progress --delete /cifs/Thecus/ /mnt/Storage/input? Is there a better way/tool to do this? Edit:Ok, to address the additional questions: The "Main" NAS is a Thecus N7700. I have additional modules installed that give me SSH, and it has rsync, but it's not in the $PATH, and I havn't figured out how to edit the local $PATH in a way that persists between reboots. The "Backup" NAS is a DIY affair, built around a 1.6Ghz Via Mobo with a Adaptec Hardware RAID card. It's running CentOS 5 with a full desktop environment. It's the hardware I'm running rsync from. (Gigabit is through a additional PCI card).
Further Edit: Ok, got rsync over SSH working (thanks, lajuette!).I had to do a bit of tweaking on my command line, I'm running rsync with the args:rsync -rum --inplace --progress --delete --rsync-path=/opt/bin/rsync sys@10.1.1.10:/raid/data/Storage /mnt/Storage (Note: I'm specifically not using -a, because I want to change the ownership to the local account, to not freak-out SELinux)
View 5 Replies
View Related
May 7, 2010
I have to figure out how to pass data between a Fortran application and a C++ application. The memory has to be locked/unlocked to prevent data corruption. I know very little about Fortran. I have done mutex lock/unlock stuff in Linux apps, multi-threaded, using mutex locks before.
Digging around on the Web, I do not find any info on a Fortran app including linux headers, library calls such as those in ipc.h, shm.h and sem.h. What is an approach to this problem?
View 1 Replies
View Related
Sep 25, 2010
I have installed ubuntu 10.04 using wubi installer..I am dual booting ubuntu with windows 7.I have alloted 8 gb of disk space while installing ubuntu.My first question is how can i know where the installed applications are stored and how much memory they occupy and how much free space is available out of the alloted 8gb.?My second one is now i have to install RAD 7.5 which requires 3.5 gb of free space..How can i expand the disk space without the need of reinstalling ubuntu.
View 3 Replies
View Related
Aug 17, 2010
configure IfModule mpm_worker_module and mpm_prefork_module by memory Example : I have 1 server ubuntu linux use Apache+PHP - How to configure :
[Code]...
for : 1Gb or 2 Gb - Have math configure <IfModule mpm_worker_module> </IfModule> by memmory?
View 1 Replies
View Related
Apr 20, 2010
I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)
View 4 Replies
View Related
Mar 18, 2011
I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.
View 1 Replies
View Related
Mar 19, 2011
I am having trouble with a script that is supposed to : a)take all the jpg pictures in a given directory/parameter and create thumbnails of it in a directory on the desktop.
e.g
from /here/are/the/files.jpg to ~/Desktop/parser-the/files.png. this is my script: all the individual parts work but it falls apart when i put them together.
Code:
for picturesource in $(ls ${1}/*.[jJ][pP][gG])
do
echo this is the picturesource $picturesource;
destination=~/Desktop/parser-"${picturesource}";
echo this is the destination $destination;
[Code]...
View 2 Replies
View Related
Jul 2, 2011
My notebook's LCD runs at 1920x1080 while my external LCD runs at 1920x1200. For the most part I use the external LCD, but there are times when I need to disconnect and use just the notebook's LCD. Because of the different resolutions I need to exit my X session and go back in otherwise the higher resolution of the external LCD gets cut off when I switch to the notebook's LCD. Other than forcing a non-native 1920x1080 on the external LCD, is there any other way to get both screens to show the full desktop without having to restart X? The GPU I have is an nVidia with the nVidia drivers.
View 10 Replies
View Related
Apr 18, 2011
I am using Ubuntu 10.04 and trying to get a Novatel USB760 to work. Initially,it is detected as a CD rather than a modem. So, I wrote a udev rule to eject it and that worked, but sometimes the CD comes back and remounts itself and then kicks the modem off and the connection dies. I tried various ways to fix this, but no luck. Finally, I just deleted all the cd files in the /etc/udev/rules.d and the /lib/udev/rules.d (if you don't delete these, udev recreates the files in /etc/udev/rules.d). That does work and now the cd reports hardware errors and does not mount and the modem works as it should.
Now, this works on the device that does not and never will have a CD or DVD attached to it, but on my laptop I don't want to do that as I would not have access to my DVD drive. Does anyone know of a way to make the udev rules ignore specific hardware and not try to create mounts or symbolic links for those devices. Ideally, I would like to blacklist the novatel CD part and not the modem, but I am unsure how or if this is possible.
View 4 Replies
View Related
Jul 10, 2011
On my Mac, I use Text wrangler to store all of my html and css code I use to create my web site. So far so good, or should I say so great because I love using Textwrangler. My problem is that when I am aay from my computer or on another computer with another OS, I can't use Textwrangler. I am looking for a way (and I hope this is possible), to store and edit my code online no matter where I am or what computer I am using.
For the best in Jazz, In Transition every Sunday from noon-2pm EST www.chuo.fm
View 1 Replies
View Related
Sep 20, 2010
I have a laptop. At home and at the office I hook it up to an extra monitor for extra screen space. When I do this I add some panels on the second monitor.
When I occasionaly use my laptop op the train, all my extra panels show up on my first screen, which get really cluttered.
If I delete the panels I have to recreate them when I connect my extra screen again.
Is there any way of configuring gnome so that you can easily recreate 'deleted' panels, or configure the extra panels to not show up unless the second screen is attatched ('lock panel to screen')?
View 3 Replies
View Related
Aug 22, 2010
This is my first post in these forums. I'm still quite new to Linux (using Mint 9) so please bear with my not-very-articulate question(s)When I boot up and open up a tty terminal I get a message saying "Memory corruption detected in low memory." I've done an extensive google search about the issue and it seems not uncommon. I ran a memtest with no errors returned, so I'm sure that there's nothing really wrong with the memory; apparently it's a bug in the kernel that's causing this.
View 2 Replies
View Related
Jan 17, 2010
I found from command 'top' that 8GB memory are used. However, using command 'ps' with some options to grep the running processes and then summing up the memory used by the running processes are less than 2 GB. Where has the used memory gone ?
View 7 Replies
View Related
Jun 7, 2011
I'm trying to install a SDK iso image onto an embedded linux platform. I was able to mount the image on the platform without problems. I also created a symbolic link called "bash" in the bin directory and had that point to busybox to satisfy the first line of code in the installer: "#!/bin/bash". However, when I run the installer, I get an error: "installer: applet not found"
I get the same error when I type "bash" on the command line. Is there a way to fix this? Here is the first few lines of code that causes the error:
#!/bin/bash
DEBUG=${DEBUG:="0"} # Enables debugging options
LC_OPTION=${LC_OPTION:="prompt"} # Licensing related variable
INSTALL_PATH=${INSTALL_PATH:=$HOME} # Default installation path
declare -r SCRIPT_NAME="`basename $0`"
declare -r SCRIPT_CALLED="$0 $*"
[Code]...
View 1 Replies
View Related
Jul 18, 2010
I am trying to extend my LVM and didn't feel like dealing with the terminal commands, so I downloaded system-config-lvm. But when I run it, I get the following readout:
Code:
sudo system-config-lvm
Traceback (most recent call last):
File "/usr/share/system-config-lvm/system-config-lvm.py", line 50, in <module>
from Volume_Tab_View import Volume_Tab_View
File "/usr/share/system-config-lvm/Volume_Tab_View.py", line 11, in <module>
from Properties_Renderer import Properties_Renderer
[Code]...
View 2 Replies
View Related
Jun 8, 2011
I'm looking for a way to remove embedded features from a PDF document. I recently purchased a Kindle DX. When I try to open some of my PDF files on the device, I get a message saying: this pdf cannot be opened due to embedded features not yet supported by kindleI'm looking for a way to remove the use of these features from the document so I can view it on my Kindle. I'm a Ubuntu Linux user. (I tried opening the PDF in Document Viewer and printing it to a PDF file by going to File->Print. This make it so I could open it on the Kindle DX, but the font is messed up and very difficult to read. This won't do.)
View 4 Replies
View Related
Nov 1, 2010
I am using embedded linux (xlinux) and i need to compile the programs on desktop pc.i am currently using eclipse.can someone suggest me how I can configure, to make a project thats compile the programs for the embedded linix where I need to run them.
View 1 Replies
View Related
Mar 13, 2010
I need to edit myfile in a script.I tried items below but it did not change anything.
myfile:
141 aaaa bb Jun 4'09su Jun15'09mo yyyy
206 vvv nn Jun 4'09su Jun16'09tu tt
208 bb yyyy Jun 4'09su Jun15'09mo vvvvvvvv
[Code].....
View 6 Replies
View Related
Jan 15, 2010
I need to use xdelta tool in my shell script for creating and patching diff files. My PC Linux environment (Ubuntu) has a package installer, and when I try typing xdelta on my commandline, it prompted to try "sudo apt-get install".. after which it directly accessed the packages from the Internet and installed it. So I am able to use xdelta from the command-line in my Ubuntu environment.
I need to also use xdelta on my target. I am using a NFS. The bootloader and kernel are on the target and the RFS is referred from the PC. How can I install the xdelta package on my target so that it recognises the command xdelta. On Ubuntu, "sudo apt-get install", fetched the below packages:[URL]..
View 1 Replies
View Related
Nov 14, 2010
But started to develop Embedded linux in ARM9 controller.
View 12 Replies
View Related
Feb 12, 2010
Which linux is best for learning embedded systems which has ide like MCU8051ide, piklab and ide for arm processor.
View 2 Replies
View Related
Jan 21, 2011
I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?
View 1 Replies
View Related
Feb 13, 2011
I am trying to; "bitbake base-image" and get the following:
Build Configuration:
BB_VERSION = "1.10.2"
METADATA_BRANCH = "master"
METADATA_REVISION = "8d22023"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "at91sam9g45ekes"
DISTRO = "angstrom"
DISTRO_VERSION = "2010.7-test-20110214"
TARGET_FPU = "soft"
Log data follows:
| NOTE: make -j 4 include/linux/version.h
CC=arm-angstrom-linux-gnueabi-gcc
-mno-thumb-interwork -mno-thumb
LD=arm-angstrom-linux-gnueabi-ld
| CHK include/linux/version.h
| NOTE: make -j 4 uImage
CC=arm-angstrom-linux-gnueabi-gcc
-mno-thumb-interwork
-mno-thumb LD=arm-angstrom-linux-gnueabi-ld
| CHK include/linux/version.h
| SYMLINK include/asm -> include/asm-arm
| make[1]: `include/asm-arm/mach-types.h' is up to date.
| CHK include/linux/utsrelease.h
| CALL scripts/checksyscalls.sh
| <stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
| <stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
| <stdin>:1321:2: warning: #warning syscall pselect6 not implemented
| <stdin>:1325:2: warning: #warning syscall ppoll not implemented
| <stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
| CHK include/linux/compile.h
| GEN .version
| CHK include/linux/compile.h
| UPD include/linux/compile.h
| CC init/version.o
| LD init/built-in.o
| LD .tmp_vmlinux1
| arm-angstrom-linux-gnueabi-ld: no machine record defined
| arm-angstrom-linux-gnueabi-ld: no machine record defined
| make: *** [.tmp_vmlinux1] Error 1
| FATAL: oe_runmake failed
| ERROR: Function do_compile failed
NOTE: package linux-2.6.30-r6: task do_compile: Failed
View 1 Replies
View Related
Jan 20, 2011
I am trying to convert a file using ffmpeg. I have this following code in a terminal.
ffmpeg -i introvideofinal -vcodec libx264 -acodec libfaac introvideofinalfinal.mp4
It returns an error dealing just with the h264 codec saying that I need to use a vpre parameter? I can't find any documentation on using the vpre parameter.
View 1 Replies
View Related
Sep 11, 2010
I am looking for tools for static/dynamic code analysis for embedded Linux system development (both device driver and user space apps). We will use Eclipse IDE and C++ lanuage. I hope the tools are easy-to-use, reliable, popular, better with good
supports, and not-too-expensive. I already find a list of tools at WiKi, however, I don't have time to try them all. Could anyboy please recommend me a few? If you can tell
me briefly about their pros and cons, that will be the bet.
View 1 Replies
View Related
May 16, 2011
I'm trying to solve an intermittant serial port problem on an embedded medical monitor. We have determined that the port is receiving characters from the external device but the serial thread is not transferring the chars from the buffer. Has anyone seen this before? Looking for some guidance on what to look for. this problem happens at start up about 1 in 50 boots. We're using kernal 2.6.29.6.
View 1 Replies
View Related