I use AM3517 custom board
yaffs2 filesystem working
processors.wiki.ti.com/.../Put_YAFFS_Image_to_Flash
http://processors.wiki.ti.com/index.php/Filesystem_in_NOR_or_NAND
Above link was refered but it shows error. Below is log message. I wonder how to solve this.
- log -
[ 0.000000] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: OMAP3517/AM3517 EVM
[ 0.000000] Reserving 4194304 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AM3505 ES1.1 (l2cache neon isp )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64000
[ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mtdblock3 rootfstype=yaffs2 rw mem=256M ip=off init=/sbin/
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 252MB = 252MB total
[ 0.000000] Memory: 242304k/242304k available, 19840k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0038000 ( 192 kB)
[ 0.000000] .text : 0xc0038000 - 0xc05d7a8c (5759 kB)
[ 0.000000] .data : 0xc05d8000 - 0xc0789b60 (1735 kB)
[ 0.000000] NR_IRQS:375
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[ 0.000000] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
[ 0.000000] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
[ 0.000000] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] dpll3_m2_clk rate change failed: -22
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] GPMC revision 5.0
[ 0.000000] Trying to install interrupt handler for IRQ368
[ 0.000000] Trying to install interrupt handler for IRQ369
[ 0.000000] Trying to install interrupt handler for IRQ370
[ 0.000000] Trying to install interrupt handler for IRQ371
[ 0.000000] Trying to install interrupt handler for IRQ372
[ 0.000000] Trying to install interrupt handler for IRQ373
[ 0.000000] Trying to install interrupt handler for IRQ374
[ 0.000000] Trying to install type control for IRQ375
[ 0.000000] Trying to set irq flags for IRQ375
[ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 3951 kB
[ 0.000000] per task-struct memory footprint: 2304 bytes
[ 0.000000] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
[ 0.000000] pid_max: default: 32768 minimum: 301
[ 0.000000] Security Framework initialized
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] regulator: core version 0.5
[ 0.000000] regulator: dummy:
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.000000] Display initialized successfully
[ 0.000000] _omap_mux_init_gpio: Multiple gpio paths (2) for gpio126
[ 0.000000] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.000000] OMAP DMA hardware revision 4.0
[ 0.129516] bio: create slab <bio-0> at 0
[ 0.137847] SCSI subsystem initialized
[ 0.142822] usbcore: registered new interface driver usbfs
[ 0.144500] usbcore: registered new interface driver hub
[ 0.145538] usbcore: registered new device driver usb
[ 0.151855] omap_device: omap_i2c.1: new worst case activate latency 0: 30517
[ 0.152038] omap_i2c omap_i2c.1: bus 1 rev3.12 at 400 kHz
[ 0.156921] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
[ 0.157257] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
[ 0.174621] omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
[ 0.183227] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.187774] Switching to clocksource 32k_counter
[ 0.246032] FS-Cache: Loaded
[ 0.248443] CacheFiles: Loaded
[ 0.338226] musb-hdrc: version 6.0, host, debug=0
[ 0.338775] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.340332] <6>Waiting for PHY clock good...
[ 0.353607] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 0.355590] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 0.356628] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.356658] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.356658] usb usb1: Product: MUSB HDRC host driver
[ 0.356689] usb usb1: Manufacturer: Linux 2.6.37 musb-hcd
[ 0.356689] usb usb1: SerialNumber: musb-hdrc.0
[ 0.362426] hub 1-0:1.0: USB hub found
[ 0.362762] hub 1-0:1.0: 1 port detected
[ 0.367797] musb-hdrc musb-hdrc.0: USB Host mode controller at d0810000 using DMA, IRQ 71
[ 0.369689] NET: Registered protocol family 2
[ 0.370605] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.372772] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.373260] TCP bind hash table entries: 8192 (order: 6, 360448 bytes)
[ 0.378143] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.378265] TCP reno registered
[ 0.378295] UDP hash table entries: 128 (order: 1, 12288 bytes)
[ 0.378662] UDP-Lite hash table entries: 128 (order: 1, 12288 bytes)
[ 0.379852] NET: Registered protocol family 1
[ 0.381591] RPC: Registered udp transport module.
[ 0.381622] RPC: Registered tcp transport module.
[ 0.381652] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.382904] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.385803] omap_init_opp_table: no hwmod or odev for iva, [9] cannot add OPPs.
[ 0.388854] AM3505 Linux PSP version 04.02.00.07 (AM3517EVM)
[ 0.551635] NTFS driver 2.1.29 [Flags: R/W].
[ 0.552032] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.553253] msgmni has been set to 473
[ 0.561828] io scheduler noop registered
[ 0.561859] io scheduler deadline registered
[ 0.562103] io scheduler cfq registered (default)
[ 0.625762] OMAP DSS rev 2.0
[ 0.625885] omapdss supply vdds_dsi not found, using dummy regulator
[ 0.626434] OMAP DISPC rev 3.0
[ 0.626495] omapdss supply vdda_dac not found, using dummy regulator
[ 0.626617] OMAP VENC rev 2
[ 0.627899] OMAP DSI rev 1.0
[ 0.958831] drivers/char/znx_gpio.c ( 441)
[ 0.958831] >> znxGpio driver register success !!!
[ 0.963928] drivers/char/znx_ads863x.c ( 623)
[ 0.963928] >> znxAds863x driver register success !!!
[ 0.963958] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.998535] serial8250.0: ttyS0 at MMIO 0x8000000 (irq = 312) is a 16550A
[ 1.022399] serial8250.0: ttyS1 at MMIO 0x8000200 (irq = 312) is a 16550A
[ 1.045715] serial8250.0: ttyS2 at MMIO 0x8000400 (irq = 312) is a 16550A
[ 1.069000] serial8250.0: ttyS3 at MMIO 0x8000600 (irq = 312) is a 16550A
[ 1.071960] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[ 1.074005] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[ 1.075622] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[ 1.873718] console [ttyO2] enabled
[ 1.929992] brd: module loaded
[ 1.957977] loop: module loaded
[ 1.968688] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.976867] omap2-nand driver initializing
[ 1.981872] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron )
[ 1.989013] Creating 6 MTD partitions on "omap2-nand.0":
[ 1.994659] 0x000000000000-0x000000080000 : "xloader-nand"
[ 2.011779] 0x000000080000-0x000000240000 : "uboot-nand"
[ 2.025482] 0x000000240000-0x000000280000 : "params-nand"
[ 2.038146] 0x000000280000-0x000000780000 : "linux-nand"
[ 2.053375] 0x000000780000-0x000018780000 : "rootfs_ubifs"
[ 2.262756] 0x000018780000-0x000020000000 : "Reserve"
[ 2.383361] davinci_mdio davinci_mdio: davinci mdio revision 1.5
[ 2.389648] davinci_mdio davinci_mdio: detected phy mask f00fff80
[ 2.400299] IP17xx: Found IP175D at ffffffff:00
[ 2.436889] davinci_mdio: probed
[ 2.443359] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.450561] ehci-omap.0 supply hsusb0 not found, using dummy regulator
[ 3.461364] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 3.467620] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
[ 3.476043] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 3.492767] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 3.499328] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.506530] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.514160] usb usb2: Product: OMAP-EHCI Host Controller
[ 3.519805] usb usb2: Manufacturer: Linux 2.6.37 ehci_hcd
[ 3.525512] usb usb2: SerialNumber: ehci-omap.0
[ 3.534698] hub 2-0:1.0: USB hub found
[ 3.538757] hub 2-0:1.0: 3 ports detected
[ 3.571777] Initializing USB Mass Storage driver...
[ 3.577941] usbcore: registered new interface driver usb-storage
[ 3.584320] USB Mass Storage support registered.
[ 3.589233] udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
[ 3.600738] mice: PS/2 mouse device common for all mice
[ 3.609466] omap_device: omap_i2c.1: new worst case activate latency 0: 61035
[ 3.617645] omap_device: omap_i2c.1: new worst case activate latency 0: 91552
[ 3.627746] input: TSC2004 Touchscreen as /devices/virtual/input/input0
[ 3.653198] rtc-s35390a 1-0030: rtc core: registered rtc-s35390a as rtc0
[ 3.661315] i2c /dev entries driver
[ 3.671936] Linux video capture interface: v2.00
[ 3.678527] vpfe_init
[ 3.681762] vpfe-capture vpfe-capture: v4l2 device registered
[ 3.690551] vpfe-capture vpfe-capture: video device registered
[ 3.699310] tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
[ 3.711273] tvp514x 3-005c: tvp5146 (Version - 0x03) found at 0xb8 (OMAP I2C adapter)
[ 3.727905] vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
[ 3.736816] vpfe_register_ccdc_device: DM6446 CCDC
[ 3.742034] DM6446 CCDC is registered with vpfe.
[ 3.748382] omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
[ 3.758331] OMAP Watchdog Timer Rev 0x31: initial timeout 30 sec
[ 3.774017] usbcore: registered new interface driver ushc
[ 3.782928] usbcore: registered new interface driver usbhid
[ 3.788757] usbhid: USB HID core driver
[ 3.801666] OMAP3517 / AM3517 EVM SoC init
[ 3.808197] AIC23 Audio Codec 0.1
[ 3.811889] omap_device: omap_i2c.2: new worst case activate latency 0: 122070
[ 3.823089] request_irq HEADPHONE GPIO IRQ success !!!
[ 3.832977] asoc: tlv320aic23-hifi <-> omap-mcbsp-dai.0 mapping ok
[ 3.860961] ALSA device list:
[ 3.864105] #0: am3517evm
[ 3.867034] oprofile: hardware counters not available
[ 3.872375] oprofile: using timer interrupt.
[ 3.877624] TCP cubic registered
[ 3.881011] Initializing XFRM netlink socket
[ 3.885833] NET: Registered protocol family 17
[ 3.890655] NET: Registered protocol family 15
[ 3.896087] Registering the dns_resolver key type
[ 3.901824] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
[ 3.911621] ThumbEE CPU extension supported.
[ 3.930847] Power Management for TI OMAP3.
[ 3.981781] clock: disabling unused clocks to save power
[ 4.085815] rtc-s35390a 1-0030: setting system clock to 2015-08-19 13:17:00 UTC (1439990220)
[ 4.095245] omap_vout omap_vout: Buffer Size = 3686400
[ 4.104064] omap_vout omap_vout: : registered and initialized video device 1
[ 4.111602] omap_vout omap_vout: Buffer Size = 3686400
[ 4.119903] omap_vout omap_vout: : registered and initialized video device 2
[ 4.134765] yaffs: dev is 32505859 name is "mtdblock3" rw
[ 4.140441] yaffs: passed flags ""
[ 4.155181] VFS: Mounted root (yaffs2 filesystem) on device 31:3.
[ 4.161865] Freeing init memory: 192K
[ 4.166229] Failed to execute /sbin/. Attempting defaults...
[ 4.172607] Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 4.185760] [<c0047afc>] (unwind_backtrace+0x0/0xe0) from [<c0431b60>] (panic+0x50/0x17c)
[ 4.194396] [<c0431b60>] (panic+0x50/0x17c) from [<c0431918>] (init_post+0xa0/0xc0)
[ 4.202514] [<c0431918>] (init_post+0xa0/0xc0) from [<c0008cb8>] (kernel_init+0x110/0x144)
[ 4.211273] [<c0008cb8>] (kernel_init+0x110/0x144) from [<c0043030>] (kernel_thread_exit+0x0/0x8)