2009-08-18 03:06:19 无法启动jffs2文件系统
杨 永标 (CHINA)
Message: 78971
设置后setenv bootargs root=/dev/mtdblock2 rw rootfstype=jffs2
Hit any key to stop autoboot: 0
bfin> setenv bootargs root=/dev/mtdblock2 rw rootfstype=jffs2
bfin> tftp 1000000 vmImage
Using Blackfin EMAC device
TFTP from server 192.168.0.2; our IP address is 192.168.0.15
Filename 'vmImage'.
Load address: 0x1000000
Loading: #################################################################
####
done
Bytes transferred = 1004105 (f5249 hex)
bfin> bootm 1000000
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2009-08-18 6:47:42 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 1004041 Bytes = 980.5 kB
Load Address: 00001000
Entry Point: 001beba4
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001beba4
就一直无法启动了
TranslateQuoteReplyEditDelete
2009-08-18 03:22:07 Re: 无法启动jffs2文件系统
Yi Li (CHINA)
Message: 78976
你的kernel 没有启动,还没有执行到load文件系统的地方kernel就hang住了。
QuoteReplyEditDelete
2009-08-18 03:28:17 Re: 无法启动jffs2文件系统
杨 永标 (CHINA)
Message: 78977
但如果我不修改bootargs ,则能启动如果过程,但找不到文件系统
## Booting kernel from Legacy Image at 20000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2009-08-18 6:47:42 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 1004041 Bytes = 980.5 kB
Load Address: 00001000
Entry Point: 001beba4
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001beba4
Linux version 2.6.28.10-ADI-2009R1 (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #
147 Mon Aug 17 23:47:39 PDT 2009
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00132970
rodata = 0x00132970-0x0018adb0
bss = 0x0018b000-0x001a5d44
data = 0x001a5d44-0x001ba000
stack = 0x001b8000-0x001ba000
init = 0x001ba000-0x001cf000
available = 0x001cf000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial
,uart0,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [ttyBF0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 62084k/65536k RAM, (84k init code, 1222k kernel code, 542k dat
a, 1024k dma, 576k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (43 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_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
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
bfin-jtag-comm: initialized
bfin-dma: initialized
simple-gpio: now handling 40 GPIOs: 0 - 39
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_
clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
physmap platform flash device: 00300000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 4096KiB chip to 3072KiB
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "bootloader(nor)"
0x00040000-0x00200000 : "linux kernel(nor)"
0x00040000-0x00200000 : "linux kernel(nor)"
physmap-flash.0: failed to claim resource 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc00500, dma channel@7
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc03400, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base
@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
dma_alloc_init: dma_page @ 0x002cf000 - 256 pages at 0x03f00000
TCP cubic registered
NET: Registered protocol family 17
Distributed Switch Architecture driver version 0.1
eth0: detected a KSZ8893M switch
dsa slave smi: probed
rtc-bfin rtc-bfin: setting system clock to 1970-03-01 01:50:14 UTC (5104214)
List of all partitions:
1f00 256 mtdblock0 (driver?)
1f01 1792 mtdblock1 (driver?)
1f02 1024 mtdblock2 (driver?)
No filesystem could mount root, tried: ext2 cramfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,0)
TranslateQuoteReplyEditDelete
2009-08-18 04:10:37 Re: 无法启动jffs2文件系统
Yi Li (CHINA)
Message: 78983
Try:
setenv bootargs root=/dev/mtdblock2 rw rootfstype=jffs2 earlyprintk=serial
,uart0,57600 console=ttyBF0,57600
你刚才关掉了boot console.
同一问题,请不要提新的thread。
-Yi
QuoteReplyEditDelete
2009-08-18 04:29:04 Re: 无法启动jffs2文件系统
杨 永标 (CHINA)
Message: 78986
出现了新的问题?
## Booting kernel from Legacy Image at 20000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2009-08-18 7:58:49 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 987137 Bytes = 964 kB
Load Address: 00001000
Entry Point: 001b0ba4
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001b0ba4
Linux version 2.6.28.10-ADI-2009R1 (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #
149 Tue Aug 18 00:58:46 PDT 2009
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x0012d050
rodata = 0x0012d050-0x001843d4
bss = 0x00185000-0x00197cfc
data = 0x00197cfc-0x001ac000
stack = 0x001aa000-0x001ac000
init = 0x001ac000-0x001c1000
available = 0x001c1000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=25000000 e
arlyprintk=serial,uart0,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console [ttyBF0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 62140k/65536k RAM, (84k init code, 1200k kernel code, 508k dat
a, 1024k dma, 576k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (43 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_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
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
bfin-jtag-comm: initialized
bfin-dma: initialized
simple-gpio: now handling 40 GPIOs: 0 - 39
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_
clk=2500000Hz(mdc_div=15)@sclk=80MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
physmap platform flash device: 00300000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 4096KiB chip to 3072KiB
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "bootloader(nor)"
ftl_cs: FTL header not found.
0x00040000-0x00200000 : "linux kernel(nor)"
ftl_cs: FTL header not found.
0x00200000-0x00300000 : "file system(nor)"
ftl_cs: FTL header not found.
physmap-flash.0: failed to claim resource 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc00500, dma channel@7
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc03400, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base
@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
dma_alloc_init: dma_page @ 0x0029d000 - 256 pages at 0x03f00000
TCP cubic registered
NET: Registered protocol family 17
Distributed Switch Architecture driver version 0.1
eth0: detected a KSZ8893M switch
dsa slave smi: probed
rtc-bfin rtc-bfin: setting system clock to 1970-03-01 02:47:42 UTC (5107662)
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 84k freed
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
TranslateQuoteReplyEditDelete
2009-08-18 04:59:51 Re: 无法启动jffs2文件系统
Yi Li (CHINA)
Message: 78987
可能你的rootfs image有错。可以试用“Default all settings (lose changes)” ( 当然你需要enable jffs2),重新生成rootfs image看看。
QuoteReplyEditDelete
2009-08-19 23:34:09 Re: 无法启动jffs2文件系统
杨 永标 (CHINA)
Message: 79077
我用“Default all settings (lose changes)” ,并且enable jffs2,重新生成rootfs image看看。
然后将rootfs.jffs2,vmImage按照要求写入FLASH,找到jffs2 filesystem,但无法继续进行下去,请帮忙分析问题.具体运行步骤如下
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2009-08-20 2:53:13 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 961754 Bytes = 939.2 kB
Load Address: 00001000
Entry Point: 001a8694
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001a8694
Linux version 2.6.28.10-ADI-2009R1 (root@ubuntu) (gcc version 4.1.2 (ADI svn)) #
16 Wed Aug 19 19:53:09 PDT 2009
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00122030
rodata = 0x00122030-0x00177620
bss = 0x00178000-0x0018ac70
data = 0x0018ac70-0x0019e000
stack = 0x0019c000-0x0019e000
init = 0x0019e000-0x001b9000
available = 0x001b9000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF518 Rev 0.0
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 400 MHz core clock and 80 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16001
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=25000000 e
arlyprintk=serial,uart0,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x25
console handover:boot [early_BFuart0] boot [early_shadow0] -> real [ttyBF0]
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 62172k/65536k RAM, (108k init code, 1156k kernel code, 496k da
ta, 1024k dma, 576k reserved)
Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (42 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezbrd_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
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered (default)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
physmap platform flash device: 00300000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Reducing visibility of 4096KiB chip to 3072KiB
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition information
Creating 3 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "bootloader(nor)"
0x00040000-0x00200000 : "linux kernel(nor)"
0x00200000-0x00300000 : "file system(nor)"
physmap-flash.0: failed to claim resource 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc00500, dma channel@7
bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b
ase@ffc03400, dma channel@5
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
i2c /dev entries driver
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base
@ffc01400
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2015-05-05 02:45:33 UTC (1430793933)
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 108k freed
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
TranslateQuoteReplyEditDelete
2009-08-19 23:43:28 Re: 无法启动jffs2文件系统
Sonic Zhang (CHINA)
Message: 79078
Warning: unable to open an initial console.
Please create proper console device node in /dev/ in your jffs2 root image.
QuoteReplyEditDelete
2009-08-19 23:56:43 Re: 无法启动jffs2文件系统
杨 永标 (CHINA)
Message: 79079
请问如何create proper console device node in /dev/ in your jffs2 root image.
TranslateQuoteReplyEditDelete
2009-09-15 22:52:28 Re: 无法启动jffs2文件系统
Sonic Zhang (CHINA)
Message: 79966
The NOR flash partition for your jffs2 image is too small. So, please put your jffs2 image into the whole 3M NOR flash on bf518-ezbrd.
0x00000000-0x00300000 : "file system(nor)"
QuoteReplyEditDelete