[Yaffs] yaffs2 boot kernel panic...

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ignacio Molinero
Date:  
To: yaffs
Subject: [Yaffs] yaffs2 boot kernel panic...
Hi,

I'm trying to boot a linux kernel (2.6.25.3) on yaffs2 root file system
but I get the following kernel panic ...

U-Boot 1.3.3 (Jul 7 2008 - 16:39:05)

RAM Configuration:
Bank #0: 20000000 64 MB
NAND:  256 MiB
DataFlash:AT45DB081
Nb pages:   4096
Page Size:    264
Size= 1081344 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0004000 (RO) Bootstrap
Area 1: C0004000 to C0007FFF      Environment
Area 2: C0008000 to C00FFFFF (RO) U-Boot
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Hit any key to stop autoboot:  0
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
BOOTP broadcast 1
DHCP client bound to address 172.31.1.114
macb0: link up, 100Mbps full-duplex (lpa: 0x45e1)
Using macb0 device
TFTP from server 172.31.1.147; our IP address is 172.31.1.114
Filename 'uImage'.
Load address: 0x21400000
Loading: #################################################################
         ##############################################
done
Bytes transferred = 1623800 (18c6f8 hex)
## Booting kernel from Legacy Image at 21400000 ...
   Image Name:   Linux-2.6.25.3
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1623736 Bytes =  1.5 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK


Starting kernel ...

Uncompressing
Linux..........................................................................................................
done, booting the kernel.
Linux version 2.6.25.3 (root@BlackRevolver-Ubuntu) (gcc version 4.1.2)
#89 PREEMPT Thu Sep 11 14:30:18 CEST 2008
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9263-EK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 199 MHz, master 99 MHz, main 16.367 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw
rootfstype=yaffs2
AT91: 160 gpio irqs in 5 banks
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61464KB available (3016K code, 241K data, 132K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
yaffs Sep 11 2008 14:27:29 Installing.
io scheduler noop registered (default)
atmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23d40000 (mapped at
ffc00000)
Console: switching to colour frame buffer device 40x30
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00700000 (mapped at
c485c000), irq 26
atmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
loop: module loaded
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffbc000 irq 21 (00:bb:bb:bb:bb:30)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01,
irq=-1)
Driver 'sd' needs updating - please use bus_type methods
Generic platform RAM MTD, (c) 2004 Simtec Electronics
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB
3,3V 8-bit)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
Bad eraseblock 37 at 0x004a0000
Bad eraseblock 38 at 0x004c0000
Bad eraseblock 249 at 0x01f20000
Bad eraseblock 410 at 0x03340000
Bad eraseblock 552 at 0x04500000
Bad eraseblock 568 at 0x04700000
Bad eraseblock 656 at 0x05200000
Bad eraseblock 657 at 0x05220000
Bad eraseblock 1225 at 0x09920000
Bad eraseblock 1226 at 0x09940000
Bad eraseblock 1336 at 0x0a700000
Bad eraseblock 1404 at 0x0af80000
Bad eraseblock 1405 at 0x0afa0000
Bad eraseblock 1684 at 0x0d280000
Bad eraseblock 1723 at 0x0d760000
Bad eraseblock 1827 at 0x0e460000
Bad eraseblock 2033 at 0x0fe20000
Creating 3 MTD partitions on "at91_nand":
0x00000000-0x00200000 : "KernelImage"
0x00200000-0x04200000 : "Partition 1"
0x04200000-0x10000000 : "Partition 2"
mtd_dataflash spi0.0: AT45DB081B (1056 KBytes)
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 29, io mem 0x00a00000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: AT91 OHCI
usb usb1: Manufacturer: Linux 2.6.25.3 ohci_hcd
usb usb1: SerialNumber: at91
Initializing USB Mass Storage driver...
usb 1-2: new low speed USB device using at91_ohci and address 2
usb 1-2: device descriptor read/64, error -62
usb 1-2: device descriptor read/64, error -62
usb 1-2: new low speed USB device using at91_ohci and address 3
usb 1-2: device descriptor read/64, error -62
usb 1-2: device descriptor read/64, error -62
usb 1-2: new low speed USB device using at91_ohci and address 4
usb 1-2: device not accepting address 4, error -62
usb 1-2: new low speed USB device using at91_ohci and address 5
usb 1-2: device not accepting address 5, error -62
hub 1-0:1.0: unable to enumerate USB device on port 2
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
ads7846 spi0.3: touchscreen, irq 31
input: ADS784x Touchscreen as /class/input/input0
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
rtc-at91sam9 at91_rtt.0: rtc0: SET TIME!
at91sam9_wdt: invalid timeout (must be between 1 and 16)
Registered led device: ds1
Registered led device: ds2
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.16rc2 (Thu Jan 31
16:40:16 2008 UTC).
usbcore: registered new interface driver snd-usb-audio
ASoC version 0.13.2
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
yaffs: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
block 22 is bad
block 23 is bad
block 234 is bad
block 395 is bad
VFS: Mounted root (yaffs2 filesystem).
Freeing init memory: 132K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to
kernel.


The root file system has been made with mkyaffs2image tool of
OpenEmbedded enciroment.

Anybody knows what's happening?.

P.D. When use jffs2 rootfs type this kernel boot.
--







*Ignacio Molinero Horno         ****
Departamento I+D*


------------------------------------------------------------------------

    

Polígono Industrial Alcalde Caballero

C/ Monasterio de las Huelgas 2, nave 6

50.014 ZARAGOZA

*Tfno: (+34) 976 798 200*

*BIOINGENIERIA*

    

*Fax: (+34) 976 798 201*

*ARAGONESA S.L.*

    

*www.sabia.es* <http://www.sabia.es>

------------------------------------------------------------------------