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.

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

Other Parts Discussed in Thread: OMAP3530, ADS7846, TVP5146M2

Good Morning Gents,

I'm trying to reflash an OMAP35x EVM to Linux and have it boot from the NAND filesystem.   I'm now getting an error when the kernel tries to mount the NAND/jffs2 filesystem.      I've attached the print trace with printenv.

Anyone know how to fix this or a better way to approach the problem?  Eventually I'll want to boot NFS and use rebuilt graphics drivers for doing graphics performance measurements.    But for now this seemed like a good thing to do.

Thanks,

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

Texas Instruments X-Loader 1.46 (May  6 2010 - 23:45:50)
Starting OS Bootloader...


U-Boot 2009.11 (May 06 2010 - 23:47:47)

OMAP3430/3530-GP ES3.1, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
I2C:   ready
DRAM:  128 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Read back SMSC id 0x92200000
Die ID #26c8000400000000040365fa18007005
Net:   smc911x-0
Hit any key to stop autoboot:  3


OMAP3_EVM # printenv

baudrate=115200
ethaddr=00:50:C2:7E:92:2C
nfxhost=192.168.1.65
rootpath=/home/jlawless/workdir/filesys
nfshost=192.168.1.65
dieid#=26c8000400000000040365fa18007005
ethact=smc911x-0
rf_blank_ram=mw.b 0x82000000 0xff 0x2000000
rf_er_xloader=nand erase 0 80000
rf_er_uboot=nand erase 80000 1e0000
rf_er_env=nand erase 260000 20000
rf_er_kernel=nand erase 280000 500000
rf_er_ramdisk=nand erase 780000 2000000
rf_er_fs=nand erase 780000 2000000
rf_get_xloader=tftpboot 0x82000000 images/boot-strap/omap3530/x-load.bin.ift
rf_get_uboot=tftpboot 0x82000000 images/u-boot/omap3530/u-boot.bin
rf_get_kernel=tftpboot 0x82000000 images/kernel/omap3530/uImage
rf_get_ramdisk=tftpboot 0x82000000 images/fs/omap3530/ramdisk.gz
rf_get_min_rd=tftpboot 0x82000000 images/fs/ramdisk-base.gz
rf_get_fs=tftpboot 0x82000000 images/fs/omap3530/rootfs.jffs2
rf_wr_xloader=nandecc hw; nand write.i 0x82000000 0 80000
rf_wr_uboot=nandecc sw; nand write.i 0x82000000 80000 1e0000
rf_wr_kernel=nandecc sw; nand write.i 0x82000000 280000 500000
rf_wr_ramdisk=nandecc sw; nand write.i 0x82000000 780000 2000000
rf_wr_fs=nandecc sw; nand write.i 0x82000000 780000 2000000
rf_ev=run rf_er_env
rf_xl=run rf_blank_ram; run rf_er_xloader; run rf_get_xloader; run rf_wr_xloader
rf_ub=run rf_blank_ram; run rf_er_uboot; run rf_get_uboot; run rf_wr_uboot
rf_kn=run rf_blank_ram; run rf_er_kernel; run rf_get_kernel; run rf_wr_kernel
rf_rd=run rf_blank_ram; run rf_er_ramdisk; run rf_get_ramdisk; run rf_wr_ramdisk
rf_min_rd=run rf_blank_ram; run rf_er_ramdisk; run rf_get_min_rd; run rf_wr_ramdisk
rf_fs=run rf_blank_ram; run rf_er_fs; run rf_get_fs; run rf_wr_fs
rf_all_rd=run rf_xl; run rf_ub; run rf_kn; run rf_rd
rf_all_min_rd=run rf_xl; run rf_ub; run rf_kn; run rf_min_rd
rf_all_fs=run rf_xl; run rf_ub; run rf_kn; run rf_fs
filesize=B040F0
fileaddr=82000000
gatewayip=192.168.1.254
netmask=255.255.255.0
ipaddr=192.168.1.225
get_kernel=run nand_kernel
get_initrd=run nand_initrd
nand_kernel=nand read.i 0x80000000 280000 500000
nand_initrd=nand read.i 0x82000000 780000 2000000
tftp_kernel=tftpboot 0x80000000 uImage
tftp_initrd=tftpboot 0x82000000 ramdisk.gz
addip=setenv bootargs $bootargs ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:eth0:on
boot_rd=run get_kernel; run get_initrd; setenv bootargs $bootargs_rd; run addip; bootm 0x80000000
boot_fs=run get_kernel; setenv bootargs $bootargs_fs; run addip; bootm 0x80000000
boot_nfs=run get_kernel; setenv bootargs $bootargs_nfs; run addip; bootm 0x80000000
bootcmd=run boot_fs
bootdelay=3
bootargs_rd=mem=100M console=ttyS0,115200n8 root=/dev/ram0 initrd=0x81600000,16M ramdisk_size=40960 mpurate=600 omapfb.rotate=1 omapfb.vrfb=y omap_vout.vid1_static_vrfb_alloc=y
bootargs_fs=mem=100M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 mpurate=600 omapfb.rotate=1 omapfb.vrfb=y omap_vout.vid1_static_vrfb_alloc=y
bootargs_nfs=mem=100M console=ttyS0,115200n8 noinitrd ip=dhcp rw root=/dev/nfs nfsroot=<nfsserver_ip>:/home/<useracct>/workdir/filesys,nolock mpurate=600 omapfb.rotate=1 omapfb.vrfb=y omap_vout.vid1_static_vrfb_alloc=y
serverip=192.168.1.65
bootfile=uImage
bootargs=mem=128M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2
stdin=serial
stdout=serial
stderr=serial

Environment size: 3253/131068 bytes


OMAP3_EVM # boot


