Beginner with DoC

Dvir Oren dviro at lucidvon.com
Thu Dec 16 16:35:27 EST 1999


> > Eventually I want to be able to boot off of the DoC, but for now,
> > I'll settle for making the kernel modules work. 
> 
> Same here.  Now I'm doing what some others on this list have suggested
> and using syslinux to boot the kernel with an initial ramdisk.

I'm using the patched LILO to boot off the flash, and works like a 
charm (there is a limit to the size of the kernel, though).  It was a 
bit difficult to patch lilo version 21, and create all the necessary 
files, but it now works.

Not everybody can afford DOS for each of their units, and freedos 
isn't exactly ideal, at least with the bit I played with it.

I'm attaching my patched lilo-21, my patch file, and the boot.b file.
Feel free to use it.


---------
Dvir Oren <dvir at lucidvon.com>
Lucid VON Ltd. <http://www.lucidvon.com>
Twin Towers 2,     Suite 406,     P.O.Box 159
35 Jabotinsky street, Ramat-Gan 52511, ISRAEL
Tel:+972 3 6137214         Fax:+972 3 6137215
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  boot.b6-21
     Date:  17 Oct 1999, 15:36
     Size:  4540 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boot.b6-21
Type: application/octet-stream
Size: 4540 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/19991216/e13f2eb0/attachment.obj 
-------------- next part --------------
--- lilo.h.orig	Sun Oct 17 14:47:05 1999
+++ lilo.h	Sun Oct 17 14:45:45 1999
@@ -38,6 +38,7 @@
 #define MAJOR_DAC960	48 /* First Mylex DAC960 PCI RAID controller */
 #define MAJOR_IDE5	55 /* IDE on fifth interface */
 #define MAJOR_IDE6	57 /* IDE on sixth interface */
+#define MAJOR_FL        62 /* M-Systems Disk On Chip 2000 */
 
 #define MAX_IMAGES      ((SECTOR_SIZE*2-2)/sizeof(IMAGE_DESCR))
 			  /* maximum number of images */
--- geometry.c.orig	Wed Oct 14 22:24:20 1998
+++ geometry.c	Sun Oct 17 14:29:49 1999
@@ -120,7 +120,7 @@
       MAJOR(dev) == MAJOR_IDE3 || MAJOR(dev) == MAJOR_IDE4 ||
       MAJOR(dev) == MAJOR_IDE5 || MAJOR(dev) == MAJOR_IDE6 ||
       MAJOR(dev) == MAJOR_XT || MAJOR(dev) == MAJOR_SD ||
-      MAJOR(dev) == MAJOR_ESDI || MAJOR(dev) == MAJOR_DAC960;
+      MAJOR(dev) == MAJOR_ESDI || MAJOR(dev) == MAJOR_DAC960 || MAJOR(dev) == MAJOR_FL;
 }
 
 
@@ -305,8 +305,11 @@
 	    /* fall through */
 	case MAJOR_ESDI:
 	    /* fall through */
+	case MAJOR_FL:
+	    /* fall through */
 	case MAJOR_XT:
-	    geo->device = 0x80+(MINOR(device) >> 6)+(MAJOR(device) == MAJOR_HD ?
+	    geo->device = 0x80+(MINOR(device) >> 6)+(
+	      (MAJOR(device) == MAJOR_HD || MAJOR(device) == MAJOR_FL) ?
 	      0 : last_dev(MAJOR_HD,64));
 	    if (ioctl(fd,HDIO_GETGEO,&hdprm) < 0)
 		die("geo_query_dev HDIO_GETGEO (dev 0x%04x): %s",device,
@@ -377,6 +380,8 @@
 	case MAJOR_IDE6:
 	    /* fall through */
 	case MAJOR_ESDI:
+	    /* fall through */
+	case MAJOR_FL:
 	    /* fall through */
 	case MAJOR_XT:
 	    return MINOR(device) >> 6 ? 0 : !last_dev(MAJOR_HD,64);
--- Makefile.orig	Sun Oct 17 14:50:40 1999
+++ Makefile	Sun Oct 17 14:51:36 1999
@@ -38,6 +38,10 @@
   sed 's/-D/-DLCF_/g'` `[ -r /usr/include/asm/boot.h ] && echo -DHAS_BOOT_H`
 GO=-DGO=0x`sed '/go/s/^.*go  0 \(....\) A.*$$/\1/p;d' first.lis`
 
+#patched lilo
+CONFIG+= -DLCF_LARGE_EBDA
+PCONFIG+= -DLCF_LARGE_EBDA
+
 SHELL=/bin/sh
 CC=cc
 CPP=$(CC) -E
--- common.h.orig	Sun Oct 17 14:52:08 1999
+++ common.h	Sun Oct 17 14:28:33 1999
@@ -7,6 +7,7 @@
 #define COMMON_H
 
 #include <sys/stat.h>
+#include <linux/types.h>
 #include <linux/genhd.h>
 
 #include "lilo.h"
-------------- next part --------------
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  Lilo6-21
     Date:  17 Oct 1999, 15:36
     Size:  177469 bytes.
     Type:  Unknown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Lilo6-21
Type: application/octet-stream
Size: 177469 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/19991216/e13f2eb0/attachment-0001.obj 


More information about the linux-mtd mailing list