Skip to contentSkip to conversation

using initramfs with ppc

DISCUSSION Pawel Studencki 4 participants 4 messages Apr 18, 2005 – Apr 19, 2005

lore
Share & tools
lore
#0 lore raw

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)

Quoted 21 lines · --- Eugene Surovegin
Quoted 3 lines · Pawel Studencki

Hello,

I use a custom board with 8xx and kernel 2.6.11

and

Quoted 2 lines

try to mount root fs
based on cramfs. I still have problems with

mounting

Quoted 6 lines

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

Quoted 4 lines

fs on
unknown-block(31,1)

I found, that perhaps the reason is initramfs.

Quoted 11 lines

Unlikely.

Please, check that you have mtdblock device enabled in config, also
that you have configured your flash support, and mtdblock1 partition
actually exists.

Signature · 1 line
Eugene

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#1 lore raw
Quoted 4 lines · Pawel Studencki

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 ?

Signature · 1 line
Eugene
#2 lore raw

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

Quoted 5 lines · Eugene Surovegin
Quoted 4 lines · Pawel Studencki

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.

Quoted 10 lines

=20
Could you send me privately your .config ?
=20
--
Eugene
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
=20

--=20
Thanks
Manoj

#3 lore raw

HW + SW development tools for embedded linux (was Re: using initramfs with ppc)

Hi Manoj,

Quoted 3 lines · Manoj Padhi

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 :).

Quoted 3 lines

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!)

Quoted 2 lines

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

--^^---^^+------------------------------
[email protected]
+55 51 999-36-777
Porto Alegre, RS - BRazil