This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm6467挂载yaffs



使用NFS启动内核,分别执行cat /proc/mtd,flash_eraseall /dev/mtd3,mount -t yaffs /dev/mtdblock3 /mnt,cd /mnt,tar xzvf /home/rootfs.tar.gz。解压完成后/mnt下出现了rootfs目录,但是重新启动,设置启动参数setenv bootargs  init=/linuxrc console=ttyS0,115200n8 ip=off  root=/dev/mtdblock3 rw noinitrd rootfstype=yaffs mem=120M davincihd_capture.channel0_numbuffers=4后,内核无法以yaffs文件系统启动。请问这是什么问题,在制作rootfs时已经在/dev/下创建了console和null了。以下是启动信息:

U-Boot 1.2.0 (Aug  9 2013 - 16:44:56)

 

I2C:   ready

DRAM:  128 MB

unknown vendor=0 Flash:  0 kB

NAND:  64 MiB

In:    serial

Out:   serial

Err:   serial

ARM Clock :- 297MHz

DDR Clock :- 297MHz

Hit any key to stop autoboot:  0

DM6467 EVM # setenv bootargs  init=/linuxrc console=ttyS0,115200n8 ip=off  root=
/dev/mtdblock3 rw noinitrd rootfstype=yaffs mem=120M davincihd_capture.channel0_
numbuffers=4


DM6467 EVM #


DM6467 EVM # saveenv


Saving Environment to NAND...

Erasing Nand...Writing to Nand... done

DM6467 EVM #


DM6467 EVM # tftp 80700000 uImage


TFTP from server 192.168.2.33; our IP address is 192.168.2.142

Filename 'uImage'.

Load address: 0x80700000

Loading: #################################################################

         #################################################################

         #################################################################

         ########################################################

done

Bytes transferred = 1280872 (138b68 hex)

DM6467 EVM # bootm


## Booting image at 80700000 ...

   Image Name:   Linux-2.6.10_mvl401-davinci_evm-

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    1280808 Bytes =  1.2 MB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

OK

 

Starting kernel ...

 

Uncompressing Linux.............................................................
........................... done, booting the kernel.

Linux version 2.6.10_mvl401-davinci_evm-PSP_01_30_00_082 (root@davinci-desktop)
(gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #1 Wed Nov 13
 09:01:05 CST 2013

CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)

CPU0: D VIVT write-back cache

CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets

CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets

Machine: DaVinci DM6467 EVM

Memory policy: ECC disabled, Data cache writeback

DM6467

Built 1 zonelists

Kernel command line: init=/linuxrc console=ttyS0,115200n8 ip=off root=/dev/mtdbl
ock3 rw noinitrd rootfstype=yaffs mem=120M davincihd_capture.channel0_numbuffers
=4

PID hash table entries: 512 (order: 9, 8192 bytes)

Console: colour dummy device 80x30

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

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

Memory: 120MB = 120MB total

Memory: 118784KB available (2192K code, 472K data, 160K init)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

CPU: Testing write buffer coherency: ok

spawn_desched_task(00000000)

desched cpu_callback 3/00000000

ksoftirqd started up.

desched cpu_callback 2/00000000

desched thread 0 started up.

NET: Registered protocol family 16

DaVinci: 48 gpio irqs

Registering platform device 'serial8250.0'. Parent at platform

Registering platform device 'musb_hdrc'. Parent at platform

Registering platform device 'nand_davinci.0'. Parent at platform

DaVinci I2C DEBUG: 09:00:04 Nov 13 2013

Registering platform device 'i2c'. Parent at platform

ch0 default output "COMPOSITE", mode "NTSC"

ch1 default output "", mode ""

SCSI subsystem initialized

JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

yaffs Nov 13 2013 08:59:47 Installing.

Registering platform device 'DavinciHD_vdce.2'. Parent at platform

CIR device registered successfully                        (Major = 253, Minor =
0)<6>Registering platform device 'cir.0'. Parent at platform

Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled

Registering platform device 'serial8250'. Parent at platform

ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654

ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16650V2

io scheduler noop registered

io scheduler anticipatory registered

RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize

Registering platform device 'ti_davinci_emac'. Parent at platform

TI DaVinci EMAC: MAC address is 7f:00:00:00:00:00

TI DaVinci EMAC Linux version updated 5.0

TI DaVinci EMAC: Installed 1 instances.

netconsole: not configured, aborting

i2c /dev entries driver

Linux video capture interface: v1.00

Registering platform device 'vpif capture.1'. Parent at platform

Registering platform device 'vpif display.1'. Parent at platform

elevator: using anticipatory as default io scheduler

nand_davinci nand_davinci.0: Using soft ECC

NAND device: Manufacturer ID: 0x20, Chip ID: 0x76 (ST Micro NAND 64MiB 3,3V 8-bi
t)

Scanning device for bad blocks

Creating 4 MTD partitions on "nand_davinci.0":

0x00000000-0x00080000 : "bootloader"

0x00080000-0x000a0000 : "params"

0x000a0000-0x004a0000 : "kernel"

0x004a0000-0x04000000 : "filesystem"

nand_davinci nand_davinci.0: hardware revision: 2.2

mice: PS/2 mouse device common for all mice

NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 8192 bind 16384)

NET: Registered protocol family 1

NET: Registered protocol family 17

yaffs: dev is 32505859 name is "mtdblock3"

yaffs: Attempting MTD mount on 31.3, "mtdblock3"

VFS: Mounted root (yaffs filesystem).

Freeing init memory: 160K

Warning: unable to open an initial console.

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.