Skip to contentSkip to conversation

DiskOnChip MD2202-D256

DISCUSSION Oskar Stolc 4 participants 6 messages May 23, 2003 – Jun 30, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I'm just trying to install DiskOnChip MD2202-D256 flash disk on my 2.4.21-rc2 linux. While loading modul by command
'modprobe docprobe'

these messages occurred on my screen:

DiskOnChip Millenium found at address 0xE0000
Unknown flash chip found: 21 21
Please report to [email protected]
Unknown flash chip found: 21 21
Please report to [email protected]
Unknown flash chip found: A1 A1
Please report to [email protected]
No flash chips recognised.

This flash disk was formated by DOS command:

	dformat /win:e000 /s:doc514.exb

and that enabled C:\ disk under DOS.

DiskOnChip is a part of ICOP-6070 PC/104 Embedded CPU module.

Is there some HOWTO showing me how to install this DOC in Linux?

Is this DOC supported by MTD drivers in 2.4.21-rc2 kernel?

Thanks,

Oskar

#1 lore raw

Possible GRUB problem: [Was: DiskOnChip MD2202-D256]

Hi all,

Sorry for a bit longer email, please be patient while reading and try to help me if can...

I changed the DiskOnChip 2000 MD2202-D256 chip to an older 8MB DiskOnChip 2000. (May be the MD2202-D256 model ist newer than the drivers and so it is not supporter yet) Now I am able to see the /dev/nftla device with /dev/nftla1 partition on my 8 MB flash disk.

Quoted 15 lines

I'm just trying to install DiskOnChip MD2202-D256 flash disk on my 2.4.21-rc2 linux. While loading modul by command
'modprobe docprobe'

these messages occurred on my screen:

DiskOnChip Millenium found at address 0xE0000
Unknown flash chip found: 21 21
Please report to [email protected]
Unknown flash chip found: 21 21
Please report to [email protected]
Unknown flash chip found: A1 A1
Please report to [email protected]
No flash chips recognised.

Quoted 8 lines

This flash disk was formated by DOS command:

	dformat /win:e000 /s:doc514.exb

and that enabled C:\ disk under DOS.

DiskOnChip is a part of ICOP-6070 PC/104 Embedded CPU module. Is there some HOWTO showing me how to install this DOC in Linux? Is this DOC supported by MTD drivers in 2.4.21-rc2 kernel?

Here is the order of steps I made to get funtional that 8MB flash disk:

- I built new linux kernel with MTD support. Here is the partion of my .config file:

#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=y
CONFIG_MTD_DEBUG=y
CONFIG_MTD_DEBUG_VERBOSE=0
# CONFIG_MTD_PARTITIONS is not set
# CONFIG_MTD_CONCAT is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set
CONFIG_MTD_CHAR=y
# CONFIG_MTD_BLOCK is not set
# CONFIG_MTD_BLOCK_RO is not set
CONFIG_FTL=y
CONFIG_NFTL=y
CONFIG_NFTL_RW=y

#
# RAM/ROM/Flash chip drivers
#
# nothing is set

#
# Mapping drivers for chip access
#
# nothing is set

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLKMTD is not set
# CONFIG_MTD_DOC1000 is not set
CONFIG_MTD_DOC2000=y
# CONFIG_MTD_DOC2001 is not set
CONFIG_MTD_DOCPROBE=y
CONFIG_MTD_DOCPROBE_ADVANCED=y
CONFIG_MTD_DOCPROBE_ADDRESS=E0000
# CONFIG_MTD_DOCPROBE_HIGH is not set
# CONFIG_MTD_DOCPROBE_55AA is not set

#
# NAND Flash Device Drivers
#
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_VERIFY_WRITE is not set
CONFIG_MTD_NAND_IDS=y

- by MS DOS program I formated the chip:

	dformat /win:e000 /s:doc514.exb /empty /y /nodos

