I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / I-Opener Areas / I-Opener Technical Stuff
Kernel patch for sandisk with Linux kernel 2.4.x

New MessageKernel patch for sandisk with Linux kernel 2.4.x (modified 0 times) Doogman
Profile
Tired of not being able to use the sandisk with your shiny new 2.4.x kernel? Well, good news, I found a patch on the kernel mailing list to fix this very annoying bug. Now you don't have to disable hdb to boot the i-o and you can use the sandisk just like you could in the 2.2.x series.
The kernel patch is old, originally for 2.4.0pre11, but it's only two lines and has been working well for me with 2.4.6. I was going to post the patch here, but the BBS did a great job of mangling the code, so I made a tarball available for d/l here:

http://freeshell.org/~doug/iopener/files/iopener_2.4.x_fix.tgz

You get a html version of the original mailing list message and already patched ide-probe.c for your kernel source code. Enjoy!

07-08-2001 07:49:29

New MessageRE:Kernel patch for sandisk with Linux kernel 2.4.x (modified 0 times) psfales
Profile
Hey, thanks! The patch worked for me too. I had to find it on the kernel mailing list since the URL in the previous post didn't work for me. If it helps anyone else, here's the patch, even though it will probably have to be applied by hand:

--- drivers/ide/ide-probe.c.orig Thu Jul 12 22:18:19 2001
+++ drivers/ide/ide-probe.c Thu Jul 12 22:18:28 2001
@@ -163,8 +163,8 @@
* Prevent long system lockup probing later for non-existant
* slave drive if the hwif is actually a flash memory card of some variety:
*/
- if (drive_is_flashcard(drive)) {
- ide_drive_t *mate = &HWIF(drive)->drives[1^drive->select.b.unit];
+ if (!drive->select.b.unit && drive_is_flashcard(drive)) {
+ ide_drive_t *mate = &HWIF(drive)->drives;
if (!mate->ata_flash) {
mate->present = 0;
mate->noprobe = 1;


Peter Fales
peter@fales.com
07-14-2001 14:12:19

New MessageRE:Kernel patch for sandisk with Linux kernel 2.4.x (modified 0 times) psfales
Profile
I've put a copy of the patch file at
http://peter.fales.com/sandisk.patch
Peter Fales
peter@fales.com
07-14-2001 14:14:04

New MessageRE:Kernel patch for sandisk with Linux kernel 2.4.x (modified 0 times) Doogman
Profile
Yup, the webserver I'm using took a major dump. Hopefully it will be back online sometime next week.

As you can see, the BBS ate the code you posted, so any people interested in this patch will have to d/l it. At some point, the link I posted should work again, or just use the link that psfales posted.

07-15-2001 05:40:22

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3