Memory range address

Discussion in 'General Electronics Chat' started by Jane1, Jan 30, 2012.

  1. Jane1

    Thread Starter New Member

    Sep 28, 2011
    13
    0
    I have a Linux embeded device that consists
    CPU, BIOS,FLASH and SDRAM.

    Is there any way how to find out which memory range is assigned to BIOS and which addresses are assigned to flash and which SDRAM?
    (BIOS is 4Mb,Flash 64MB and SDRAM( 4 modules ) has 256MB)
    Thanks
     
  2. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,689
    2,750
    Try this:

    # dmesg | grep BIOS

    Also, look at the various files in /proc.
     
  3. Jane1

    Thread Starter New Member

    Sep 28, 2011
    13
    0
    # dmesg | grep BIOS
    shows NO results at all
    Which files should I try in /proc ?
    Thanks
     
  4. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,689
    2,750
    The files are pretty well named in /proc. Just 'cat' each one and see if you can find what you're looking for.

    FYI, I don't do this much, but the info you're looking for should be in there somewhere.

    Also, look manually at the entire dmesg output. Some of the info you are looking for will be there.
     
  5. cheezewizz

    Active Member

    Apr 16, 2009
    82
    10
    how about /proc/iomem ?
     
  6. Jane1

    Thread Starter New Member

    Sep 28, 2011
    13
    0
    I tried /proc/iomem

    root@me:/# more /proc/iomem
    00000000-0fffffff : System RAM
    00001000-002a0cbf : Kernel code
    002a0cc0-003350bf : Kernel data
    10480300-104803a8 : brcm-ehci0-IO
    10480300-104803a8 : ehci_hcd
    10480400-1048046f : brcm-ohci0-IO
    10480400-1048046f : ohci_hcd
    10480500-1048056f : brcm-ohci1-IO
    10480500-1048056f : ohci_hcd
    10510000-10511fff : 0000:01:00.0
    10510000-10511fff : sata_svw
    b0002800-b000287c : brcmnand-base
    b0510000-b0520000 : ext sata pci memory space
    d0000000-d8000000 : ext pci memory space

    but can not see where is SDRAM and FLASH od BIOS
     
  7. colinb

    Active Member

    Jun 15, 2011
    351
    35
    The flash memory is probably accessed as a block device, e.g., /dev/sda, rather than being mapped directly into CPU memory space.
     
Loading...