LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2012, 12:59 AM   #1
zxlwyx9219
LQ Newbie
 
Registered: Jun 2011
Posts: 16

Rep: Reputation: Disabled
Question Sdram map


Hi :
I am a newby on linux driver developments. Nowadays I came cross a problem on the SDRAM mapping.
at the beginning of the system starting, i kept a reserved SDRAM for the jpeg driver as: s3c64xx: 4194304 bytes SDRAM reserved for jpeg at 0x5dbf8000;
at the jpeg driver, i used the ioremap founction to get the virtual address of the reserverd SDRAM(0x5dbf8000),but the ioremap says:
/*
* Don't allow RAM to be mapped - this causes problems with ARMv6+
*/
if (WARN_ON(pfn_valid(pfn)))
return NULL;
after ioremap i got the "NULL" pointer, so the jpeg driver failed. I didn't understand. So can anybody could show me how I could get the reserverd SDRAM for the jpeg driver?
I cat /proc/iomem, and it says:
50000000-5fffffff : System RAM
78800000-78bfffff : s3c-jpeg ........

Thanks very much!
lewis
 
Old 05-03-2012, 01:51 AM   #2
zxlwyx9219
LQ Newbie
 
Registered: Jun 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zxlwyx9219 View Post
Hi :
I am a newby on linux driver developments. Nowadays I came cross a problem on the SDRAM mapping.
at the beginning of the system starting, i kept a reserved SDRAM for the jpeg driver as: s3c64xx: 4194304 bytes SDRAM reserved for jpeg at 0x5dbf8000;
at the jpeg driver, i used the ioremap founction to get the virtual address of the reserverd SDRAM(0x5dbf8000),but the ioremap says:
/*
* Don't allow RAM to be mapped - this causes problems with ARMv6+
*/
if (WARN_ON(pfn_valid(pfn)))
return NULL;
after ioremap i got the "NULL" pointer, so the jpeg driver failed. I didn't understand. So can anybody could show me how I could get the reserverd SDRAM for the jpeg driver?
I cat /proc/iomem, and it says:
50000000-5fffffff : System RAM
78800000-78bfffff : s3c-jpeg ........

Thanks very much!
lewis

I now found the questions, None replied but always thanks the same!
 
  


Reply

Tags
linux



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
Add your local knowledge to the map with Google Map Maker for the United States mjolnir General 4 05-04-2011 04:27 PM
how to find how much memory of SDRAM does my application use ? sunr2007 Linux - Embedded & Single-board computer 2 02-22-2010 10:29 AM
Problem using cramfs as rootfs in SDRAM luklem Linux - Embedded & Single-board computer 1 07-28-2009 12:18 PM
Normal SDRAM in Sun SparcStation 5 Jestrik Solaris / OpenSolaris 1 03-14-2004 11:49 AM
SDRAM vs. DDR Mux General 6 10-29-2002 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration