Skip to contentSkip to conversation

JFFS2 error while Copying

DISCUSSION Niraj Maheshwari 2 participants 4 messages May 16, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I am using Linux Kernel 2.6.10 and applied the latest MTD patch from website. We are using Intel Strata L18 flash.

After booting the kernel, we mount the JFFS2 partition by using below command.

mount -t jffs2 /dev/mtdblock0 /disc

Then we try to copy a directory frm Ramdisk by using following command.

cp -a bin/ disc/

Then it gives below error/warning just once and then copies the data.

Node totlen on flash (0x00800080) != totlen from node ref (0x0000000c).

This problem doesn't come on Intel W18 flash.

Is this really a problem ? If yes, then how can we overcome this ?

Let me know if you need further information in this regard.

Thanks
Niraj

#1 lore raw
Quoted 1 line · Niraj Maheshwari

Node totlen on flash (0x00800080) != totlen from node ref (0x0000000c).

I asked about your message in IRC:

dedekind dwmw2, "Node totlen on flash (0x00800080) != totlen from node ref (0x0000000c)" - have you ever seen something like this ? jwb that looks like a status register
jwb 0x00800080 i mean
dedekind hmm
dedekind i.e. he configured partition incorrectly ?
dedekind and reads some mapped registers?
jwb not necessarily
jwb it could be that the MTD and JFFS2 layers were out of sync
jwb or it could just be random data that just _looks_ like the value of a status register
dwmw2 soudns like a flash driver bug
dwmw2 I've seen that kind of thing before, yes
dwmw2 flash in status mode when we think we're reading from it

Signature · 3 lines
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
#2 lore raw

Hi Artem,

Any concrete cause for this problem for which i should look in to the code ?

I have verified the Flash Driver as it works fine for Intel W18 NOR flash and i have not modified anything for the Intel Strata W18 flash. Ideally it should work as it
is as both the flashes are CFI compliant.

Thanks
Niraj

Quoted 24 lines · Artem B. Bityuckiy
Quoted 1 line · Niraj Maheshwari

Node totlen on flash (0x00800080) != totlen from node ref (0x0000000c).

I asked about your message in IRC:

dedekind dwmw2, "Node totlen on flash (0x00800080) != totlen from node ref (0x0000000c)" - have you ever seen something like this ? jwb that looks like a status register
jwb 0x00800080 i mean
dedekind hmm
dedekind i.e. he configured partition incorrectly ?
dedekind and reads some mapped registers?
jwb not necessarily
jwb it could be that the MTD and JFFS2 layers were out of sync jwb or it could just be random data that just _looks_ like the value of a status register
dwmw2 soudns like a flash driver bug
dwmw2 I've seen that kind of thing before, yes
dwmw2 flash in status mode when we think we're reading from it

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

#3 lore raw
Quoted 1 line · Niraj Maheshwari

Any concrete cause for this problem for which i should look in to the code ?

Sorry, nothing concrete. That was just a guess/hint where you may take a closer look yourself.

Signature · 3 lines
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.