* Re: using initramfs with ppc
@ 2005-04-18 21:24 Pawel Studencki
2005-04-18 22:01 ` Eugene Surovegin
0 siblings, 1 reply; 6+ messages in thread
From: Pawel Studencki @ 2005-04-18 21:24 UTC (permalink / raw)
To: Eugene Surovegin; +Cc: linuxppc-embedded
hello,
It can be wrong kernel parameter or problem with mtd
or cramfs support. But if I see my kernel messages,
everything seems to be OK for me. I've attached kernel
logging, so let me know, if I'm wrong.
Do I need initramfs if I want to mount root filesystem
on CRAMFS? If so, with special devices?
I found some problems here:
static int __init do_mount_root(char *name, char *fs,
int flags, void *data)
{
int err = sys_mount(name, "/root", fs, flags, data);
if (err)
return err;
[...]
}
return -2.
Directory "/root" hasn't been found! Does this funtion
look for on initramfs???
best regards
Pawel
------------------------------------
Kernel command line: console=ttyCPM0, 57600
root=/dev/mtdblock1
rootfstype=cramfs ro
PID hash table entries: 128 (order: 7, 2048 bytes)
Decrementer Frequency = 187500000/60
m8xx_wdt: wdt disabled (SYPCR: 0xFFFFFF88)
Console: colour dummy device 80x25
Dentry cache hash table entries: 4096 (order: 2, 16384
ytes)
Inode-cache hash table entries: 2048 (order: 1, 8192
ytes)
Memory: 14772k available (976k kernel code, 368k data,
60k init, 0k
highmem)
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
NET: Registered protocol family 16
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xff000a60 (irq = 43) is a CPM UART
io scheduler noop registered
loop: loaded (max 8 devices)
physmap flash device: 400000 at ffc00000
phys_mapped_flash: Found 1 x16 devices at 0x0 in
16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due
to code
brokenness.
Creating 5 MTD partitions on "phys_mapped_flash":
0x00000000-0x000d0000 : "Kernel"
mtd: Giving out device 0 to Kernel
0x000d0000-0x001d0000 : "RootFS"
mtd: Giving out device 1 to RootFS
0x001d0000-0x00300000 : "ApplFS1"
mtd: Giving out device 2 to ApplFS1
0x00300000-0x00330000 : "U-Boot"
mtd: Giving out device 3 to U-Boot
0x00330000-0x00400000 : "ApplFS2"
mtd: Giving out device 4 to ApplFS2
VFS: Cannot open root device "mtdblock1" or
unknown-block(31,1)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root
fs on
unknown-block(31,1)
--- Eugene Surovegin <ebs@ebshome.net> wrote:
> On Mon, Apr 18, 2005 at 08:34:42AM -0700, Pawel
> Studencki wrote:
> > Hello,
> >
> > I use a custom board with 8xx and kernel 2.6.11
> and
> > try to mount root fs
> > based on cramfs. I still have problems with
> mounting
> > VFS:
> >
> > VFS: Cannot open root device "mtdblock1" or
> > unknown-block(31,1)
> > Please append a correct "root=" boot option
> > Kernel panic - not syncing: VFS: Unable to mount
> root
> > fs on
> > unknown-block(31,1)
> >
> > I found, that perhaps the reason is initramfs.
>
> Unlikely.
>
> Please, check that you have mtdblock device enabled
> in config, also
> that you have configured your flash support, and
> mtdblock1 partition
> actually exists.
>
> --
> Eugene
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: using initramfs with ppc
2005-04-18 21:24 using initramfs with ppc Pawel Studencki
@ 2005-04-18 22:01 ` Eugene Surovegin
2005-04-19 0:36 ` Manoj Padhi
0 siblings, 1 reply; 6+ messages in thread
From: Eugene Surovegin @ 2005-04-18 22:01 UTC (permalink / raw)
To: Pawel Studencki; +Cc: linuxppc-embedded
On Mon, Apr 18, 2005 at 02:24:01PM -0700, Pawel Studencki wrote:
> It can be wrong kernel parameter or problem with mtd
> or cramfs support. But if I see my kernel messages,
> everything seems to be OK for me. I've attached kernel
> logging, so let me know, if I'm wrong.
Could you send me privately your .config ?
--
Eugene
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: using initramfs with ppc
2005-04-18 22:01 ` Eugene Surovegin
@ 2005-04-19 0:36 ` Manoj Padhi
2005-04-19 3:35 ` HW + SW development tools for embedded linux (was Re: using initramfs with ppc) Ricardo Scop
0 siblings, 1 reply; 6+ messages in thread
From: Manoj Padhi @ 2005-04-19 0:36 UTC (permalink / raw)
To: Pawel Studencki, linuxppc-embedded
Pawel,
I am new to embedded linux development and planning to develop a small
project using embedded linux.
I looked for an evaluation kit in the market and it comes around $1100
+ development tool licence (starts at $6K). Hence I need some advice
regarding getting an custom board and use free tools. Can you suggest
such a board.
Thanks in advance for your help.
-Manoj
On 4/18/05, Eugene Surovegin <ebs@ebshome.net> wrote:
> On Mon, Apr 18, 2005 at 02:24:01PM -0700, Pawel Studencki wrote:
> > It can be wrong kernel parameter or problem with mtd
> > or cramfs support. But if I see my kernel messages,
> > everything seems to be OK for me. I've attached kernel
> > logging, so let me know, if I'm wrong.
>=20
> Could you send me privately your .config ?
>=20
> --
> Eugene
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
--=20
Thanks
Manoj
^ permalink raw reply [flat|nested] 6+ messages in thread
* HW + SW development tools for embedded linux (was Re: using initramfs with ppc)
2005-04-19 0:36 ` Manoj Padhi
@ 2005-04-19 3:35 ` Ricardo Scop
0 siblings, 0 replies; 6+ messages in thread
From: Ricardo Scop @ 2005-04-19 3:35 UTC (permalink / raw)
To: Manoj Padhi, linuxppc-embedded
Hi Manoj,
On Monday 18 April 2005 21:36, Manoj Padhi wrote:
> Pawel,
> I am new to embedded linux development and planning to develop a small
> project using embedded linux.
You failed to mention your project's budget :).
>
> I looked for an evaluation kit in the market and it comes around $1100
> + development tool licence (starts at $6K). Hence I need some advice
^^^ ELDK is free and probably bet=
ter
=09=09=09=09=09 (GNU tools rock!)
> regarding getting an custom board and use free tools. Can you suggest
> such a board.
We bought an RPXlite once and it worked well (sorry, but I don't remember=
the=20
price, please google the net).
Cheers,
--=20
Ricardo Scop.
\|/
___ -*-
(@ @)/|\
/ V \| R SCOP Consult.
/( )\ Linux-based communications
--^^---^^+------------------------------
rscop@matrix.com.br
+55 51 999-36-777
Porto Alegre, RS - BRazil
^ permalink raw reply [flat|nested] 6+ messages in thread
* using initramfs with ppc
@ 2005-04-18 15:34 Pawel Studencki
2005-04-18 16:03 ` Eugene Surovegin
0 siblings, 1 reply; 6+ messages in thread
From: Pawel Studencki @ 2005-04-18 15:34 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
I use a custom board with 8xx and kernel 2.6.11 and
try to mount root fs
based on cramfs. I still have problems with mounting
VFS:
VFS: Cannot open root device "mtdblock1" or
unknown-block(31,1)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root
fs on
unknown-block(31,1)
I found, that perhaps the reason is initramfs. How do
you use initramfs on
ppc?
Is it possible to turn off initramfs? If I've
understood correct
"Documentation/early-userspace/README", there is
possibility to boot direct
from flash.
My filesystem for initramfs is very simple in default
"initramfs_list" file:
dir /dev 0755 0 0
nod /dev/console 0600 0 0 c 5 1
dir /root 0700 0 0
do I have to append special files or directories?
thanks for any hints.
regards
Pawel
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: using initramfs with ppc
2005-04-18 15:34 using initramfs with ppc Pawel Studencki
@ 2005-04-18 16:03 ` Eugene Surovegin
0 siblings, 0 replies; 6+ messages in thread
From: Eugene Surovegin @ 2005-04-18 16:03 UTC (permalink / raw)
To: Pawel Studencki; +Cc: linuxppc-embedded
On Mon, Apr 18, 2005 at 08:34:42AM -0700, Pawel Studencki wrote:
> Hello,
>
> I use a custom board with 8xx and kernel 2.6.11 and
> try to mount root fs
> based on cramfs. I still have problems with mounting
> VFS:
>
> VFS: Cannot open root device "mtdblock1" or
> unknown-block(31,1)
> Please append a correct "root=" boot option
> Kernel panic - not syncing: VFS: Unable to mount root
> fs on
> unknown-block(31,1)
>
> I found, that perhaps the reason is initramfs.
Unlikely.
Please, check that you have mtdblock device enabled in config, also
that you have configured your flash support, and mtdblock1 partition
actually exists.
--
Eugene
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-04-19 3:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-18 21:24 using initramfs with ppc Pawel Studencki
2005-04-18 22:01 ` Eugene Surovegin
2005-04-19 0:36 ` Manoj Padhi
2005-04-19 3:35 ` HW + SW development tools for embedded linux (was Re: using initramfs with ppc) Ricardo Scop
-- strict thread matches above, loose matches on Subject: below --
2005-04-18 15:34 using initramfs with ppc Pawel Studencki
2005-04-18 16:03 ` Eugene Surovegin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).