Allen BrownThu Dec 4 15:00:20 PST 2008
When I started to follow those instructions I realized that even my experimental computer was an Ubuntu release behind. (My working computer is 2 releases behind.) So I am now downloading 8.10 to install on the experimental. I will then use the instructions you have pointed to to compile the kernel and tweak the driver. All of this will take a long time, probably several days. The CD download is going slowly. And the compile will probably take a full day. (The experimental computer is quite old.) Plus I will be doing the compile twice, once to prove I can make a clean kernel, and again with the tweaked driver. I will post progress. Of course all of this is speculative. There is little reason to believe the tweaked driver will allow me to dd anything useful. It's little more than a shot in the dark. So I am still open to other alternatives. (With crossed fingers.) -- Allen Brown http://brown.armoredpenguin.com/~abrown > The latter web page does have instructions on installing the kernel. > They look okay to me, and they appear to install the modules too. > > https://help.ubuntu.com/community/Kernel/Compile#Install%20the%20new%20kernel > > Once you have a working kernel build area, you can update the module > the easy way. > > cp .../mydriver.ko /lib/modules/.../ > rmmod mydriver > modprobe mydriver > > There may be more to it than that. If other modules depend on the one > you're modifying, you'll have to unload and reload them too. > And once in a while you'll have to reboot anyway. > > Your approach, commenting out the check and seeing what happens, > is what I'd probably do. > > On Wed, Dec 3, 2008 at 9:16 PM, Allen Brown <abrown at peak.org> wrote: >> I spent last month in Australia. I collected two weeks of >> pictures, amounting to approximately 5GB, onto a 16GB SD >> card. Until the card stopped being readable by my Nokia >> n800. >> >> I then bought a new 16GB SD card and stored the rest of >> the two weeks on it. Another 5GB. >> >> The second SD card is still good. I have transferred those >> pictures to my main computer. I plan to edit and post them soon. >> >> The first SD card is a problem. If not for the pictures on it >> I would simply throw it away. But those pictures are irreplaceable. >> >> When I plug in the first SD card dmesg reports >> 21638.906250] mmc1: unrecognised SCR structure version 5 >> >> A friend (who is much more familiar with kernel internals) >> said: >> It would appear that the relevant code is: >> scr_struct = UNSTUFF_BITS(resp, 60, 4); >> if (scr_struct != 0) { >> printk("%s: unrecognised SCR structure version %d\n", >> mmc_hostname(card->host), scr_struct); >> mmc_card_set_bad(card); >> return; >> } >> >> So it only expects "0" in the field, and you have two bits picked. >> >> This doesn't bode well. >> >> Indeed our attempts to plug it in and read raw data from the >> scsi device have failed. I wondered if I could get anything >> useful by disabling the check above. >> >> That takes me to recompiling the kernel. I followed along on >> http://www.howtoforge.com/kernel_compilation_ubuntu_p2 >> and https://help.ubuntu.com/community/Kernel/Compile >> >> I'm not sure if my Ubuntu system doesn't match the author's. >> But I had to takes some steps they don't mention. And their >> description is ambiguous in some places. But I finally >> managed to compile the kernel. However, the instructions >> don't go far enough. Under the 2.4 kernel (which I got good >> at compiling) there was a separate install step. There is >> no mention of that on these web sites. And yet, it seems clear >> that this is necessary. >> >> OK, so I can copy the kernel easily enough to /boot and modify >> the grub file. But what about the modules? I don't know what >> to do. And all of this is a waste of time if I can't modify >> the modules. After all, the code I need to modify is almost >> certainly in the sd module. (I haven't bothered to search it >> down since first I wanted to test run a kernel I had compiled.) >> >> So the questions I have are: >> 1. Is this a reasonable approach to recovering a broken SD card? >> 2. Do you know of a good way to recover an SD card? >> 3. How do you install the kernel modules? >> -- >> Allen Brown abrown at peak.org >> http://brown.armoredpenguin.com/~abrown/ >> A bus station is where a bus stops. A train station is where a train >> stops. On my desk, I have a workstation. What more can I say? -- anon >> _______________________________________________ >> EUGLUG mailing list >> euglug at euglug.org >> http://www.euglug.org/mailman/listinfo/euglug >> > > > > -- > Bob Miller K<bob> > kbob at jogger-egg.com >