- and booted my newly created kernel. Some output while processing the kernel booting follows:

	Using configured DiskOnChip probe adress 0xe000
	DiskOnChip 2000 found at address 0xE000
	Flash chip found: Manufacturer ID: 98, Chip ID: E6 (Toshiba:NAND 8MB 3,3V)

1 flash chips found. Total DiskOnChip size: 8 MB
mtd: Giving out device 0 to DiskOnChip 2000
$Id: ftl.c,v 1.45 2003/01/24 23:31:27 dwmw2 Exp $
ftl_cs: FTL header not found.
NFTL driver: nttlcore.c $Revision: 1.87 $, nftlmount.c $Revision: 1.31 $
NFTL: UnitSizeFactor 0x00 detected. This violates the spec but we think we know wat it means... Partition check:
nftla: nftla1

- then I partitioned the flash disk:

	# fdisk /dev/nftla
	Command (m for help): p
	Disk /dev/nftla: 8 MB, 8101888 bytes
	16 heads, 1 sector/track, 989 cylinders
	Units = cylinders of 16 * 512 = 8192 bytes
		Device	Boot	Start	End	Blocks	Id	System
	/dev/nftla1		1	989	7911+	1	FAT12

Command (m for help): d 1

Command (m for help): n p 1 <ENTER> <ENTER>

Command (m for help): a 1

Command (m for help): p
Disk /dev/nftla: 8 MB, 8101888 bytes 16 heads, 1 sector/track, 989 cylinders Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/nftla1 1 989 7911+ 1 Linux

Command (m for help): w

- I created an ext2 filesystem on /dev/nftla1 partition and transfered my minimalised linux 'distribution' on that partition. (I created a linux system that can fit under 8 MB following the Linux BootDisk HOWTO)

- the following step was to build GRUB with DiskOnChip support:

	wget ftp://alpla.gnu.org/gnu/grub/grub-0.92.tar.gz
	tar xzvf grup-0.92.tar.gz
	cd grup-0.92
	cat ../mtd/patches/grub-0.92-doc.patch |patch -p1
	aclocal
	automake --add-missing
	autoconf
	./configure --enable-diskonchip-2000 --enable-ext2fs \
		--disable-ffs --disable-xfs --disable-jfs \
		--disable-vstafs --disable-reiserfs \
		--disable-minix --disable-fat
	make

- compilation was successful. After that all I loaded grub_firmware into flash disk typing in MS DOS environment:
dformat /win:e000 /bdkf0:grub_f~1
Regarding the outputs from dformat, this command ended successfully.

Finally I rebooted my computer by turning the power off and on again.

Now I can see loading grub from flash disk, by it crashes by following error:

DoC 2000 E600
E698
Jumping to Grub
Attempting to open /dev/grub/menu.lst on drive 0xe0, partition 0xff DiskOnChip 2000 found at e0000
floor 0, chip 0; manufacturer: Toshiba
Chip: Toshiba TC58V64AFT/DC, total size: 8 MB
erase unit: 8192 bytes, page: 512 bytes
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
Total of 1 chips found - total capacity 8 MB
Scanning for NFTL Media Header
NFTL Media Header found in flash sector 176
Sorry, we don't support UnitSizeFactor of != 1 yet
NFTL Media Header found in flash sector 192
Sorry, we don't support UnitSizeFactor of != 1 yet Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0xff Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0x0 Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0x1 Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0x2
...
Attempting to open /boot/grub/menu.lst on drive 0x0, partition 0xf

GRUB version 0.92 (639K lower / 121856K upper memory)

In this moment a get a grub> promtp. Trying enter
kernel (dc0,0)/boot/bzImage root=/dev/nftla1
a get a result
Loading kernel image...
Error 21: Selected disk does not exist

