All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] jffs2 fs for linux
@ 2005-02-25 14:31 Hinko Kocevar
  2005-02-25 17:28 ` Alan Casey
  2005-02-25 20:03 ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Hinko Kocevar @ 2005-02-25 14:31 UTC (permalink / raw)
  To: u-boot

Hi,

(I apologize if the list recieves this(similar) mail twice)

I have jffs2 fs image in flash and would like to mount it when linux 
asks for root fs.Linux gives out:
...
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
Kernel panic - not syncing: VFS: Unable to mount root fs on 
unknown-block(2,0)
  <0>Rebooting in 5 seconds..? 


and command line is:
Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 rw 
console=ttyS0,115200 mem=64M panic=5

Image is located at 0x2c0000 and u-boot can see it, too:
Ub00t> ls
Scanning JFFS2 FS: ...... done.
  drwxr-xr-x        0 Mon Feb 21 11:39:54 2005 bin
  drwxr-xr-x        0 Mon Feb 21 17:48:03 2005 dev
  drwxr-xr-x        0 Fri Feb 18 14:00:50 2005 etc
  drwxr-xr-x        0 Wed Feb 23 16:38:26 2005 lib
  lrwxrwxrwx       11 Tue Feb 22 07:58:53 2005 linuxrc -> bin/busybox
  drwxr-xr-x        0 Wed Dec 29 11:01:22 2004 mnt
  drwxr-xr-x        0 Tue Jul 20 10:38:27 2004 proc
  drwxr-xr-x        0 Thu Feb 17 21:58:50 2005 sbin
  drwxr-xr-x        0 Wed Feb 23 17:40:11 2005 staging
  drwxr-xr-x        0 Wed Feb 23 23:27:06 2005 tmp
  drwxr-xr-x        0 Wed Feb 23 16:40:41 2005 usr
  drwxr-xr-x        0 Tue Jul 20 10:38:41 2004 var

But how do I supply this info to u-boot when booting linux?
Is 'fsload' the right way to go? But I would still like to have kernel 
separated from fs image...

Using kernel 2.6.9 here.

regards,
hk

-- 
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, embedded systems developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

	"A? r?n"	|	[Analects XII:22]

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

* [U-Boot-Users] jffs2 fs for linux
  2005-02-25 14:31 [U-Boot-Users] jffs2 fs for linux Hinko Kocevar
@ 2005-02-25 17:28 ` Alan Casey
  2005-02-25 17:37   ` Hinko Kocevar
  2005-02-25 20:03 ` Wolfgang Denk
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Casey @ 2005-02-25 17:28 UTC (permalink / raw)
  To: u-boot

Hi Hinko,

  I had a similar problem. If you make sure
  that your Flash is programmed similar to
  the following order then it should work
  with the setup you describe:
 
  Image1 Addr1 u-boot  <-- mounted as /dev/mtdblock0
  Image2 Addr2 kernel  <-- mounted as /dev/mtdblock1
  Image3 Addr3 jffs2   <-- mounted as /dev/mtdblock2

  Hope this helps,
  Alan.

>-- Original Message --
>From: Hinko Kocevar <hinko.kocevar@iskramedical.si>
>To: uboot <u-boot-users@lists.sourceforge.net>
>Subject: [U-Boot-Users] jffs2 fs for linux
>Date: Fri, 25 Feb 2005 15:31:44 +0100
>
>
>Hi,
>
>(I apologize if the list recieves this(similar) mail twice)
>
>I have jffs2 fs image in flash and would like to mount it when linux 
>asks for root fs.Linux gives out:
>...
>Root-NFS: No NFS server available, giving up.
>VFS: Unable to mount root fs via NFS, trying floppy.
>Kernel panic - not syncing: VFS: Unable to mount root fs on 
>unknown-block(2,0)
>  <0>Rebooting in 5 seconds..? 
>
>
>and command line is:
>Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 rw 
>console=ttyS0,115200 mem=64M panic=5
>
>Image is located at 0x2c0000 and u-boot can see it, too:
>Ub00t> ls
>Scanning JFFS2 FS: ...... done.
>  drwxr-xr-x        0 Mon Feb 21 11:39:54 2005 bin
>  drwxr-xr-x        0 Mon Feb 21 17:48:03 2005 dev
>  drwxr-xr-x        0 Fri Feb 18 14:00:50 2005 etc
>  drwxr-xr-x        0 Wed Feb 23 16:38:26 2005 lib
>  lrwxrwxrwx       11 Tue Feb 22 07:58:53 2005 linuxrc -> bin/busybox
>  drwxr-xr-x        0 Wed Dec 29 11:01:22 2004 mnt
>  drwxr-xr-x        0 Tue Jul 20 10:38:27 2004 proc
>  drwxr-xr-x        0 Thu Feb 17 21:58:50 2005 sbin
>  drwxr-xr-x        0 Wed Feb 23 17:40:11 2005 staging
>  drwxr-xr-x        0 Wed Feb 23 23:27:06 2005 tmp
>  drwxr-xr-x        0 Wed Feb 23 16:40:41 2005 usr
>  drwxr-xr-x        0 Tue Jul 20 10:38:41 2004 var
>
>But how do I supply this info to u-boot when booting linux?
>Is 'fsload' the right way to go? But I would still like to have kernel

