[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Using HDD 160GB ?



Hi,
 
To be able to use the 160 GB HDD you have to upgrade your kernel to version 2.4.19 or above and put the following patch in your developer software: 
 
The following patch to os/linux/arch/cris/drivers/ide.c should solve the HDD problem.
Index: ide.c ===================================================================
RCS file: /usr/local/cvs/cvsroot/os/linux/arch/cris/drivers/ide.c,v
retrieving revision 1.27
diff -u -r1.27 ide.c
--- ide.c             9 Jan 2003 18:03:47 -0000 1.27
+++ ide.c         22 Jan 2003 12:39:04 -0000
@@ -668,7 +668,7 @@
            e100_ide_input_data(drive, buffer, length);
            break;
        case ideproc_ide_output_data:
-           e100_ide_input_data(drive, buffer, length);
+          e100_ide_output_data(drive, buffer, length);
            break;
        case ideproc_atapi_input_bytes:
            e100_atapi_input_bytes(drive, buffer, length);
@@ -918,8 +918,15 @@
            ide_set_handler(drive, &etrax_dma_intr, WAIT_CMD, NULL);
 
            /* issue cmd to drive */
- 
-             OUT_BYTE(WIN_READDMA, IDE_COMMAND_REG);
+                 if ((HWGROUP(drive)->rq->cmd == IDE_DRIVE_TASKFILE) &&
+             (drive->addressing == 1)) {
+                 ide_task_t *args = HWGROUP(drive)->rq->special;
+                 OUT_BYTE(args->tfRegister[IDE_COMMAND_OFFSET], IDE_COMMAND_REG);
+             } else if (drive->addressing) {
+                 OUT_BYTE(WIN_READDMA_EXT, IDE_COMMAND_REG);
+             } else {
+                 OUT_BYTE(WIN_READDMA, IDE_COMMAND_REG);
+             }
        }
 
        /* begin DMA */
@@ -969,8 +976,15 @@
                ide_set_handler(drive, &etrax_dma_intr, WAIT_CMD, NULL);
 
                /* issue cmd to drive */
- 
-                 OUT_BYTE(WIN_WRITEDMA, IDE_COMMAND_REG);
+                 if ((HWGROUP(drive)->rq->cmd == IDE_DRIVE_TASKFILE) &&
+                     (drive->addressing == 1)) {
+                     ide_task_t *args = HWGROUP(drive)->rq->special;
+                     OUT_BYTE(args->tfRegister[IDE_COMMAND_OFFSET], IDE_COMMAND_REG);
+                 } else if (drive->addressing) {
+                     OUT_BYTE(WIN_WRITEDMA_EXT, IDE_COMMAND_REG);
+                 } else {
+                     OUT_BYTE(WIN_WRITEDMA, IDE_COMMAND_REG);
+                 }
            }
 
            /* begin DMA */
 
 
Best Regards
 
Jagoub Shamekhi

-----Original Message-----
From: jjhwang [mailto:jjhwang@xxxxxxx.com] 
Sent: den 5 juni 2003 03:31
To: dev-etrax@xxxxxxx.com
Subject: Using HDD 160GB ?



Hi all,

 

I'm using the dev-board.

When I attached 160GB HDD,  can't work 'mke2fs' with "Out of memory ......." Message.

I think must be change "ide.c" file.

Does anyone have any solve.