×

Discussion Board

Results 1 to 8 of 8

Thread: Question on ram

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Question on ram

    Good day,

    I have read that the file server in the user space can access the local media LDD in the kernel space, which in turn can interact with the PDDs like the nand media driver.

    Can we access the ram by accessing the local media LDD (ELOCD.LDD)?

    Is the ram registered with the LDD?

    If we cannot do that, how then could we access the ram?

    Thanks in advance.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Question on ram

    As far I know, a user-mode app can only access virtual memory addresses (of its own process), and not [D]RAM directly. You'd need to be able to write and install kernel-mode code (such as a device driver) to bypass that, and Nokia's Symbian phones does not allow user-installable arbitrary device drivers.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: Question on ram

    Note that the Wiki contains the complete book "Symbian OS Internals", http://www.developer.nokia.com/Commu...n_OS_Internals
    It should provide some details about memory management and the driver model.

  4. #4
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: Question on ram

    Good day,

    thanks for the replies.

    Another question is that is the Internal Ram different from the Dram that is used as the memory?

    When we refer to physical memory, we are referring to the Dram?

    Thanks.

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Question on ram

    Phones usually have both DRAM and NAND Flash.

    The NAND Flash is divided to ROM (firmware, Z-drive, not writable), and writable, non-volatile phone storage memory (C-drive). There may be also a separate Flash memory as internal "mass storage", the E-drive). If there is no internal mass storage, an external memory card may be supported (E-drive, if no internal mass storage, and F-drive if internal mass storage is E).

    DRAM is allocated in a single-CPU device to the telephony software (usually a fixed block taken from the higher addresses, in the case of Nokia phones about), and the rest (most of it) is given to the application OS (Symbian).

    Symbian also allocates a chunk of DRAM to a RAM drive (D-drive) for temporary files/content (lost at reboot).
    Last edited by petrib; 2011-09-14 at 09:34.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: Question on ram

    Quote Originally Posted by mouse_321 View Post
    Another question is that is the Internal Ram different from the Dram that is used as the memory?

    When we refer to physical memory, we are referring to the Dram?
    In the everyday context, all "internal RAM", DRAM, "physical memory" are referring the same thing, the actual operating memory of a given system, with (more or less) direct read-write access by the CPU.

  7. #7
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: Question on ram

    Quote Originally Posted by wizard_hu_ View Post
    In the everyday context, all "internal RAM", DRAM, "physical memory" are referring the same thing, the actual operating memory of a given system, with (more or less) direct read-write access by the CPU.
    Not necessarily... True - RAM, DRAM - refers to the same memory, which is usually SDRAM (LPDDR or LPDDR2 these days). This is the memory, that is physically connected to the SoC and controlled using memory controller (DMC - dynamic memory controller). Some controllers allow interfaces to other types of memory (NAND, NVRAM, SDRAM etc.).

    But internal RAM is a static RAM that lives on the SoC itself (this is why it's called internal). SymbianOS does not generally make use of this memory, so no mapping exists. One of exceptions, when this memory is used is during RAM defrag, but this has to be implemented by the baseport. In such case - internal RAM is accessed from low-level code directly- program that executes the defragmentation has to be copied there to ensure, that it will be able to execute correctly whilst external memory is manipulated.

    mouse_321 - what is the reason for using this internal memory anyway? Why are you asking this?
    Last edited by formiaczek; 2011-09-14 at 22:31. Reason: typo

  8. #8
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: Question on ram

    Quote Originally Posted by mouse_321 View Post
    When we refer to physical memory, we are referring to the Dram?
    Most likely we do. Also, of course - referring to physical memory means that we are accessing it using a physical address instead of virtual one. (google for virtual memory if you're not familiar with this).

Similar Threads

  1. question
    By yanhuy in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-12-19, 09:49
  2. a question about command and a question about s60
    By t4kesting in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-24, 08:21
  3. a question about run
    By billqu in forum Symbian
    Replies: 3
    Last Post: 2004-10-09, 01:44
  4. Replies: 1
    Last Post: 2003-04-14, 03:14
  5. question
    By pbau18 in forum Symbian
    Replies: 1
    Last Post: 2003-03-18, 12:47

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×