--- geometry.c	Fri Jun 20 16:24:52 1997
+++ ../../geometry.c	Sat Jul 11 18:08:19 1998
@@ -118,7 +118,7 @@
 {
     return MAJOR(dev) == MAJOR_HD || MAJOR(dev) == MAJOR_IDE2 ||
       MAJOR(dev) == MAJOR_XT || MAJOR(dev) == MAJOR_SD ||
-      MAJOR(dev) == MAJOR_ESDI;
+      MAJOR(dev) == MAJOR_ESDI || MAJOR(dev) == MAJOR_FL;
 }
 
 
@@ -296,14 +296,17 @@
 	case MAJOR_ESDI:
 	    /* fall through */
 	case MAJOR_XT:
-	    geo->device = 0x80+(MINOR(device) >> 6)+(MAJOR(device) == MAJOR_HD ?
+	    /* fall through */
+	case MAJOR_FL:		/* FLash disk, tom@igel 25.5.98 */
+	    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)
+	   /* if (ioctl(fd,HDIO_GETGEO,&hdprm) < 0)
 		die("geo_query_dev HDIO_GETGEO (dev 0x%04x): %s",device,
-		  strerror(errno));
-	    geo->heads = hdprm.heads;
-	    geo->cylinders = hdprm.cylinders;
-	    geo->sectors = hdprm.sectors;
+		  strerror(errno)); */
+	    geo->heads = 16; /*hdprm.heads;*/
+	    geo->cylinders = 509;/*hdprm.cylinders;*/
+	    geo->sectors = 3;/* hdprm.sectors;*/
 	    geo->start = hdprm.start;
 	    break;
 	case MAJOR_SD:
--- lilo.h	Fri Jun 20 09:42:33 1997
+++ ../../lilo.h	Sat Jul 11 14:26:50 1998
@@ -34,6 +34,7 @@
 #define MAJOR_XT	13 /* XT-type hard disks */
 #define MAJOR_IDE2	22 /* IDE on second interface */
 #define MAJOR_ESDI	36 /* PS/2 ESDI drives */
+#define MAJOR_FL	62 /* Flash disk, tom@igel 25.5.98 */
 
 #define MAX_IMAGES      ((SECTOR_SIZE*2-2)/sizeof(IMAGE_DESCR))
 			  /* maximum number of images */
@@ -84,7 +85,7 @@
 #define SETUPSECS	4	/* nr of setup sectors */
 #define VSS_NUM		497	/* address where variable setup size is
 				   stored */
-#define MAX_KERNEL_SECS	1024	/* absolute maximum kernel size */
+#define MAX_KERNEL_SECS	896	/* absolute maximum kernel size (tom@igel) */
 
 #define SPECIAL_SECTORS	2	/* special sectors (don't compact) at beginning
 				   of map sections */
@@ -132,11 +133,11 @@
 PARTS_LOAD= 0x0600			! partition sector load address
 PARTS_SCR = 0x0800			! ditto, for non-boot partitions
 PART_TABLE= 0x07BE			! partition table
-FIRSTSEG  = 0x9A00
+FIRSTSEG  = 0x8A00			! tom@igel: instead of 0x9A00
 INITSEG   = DEF_INITSEG			! we move boot here - out of the way
 SETUPSEG  = DEF_SETUPSEG		! setup starts here
 SYSSEG    = DEF_SYSSEG			! system loaded at 0x10000 (65536).
-STACKSEG  = 0x9000
+STACKSEG  = 0x8000			! tom@igel: instead of 0x9000
 SSDIFF	  = 0xA000
 STACK	  = 0xB000			! top of stack
 DESCR	  = 0x2200			! descriptor load area offset
@@ -146,7 +147,7 @@
 PARMLINE  = 0x2a00			! parameter line construction area off.
 SECOND	  = 0x1000			! second stage loader load address
 SECOND_SS = 0xB000			! second as seen from SS:0000
-SECONDSEG = 0x9B00			! second stage loader segment
+SECONDSEG = 0x8B00			! second stage loader segment (tom@igel)
 SLA_SIZE  = 0x9E00			! setup load area size
 KBBEG     = 0x41A			! beginning of keyboard buffer
 KBEND	  = 0x41C			! end of keyboard buffer

