public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* DiskOnChip MD2202-D256
@ 2003-05-23  6:38 Oskar Stolc
  2003-05-25  9:27 ` Possible GRUB problem: [Was: DiskOnChip MD2202-D256] Oskar Stolc
  2003-06-30  9:05 ` DiskOnChip MD2202-D256 David Woodhouse
  0 siblings, 2 replies; 6+ messages in thread
From: Oskar Stolc @ 2003-05-23  6:38 UTC (permalink / raw)
  To: linux-mtd

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 dwmw2@infradead.org
Unknown flash chip found: 21 21
Please report to dwmw2@infradead.org
Unknown flash chip found: A1 A1
Please report to dwmw2@infradead.org
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

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

* Possible GRUB problem: [Was: DiskOnChip MD2202-D256]
  2003-05-23  6:38 DiskOnChip MD2202-D256 Oskar Stolc
@ 2003-05-25  9:27 ` Oskar Stolc
  2003-05-25 15:16   ` Mark Meade
  2003-05-25 15:22   ` Stephen Lee
  2003-06-30  9:05 ` DiskOnChip MD2202-D256 David Woodhouse
  1 sibling, 2 replies; 6+ messages in thread
From: Oskar Stolc @ 2003-05-25  9:27 UTC (permalink / raw)
  To: linux-mtd

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.

> 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 dwmw2@infradead.org
> Unknown flash chip found: 21 21
> Please report to dwmw2@infradead.org
> Unknown flash chip found: A1 A1
> Please report to dwmw2@infradead.org
> 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?

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

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

* Re: Possible GRUB problem: [Was: DiskOnChip MD2202-D256]
  2003-05-25  9:27 ` Possible GRUB problem: [Was: DiskOnChip MD2202-D256] Oskar Stolc
@ 2003-05-25 15:16   ` Mark Meade
  2003-05-27 15:04     ` Oskar Stolc
  2003-05-25 15:22   ` Stephen Lee
  1 sibling, 1 reply; 6+ messages in thread
From: Mark Meade @ 2003-05-25 15:16 UTC (permalink / raw)
  To: Oskar Stolc, linux-mtd

On Sunday 25 May 2003 05:27 am, Oskar Stolc wrote:
> - 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.

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

* Re: Possible GRUB problem: [Was: DiskOnChip MD2202-D256]
  2003-05-25  9:27 ` Possible GRUB problem: [Was: DiskOnChip MD2202-D256] Oskar Stolc
  2003-05-25 15:16   ` Mark Meade
@ 2003-05-25 15:22   ` Stephen Lee
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Lee @ 2003-05-25 15:22 UTC (permalink / raw)
  To: Oskar Stolc; +Cc: mtd

On Sun, 2003-05-25 at 02:27, Oskar Stolc wrote:
<snip>
> 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

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

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

* Re: Possible GRUB problem: [Was: DiskOnChip MD2202-D256]
  2003-05-25 15:16   ` Mark Meade
@ 2003-05-27 15:04     ` Oskar Stolc
  0 siblings, 0 replies; 6+ messages in thread
From: Oskar Stolc @ 2003-05-27 15:04 UTC (permalink / raw)
  To: linux-mtd

> 
> 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
-- 

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

* Re: DiskOnChip MD2202-D256
  2003-05-23  6:38 DiskOnChip MD2202-D256 Oskar Stolc
  2003-05-25  9:27 ` Possible GRUB problem: [Was: DiskOnChip MD2202-D256] Oskar Stolc
@ 2003-06-30  9:05 ` David Woodhouse
  1 sibling, 0 replies; 6+ messages in thread
From: David Woodhouse @ 2003-06-30  9:05 UTC (permalink / raw)
  To: Oskar Stolc, mdharm; +Cc: linux-mtd

On Fri, 2003-05-23 at 07:38, Oskar Stolc wrote:
> 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
diff -u -p -r1.37 docprobe.c
--- drivers/mtd/devices/docprobe.c	30 Jun 2003 09:01:46 -0000	1.37
+++ drivers/mtd/devices/docprobe.c	30 Jun 2003 09:04:41 -0000
@@ -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) {


-- 
dwmw2

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

end of thread, other threads:[~2003-06-30  9:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-23  6:38 DiskOnChip MD2202-D256 Oskar Stolc
2003-05-25  9:27 ` Possible GRUB problem: [Was: DiskOnChip MD2202-D256] Oskar Stolc
2003-05-25 15:16   ` Mark Meade
2003-05-27 15:04     ` Oskar Stolc
2003-05-25 15:22   ` Stephen Lee
2003-06-30  9:05 ` DiskOnChip MD2202-D256 David Woodhouse

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