Skip to contentSkip to conversation

Accessing DiskonChip

DISCUSSION Sanal Kumar 2 participants 4 messages Jan 7, 2003 – Jan 9, 2003 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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.

Quoted 23 lines · --- David Woodhouse
Quoted 1 line · [email protected] said:

I am working on an Assabet like board. I am trying

to make a

Quoted 1 line

filesystem on msystem Disk on chip.(The board

boots using ramdisk).

Quoted 1 line

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.

Quoted 6 lines

--
dwmw2

-------------------------------------------------------------------

Quoted 2 lines

Subscription options:

http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel

Quoted 2 lines

FAQ/Etiquette:

http://www.arm.linux.org.uk/armlinux/mailinglists.php

Quoted 1 line

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

#2 lore raw
Quoted 2 lines · [email protected] said:

I have added nftl support. So i need to support make a filesystem on
disk on chip How can I do that.

Might have been useful had you included this information in your first message. The HOWTO should suffice to get you going from that point.

--
dwmw2

#3 lore raw

Hi David ,

Sorry for not explaining the problem in detail. I have read the howto's on the infradead . But still I dont understand how to create a partition on Disk on chip
and have filesystem on it.
I have tried with nftl_* .But I could not do anything.

Could you please explain what I need to do for making the filesystem on DOC.

Boot Messages
--------------

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

and using nftl_format I tried to format the diskon chip But I get an error like the following

NFTL_open
ENODEV: thisNFTL = 0, minor = 23808, ip = c94ac4c0, fp = c965caa0
NFTL_open
ENODEV: thisNFTL = 0, minor = 23809, ip = c94ac6e0, fp = c965ca20 The only thing I could do was

dd if=XXXX of=/dev/mtd0

I am adding part of my .config here.
-----------------------------------
#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=y
CONFIG_MTD_DEBUG=y
CONFIG_MTD_DEBUG_VERBOSE=3 CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_BOOTLDR_PARTS is not set
# CONFIG_MTD_AFS_PARTS is not set #
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
# CONFIG_MTD_BLOCK is not set
# CONFIG_MTD_BLOCK_RO is not set
# CONFIG_FTL is not set
CONFIG_NFTL=y
CONFIG_NFTL_RW=y #
# RAM/ROM/Flash chip drivers
#
# CONFIG_MTD_CFI is not set
# CONFIG_MTD_JEDECPROBE is not set
# CONFIG_MTD_GEN_PROBE is not set
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set #
# Mapping drivers for chip access
# #
# Self-contained MTD device drivers
#
#
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set #
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC1000 is not set CONFIG_MTD_DOC2000=y
CONFIG_MTD_DOC2001=y
CONFIG_MTD_DOCPROBE=y
# CONFIG_MTD_DOCPROBE_ADVANCED is not set CONFIG_MTD_DOCPROBE_ADDRESS=0
# CONFIG_MTD_DOCPROBE_HIGH is not set
# CONFIG_MTD_DOCPROBE_55AA is not set #
# NAND Flash Device Drivers
#
# CONFIG_MTD_NAND is not set

TIA
Best Regards
Sanal

Quoted 6 lines · --- David Woodhouse
Quoted 1 line · [email protected] said:

I have added nftl support. So i need to support

make a filesystem on

Quoted 1 line

disk on chip How can I do that.

Quoted 9 lines

Might have been useful had you included this information in your first
message. The HOWTO should suffice to get you going from that point.

--
dwmw2

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

#4 lore raw
Quoted 4 lines · [email protected] said:

and using nftl_format I tried to format the diskon chip But I get an
error like the following

NFTL_open

Show me the command line you used. Compare it with the command line in the HOWTO.

--
dwmw2