[#4174] mount jffs2 as root fs fails to open init console on trunk now
Submitted By: Mingquan Pan
Open Date
2008-06-17 06:39:06 Close Date
2008-06-23 00:05:17
Priority:
Medium Assignee:
Mike Frysinger
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
08r1-8
App binary format:
N/A
Summary: mount jffs2 as root fs fails to open init console on trunk now
Details:
mount jffs2 as root fs fails to open init console on trunk now.It looks something wrong in rootfs.jffs2.
bfin> bootm 0x20040000
## Booting image at 20040000 ...
Image Name: Linux-2.6.24.7-ADI-2008R2-pre-sv
Created: 2008-06-16 19:26:38 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 909128 Bytes = 887.8 kB
Load Address: 00001000
Entry Point: 00188000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 188000
Linux version 2.6.24.7-ADI-2008R2-pre-svn4843 (test@uclinux51-ad9960-ad1836) (gcc version 4.1.2 (ADI svn)) #4 Tue Jun 17 03:26:31 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Warning: limiting memory to 56MB due to hardware anomaly 05000263
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00114f40
rodata = 0x00115080-0x00166124
bss = 0x00166140-0x00174d84
data = 0x00174d84-0x00188000
stack = 0x00186000-0x00188000
init = 0x00188000-0x001a3000
available = 0x001a3000-0x037ff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Reset caused by Software reset
Blackfin support (C) 2004-2008 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.2
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 MHz System Clock
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 14224
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 earlyprintk=serial,uart0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 55084k/65536k RAM, (108k init code, 1103k kernel code, 461k data, 1024k dma, 7756k 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 (41 KB free)
Security Framework initialized
Mount-cache hash table entries: 512
net_namespace: 64 bytes
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
stamp_init(): registering device resources
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
JFFS2 version 2.2. (NAND) B) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
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
bfin_mac_mdio: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (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
physmap platform flash device: 00400000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Using physmap partition information
Creating 4 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00120000 : "Kernel"
0x00120000-0x003f0000 : "RootFS"
0x003f0000-0x00400000 : "MAC Address"
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-01-01 03:40:11 UTC (13211)
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 108k freed
Warning: unable to open an initial console.
Case 1 ...FAIL
Case 1 ...FAIL
JFFS2 TEST FAIL
Follow-ups
--- Mingquan Pan 2008-06-18 07:05:55
From the reversion I do, it looks the check-in of 6772 in uclist-dist of yaffs
result in this bug.
Does this checkin only affect yaffs?
--- Mingquan Pan 2008-06-19 04:24:11
I do the diff of 6771 and 6772,finding that:
--- vendors/config/bfin/config.arch (revision 6771)
+++ vendors/config/bfin/config.arch (revision 6772)
@@ -44,9 +44,9 @@
MKIMAGE = $(ROOTDIR)/$(LINUXDIR)/scripts/mkuboot.sh
MKFS_EXT2 = $(ROOTDIR)/user/genext2fs/build-host/genext2fs
MKFS_CRAMFS = $(ROOTDIR)/user/cramfs/host_build/mkcramfs
-MKFS_JFFS2 = $(ROOTDIR)/user/mtd-utils/build/mkfs.jffs2
-MKFS_YAFFS = $(ROOTDIR)/user/blkfin-apps/yaffs-utils/utils/mkyaffsimage
-MKFS_YAFFS2 = $(ROOTDIR)/user/blkfin-apps/yaffs-utils/utils/mkyaffs2image
+MKFS_JFFS2 = $(ROOTDIR)/user/mtd-utils/mkfs.jffs2
+MKFS_YAFFS = $(ROOTDIR)/user/yaffs-utils/mkfs.yaffs
+MKFS_YAFFS2 = $(ROOTDIR)/user/yaffs-utils/mkfs.yaffs2
And user/mtd-utils/mkfs.jffs2 diffs with user/mtd-utils/build/mkfs.jffs2, to
use the latter one doesn't make to work properly.
--- Mike Frysinger 2008-06-19 05:01:44
if that's the case, i'll take a look
--- Mike Frysinger 2008-06-20 11:19:39
should be fixed in svn now
--- Mingquan Pan 2008-06-23 00:05:17
Yes.Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found