LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2015, 10:51 AM   #1
praveen_konduri
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
Unhappy unable to mount the rootfs.jffs2 filesystem on linux 2.6.34 kernel.


hi,
i am working on
kernel : 2.6.34
board : mpc8309 tower board

problem :

i am trying to mount the jffs2 filesystem on my board,firstly i am able to create the rootfs.jffs2 image and i have dump the image to my flash and i am using the u-boot 2010.06 boot loader and its bootargs are like this

bootargs root=/dev/mtdblock1 rootfstype=jffs2 rw console=ttyS0,115200

and while i am trying to mount my filesystems its saying

Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

in the kernel log i am not getting any idea how to proceed can any one help me










here i am providing the full kernel log of my board

Using MPC8309 TWR machine description
Linux version 2.6.34 (root@localhost.localdomain) (gcc version 4.1.2) #7 SMP Thu Oct 8 19:24:02 IST 2015
CPU maps initialized for 1 thread per core
bootconsole [udbg0] enabled
setup_arch: bootmem
mpc8309_twr_setup_arch()
Found FSL PCI host bridge at 0x00000000e0008500. Firmware bus number: 0->0
PCI host bridge /pci@e0008500 (primary) ranges:
MEM 0x0000000080000000..0x000000008fffffff -> 0x0000000080000000 Prefetch
MEM 0x0000000090000000..0x000000009fffffff -> 0x0000000090000000
IO 0x00000000d0000000..0x00000000d3ffffff -> 0x00000000d0000000
arch: exit
Zone PFN ranges:
DMA 0x00000000 -> 0x00008000
Normal empty
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0x00000000 -> 0x00008000
PERCPU: Embedded 7 pages/cpu @c04e4000 s5888 r8192 d14592 u65536
pcpu-alloc: s5888 r8192 d14592 u65536 alloc=16*4096
pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: root=/dev/mtdblock1 rootfstype=jffs2 rw console=ttyS0,115200
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: 125912k/131072k available (3680k kernel code, 5160k reserved, 156k data, 108k bss, 188k init)
Kernel virtual memory layout:
* 0xfffdf000..0xfffff000 : fixmap
* 0xfcef7000..0xfe000000 : early ioremap
* 0xc9000000..0xfcef7000 : vmalloc & ioremap
Hierarchical RCU implementation.
NR_IRQS:512 nr_irqs:512
IPIC (128 IRQ sources) at c9000700
clocksource: timebase mult[7800001] shift[22] registered
Mount-cache hash table entries: 512
Brought up 1 CPUs
NET: Registered protocol family 16

PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource timebase
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: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 128 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
NET: Registered protocol family 1
mpc8309twr_rwbuffer_init
Read buffer = 0x58ff
Write buffer with 0xeeff
JFFS2 version 2.2. (NAND) .. 2001-2006 Red Hat, Inc.
msgmni has been set to 245
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ssd1289_init
ssd1289 ssd1289.0: ssd1289_probe: unknown signature 0x4000
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
physmap platform flash device: 02000000 at fe000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
RedBoot partition parsing not available
of-flash: probe of fe000000.flash failed with error -16
slram: not enough parameters.
mpc8xxx_spi e0007000.spi: at 0xc90c6000 (irq = 17), CPU mode
Fixed MDIO Bus: probed
ucc_geth: QE UCC Gigabit Ethernet Controller
ucc_geth: UCC1 at 0xe0102000 (irq = 18)
ucc_geth: UCC2 at 0xe0103000 (irq = 19)
Freescale PowerQUICC MII Bus: probed
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 38, io base 0xe0023000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
i2c /dev entries driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on e002e000.sdhci [e002e000.sdhci] using DMA
TCP cubic registered
NET: Registered protocol family 17
MPR121 Touchkey Init
mpr121_touchkey 1-005a: mpr_touchkey_probe: addr=0x5a irq=48 name=mpr121_touchkey
mpr121_touchkey 1-005a: i2c write error: -5
mpr121_touchkey 1-005a: Failed to init register
mpr121_touchkey: probe of 1-005a failed with error -5
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing unused kernel memory: 188k init
no bootargs present
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Call Trace:
[c7827f40] [c000820c] 0xc000820c (unreliable)
[c7827f70] [c002a8b4] 0xc002a8b4
[c7827fc0] [c0003b1c] 0xc0003b1c
[c7827fd0] [c03693f8] 0xc03693f8
[c7827ff0] [c001141c] 0xc001141c
Rebooting in 180 seconds..



Thanks
K.Praveen
 
Old 10-09-2015, 07:13 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,844

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Well, first of all, it mounted what it thought was root. (the log line "VFS: Mounted root (jffs2 filesystem) on device 31:1.")

So your query title is misdirected.

Make sure that your "root" really is the root device. The most frequent failure of this type is mounting a non-root as root...

The failure reported is that the kernel could not find /sbin/init. That implies that the filesystem is either corrupt OR it isn't a root filesystem. Make sure /dev/mtdblock1 is supposed to be the root device...
 
Old 10-10-2015, 03:18 AM   #3
praveen_konduri
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
Well, first of all, it mounted what it thought was root. (the log line "VFS: Mounted root (jffs2 filesystem) on device 31:1.")

So your query title is misdirected.

Make sure that your "root" really is the root device. The most frequent failure of this type is mounting a non-root as root...

The failure reported is that the kernel could not find /sbin/init. That implies that the filesystem is either corrupt OR it isn't a root filesystem. Make sure /dev/mtdblock1 is supposed to be the root device...
hello jpollard
Thanks for your reply, but i am mounting as the root user only, and can you please tell me how to know weather the rootfs.jffs2 file is in corrupted or not.

Thanks in advance,
K.Praveen
 
Old 10-10-2015, 06:41 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,844

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
Look to see if init is present where it needs to be.

If it isn't, then the system can't finish the startup.

The problem is that a root filesystem MUST have init. That isn't the only thing it needs - it also needs the libraries, tools, device directories...

Without init, the system can't run.

Last edited by jpollard; 10-10-2015 at 06:43 AM.
 
Old 10-12-2015, 02:03 PM   #5
praveen_konduri
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Post issue of init with jffs2

Quote:
Originally Posted by jpollard View Post
Look to see if init is present where it needs to be.

If it isn't, then the system can't finish the startup.

The problem is that a root filesystem MUST have init. That isn't the only thing it needs - it also needs the libraries, tools, device directories...

Without init, the system can't run.
init is been present in the /etc/ directory and talking about libraries, with the same libraries it works with ramdisk but it is not working with jffs2.
 
Old 10-12-2015, 02:34 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,844

Rep: Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477Reputation: 1477
init has never been in /etc. Always in /sbin.

Even in the ramdisk it is in /sbin.

So unless you modified the kernel to look in /etc instead, it still requires it in /sbin.

Last edited by jpollard; 10-12-2015 at 02:35 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 7.5 Kernel Panic Error - unable to mount rootfs kamils096 Linux From Scratch 6 02-15-2018 12:32 PM
Linux kernel cannot mount jffs2 image tilman1 Linux - Embedded & Single-board computer 2 06-15-2015 08:09 AM
[SOLVED] Unable to mount NOR Flash (mount -t jffs2 /dev/mtdblock0 /mnt) cruiser Linux - Embedded & Single-board computer 2 08-28-2012 10:50 PM
Kernel Panic :VFS :unable to mount rootfs 16:02 abirami Linux - Software 5 01-03-2006 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration