OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Yet Another Broken C3000, but bit more than others
Stilgar
post May 5 2006, 05:16 AM
Post #1





Group: Members
Posts: 43
Joined: 22-October 04
Member No.: 5,147



I do apologize for the long post. I have tried many things (detailed here) before asking help from this forum. At the moment (after 2 days of fiddling), there are many threads to the story. I will, however, try to make it short.

The zaurus wouldn't boot (with misc. kernel patnics) a few days ago. Figuring out I couldn't debug it, I tried getting into rescue mode with the updater.sh.rescue (an old-time friend).
That's where I had a surprise waiting. The CF card would not be recognized by the updater menu (Holding OK while powering on, then 4->1->Y). It would yell something about missing CF card and then rebooting.

Right. There's the D+B rescue boot console. Boots pretty well, except for one (not surprising by now) thing: the /sbin/cardmgr would output an error message (something like encountering an unexpected word or ")".).
Then, I could not access /dev/hdc, even for backup purpose. I'd get the error that block-major-3 is missing (as well as block-major-22 on /dev/hda). Great.

Obviously, something was wrong with the rescue boot rootfs. I could not flash a new kernel/distro, as the CF card would not be recognized by the updater (Which uses the emergency rootfs to boot when upgrading).
Using an SD card was an obvious solution along the way. However, when I use it, the updater is yelling misc messages about /var/lib/pcmcia/stab missing (which may be correct, since it's using the rescue rootfs, which is somewhat broken).

Booting again into the rescue rootfs and diagnosing things a bit, I found out that /sbin/cardmgr is broken! it's md5sum with an old version of cardmgr was different. Moreover, mounting /dev/mtdblock2 and copying cardmgr from there to /sbin/cardmgr on the rescue rootfs and then restarting pcmcia, works.
However, /dev/root on the rescue partition is /dev/ram0 -> the kernel is extracted dynamically from the rom (mtdblock1 maybe?) to the ram.

Right now, my ROM (cacko 1.23b) wouldn't boot, due to misc kernel panics, and I am unable to upgrade to any other distro (or even sharp's original rom) because the rootfs is fucked up.
What I'd like to know, is that:
1. Wouldn't a NAND restore will rewrite /dev/mtdblock1 ?
2. Is the rootfs actually taken from mtdblock1?
3. Fortunately, I have a backup of mtdblock1 I manually made after some previous restore. I would like to copy it (via dd) to /dev/mtdblock1 on my Z. However, I am unable to mount it (via loopback interface) to check what's inside and see if there I have a correct version of cardmgr. Does anyone know about the image structure of /dev/mtdblock1?

I will appreciate any help.
Go to the top of the page
 
+Quote Post
Stilgar
post May 9 2006, 02:37 PM
Post #2





Group: Members
Posts: 43
Joined: 22-October 04
Member No.: 5,147



Some serious advancments, still not complete:
I've had bad rootfs, so /sbin/cardmgr would fail to run. No update was possible.
Until... I took updater.sh from OZ, decoded it, and added to the beginning a few lines to copy cardmgr from mtdblock2's sbin to /sbin, then continue with the flashing.
It segfaults somewhere, but that's a progress. If anyone has ideas on how to continue, let me know.
Go to the top of the page
 
+Quote Post
Meanie
post May 9 2006, 03:43 PM
Post #3





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(Stilgar @ May 10 2006, 08:37 AM)
Some serious advancments, still not complete:
I've had bad rootfs, so /sbin/cardmgr would fail to run. No update was possible.
Until... I took updater.sh from OZ, decoded it, and added to the beginning a few lines to copy cardmgr from mtdblock2's sbin to /sbin, then continue with the flashing.
It segfaults somewhere, but that's a progress. If anyone has ideas on how to continue, let me know.
*



ouch!

mtdblock1 is used by the emergency console with a limited rootfs
mtdblock2 is the normal rootfs
mtdblock3 is the home partition
Go to the top of the page
 
+Quote Post
Stilgar
post May 10 2006, 01:26 AM
Post #4





Group: Members
Posts: 43
Joined: 22-October 04
Member No.: 5,147



Does anyone know where I can find out the NAND rom layout?
I specifically try to get the initrd for the rescue mode boot.
Go to the top of the page
 
+Quote Post
Meanie
post May 10 2006, 02:05 AM
Post #5





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(Stilgar @ May 10 2006, 07:26 PM)
Does anyone know where I can find out the NAND rom layout?
I specifically try to get the initrd for the rescue mode boot.
*


why dont you just restore the nand and backup images from trisoft to get you a working system? use D+M
Go to the top of the page
 
+Quote Post
iamasmith
post May 11 2006, 01:22 AM
Post #6





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(Meanie @ May 10 2006, 10:05 AM)
,,
why dont you just restore the nand and backup images from trisoft to get you a working system? use D+M


This suggestion is the most useful approach since it will restore not only the root file system but also the emergency Linux system accessable via the D+B boot sequence. It will not restore contents of the hard drive if they are corrupt but at least it is a starting point.

-Andy
Go to the top of the page
 
+Quote Post
Cresho
post May 11 2006, 01:48 AM
Post #7





Group: Moderators
Posts: 1,619
Joined: 29-October 03
From: Los Angeles
Member No.: 809



well, have you noticed any difference in audible aspect of it? Does it sound any different? yeah i know i know its not audible but sometimes you can get a glimps of the hardisk sound. Have you tried yanking it out, and wiping the disk and also doing a head integrety check? how about the D+M, have you used the tools in it to check the hardisk read write and also other tests? I would do that first before deciding to try and partition and install anything else on it.

Dude, if you lived around the los angeles area, i can fix it for you for free smile.gif minus hardisk replacement.
Go to the top of the page
 
+Quote Post
Stilgar
post May 12 2006, 08:34 AM
Post #8





Group: Members
Posts: 43
Joined: 22-October 04
Member No.: 5,147



As for restoring NAND - tried that several times, both from the original Sharp's rom as well as a backup I made some time ago. The NAND restore itself worked (my backup had a different kernel, so I know it worked) but I still get the same errors. (cardmgr on boot says something like 'word unexpected').
I did have a partial success - I took the updater.sh from OZ 3.5.4.1-rc2, and added a script that replaces /sbin/cardmgr with the one from mtdblock2's /sbin. However, now the error is the kernel segfaulting somewhere when writing to the microdrive. I do not know why this is, as the R/W tests in the D+M menu do not tell of any HD error.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd August 2015 - 08:40 PM