NAND read: device 0 offset 0x280000, size 0x500000
 5242880 bytes read: OK
## Booting kernel from Legacy Image at 80000000 ...
   Image Name:   Linux-2.6.32
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2393420 Bytes =  2.3 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux....................................................................................................................................................... done, booting the kernel.
Linux version 2.6.32 (x0029463@psplinux050) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Fri May 7 00:06:07 IST 2010
CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3 EVM
Memory policy: ECC disabled, Data cache writeback
OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp 720m )
SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
Reserving 4194304 bytes SDRAM for VRAM
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 25400
Kernel command line: mem=100M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 mpurate=600 omapfb.rotate=1 omapfb.vrfb=y omap_vout.vid1_static_vrfb_alloc=y ip=192.168.1.225:192.168.1.65:192.168.1.254:255.255.255.0::eth0:on
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 100MB = 100MB total
Memory: 92400KB available (4180K code, 370K data, 172K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:402
Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
Reprogramming SDRC clock to 332000000 Hz
GPMC revision 5.0
IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP GPIO hardware version 2.5
OMAP clockevent source: GPTIMER1 at 32768 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 499.92 BogoMIPS (lpj=1949696)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
NET: Registered protocol family 16
Target VDD1 OPP = 5, VDD2 OPP = 3
omap3evmdc: Driver registration complete
OMAP DMA hardware revision 4.0
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
twl4030: PIH (irq 7) chaining IRQs 368..375
twl4030: power (irq 373) chaining IRQs 376..383
twl4030: gpio (irq 368) chaining IRQs 384..401
regulator: VMMC1: 1850 <--> 3150 mV normal standby
regulator: VDAC: 1800 mV normal standby
regulator: VAUX2_4030: 2800 mV normal standby
regulator: VPLL2: 1800 mV normal standby
regulator: VSIM: 1800 <--> 3000 mV normal standby
i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
Switching to clocksource 32k_counter
musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
musb_hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
omap-iommu omap-iommu.0: isp registered
OMAP35x  Linux PSP version 03.00.01.06 (OMAP3EVM)
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 180
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
OMAP DSI rev 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.2: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
brd: module loaded
loop: module loaded
omap2-nand driver initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
Creating 5 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000080000 : "xloader-nand"
0x000000080000-0x000000240000 : "uboot-nand"
0x000000240000-0x000000280000 : "params-nand"
0x000000280000-0x000000780000 : "linux-nand"
0x000000780000-0x000010000000 : "jffs2-nand"
OneNAND driver initializing
omap2-onenand omap2-onenand: Cannot request GPMC CS
omap2-onenand: probe of omap2-onenand failed with error -16
smsc911x: Driver version 2008-10-21.
smsc911x-mdio: probed
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1)
net eth0: MAC Address: 00:50:c2:7e:92:2c
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver dm9601
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: OMAP-EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.32 ehci_hcd
usb usb1: SerialNumber: ehci-omap.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
g_ether gadget: using random self ethernet address
g_ether gadget: using random host ethernet address
usb0: MAC 7a:f8:c0:e3:b2:fb
usb0: HOST MAC 42:9b:b2:64:f5:cd
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 2.6.32 musb-hcd
usb usb2: SerialNumber: musb_hdrc
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
input: TWL4030 Keypad as /devices/platform/i2c_omap.1/i2c-1/1-004a/twl4030_keypad/input/input0
ads7846 spi1.0: touchscreen, irq 335
input: ADS7846 Touchscreen as /devices/platform/omap2_mcspi.1/spi1.0/input/input1
twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
twl_rtc twl_rtc: Power up reset detected.
twl_rtc twl_rtc: Enabling TWL-RTC.
i2c /dev entries driver
Linux video capture interface: v2.00
tvp514x 3-005c: Registered to v4l2 master omap34xxcam!!
omap-iommu omap-iommu.0: isp: version 1.1
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
usbcore: registered new interface driver snd-usb-audio
No device for DAI omap-mcbsp-dai-0
No device for DAI omap-mcbsp-dai-1
No device for DAI omap-mcbsp-dai-2
No device for DAI omap-mcbsp-dai-3
No device for DAI omap-mcbsp-dai-4
OMAP3 EVM SoC init
asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
ALSA device list:
  #0: omap3evm (twl4030)
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
Power Management for TI OMAP3.
Switched to new clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
IVA2 clocking rate: 430 MHz
SmartReflex driver initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
tvp514x 3-005c: tvp5146m2 found at 0xb8 (OMAP I2C adapter)
omapdss DPI error: display already enabled
omap_vout omap_vout: 'lcd' Display already enabled
omapdss DPI error: display already enabled
omap_vout omap_vout: 'lcd' Display already enabled
omap_vout omap_vout: Buffer Size = 3686400
omap_vout omap_vout: : registered and initialized video device 1
omap_vout omap_vout: Buffer Size = 3686400
omap_vout omap_vout: : registered and initialized video device 2
net eth0: SMSC911x/921x identified at 0xc6860000, IRQ: 336
IP-Config: Complete:
     device=eth0, addr=192.168.1.225, mask=255.255.255.0, gw=192.168.1.254,
     host=192.168.1.225, domain=, nis-domain=(none),
     bootserver=192.168.1.65, rootserver=192.168.1.65, rootpath=
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x8b1f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x03cd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0302 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x6761 inn_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x6564 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x692d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x6567 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x696c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x692d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x322d instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020000: 0xfd4a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00020004: 0x1db6 instead

-----snipped repeated message---

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x04a60018: 0x87e2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x04a6001c: 0xcf7a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x04a60020: 0xaffb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x04a60024: 0x20f2 instead
Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:4.
Freeing init memory: 172K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.