niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » embedded
squashfs + devfs root device problem
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Geronimo W. Christ Esq
*nix forums Guru Wannabe


Joined: 30 Mar 2005
Posts: 108

PostPosted: Tue Jan 10, 2006 9:22 pm    Post subject: Re: squashfs + devfs root device problem Reply with quote

Geronimo W. Christ Esq wrote:
Quote:
Hi all,

In an earlier post some days ago I mentioned that I had a compressed
ext2 image which I used as an initrd root disk, and which I'd like to
convert so that it is a SquashFS image. So I've patched my kernel to
include SquashFS and I've built the tool to generate the image and link
it into my kernel in the same way.

Hmm, got it sorted.

The mksquashfs utility is a little weird - it produces different results
for the following two command lines :

mksquashfs src-dir/ ./image.sqsh
mksquashfs src-dir/* ./image.sqsh

The second version of the command above cured my problem.
Back to top
Geronimo W. Christ Esq
*nix forums Guru Wannabe


Joined: 30 Mar 2005
Posts: 108

PostPosted: Mon Jan 09, 2006 10:04 pm    Post subject: squashfs + devfs root device problem Reply with quote

Hi all,

In an earlier post some days ago I mentioned that I had a compressed
ext2 image which I used as an initrd root disk, and which I'd like to
convert so that it is a SquashFS image. So I've patched my kernel to
include SquashFS and I've built the tool to generate the image and link
it into my kernel in the same way.

However, it does not work and I cannot figure out whether the problem is
being caused by devfs or squashfs. Here's the log coming from my serial
port (with irrelevant bits snipped). Are there any logs or other things
I can turn on to determine the cause of the problem ? What does the -2
error indicate ?

============================================

Primary instruction cache 16kB, physically tagged, 4-way, linesize 32 bytes.
Initial ramdisk at: 0x802bf000 (2314240 bytes)

[..]

Kernel command line: root=/dev/ram ro rootfstype=squashfs devfs=mount
console=ttyS0,38400

[..]

Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: devfs_debug: 0x0
devfs: boot_options: 0x1
Squashfs 2.2-r2 (released 2005/09/0Cool (C) 2002-2005 Phillip Lougher
pty: 256 Unix98 ptys configured

[..]

RAMDISK driver initialized: 16 RAM disks of 20480K size 1024 blocksize
loop: loaded (max 8 devices)

[..]

802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
RAMDISK: squashfs filesystem found at block 0
RAMDISK: Loading 2260 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 2260k freed
VFS: Mounted root (squashfs filesystem) readonly.
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing prom memory: 1020kb freed
Freeing unused kernel memory: 72k freed
Warning: unable to open an initial console.
Kernel panic: No init found. Try passing init= option to kernel.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Tue Jan 06, 2009 9:04 am | All times are GMT
navigation Forum index » *nix » Linux » embedded
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Read Free Manga Online | Loans | Free Ringtone | eHarmony Coupon | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2219s ][ Queries: 20 (0.1538s) ][ GZIP on - Debug on ]