>separated from fs image...
>
>Using kernel 2.6.9 here.
>
>regards,
>hk
>
>-- 
>hinko <dot> kocevar <at> iskramedical <dot> si
>Hinko Kocevar, embedded systems developer
>Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
>
>	"A? r?n"	|	[Analects XII:22]
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

* [U-Boot-Users] jffs2 fs for linux
  2005-02-25 17:28 ` Alan Casey
@ 2005-02-25 17:37   ` Hinko Kocevar
  2005-02-25 18:09     ` Alan Casey
  2005-02-25 20:10     ` Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Hinko Kocevar @ 2005-02-25 17:37 UTC (permalink / raw)
  To: u-boot

Alan Casey wrote:
> Hi Hinko,
> 
>   I had a similar problem. If you make sure
>   that your Flash is programmed similar to
>   the following order then it should work
>   with the setup you describe:
>  
>   Image1 Addr1 u-boot  <-- mounted as /dev/mtdblock0
>   Image2 Addr2 kernel  <-- mounted as /dev/mtdblock1
>   Image3 Addr3 jffs2   <-- mounted as /dev/mtdblock2
> 

Hmm, this is just like my setup in flash.
0x00000000 - 0x000c0000		uboot+env
0x000c0000 - 0x002c0000		kernel
0x002c0000 - 0x02000000		rootfs(jffs2)

But as you can see from my previous post, kernel does not mount the 
rootfs as expected.

Are there any special/other bits I have to setup?

The same layout works on another pxa platform I have, but it is not 
running u-boot...

regards,
hk

-- 
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, embedded systems developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

	"A? r?n"	|	[Analects XII:22]

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

* [U-Boot-Users] jffs2 fs for linux
  2005-02-25 17:37   ` Hinko Kocevar
@ 2005-02-25 18:09     ` Alan Casey
  2005-02-25 20:10     ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Alan Casey @ 2005-02-25 18:09 UTC (permalink / raw)
  To: u-boot

Hi Hinko,

  Another thing you could try is when running
  U-Boot to set your bootargs environment
  variable to match your kernel command
  line (i.e. add rootfstype=jffs2):

  setenv bootargs root=/dev/mtdblock2 rootfstype=jffs2
  console=ttyS0,115200 mem=64M panic=5

  I've noticed that if i dont set 'rootfstype=jffs2'
  in the bootargs variable i get the same error message
  you were seeing for some reason.
 
  Hope this helps,
  Alan.
  

>-- Original Message --
>From: Hinko Kocevar <hinko.kocevar@iskramedical.si>
>To: alan.casey5 at mail.dcu.ie
>Cc: uboot <u-boot-users@lists.sourceforge.net>
>Subject: Re: [U-Boot-Users] jffs2 fs for linux
>Date: Fri, 25 Feb 2005 18:37:59 +0100
>
>
>Alan Casey wrote:
>> Hi Hinko,
>> 
>>   I had a similar problem. If you make sure
>>   that your Flash is programmed similar to
>>   the following order then it should work
>>   with the setup you describe:
>>  
>>   Image1 Addr1 u-boot  <-- mounted as /dev/mtdblock0
>>   Image2 Addr2 kernel  <-- mounted as /dev/mtdblock1
>>   Image3 Addr3 jffs2   <-- mounted as /dev/mtdblock2
>> 
>
>Hmm, this is just like my setup in flash.
>0x00000000 - 0x000c0000		uboot+env
>0x000c0000 - 0x002c0000		kernel
>0x002c0000 - 0x02000000		rootfs(jffs2)
>
>But as you can see from my previous post, kernel does not mount the 
>rootfs as expected.
>
>Are there any special/other bits I have to setup?
>
>The same layout works on another pxa platform I have, but it is not 
>running u-boot...
>
>regards,
>hk
>
>-- 
>hinko <dot> kocevar <at> iskramedical <dot> si
>Hinko Kocevar, embedded systems developer
>Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
>
>	"A? r?n"	|	[Analects XII:22]
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
>_______________________________________________
>U-Boot-Users mailing list
>U-Boot-Users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

