From: Sanal Kumar <p_sanalk@yahoo.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-arm-kernel@lists.arm.linux.org.uk, linux-mtd@lists.infradead.org
Subject: Re: Accessing DiskonChip
Date: Mon, 6 Jan 2003 22:01:17 -0800 (PST) [thread overview]
Message-ID: <20030107060117.4972.qmail@web10304.mail.yahoo.com> (raw)
In-Reply-To: <14808.1041861477@passion.cambridge.redhat.com>
Hi David,
I have added following lines in the docprobe.c
static unsigned long __initdata doc_locations[] = {
--
--
#elif defined (__arm__)
0x18000000,
#else
#warning ---
#endif
0};
So i think I dont need to define it in
CONFIG_MTD_DOCPROBE_ADDRESS.
And My log message is like this .
DiskOnChip Millennium found at address 0x18000000
Flash chip found: Manufacturer ID: 98, Chip ID: E6
(Toshiba TC58V64AFT/DC)
1 flash chips found. Total DiskOnChip size: 8 MiB
out-of-line wait
_DoC_WaitReady called for out-of-line wait
.
. _DoC_WaitReady called for out-of-line wait
Could not find valid boot record
Could not mount NFTL device
In Our board SA_A1 ->DOC_A0 ..... SA_A13->DOC_A12 ,So
there is <<1 .
I have changed the ReadDOC_ and WriteDOC_
in include/linux/mtd/doc2000.h
#define ReadDOC_(adr,reg) readb(((unsigned
long)adr)+((reg(<<1));
#define WriteDOC_(d,adr,reg) writeb(d,((unsigned
long)adr)+((reg(<<1));
I am able to read & write to /dev/mtd0 using dd.
I have added nftl support. So i need to support make a
filesystem on disk on chip How can I do that.
Best Regards
Sanal.
--- David Woodhouse <dwmw2@infradead.org> wrote:
>
> p_sanalk@yahoo.com said:
> > I am working on an Assabet like board. I am trying
> to make a
> > filesystem on msystem Disk on chip.(The board
> boots using ramdisk).
>
> > I have added entries for mtd* and nftl* in in /dev
>
>
> You haven't set CONFIG_MTD_DOCPROBE_ADDRESS and
> since you're not on a
> platform which has standard addresses at which to
> probe for a DiskOnChip,
> the driver has no idea where to look for it.
>
> Set CONFIG_MTD_DOCPROBE_ADDRESS to the physical
> address at which the
> DiskOnChip is mapped, and check the definitions of
> ReadDOC_ and WriteDOC_
> in include/linux/mtd/doc2000.h are correct for the
> way you've wired it up.
>
> --
> dwmw2
>
>
>
>
-------------------------------------------------------------------
> Subscription options:
>
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
> FAQ/Etiquette:
>
http://www.arm.linux.org.uk/armlinux/mailinglists.php
>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
next parent reply other threads:[~2003-01-07 5:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <14808.1041861477@passion.cambridge.redhat.com>
2003-01-07 6:01 ` Sanal Kumar [this message]
2003-01-07 8:51 ` Accessing DiskonChip David Woodhouse
2003-01-09 12:26 ` Sanal Kumar
2003-01-09 12:46 ` David Woodhouse
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=20030107060117.4972.qmail@web10304.mail.yahoo.com \
--to=p_sanalk@yahoo.com \
--cc=dwmw2@infradead.org \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--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