public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd
@ 2001-10-15 12:52 Amit.Lubovsky
  2001-10-15 13:16 ` mtd David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Amit.Lubovsky @ 2001-10-15 12:52 UTC (permalink / raw)
  To: linux-mtd, jffs-dev

Hi,
I did as it is said in document
mtd-jffs-HOWTO.txt, v 1.13 2001/05/01 to add MTD support in linux kernel 2.4 for my mips 5kc on my malta board.
I have 2 pcs. flash chips on the board (Intel DT28F160) which has 4 MB capacity.
So I configured xconfig with CFI support, i.e:
CONFIG_MTD
CONFIG_MTD_ROM
CONFIG_MTD_CFI
CONFIG_MTD_CFI_ADVANCED_OPTIONS
CONFIG_MTD_CFI_NOSWAP
CONFIG_MTD_CFI_GEOMETRY
CONFIG_MTD_CFI_B4
CONFIG_MTD_CFI_I4
CONFIG_MTD_CFI_INTELEXT
CONFIG_MTD_CFI_PHYSMAP
CONFIG_MTD_CFI_PHYSMAP_START=1E000000
CONFIG_MTD_CFI_LEN=390900
CONFIG_MTD_CFI_BUSWIDTH=4

since it didn't worked I have change the function ioremap() in physmap.c to ioremap_nocache() but it still doesn't work...
Any clue???

Thanks, Amit.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* mtd
@ 2018-05-18  8:00 Levente
  2018-05-18  9:09 ` mtd David Oberhollenzer
  0 siblings, 1 reply; 10+ messages in thread
From: Levente @ 2018-05-18  8:00 UTC (permalink / raw)
  To: linux-mtd

Dear all,


I don't know if I post this to the right place, so forgive my ignorance.

My college discovered a possible bug in OpenWRT's mtd utility. When
writing to jffs device, the 'mtd' utility does not skip bad blocks.

This patch seems to fix this issue.


diff --git a/package/system/mtd/src/jffs2.c b/package/system/mtd/src/jffs2.c
index b432f64ac0..5bf3eec328 100644
--- a/package/system/mtd/src/jffs2.c
+++ b/package/system/mtd/src/jffs2.c
@@ -308,6 +308,16 @@ int mtd_write_jffs2(const char *mtd, const char
*filename, const char *dir)
        for(;;) {
                struct jffs2_unknown_node *node = (struct
jffs2_unknown_node *) buf;

+               while (mtd_block_is_bad(outfd, mtdofs) && (mtdofs < mtdsize)) {
+                       if (!quiet)
+                               fprintf(stderr, "\nSkipping bad block
at 0x%08x   ", mtdofs);
+
+                       mtdofs += erasesize;
+
+                       /* Move the file pointer along over the bad block. */
+                       lseek(outfd, erasesize, SEEK_CUR);
+               }
+
                if (read(outfd, buf, erasesize) != erasesize) {
                        fdeof = 1;
                        break;


I've cloned your utility repository, but didn't find jffs2.c anywhere.

Best regards,
Levente

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* MTD
@ 2008-03-26  3:58 Aneesh
  2008-03-26  7:11 ` MTD Andrey Yurovsky
  0 siblings, 1 reply; 10+ messages in thread
From: Aneesh @ 2008-03-26  3:58 UTC (permalink / raw)
  To: linux-mtd



Hello,
        I am Using an arm9 processor(kernel 2.6.24) and tried to
implement JFFS2 in parallel flash for data storage.but it failed .
my parallel flash is AT49BV642DT .First i erased the flash and mounted
to a drive .then i created a file there .After that i unmounted the
drive .and
 when i am trying to mount the jffs2 again  ,It is showing an error like
follows
"Magic bitmask 0x1985 not found at 0x007e0078:  0x6d63 instead  "
can you help me to solve this problem ?
                                                    Regards
                                                            Aneesh.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Mtd
@ 2005-10-12 11:02 yogesh shivabasappa
  0 siblings, 0 replies; 10+ messages in thread
From: yogesh shivabasappa @ 2005-10-12 11:02 UTC (permalink / raw)
  To: linux-mtd

Hi 

I'm new to mtd devices. I'm using intelp30 Nor flash memory chip
in one of my project . i am accessing this as a character device
I wanted to know how this deffers from the normal character
devices

thanks 

yogesh

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

^ permalink raw reply	[flat|nested] 10+ messages in thread
* mtd
@ 2000-04-28 13:17 Bob Canup
  2000-04-29  0:32 ` mtd David Woodhouse
  0 siblings, 1 reply; 10+ messages in thread
From: Bob Canup @ 2000-04-28 13:17 UTC (permalink / raw)
  To: MTD

 I would like to possibly add something to the "to do" list:

Make sure the code works with older kernels. Much development work on
embedded systems is done on the proven stable 2.0 and 2.2 kernels.
Embedded systems tend not to have bleeding edge software in them for
reliability reasons. That is part of the reason that Alan Cox still
turns out 2.0.x kernels.

Bob




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

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

end of thread, other threads:[~2018-05-18  9:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-15 12:52 mtd Amit.Lubovsky
2001-10-15 13:16 ` mtd David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2018-05-18  8:00 mtd Levente
2018-05-18  9:09 ` mtd David Oberhollenzer
2018-05-18  9:14   ` mtd Levente
2008-03-26  3:58 MTD Aneesh
2008-03-26  7:11 ` MTD Andrey Yurovsky
2005-10-12 11:02 Mtd yogesh shivabasappa
2000-04-28 13:17 mtd Bob Canup
2000-04-29  0:32 ` mtd David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox