public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Dvir Oren" <dviro@lucidvon.com>
To: mtd@infradead.org
Subject: Re: Beginner with DoC
Date: Thu, 16 Dec 1999 23:35:27 +0200	[thread overview]
Message-ID: <E11yiYZ-0004Qq-00@infradead.org> (raw)
In-Reply-To: <38568695.468F14FF@itvd.sel.sony.com>

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 941 bytes --]

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

[-- Attachment #2: Attachment information. --]
[-- Type: text/plain, Size: 470 bytes --]

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

[-- Attachment #3: boot.b6-21 --]
[-- Type: Application/Octet-stream, Size: 4540 bytes --]

[-- Attachment #4: Text from file 'lilo21-patch' --]
[-- Type: text/plain, Size: 2158 bytes --]

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

[-- Attachment #5: Attachment information. --]
[-- Type: text/plain, Size: 470 bytes --]

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

[-- Attachment #6: Lilo6-21 --]
[-- Type: Application/Octet-stream, Size: 177469 bytes --]

  reply	other threads:[~1999-12-17  9:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-14 22:31 Beginner with DoC Brian K. Michalk
1999-12-14 18:04 ` George Williams
1999-12-16 21:35   ` Dvir Oren [this message]
     [not found] <199912162127.PAA21998@sisko.awpi.com>
1999-12-16 22:11 ` Brian K. Michalk
  -- strict thread matches above, loose matches on Subject: below --
1999-12-17 15:57 Brian Michalk
1999-12-17 16:04 ` David Woodhouse
1999-12-17 16:48 Brian Michalk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E11yiYZ-0004Qq-00@infradead.org \
    --to=dviro@lucidvon.com \
    --cc=mtd@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox