public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: Lost DOC2000 after installation of Grub
@ 2002-03-06 15:54 Chris Fowler
  2002-03-06 19:18 ` Ilguiz Latypov
  2002-03-19 18:55 ` compr_zlib.c Joakim Tjernlund
  0 siblings, 2 replies; 8+ messages in thread
From: Chris Fowler @ 2002-03-06 15:54 UTC (permalink / raw)
  To: linux-mtd; +Cc: dwmw2

When I use root=(dc0,0) :

Error 23:  Erro parsing number.

But my root is not on the flash.  My root is /dev/ram7.  I have an initrd that loads data from fla1 into ram7.  Initrd temrinates then the kernel mounts /dev/ram7 as it root.

Lilo.conf:
boot=/dev/nftla
compact
#install=/boot/doc.b
map=/boot/map
disk=/dev/nftla
bios=0x80
prompt
delay = 50
timeout = 50
serial=0,9600n8

image = /boot/kernel
        label = outpost
        root = /dev/ram7
        initrd = /boot/initrd.gz
        read-only
        ramdisk=32768
        append="console=ttyS0,9600"

image = /boot/rtl8139.net
        label = net

I'm not concerned about serial console access.  How can I get the system up so I can try nftl_format?  Will I ever be able to use DFORMAT again?

Thanks,
Chris Fowler

strtok@hotmail said: > Now when it boots I get a grub propmt. I'm not sure what to do to 
> make the doc-lilo boot now. So I do not know what to type at grub
> root=(dc0,0) kernel=/boot/... 
> How do I revocer without replaceing the chip? Use nftl_format if DFORMAT won't work. 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Cache mappings and invalidate
@ 2001-11-12 12:14 Joakim Tjernlund
  2001-12-17 13:08 ` Burst read and other improvements Joakim Tjernlund
  0 siblings, 1 reply; 8+ messages in thread
From: Joakim Tjernlund @ 2001-11-12 12:14 UTC (permalink / raw)
  To: linux-mtd

Hi all

I am trying to make copy_from use cahced memory by assignig 
map_priv_2 = (unsigned long)__ioremap(flash_addr, flash_size, 0);
and then change copy_from routine to:
+#ifndef NO_CACHE
+       memcpy_fromio(to, (void *)(map->map_priv_2 + from), len);
+#else
        memcpy_fromio(to, (void *)(map->map_priv_1 + from), len);
+#endif

There are no cache invalidations in my map file, instead I have 
added invalidate_dcache_range() calls to drivers/mtd/chips/cfi_cmdset_0001.c(see below)
in do_write_oneword(), do_write_buffer() and do_erase_oneblock(). Note that
this is just a quick hack to try out my theory. Does this look sane or should I use
another invalidate_dcache_range() and/or place the invalidate calls somewhere else?

I am not using burst reads yet, that will come later once i have gotten the cached mapping
to work.
 
       Joakim



--- drivers/mtd/chips/cfi_cmdset_0001.c 2001/10/25 12:11:10     1.3
+++ drivers/mtd/chips/cfi_cmdset_0001.c 2001/11/12 12:02:33
@@ -502,6 +502,10 @@
        cfi_udelay(chip->word_write_time);
        spin_lock_bh(chip->mutex);

+#ifndef NO_CACHE
+       invalidate_dcache_range(map->map_priv_2 + adr, map->map_priv_2 + adr + 4); /* on a 32 bit bus */
+#endif
+
        timeo = jiffies + (HZ/2);
        z = 0;
        for (;;) {
@@ -691,7 +695,7 @@
        wbufsize = CFIDEV_INTERLEAVE << cfi->cfiq->MaxBufWriteSize;
        adr += chip->start;
        cmd_adr = adr & ~(wbufsize-1);
-
+
        /* Let's determine this according to the interleave only once */
        status_OK = CMD(0x80);
 
@@ -790,6 +794,10 @@
        cfi_udelay(chip->buffer_write_time);
        spin_lock_bh(chip->mutex);
 
+#ifndef NO_CACHE
+       invalidate_dcache_range(map->map_priv_2 + adr, map->map_priv_2 + adr + len);
+#endif
+
        timeo = jiffies + (HZ/2);
        z = 0;
        for (;;) {
@@ -994,6 +1002,10 @@
        spin_unlock_bh(chip->mutex);
        schedule_timeout(HZ);
        spin_lock_bh(chip->mutex);
+
+#ifndef NO_CACHE
+       invalidate_dcache_range(map->map_priv_2 + adr, map->map_priv_2 + adr + 0x40000);
/* 0x40000 is my erase size */
+#endif
 
        /* FIXME. Use a timer to check this, and return immediately. */
        /* Once the state machine's known to be working I'll do that */

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

end of thread, other threads:[~2002-03-20 18:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-06 15:54 Lost DOC2000 after installation of Grub Chris Fowler
2002-03-06 19:18 ` Ilguiz Latypov
2002-03-19 18:55 ` compr_zlib.c Joakim Tjernlund
2002-03-20 17:36   ` compr_zlib.c David Woodhouse
2002-03-20 18:58     ` compr_zlib.c Joakim Tjernlund
  -- strict thread matches above, loose matches on Subject: below --
2001-11-12 12:14 Cache mappings and invalidate Joakim Tjernlund
2001-12-17 13:08 ` Burst read and other improvements Joakim Tjernlund
2002-03-11  8:56   ` compr_zlib.c Joakim Tjernlund
2002-03-19 12:03   ` compr_zlib.c Joakim Tjernlund
2002-03-19 12:24     ` compr_zlib.c David Woodhouse

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