:-(

What am I doing incorrectly?

All suggests are welcome.

Thank you,

Oskar Stolc

#2 lore raw

Re: Possible GRUB problem: [Was: DiskOnChip MD2202-D256]

Quoted 7 lines · Oskar Stolc

- the following step was to build GRUB with DiskOnChip support:

	wget ftp://alpla.gnu.org/gnu/grub/grub-0.92.tar.gz
	tar xzvf grup-0.92.tar.gz
	cd grup-0.92
	cat ../mtd/patches/grub-0.92-doc.patch |patch -p1

What am I doing incorrectly?

I would suggest trying the latest GRUB patch: grub-2003-01-08-doc.patch. This has numerous changes/improvements over the 0.92 patch.

#3 lore raw

Re: Possible GRUB problem: [Was: DiskOnChip MD2202-D256]

Quoted 3 lines

I would suggest trying the latest GRUB patch: grub-2003-01-08-doc.patch. This has numerous changes/improvements over the 0.92 patch.

I was not able to patch on version 2003-01-08. Send me grub_firmware for this version, if you can, please.

Thanx you for your help

Oskar

#4 lore raw

Re: Possible GRUB problem: [Was: DiskOnChip MD2202-D256]

In reply to Oskar Stolc

On Sun, 2003-05-25 at 02:27, Oskar Stolc wrote:
<snip>

Quoted 35 lines

Finally I rebooted my computer by turning the power off and on again.

Now I can see loading grub from flash disk, by it crashes by following error:

DoC 2000 E600
E698
Jumping to Grub
Attempting to open /dev/grub/menu.lst on drive 0xe0, partition 0xff DiskOnChip 2000 found at e0000
floor 0, chip 0; manufacturer: Toshiba
Chip: Toshiba TC58V64AFT/DC, total size: 8 MB
erase unit: 8192 bytes, page: 512 bytes
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
_DoC_WaitReady timed out
Total of 1 chips found - total capacity 8 MB
Scanning for NFTL Media Header
NFTL Media Header found in flash sector 176
Sorry, we don't support UnitSizeFactor of != 1 yet
NFTL Media Header found in flash sector 192
Sorry, we don't support UnitSizeFactor of != 1 yet Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0xff Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0x0 Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0x1 Attempting to open /boot/grub/menu.lst on drive 0xe0, partition 0x2
...
Attempting to open /boot/grub/menu.lst on drive 0x0, partition 0xf

Quoted 7 lines

GRUB version 0.92 (639K lower / 121856K upper memory)

In this moment a get a grub> promtp. Trying enter
kernel (dc0,0)/boot/bzImage root=/dev/nftla1
a get a result
Loading kernel image...
Error 21: Selected disk does not exist

Make sure /boot/grub/menu.lst exists or is a link to grub.conf in the same directory. Try the kernel line with a slightly different path:
kernel (dc0,0)/bzImage root=/dev/nftla1. In any case it looks like a path problem to me.

Stephen

#5 lore raw
In reply to Oskar Stolc
Quoted 10 lines · Oskar Stolc

Hi,

I'm just trying to install DiskOnChip MD2202-D256 flash disk on my 2.4.21-rc2 linux. While loading modul by command
'modprobe docprobe'

these messages occurred on my screen:

DiskOnChip Millenium found at address 0xE0000

Please could you try the following patch:

Index: drivers/mtd/devices/docprobe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/devices/docprobe.c,v retrieving revision 1.37

mtd/devices/docprobe.c +6 -0
diff -u -p -r1.37 docprobe.c
@@ -135,6 +135,12 @@ static inline int __init doccheck(unsign
 		 window, DOCControl);
 #endif /* !DOC_PASSIVE_PROBE */	
 
+	/* We need to read the ChipID register four times. For some
+	   newer DiskOnChip 2000 units, the first three reads will
+	   return the DiskOnChip Millennium ident. Don't ask. */
+	ReadDOC(window, ChipID);
+	ReadDOC(window, ChipID);
+	ReadDOC(window, ChipID);
 	ChipID = ReadDOC(window, ChipID);
   
 	switch (ChipID) {
Signature · 1 line
dwmw2