2009-01-06 01:41:24 Increasing RAM size on BF561 Platform
Manu AS (INDIA)
Message: 67420
I am working on BF-561 platform with SDRAM size 128MB.
I have configured the SDRAM size to 96 MB through Make menuconfig -> Kernel Settings -> Blackfin Processor options -> Board Specific issues -> SDRAM Memory size in MBytes = 96 and SDRAM Memory Addess Width =10.
When I boot the board and see MemTotal, it shows only 58MB.
root:~> cat /proc/meminfo
MemTotal: 58156 kB
MemFree: 52504 kB
Buffers: 84 kB
Cached: 1120 kB
SwapCached: 0 kB
Active: 276 kB
Inactive: 924 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 58156 kB
LowFree: 52504 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 36 kB
Writeback: 0 kB
Mapped: 0 kB
Slab: 4252 kB
CommitLimit: 29076 kB
Committed_AS: 0 kB
PageTables: 0 kB
VmallocTotal: 0 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
My question is "How to get the complete memory available when the system boots?"
QuoteReplyEditDelete
2009-01-06 01:49:15 Re: Increasing RAM size on BF561 Platform
Mike Frysinger (UNITED STATES)
Message: 67422
post the entire boot output
QuoteReplyEditDelete
2009-01-06 06:02:42 Re: Increasing RAM size on BF561 Platform
Manu AS (INDIA)
Message: 67467
Hi Mike,
Following is my boot output.
Linux version 2.6.16.11.ADI-2006R1blackfin (manu@babbage) (gcc version 3.4.5 (ADI 2006R1)) #47
2 Tue Jan 6 13:22:29 IST 2009
Blackfin support (C) 2004 Analog Devices, Inc.
ADSP-BF561 Rev. 0.768
uClinux/BF561
Blackfin uClinux support by blackfin.uclinux.org
Processor Speed: 500 MHz core clock and 100 Mhz System Clock
Board Memory: 96MB
Memory map:
text = 0x100000-0x1f07c8
data = 0x208868-0x21a8ec
bss = 0x21a8f0-0x2b6c30
rootfs = 0x5200000-0x5f00000
stack = 0x20a000-0x20c000
Command line: 'root=/dev/mtdblock0 rw'
Instruction Cache Enabled
Data Cache Enabled (write-through)
Hardware Trace Enabled
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 rw
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Physical pages: 3c00
Memory available: 58044k/96221k RAM, (47k init code, 961k kernel code, 624k data, 36864k dma)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin DATA_A SRAM: 16 KB
Blackfin DATA_B SRAM: 16 KB
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin DMA Controller for BF561
ezkit_init(): registering device resources
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered
io scheduler cfq registered (default)
ADI Video Driver v1.10e
Configured for ADV7180
PAL Camera found [6]
ADI KeyPad Driver v1.10e
ADI Audio Driver v1.45e
Configuring Audio Ineterrupts...
Audio: IRQ 71 is installed successfully.
Audio: IRQ 30 is installed successfully.
enable_irq(71) unbalanced from 00181bdc
enable_irq(30) unbalanced from 00181be2
Configuring Audio Ineterrupts completed
Core B Loader Module enabled
LcdDriver v1.10e
BlackFin BF533 serial driver version 2.00 With DMA Support
RAMDISK driver initialized: 8 RAM disks of 4096K size 1024 blocksize
PPP generic driver version 2.4.2
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>
SMC_PROBE Flash address:20070000
MAC SET FROM FLASH
MAC ADDRESS: 00:80:01:80:02:80
Blackfin BF561 SMC91x interrupt setup: flag PF9, irq 55
eth0: SMC91C11xFD (rev 2) at 2e000600 IRQ 55 [nowait] [throttle_tx]
eth0: Ethernet addr: 00:80:01:80:02:80
uclinux[mtd]: RAM probe address=0x5200000 size=0xd00000
Creating 1 MTD partitions on "RAM":
0: 0x00000000-0x00d00000 : "EXT2fs"
uclinux[mtd]: set EXT2fs to be root filesystem
BF5xx flash: probing 16-bit flash bus
BF5xx flash: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
BF5xx flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Using static partition definition
Creating 5 MTD partitions on "BF5xx flash":
0: 0x00000000-0x000a0000 : "Bootloader"
1: 0x000a0000-0x00200000 : "DefaultKernel"
2: 0x00200000-0x00600000 : "VpKernel"
3: 0x00600000-0x00700000 : "CoreB"
4: 0x00700000-0x00f00000 : "JFFS2"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 44k freed (0x1f1000 - 0x1fb000)
dma_alloc_init: dma_page @ 0x001f7000 - 256 pages at 0x05f00000
SMC_ENABLE Flash address:20070000
eth0: link down
PPPoE options file exits in flash
I am setting local IP
QuoteReplyEditDelete
2009-01-06 06:09:01 Re: Increasing RAM size on BF561 Platform
Mike Frysinger (UNITED STATES)
Message: 67469
you're using an old version. 2008R1.5 is the latest release. if you were running something up to date, the kernel automatically would have told you to read the FAQ about anomaly 263.
QuoteReplyEditDelete
2009-01-06 22:53:51 Re: Increasing RAM size on BF561 Platform
Manu AS (INDIA)
Message: 67500
I need to use the old release only (2006 release) for one of our product.
There must be some way to increase the RAM size here also.
Any suggestions are greatly appreciated.
QuoteReplyEditDelete
2009-01-06 23:48:04 Re: Increasing RAM size on BF561 Platform
Mike Frysinger (UNITED STATES)
Message: 67501
as i said, read the FAQ:
http://docs.blackfin.uclinux.org/doku.php?id=faq
QuoteReplyEditDelete
2009-01-07 07:43:03 Re: Increasing RAM size on BF561 Platform
Robin Getz (UNITED STATES)
Message: 67553
Manu:
If your product is using an old revision of the chip - there is no way. As Mike stated (three times) - check the FAQ for more info.
-Robin