Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-16-2014, 12:40 PM   #1
LQ Newbie
Registered: Sep 2014
Posts: 3

Rep: Reputation: Disabled
Linux halts soon after mounting root filesystem

Hello, all,

I am trying to get my own Linux running on a powerpc dev board. I have a working kernel from the manufacturer of the board. I'm trying to replace the stock BSP/rootfs with one that I built from Yocto Linux. I've followed the instructions to build and install the Yocto root filesystem to an SD card and I think I've done that correctly. Linux is able to detect and mount the partition as root, however the system powers down and halts a few seconds after mounting. Below is a snippet from the output to the console.

Waiting for root device /dev/mmcblk0p1...
mmc0: new high speed SDHC card at address e624
mmcblk0: mmc0:e624 SU04G 3.69 GiB 
 mmcblk0: p1
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p1): using internal journal
EXT3-fs (mmcblk0p1): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:1.
Freeing unused kernel memory: 188k init
Power down.
System Halted, OK to turn off power
There are a few seconds between the kernel memory message and the power down message.

I've tried setting the runlevel in inittab to both 3 and 1, but the same error happens. I've also tried putting echo messages in the rc scripts that should be called by init, but they don't appear in the console. I've also tried specifying the rootfs in the fstab by the partition's UUID and commenting out everything altogether in fstab but the issues remains.

Does anyone have any idea how I can debug this issue? I've tried passing "ignore_loglevel" and "debug" to my kernel command line but no extra messages are printed. I'm not sure where to proceed from here. Thanks.

P.S. Here is what I'm passing to the kernel command line:

root=/dev/mmcblk0p1 rw rootfstype=ext3 rootwait mem=248M console=ttyS0,115200 ignore_loglevel
Old 09-17-2014, 07:51 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Do you have valid /dev/console, /dev/null, /dev/zero, /sbin/init on this root fs ?

What's the next message seen when you use the stock BSP/rootfs - that will be a clue on what it's trying next.
Old 09-17-2014, 10:54 AM   #3
LQ Newbie
Registered: Sep 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello, linosaurusroot,

It turns out there was no /dev/console or /dev/zero in my filesystem. After I added these files, init started and I was able to progress farther into the boot process. Now the system is complaining about the fstab, but I think I should be able to troubleshoot this on my own.

As a reference, I created /dev/console and /dev/zero with these commands:

mknod -m 622 /dev/console c 5 1
mknod -m 666 /dev/zero c 1 5


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
How to diagnose errors when mounting root filesystem? ArbitraryValue Linux - Newbie 3 01-14-2014 05:55 PM
how does mounting a root filesystem actually work? ben-linus Linux - Embedded & Single-board computer 4 11-23-2011 10:32 PM
Looking for a way to have a portable filesystem (or mounting without root) dkulchenko Linux - General 2 02-27-2009 09:45 AM
Root filesystem mounting as Read-Only paddyjoy Linux - Newbie 11 03-21-2006 04:32 PM
Mounting root filesystem with data=writeback Phaethar Red Hat 2 01-29-2004 05:47 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:00 AM.

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