[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
[offtopic] Re: [rtl] install m-sys linux driver from kernel 2.2.X
Hi,
I had the same problems and had to manually patch it. This is my patch
against Linux 2.2.10 and it may help you out. Best applied while in
/usr/src on a virgin 2.2.10 using: patch -p0 < doc-patch-2.2.10
(Note, you'll still have to copy over the drivers/block/flash_doc directory
to your kernel source).
Regards,
Brendan
Thus spake ahgu (ahgu@yahoo.com):
> I downloaded the msystem 2.2.x drivers and did not see any patch for 2.2.x.
> only the 2.0.X patches were there. Have anyone had the same experience?
>
> Thanks
> Andrew
diff -ur linux/drivers/block/Config.in linux-2.2.10+diskonchip/drivers/block/Config.in
--- linux/drivers/block/Config.in Thu Apr 29 20:53:48 1999
+++ linux-2.2.10+diskonchip/drivers/block/Config.in Tue Sep 14 15:35:05 1999
@@ -113,6 +113,10 @@
if [ "$CONFIG_BLK_DEV_RAM" = "y" ]; then
bool ' Initial RAM disk (initrd) support' CONFIG_BLK_DEV_INITRD
fi
+
+### tom@igel.de: 2.6.98
+bool 'M-Systems DiskOnChip' CONFIG_BLK_DEV_GENERIC_FLASH_DOC
+
tristate 'XT hard disk support' CONFIG_BLK_DEV_XD
# PARIDE doesn't need PARPORT, but if PARPORT is configured as a module,
diff -ur linux/drivers/block/Makefile linux-2.2.10+diskonchip/drivers/block/Makefile
--- linux/drivers/block/Makefile Tue Apr 13 00:18:27 1999
+++ linux-2.2.10+diskonchip/drivers/block/Makefile Tue Sep 14 15:35:22 1999
@@ -86,6 +86,12 @@
endif
endif
+### tom@igel.de: 2.6.98
+ifeq ($(CONFIG_BLK_DEV_GENERIC_FLASH_DOC),y)
+SUB_DIRS += flash_doc
+L_OBJS += flash_doc/fl.o
+endif
+
ifeq ($(CONFIG_BLK_DEV_LOOP),y)
LX_OBJS += loop.o
else
diff -ur linux/drivers/block/ll_rw_blk.c linux-2.2.10+diskonchip/drivers/block/ll_rw_blk.c
--- linux/drivers/block/ll_rw_blk.c Fri Mar 12 07:20:14 1999
+++ linux-2.2.10+diskonchip/drivers/block/ll_rw_blk.c Tue Sep 14 15:36:09 1999
@@ -820,6 +820,10 @@
#ifdef CONFIG_BLK_DEV_MD
md_init();
#endif CONFIG_BLK_DEV_MD
+/* tom@igel.de: 2.6.98 */
+#ifdef CONFIG_BLK_DEV_GENERIC_FLASH_DOC
+ fl_init();
+#endif CONFIG_BLK_DEV_GENERIC_FLASH_DOC
#ifdef CONFIG_APBLOCK
ap_init();
#endif
diff -ur linux/include/linux/blk.h linux-2.2.10+diskonchip/include/linux/blk.h
--- linux/include/linux/blk.h Tue May 11 18:36:25 1999
+++ linux-2.2.10+diskonchip/include/linux/blk.h Tue Sep 14 15:43:32 1999
@@ -53,6 +53,7 @@
extern int mfm_init(void);
extern int loop_init(void);
extern int md_init(void);
+extern int fl_init(void);
extern int ap_init(void);
extern int ddv_init(void);
extern int z2_init(void);
@@ -310,6 +311,28 @@
#define DEVICE_NAME "Sanyo H94A CD-ROM"
#define DEVICE_REQUEST do_sjcd_request
+#define DEVICE_NR(device) (MINOR(device))
+#define DEVICE_ON(device)
+#define DEVICE_OFF(device)
+
+/* charles@igel.de: 27.Aug.96 */
+#elif (MAJOR_NR == IGEL_FLASH_MAJOR)
+
+#define DEVICE_NAME "IGEL Flash Disk"
+#ifdef CONFIG_BLK_DEV_GENERIC_FLASH_DOC
+#define DEVICE_REQUEST fl_request
+#else
+#define DEVICE_REQUEST igflash_request
+#endif
+#define DEVICE_NR(device) (MINOR(device))
+#define DEVICE_ON(device)
+#define DEVICE_OFF(device)
+
+/* Uli.Christ@igel.de: 29.Aug.96 */
+#elif (MAJOR_NR == IGEL_SWAP_MAJOR)
+
+#define DEVICE_NAME "IGEL Swap Device"
+#define DEVICE_REQUEST igswap_request
#define DEVICE_NR(device) (MINOR(device))
#define DEVICE_ON(device)
#define DEVICE_OFF(device)
diff -ur linux/include/linux/major.h linux-2.2.10+diskonchip/include/linux/major.h
--- linux/include/linux/major.h Wed Jun 2 17:55:38 1999
+++ linux-2.2.10+diskonchip/include/linux/major.h Tue Sep 14 15:36:33 1999
@@ -81,6 +81,8 @@
#define IDE4_MAJOR 56
#define IDE5_MAJOR 57
+#define IGEL_FLASH_MAJOR 62 /* tom@igel.de 2.6.98 */
+
#define SCSI_DISK1_MAJOR 65
#define SCSI_DISK2_MAJOR 66
#define SCSI_DISK3_MAJOR 67