* [U-Boot-Users] jffs2 fs for linux
  2005-02-25 14:31 [U-Boot-Users] jffs2 fs for linux Hinko Kocevar
  2005-02-25 17:28 ` Alan Casey
@ 2005-02-25 20:03 ` Wolfgang Denk
  2005-02-27 15:06   ` Hinko Kocevar
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2005-02-25 20:03 UTC (permalink / raw)
  To: u-boot

Dear Hinko,

in message <421F36D0.4060703@iskramedical.si> you wrote:
> 
> (I apologize if the list recieves this(similar) mail twice)

Yes, we did :-(

> I have jffs2 fs image in flash and would like to mount it when linux 
> asks for root fs.Linux gives out:

This is actually NOT related to U-Boot, so it's  off  topic  on  this
list.

> and command line is:
> Kernel command line: root=/dev/mtdblock2 rootfstype=jffs2 rw 
> console=ttyS0,115200 mem=64M panic=5
...
> But how do I supply this info to u-boot when booting linux?

You don't supply any inforation to U-Boot, it's the LInux kernel  who
needs  to know where to find the root filesystem, Assuming your flash
partitioning in Linux  is  correct,  then  the  "root=/dev/mtdblock2"
should be all you need.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The more sins you confess, the more books you will sell.

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

* [U-Boot-Users] jffs2 fs for linux
  2005-02-25 17:37   ` Hinko Kocevar
  2005-02-25 18:09     ` Alan Casey
@ 2005-02-25 20:10     ` Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2005-02-25 20:10 UTC (permalink / raw)
  To: u-boot

In message <421F6277.6030604@iskramedical.si> you wrote:
>
> But as you can see from my previous post, kernel does not mount the 
> rootfs as expected.

It would definitely be  helpful  if  you  showed  us  the  full  boot
messages of your Linux kernel, or at lest the part which includes the
MTD initalization and flash partitioning.

But please NOT on this list, it is off topic here.

Best regards,

Wolfgang Denk

-- 
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The philosophy exam was a piece of cake  -  which  was  a  bit  of  a
surprise, actually, because I was expecting some questions on a sheet
of paper.

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

* [U-Boot-Users] jffs2 fs for linux
  2005-02-25 20:03 ` Wolfgang Denk
@ 2005-02-27 15:06   ` Hinko Kocevar
  0 siblings, 0 replies; 7+ messages in thread
From: Hinko Kocevar @ 2005-02-27 15:06 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:
> Yes, we did :-(

I'm having mail client problems, again :(. I'm really sorry for this.

> This is actually NOT related to U-Boot, so it's  off  topic  on  this
> list.
> 

Yes it is kinda off topic, but I suspected that u-boot was 
"rejcting/ignoring" the rootfs image in the flash... so I decided to 
post here first to see if there are any steps that need to be taken on 
the rootfs before using jffs2 with u-boot.

 From the posts I can conclude that this problem has nothig to do with 
u-boot.

regards,
hk

-- 
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, embedded systems developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU

	"A? r?n"	|	[Analects XII:22]

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

end of thread, other threads:[~2005-02-27 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-25 14:31 [U-Boot-Users] jffs2 fs for linux Hinko Kocevar
2005-02-25 17:28 ` Alan Casey
2005-02-25 17:37   ` Hinko Kocevar
2005-02-25 18:09     ` Alan Casey
2005-02-25 20:10     ` Wolfgang Denk
2005-02-25 20:03 ` Wolfgang Denk
2005-02-27 15:06   ` Hinko Kocevar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.