All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Problem in writing jffs2 fiesystem
@ 2008-09-08  7:19 navin karnam
       [not found] ` <162d31d50809080721n354dc048x61a09d4c4186cd83@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: navin karnam @ 2008-09-08  7:19 UTC (permalink / raw)
  To: u-boot

Hi all,

I am running u-b00t-1.6.6 on custom at91sam9263 board.
Now i am able to boot, jffs2 filesystem with linux-2.6.20 kernel.
but the procedure i am using to burn is jffs2 is :
1)boot the linux kernel with ramdisk
2)erase the flash partition using $flasheraseall -j /dev/mtd1
3)writing the image using $nandwrite -p /dev/mtd1 rootfs.jffs2

The above procedure works well for me. But when i try writing the jffs2
filesytem in uboot prompt its not booting (kernel panic).
In uboot i did this way:

1) tftp 21100000 rootfs.jffs2
2)nand write.jffs2 21100000 0x200000 0x(hex add of displayed by tftp)


What is the write  of doing this?
-
Regards,
Naveen
Application Engineer
Innovate Software Solutions Pvt Ltd.,
Bengalooru

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

* [U-Boot] FW:  Fwd: Problem in writing jffs2 fiesystem
       [not found]   ` <BLU106-W1141C6DB6A780D83A6CA9DCA550@phx.gbl>
@ 2008-09-08 14:54     ` Pedro Luis D. L.
  2008-09-08 16:43       ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Luis D. L. @ 2008-09-08 14:54 UTC (permalink / raw)
  To: u-boot









On Mon, 8 Sep 2008 19:51:59 +0530 Navin wrote:

>Hi all,
>
>I am running u-b00t-1.6.6 on custom at91sam9263 board.

Are you sure it is u-boot-1.6.6? The latest u-boot in repository is
1.3.4.

>Now i am able to boot, jffs2 filesystem with linux-2.6.20 kernel.
>but the procedure i am using to burn is jffs2 is :

>1)boot the linux kernel with ramdisk

>2)erase the flash partition using $flasheraseall -j /dev/mtd1
>3)writing the image using $nandwrite -p /dev/mtd1 rootfs.jffs2
>

You should be able to flash the jffs2 file sytem from u-boot.
No need to do it from linux.

>The above procedure works well for me. But when i try writing the jffs2 filesytem in uboot prompt its not booting (kernel panic).


>In uboot i did this way:
>
>1) tftp 21100000 rootfs.jffs2
>2)nand write.jffs2 21100000 0x200000 0x(hex add of displayed by tftp)
>

Which command is "nand write.jffs2"? Maybe you're using a version which
is modified by the board supplier. 
A "normal" way to flash it would be:

cp.b 21100000 $(destiny_addr) $(filesize)

Cheers.

Pedro L.

>
>What is the write  of doing this?
>- 
>Regards,
>Naveen




Juega a las preguntas de Live Quiz con tus contactos de Messenger ?Empieza ahora!

_________________________________________________________________
?Sigue el calor? Consulta MSN El tiempo
http://eltiempo.es.msn.com/

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

* [U-Boot] FW:  Fwd: Problem in writing jffs2 fiesystem
  2008-09-08 14:54     ` [U-Boot] FW: Fwd: " Pedro Luis D. L.
@ 2008-09-08 16:43       ` Scott Wood
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Wood @ 2008-09-08 16:43 UTC (permalink / raw)
  To: u-boot

On Mon, Sep 08, 2008 at 04:54:03PM +0200, Pedro Luis D. L. wrote:
> On Mon, 8 Sep 2008 19:51:59 +0530 Navin wrote:
> 
> >Hi all,
> >
> >I am running u-b00t-1.6.6 on custom at91sam9263 board.
> 
> Are you sure it is u-boot-1.6.6? The latest u-boot in repository is
> 1.3.4.

I'm guessing he meant 1.1.6, which is quite old (and apparently old
enough to suffer l33tsp34k bitrot).

> >Now i am able to boot, jffs2 filesystem with linux-2.6.20 kernel.

Especially since he's also using a kernel that is quite old. :-)

> >but the procedure i am using to burn is jffs2 is :
> 
> >1)boot the linux kernel with ramdisk
> 
> >2)erase the flash partition using $flasheraseall -j /dev/mtd1
> >3)writing the image using $nandwrite -p /dev/mtd1 rootfs.jffs2
> >
> 
> You should be able to flash the jffs2 file sytem from u-boot.
> No need to do it from linux.

I think that's the point, that it should work from u-boot but doesn't.

There's probably either something wrong with the u-boot NAND driver being
used, or the ECC layout doesn't match the kernel's.

> >In uboot i did this way:
> >
> >1) tftp 21100000 rootfs.jffs2
> >2)nand write.jffs2 21100000 0x200000 0x(hex add of displayed by tftp)
> >
> 
> Which command is "nand write.jffs2"?

It's a perfectly normal u-boot command.

> Maybe you're using a version which
> is modified by the board supplier. 
> A "normal" way to flash it would be:
> 
> cp.b 21100000 $(destiny_addr) $(filesize)

That's for NOR flash.  It does not work for NAND.

-Scott

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

end of thread, other threads:[~2008-09-08 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08  7:19 [U-Boot] Problem in writing jffs2 fiesystem navin karnam
     [not found] ` <162d31d50809080721n354dc048x61a09d4c4186cd83@mail.gmail.com>
     [not found]   ` <BLU106-W1141C6DB6A780D83A6CA9DCA550@phx.gbl>
2008-09-08 14:54     ` [U-Boot] FW: Fwd: " Pedro Luis D. L.
2008-09-08 16:43       ` Scott Wood

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.