AnsweredAssumed Answered

Persistent file storage in BF537e

Question asked by samiksha on Oct 29, 2012
Latest reply on Nov 4, 2012 by Aaronwu

Hello,

 

I am using CM-BF537e on Bluetechnix Eval board.

I want to enable the JFFS2 so that I get a persistent file storage.

I am following the website

http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs

And have done all the settings accordingly in the file.

But there is no /flash folder created when I compile the kernel romfs folder and when I load the uImage.ext2 on the core, the

following error occurs:

 

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   Linux Kernel and ext2

   Created:      2012-10-26  16:10:04 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3003380 Bytes = 2.9 MiB

   Load Address: 00100000

   Entry Point:  002bd6dc

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 002bd6dc

Linux version 2.6.34.7-ADI-2010R1-svn4647 (engsg@beryl) (gcc version 4.3.5 (ADI/svn-4154) ) #36 Fri Oct 26 17:09:42 BST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Found mtd parition at 0x002d1000, (len=0x800000), moving to 0x01600000

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00100000-0x0022c738

  rodata    = 0x0022c738-0x0028bfac

  bss       = 0x0028c000-0x0029ce20

  data      = 0x0029ce20-0x002b2000

    stack   = 0x002b0000-0x002b2000

  init      = 0x002b2000-0x002d1000

  available = 0x002d1000-0x01600000

  rootfs    = 0x01600000-0x01e00000

  DMA Zone  = 0x01e00000-0x02000000

Hardware Trace Active and Enabled

Boot Mode: 1

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

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-through) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 5588

Kernel command line: root=/dev/mtdblock3 rw clkin_hz=25000000 earlyprintk=serial,uart0,115200 console=ttyBF0,115200

PID hash table entries: 128 (order: -3, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Memory available: 19356k/32768k RAM, (124k init code, 1201k kernel code, 535k data, 2048k dma, 9504k reserved)

Hierarchical RCU implementation.

NR_IRQS:138

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 48 KB (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

cm_bf537e_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.

msgmni has been set to 37

io scheduler noop registered

io scheduler cfq registered (default)

bfin-dma: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

loop: module loaded

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

Intel/Sharp Extended Query Table at 0x0031

Intel/Sharp Extended Query Table at 0x0031

Using buffer write method

cfi_cmdset_0001: Erase suspend on write enabled

RedBoot partition parsing not available

Using physmap partition information

Creating 3 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000340000 : "linux kernel(nor)"

0x000000340000-0x000000400000 : "file system(nor)"

uclinux[mtd]: RAM probe address=0x1600000 size=0x800000

Creating 1 MTD partitions on "RAM":

0x000000000000-0x000000800000 : "ROMfs"

bfin_mii_bus: probed

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

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

i2c /dev entries driver

TCP cubic registered

NET: Registered protocol family 17

dma_alloc_init: dma_page @ 0x009ca000 - 512 pages at 0x01e00000

VFS: Mounted root (ext2 filesystem) on device 31:3.

Freeing unused kernel memory: 124k freed

init: exec rc failed

init: Booting to single user mode

init: exec of single user shell failed

init: exec rc failed

init: Booting to single user mode

init: exec of single user shell failed

init: -/bin/sh exec failed

init: -/bin/sh exec failed

 

 

 

Also when I try to set and save the environment variables, it gives me the following errors:

bfin> set bootargs root=/dev/mtdblock3 rw clkin_hz=25000000 earlyprintk=serial,uart0,115200 console=ttyBF0,115200

bfin> saveenv

Saving Environment to Flash...

Error: start address not on sector boundary

Error: start address not on sector boundary

 

Thanks and regards,

Samiksha

Outcomes