2008-07-22 06:06:30 Problem mounting jffs2
Vincent Puig (SPAIN)
Message: 59223
Hi all,
I am trying to pass the filesystem from nfs to jffs2, when I boot, I get this:
## Booting image at 20040000 ...
Image Name: Linux-2.6.22.18-ADI-2008R1-svn
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 742310 Bytes = 724.9 kB
Load Address: 00001000
Entry Point: 00138000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 138000
Linux version 2.6.22.18-ADI-2008R1-svn (vincent@canutet) (gcc version 4.1.2 (ADI svn)) #48 Tue Jul 22 11:52:32 CEST 2008
Hardware Trace Active and Enabled
Warning: limiting memory to 31MB due to hardware anomaly 05000263
Blackfin support (C) 2004-2007 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
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
text = 0x00001000-0x000fbbb0
rodata = 0x000fc000-0x0012986c
data = 0x0012a000-0x00138000
stack = 0x0012a000-0x0012c000
init = 0x00138000-0x00149000
bss = 0x00149000-0x00155050
available = 0x00155050-0x01eff000
DMA Zone = 0x01f00000-0x02000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 7874
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 console=ttyBF0,115200
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 30076k/32768k RAM, (68k init code, 1002k kernel code, 290k data, 1024k dma, 308k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Data A SRAM: 16 KB (9 KB free)
Blackfin Data B SRAM: 16 KB (16 KB free)
Blackfin Instruction SRAM: 48 KB (40 KB free)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
cm_bf537_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: 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
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
pfx: pfbits driver for bf5xx
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
arch/blackfin/mach-bf537/boards/cm_bf537.c:bfin_get_ether_addr: Setting Ethernet MAC to a random one
bfin_mac_mdio: 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: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Freeing unused kernel memory: 68k freed
dma_alloc_init: dma_page @ 0x01c53000 - 256 pages at 0x01f00000
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
What am I doing wrong, It worked well with nfs and ramfs.
Thanks.
QuoteReplyEditDelete
2008-07-22 11:09:08 Re: Problem mounting jffs2
Robin Getz (UNITED STATES)
Message: 59233
Vincent:
You told it :
>root=/dev/mtdblock2 rw rootfstype=jffs2
Which is good.
And compiled JFFS2 into the kernel:
> JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
which is also good.
but it did not find any maps/partitions. Have a look at:
https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:mtd#partitioning
-Robin
QuoteReplyEditDelete
2008-07-23 05:00:04 Re: Problem mounting jffs2
Vincent Puig (SPAIN)
Message: 59265
Ok, thanks Robin.
I am following that, but I don't find the default physical mapping driver "physmap-flash.0", which one should I modify??
I think it must be something about the file " arch/blackfin/mach-bf537/boards/cm_bf537.c " which looks like:
static struct mtd_partition bfin_spi_flash_partitions[] = {
{
.name = "bootloader",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_CAP_ROM
}, {
.name = "kernel",
.size = 0xC0000,
.offset = 0x40000
}, {
.name = "file system",
.size = 0x300000,
.offset = 0x00100000,
}
};
What should I do here?
QuoteReplyEditDelete
2008-07-23 15:16:19 Re: Problem mounting jffs2
Robin Getz (UNITED STATES)
Message: 59289
Vincent:
First thing is to make sure that your specific flash driver is working/installed properly.
What hardware are you testing on? and what flash does it have that you are trying to mount as JFFS2?
-Robin
QuoteReplyEditDelete
2008-07-24 03:55:02 Re: Problem mounting jffs2
Vincent Puig (SPAIN)
Message: 59305
I am using a EVAL board of Bluetechnix, with a Blackfin CM-BF537E module.
4MB of Flash Disk.
Maybe this helps:
Memory Type Start Address End Address Size Comment
FLASH Bank0 (PF4 Flag low) 0x20000000 0x201FFFFF 2MB 4MB Micron Flash, MT28F320J3FS-11
FLASH Bank1 (PF4 Flag high) 0x20000000 0x201FFFFF 2MB
Was that what you wanted?, If jffs2 is not posible, which one should I use?. Thank you and sorry, as I've already said, I am beginner.
QuoteReplyEditDelete
2008-07-24 04:14:44 Re: Problem mounting jffs2
Mike Frysinger (UNITED STATES)
Message: 59306
there is no flash driver in the kernel for the tiny board modules. if you search the forums you may find one.
QuoteReplyEditDelete
2008-07-24 05:46:16 Re: Problem mounting jffs2
Vincent Puig (SPAIN)
Message: 59344
Mike, I found nothing, could you send me the link if you know somewhere, please?.
If flash file system is not posible, which one would you use?, I need the information to keep although the board resets.
Thank you in advance.