2010-02-05 07:27:14     BF537 Increase mtdblock size

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-05 07:27:14     BF537 Increase mtdblock size


Message: 85700   


Hey All,


I see there was a similar post, but this was with regards to having to large of a file system when building the uClinux image.  What I have is I want to be able to add and remove applications while the system is up and running.  I am using a BF537 Stamp board, which i believe has 64Mb of RAM.


Loading the image that comes on the board, uImage size is 3.7 Mb:


/dev/mtdblock0            8951      7352      1087  87% /


Loading the image that I created which has a uImage size of 6.2Mb:


/dev/mtdblock0           17905     13905      4000  78% /


As you can see the actual disk space increase when the size of the uImage increase.  What I would like to do is increase the amount of disk space.  How can I do this?  Is it a setting in the uClinux build or in uboot?








2010-02-05 12:43:21     Re: BF537 Increase mtdblock size

Mike Frysinger (UNITED STATES)

Message: 85708   


please read the FAQ (I get errors about "no free space" when generating EXT2 images):





2010-02-08 05:44:47     Re: BF537 Increase mtdblock size


Message: 85761   


Hey Mike,


I did read that FAQ and see now that it actually does apply to my problem as well.  However I do the following:


Edit /uClinux-dist-2008R1-RC8/vendors/AnalogDevices/bf537-stamp/Makefile:


change BLOCKS to 20480






And when I check the df, i still get the same result:




Filesystem           1k-blocks      Used Available Use% Mounted on


/dev/mtdblock0           17905     13905      4000  78% /




Below I copied the boot output of the image if it will help at all.  I have also tried this from tftp 2000000 as the FAQ said and it gave the exact same problem.





## Booting image at 02000000 ...

   Image Name:   uClinux Kernel and ext2

   Created:      2010-02-08  10:33:34 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    6487012 Bytes =  6.2 MB

   Load Address: 00001000

   Entry Point:  00156000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 156000

Linux version (root@ubuntu) (gcc version 4.1.2 (A   DI svn)) #2 Mon Feb 8 12:31:39 SAST 2010

Hardware Trace Active and Enabled

Warning: limiting memory to 43MB due to hardware anomaly 05000263

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Warning: Compiled for Rev 2, but running on Rev 3

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x000fc5c0

  rodata    = 0x000fd000-0x00145844

  data      = 0x00146000-0x00156000

    stack   = 0x00146000-0x00148000

  init      = 0x00156000-0x00171000

  bss       = 0x00171000-0x0017ff30

  available = 0x0017ff30-0x02b00000

  rootfs    = 0x02b00000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Instruction Cache Enabled

Data Cache Enabled (write-back)

Built 1 zonelists.  Total pages: 10922

Kernel command line: root=/dev/mtdblock0 rw

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 41920k/65536k RAM, (108k init code, 1005k kernel code, 418k da   ta, 1024k dma, 21064k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

SMSC LAN83C185: Registered new driver

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, m   dc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

uclinux[mtd]: RAM probe address=0x2b00000 size=0x1400000

Creating 1 MTD partitions on "RAM":

0x00000000-0x01400000 : "ROMfs"

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, r   egs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting the system clock to 2014-11-08 05:16:35 (1415423795)

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 108k freed

dma_alloc_init: dma_page @ 0x0016d000 - 256 pages at 0x03f00000

devpts: called with bogus options

yaffs Feb  8 2010 11:04:12 Installing.





2010-02-08 06:04:04     Re: BF537 Increase mtdblock size

Mike Frysinger (UNITED STATES)

Message: 85762   


verify the image was actually rebuilt in images/


you're also using the astfin fork of the dist ... we dont track what has changed in there.  you might want to try asking in the asterisk forums instead of the uclinux-dist forums.