Ravi wrote:
> Hi,
> The flash I am using on this board has 512 sectors each of 64kilobytes so
> the erase block size should be 64kb=0x10000.
> I also have boards which use spansion flash which has 256 sectors each of
> 128kilo bytes. Erase block for them is 128kb=0x20000.
> Both of the flashes behave the same way. I get the same error..
> I noticed one thing. If I do memorydump of the sectors which donot have the
> jffs2 image I see the begining of the sector as 19852003 0000000c f060dc98
> =>md FE7A0000
> fe7a0000: 19852003 0000000c f060dc98 ffffffff .. ......`......
> fe7a0010: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0020: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0030: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0040: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0050: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0060: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0070: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0080: ffffffff ffffffff ffffffff ffffffff ................
> fe7a0090: ffffffff ffffffff ffffffff ffffffff ................
>
> But If I do a md of a sector which has the contents of jffs2 image then I do
> not see the header.
> =>md fc020000
> fc020000: b58dc90c 0ce12b39 6c6a38a3 f40a3819 ......+9lj8...8.
> fc020010: 1a1c9a18 78807e51 700008a0 79ff2580 ....x.~Qp...y.%.
> fc020020: 7682ec63 04d50b40 bbf240f6 ccbe0310 [EMAIL PROTECTED]@.....
> fc020030: 40203180 00030081 c9b057ff ffffffff @ 1.......W.....
> fc020040: 19852003 0000000c f060dc98 1985e002 .. ......`......
> fc020050: 00000625 c800d476 00000009 0000003a ...%...v.......:
> fc020060: 000081ed 00000000 000cecf3 47681135 ............Gh.5
> fc020070: 47681135 47681135 0003878e 000005e1 Gh.5Gh.5........
> fc020080: 00000872 06000000 c54a53f1 9b07730a ...r.....JS...s.
> fc020090: 785e7455 516c5365 143e775b 9a966de1 x^tUQlSe.>w[..m.
>
> So I am not sure if this is normal.. Any help or pointers to solve this will
> be of great help.
>
> Strange thing is everything works fine except I get these message printed. I
> can access the jffs2 partition i.e read/write/execute files from it.
Wich kernel version are you using? Because I had a very similar problem and
realized that any file with a name longer than 8 characters was bad written,
although everything seemed to be ok and I could mount the partition. It was a
bug in the JFFS2 kernel driver (I think I was using 2.6.22.6) and it was
corrected later.
Maybe you should check this long names issue just to be sure.
Pedro.
> Thanks,
> Ravishankar Govindarao
> RFL Electronics Inc.
> E-mail : [EMAIL PROTECTED]
> Voice: 973.334.3100 Ext. 233
> Fax: 973.334.3863
>
>
>
> CONFIDENTIALITY NOTE
>
> This e-mail, including any attachments, may contain confidential and/or
> legally privileged information. The Information is intended only for the use
> of the individual or entity named on this e-mail . If you are not the
> intended recipient, you are hereby notified that any disclosure, copying,
> distribution, or the taking of any action in reliance on the contents of this
> transmitted Information is strictly prohibited. Further, if you are not the
> intended recipient, please notify us by return e-mail and delete the
> Information promptly.
>
>
>
>
>
>
>
>
> "Pedro Luis D. L."
> Sent by: [EMAIL PROTECTED]
>
> 12/19/2007 04:38 AM
> To
>
> cc
> Subject
> RE: Getting this error when mounting the jffs2 partition created using
> mkImage..
>
>
>
>
>
>
> Ravi wrote:
>>
>> Hi All,
>> I have u-boot based bootloader on our custom board based on ppc405EP.
>> Various partitions are..
>> Amd/Fujitsu Extended Query Table at 0x0040
>> RoadRunner: CFI does not contain boot bank location. Assuming top.
>> number of CFI chips: 2
>> cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
>> Creating 5 MTD partitions on "RoadRunner":
>> 0x03fc0000-0x04000000 : "U-Boot based RR Boot loader"
>> 0x03fa0000-0x03fc0000 : "U-Boot Env Storage"
>> 0x03f80000-0x03fa0000 : "U-Boot Redundant Env Storage"
>> 0x027c0000-0x03f80000 : "Kernel Image"
>> 0x00000000-0x027c0000 : "JFFS2 Linux FS"
>>
>> I have used the following command to create the jffs2 file system image.
>> $BLDTOOLS/mkfs.jffs2 -b -e 0x10000 -d $JFFS2 -p 0x27c0000 -o rr-app_64.img
>> ${MKIMAGE} -T filesystem -n 'RR App Image for AMD' -d rr-app_64.img
>> uRR-app_64
>
> Hi,
> I'm not using that board so I can not tell which is the correct value, but
> looking at the output you send it looks like the erase size you passed when
> creating the image file is wrong. I suggest you to find the appropiate value
> and create the image. For an mpc5200b it happened to be 0x20000. May this
> would help.
>
> Good luck.
>
> Pedro.
>
> _________________________________________________________________
> La vida de los famosos al desnudo en MSN Entretenimiento
> http://entretenimiento.es.msn.com/
> _______________________________________________
> Linuxppc-embedded mailing list
> [email protected]
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
_________________________________________________________________
MSN Noticias
http://noticias.msn.es/comunidad.aspx
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded