From: nicola76@inwind.it (Nicola)
To: linux-mtd@lists.infradead.org
Subject: buswidth and mtd map file
Date: 14 Feb 2003 10:05:44 +0100 [thread overview]
Message-ID: <1045213544.1191.29.camel@localhost.localdomain> (raw)
Hi,
I would ask you some question that are driving me crazy: after scanning
flash for node (after debug i see that nodes are readed correctly) jffs2
dead or seems become very slow.
I want to use JFFS2 root image on my flash Intel strataflash (NOR)
28F320C3.
Firstly i unlock all flash at bootloader time.
1) My flash is with bus width 16 (x16) so i put BUSWIDTH = 2 in my map
file in drivers/mtd/maps/.
I see in ixp425.c map file that function for read/write 8 bit from flash
are not implemented, and there is not copy_to function.
static struct map_info ixp425_map = {
name: "IXP425 Flash",
buswidth: BUSWIDTH, (= 2)
read16: ixp425_read16,
copy_from: ixp425_copy_from,
write16: ixp425_write16,
};
But in file edb7312.c they are implemented, in both file the BUSWIDTH =
2.
struct map_info edb7312nor_map = {
name: "NOR flash on EDB7312",
size: WINDOW_SIZE,
buswidth: BUSWIDTH, (= 2)
read8: edb7312nor_read8,
read16: edb7312nor_read16,
read32: edb7312nor_read32,
#ifdef CFI_WORD_64
read64: edb7312nor_read64,
#endif
copy_from: edb7312nor_copy_from,
write8: edb7312nor_write8,
write16: edb7312nor_write16,
write32: edb7312nor_write32,
#ifdef CFI_WORD_64
write64: edb7312nor_write64,
#endif
copy_to: edb7312nor_copy_to
};
What mean this? I need to implement all this function:
xxx_read 8, xxx_read 16, xxx_read 32 xxx_copy_from,
xxx_write8, xxx_write16, xxx_write32, xxx_copt_to
or only 16 bit function or what?
I think i can't load jffs2 image for problem related these functions,
I will be very pleased if anyone can help me!
Best Regards,
Nicola
reply other threads:[~2003-02-14 9:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1045213544.1191.29.camel@localhost.localdomain \
--to=nicola76@inwind.it \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox