Problem in writing jffs2 fiesystem
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · 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.
Quoted 8 lines
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/mtd13)writing the image using $nandwrite -p/dev/mtd1rootfs.jffs2
You should be able to flash the jffs2 file sytem from u-boot. No need to do it from linux.
Quoted 8 lines
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 211000000x2000000x(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.
Quoted 5 lines
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/
Quoted 8 lines · Pedro Luis D. L.
Quoted 3 lines · 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).
Quoted 1 line
Quoted 1 line
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. :-)
Quoted 10 lines
Quoted 7 lines
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/mtd13)writing the image using $nandwrite -p/dev/mtd1rootfs.jffs2You 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.
Quoted 7 lines
Quoted 5 lines
In uboot i did this way:
1) tftp 21100000 rootfs.jffs2
2)nand write.jffs2 211000000x2000000x(hex add of displayed by tftp)Which command is "nand write.jffs2"?
It's a perfectly normal u-boot command.
Quoted 5 lines
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