linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Unable to mount jffs2 file system
@ 2003-06-16 13:45 Rakesh jagota
  2003-06-16 13:52 ` Jaap-Jan Boor
  0 siblings, 1 reply; 2+ messages in thread
From: Rakesh jagota @ 2003-06-16 13:45 UTC (permalink / raw)
  To: linuxppc-embedded


Hi all,

I am working on custom design board based on IBM405 PPC. I am using OpenBios
code and Linux -2.4.17 version from montavista. I have compiled the kernel
with JFFS2 support.

In linux/drivers/mtd/maps/redwood.c files, we have modified the partitions as
per our board

Our board is having 4MB flash and 32MB sdram.

#define WINDOW_ADDR      0xFFC00000
#define WINDOW_SIZE 	     0x00400000


we filled the  redwood_flash_partitions structure as below

		name: "Redwood kernel",					//"/dev/mtd0"
		offset: 0x00010000,
		size: 	0x00110000

		name: "Redwood OpenBIOS Vital Product Data",		//"/dev/mtd1"

		offset: 0x00000000,
		size: 0x00010000,
		mask_flags: MTD_WRITEABLE

		name: "Redwood filesystem",				//"/dev/mtd2"
		offset: 0x00110000,
		size: 0x002D0000

		name: "Redwood OpenBIOS",				//"/dev/mtd3"
		offset: 0x003E0000,
		size: 0x00020000,
		mask_flags: MTD_WRITEABLE	/* force read-only */


i have created a jff2 image and flashed in the mtd2 block. But while booting
i am  getting kernel panic
===============================================

kernel panic: I have no root and I want to scream

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

how to tell the kernel that the root filesystems is in mtdblock2


Thanks & Regards,

rakesh


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to mount jffs2 file system
  2003-06-16 13:45 Unable to mount jffs2 file system Rakesh jagota
@ 2003-06-16 13:52 ` Jaap-Jan Boor
  0 siblings, 0 replies; 2+ messages in thread
From: Jaap-Jan Boor @ 2003-06-16 13:52 UTC (permalink / raw)
  To: j.rakesh; +Cc: linuxppc-embedded


Rakesh,

in init/main.c you can add to root_dev_names[] your root
device (e.g. "mtdblock2" 0x1f02).

You have to specify somehow to use this device then, as kernel
parameter. I use root_string in arch/ppc/[mbxboot][simple]/misc.c:

char    *root_string = "root=/dev/mtdblock2 rw init=/linuxrc";

Jaap-Jan

Rakesh jagota wrote:
>
> Hi all,
>
> I am working on custom design board based on IBM405 PPC. I am using OpenBios
> code and Linux -2.4.17 version from montavista. I have compiled the kernel
> with JFFS2 support.
>
> In linux/drivers/mtd/maps/redwood.c files, we have modified the partitions as
> per our board
>
> Our board is having 4MB flash and 32MB sdram.
>
> #define WINDOW_ADDR      0xFFC00000
> #define WINDOW_SIZE          0x00400000
>
> we filled the  redwood_flash_partitions structure as below
>
>                 name: "Redwood kernel",                                 //"/dev/mtd0"
>                 offset: 0x00010000,
>                 size:   0x00110000
>
>                 name: "Redwood OpenBIOS Vital Product Data",            //"/dev/mtd1"
>
>                 offset: 0x00000000,
>                 size: 0x00010000,
>                 mask_flags: MTD_WRITEABLE
>
>                 name: "Redwood filesystem",                             //"/dev/mtd2"
>                 offset: 0x00110000,
>                 size: 0x002D0000
>
>                 name: "Redwood OpenBIOS",                               //"/dev/mtd3"
>                 offset: 0x003E0000,
>                 size: 0x00020000,
>                 mask_flags: MTD_WRITEABLE       /* force read-only */
>
> i have created a jff2 image and flashed in the mtd2 block. But while booting
> i am  getting kernel panic
> ===============================================
>
> kernel panic: I have no root and I want to scream
>
> ===============================================
>
> how to tell the kernel that the root filesystems is in mtdblock2
>
> Thanks & Regards,
>
> rakesh
>

--
J.G.J. Boor			  Anton Philipsweg 1
Software Engineer		  1223 KZ Hilversum
AimSys bv              		  tel. +31 35 689 1941
Postbus 2194, 1200 CD Hilversum   mailto:jjboor@aimsys.nl

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-16 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-16 13:45 Unable to mount jffs2 file system Rakesh jagota
2003-06-16 13:52 ` Jaap-Jan Boor

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