OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: mikef on July 21, 2005, 01:46:37 pm

Title: Please Help! C3000 Almost Gone
Post by: mikef on July 21, 2005, 01:46:37 pm
Please help! It seems I am about to loose my C3000 for good...

After installing Debian, the on/off button stopped working. Unfortunately I did not a backup before the Debian installation so  I tried to install the trisoft backup but the Z made a reset and on next reboot showed the progress bar and then came to a standstill.

Currently I can use the D+B trick to get into Linux but the home directory is empty and rebooting shows the Sharp logo, some messages too fast to be read at the bottom of the screen and gets stuck. I tried without success to rebuild the home directory by hand from the trisoft backup. All partitions of the hard drive are ok.

When trying to flash the NAND, I start with the D+M keys and get the maintenance menu but there are no answer to keys or the pen on the touchscreen.

What should I do? Is there any point in trying to reinstall any files, and if so where may I find them?
Title: Please Help! C3000 Almost Gone
Post by: inverted1 on July 21, 2005, 08:54:52 pm
I thought mine was gonna make a trip back to Japan after I loaded an unstabled OZ version.   This site got me back from scratch...!

http://www.xlfag.com/zaurus/ (http://www.xlfag.com/zaurus/)

-brian

--
Opinions Expressed are either that of my own or someone elses.
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 22, 2005, 06:08:13 am
Quote
I thought mine was gonna make a trip back to Japan after I loaded an unstabled OZ version.   This site got me back from scratch...!

http://www.xlfag.com/zaurus/ (http://www.xlfag.com/zaurus/)

Thanks, but as I cannot use the maintenance menu I cannot follow the instructions in that page.

Does anyone know if it is possible to install a NAND image directly from the Linux prompt?
Title: Please Help! C3000 Almost Gone
Post by: asm-nai on July 22, 2005, 07:30:25 am
Hi.

I think the easiest method of the return to the state that had just been bought is to update it
with ver1.11JP ROM .

Please go to this URL of Sharp.

http://support.ezaurus.com/sl-c3000/update...0updatecard.asp (http://support.ezaurus.com/sl-c3000/update/c3000update/c3000updatecard.asp)

And, please download card_update_3000111.exe.

The following files appear when double-clicking.
・initrd.bin(4,337KB)
・zImage.bin(1,264KB)
・mversion.bin(16KB)
・updater.sh(7KB)
・hdimage1.tgz(19,734KB)

Rom is only usually renewed with SD card or CF card.

 Luck.
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 23, 2005, 08:21:42 am
Quote
I think the easiest method of the return to the state that had just been bought is to update it
with ver1.11JP ROM .

Please go to this URL of Sharp.

http://support.ezaurus.com/sl-c3000/update...0updatecard.asp (http://support.ezaurus.com/sl-c3000/update/c3000update/c3000updatecard.asp)

And, please download card_update_3000111.exe.

The following files appear when double-clicking.
・initrd.bin(4,337KB)
・zImage.bin(1,264KB)
・mversion.bin(16KB)
・updater.sh(7KB)
・hdimage1.tgz(19,734KB)

Rom is only usually renewed with SD card or CF card.

 Luck.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89116\"][{POST_SNAPBACK}][/a][/div]

Many thanks, but unfortunately I cannot access the maintenance menu as described in my previous messages.

I found out that the following file is missing in my C3000:

/root/.home_default.tar

Can anyone provide me a copy of it? I don't know if it depends on the NAND version: mine is Sharp 1.01.
Title: Please Help! C3000 Almost Gone
Post by: asm-nai on July 23, 2005, 09:27:29 am
Quote
Many thanks, but unfortunately I cannot access the maintenance menu as described in my previous messages.

I found out that the following file is missing in my C3000:

/root/.home_default.tar

Can anyone provide me a copy of it? I don't know if it depends on the NAND version: mine is Sharp 1.01.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89192\"][{POST_SNAPBACK}][/a][/div]

It supplements a little more though it might be extra care.

NAND is not related to the renewal of rom.

..menu of the update.. when opening back, resetting, and turning on power while pushing the OK
button.

Because only the content of hdd1 changes places, hdd2 and hdd3 are safe.

I will recommend it as one choices.
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 23, 2005, 10:43:17 am
Quote
..menu of the update.. when opening back, resetting, and turning on power while pushing the OK
button.

Because only the content of hdd1 changes places, hdd2 and hdd3 are safe.

I will recommend it as one choices.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89195\"][{POST_SNAPBACK}][/a][/div]

Thanks for your help!

The  'Power On'+Ok combination is also not working, probably because the power button is in some way disabled (this was my initial problem).

So, with neither this nor access to the maintenance menu (using the D+M reset) I think there are only two solutions, both using the Linux shell:

1) running the updater shell script to install a new ROM; I don't know if this is feasible

2) restoring the missing files in the /home directory and restoring the /hdd1/.sys/hdimage2.tgz; I have this tgz but I don't have /root/.home_default.tar that is needed for restoring /home. Would it possible for you to put a copy of this file somewhere for me to get it?

Cheers.
Title: Please Help! C3000 Almost Gone
Post by: bam on July 23, 2005, 03:20:16 pm
I love reading these threads, because when and if(yea right lets just omit the if) I screw my 3100 up, I will need to know there is a solution out there. Perhaps if you removed the hdd and used another computer to restore the data from a backup(from trisoft or streamline, then put the hdd back in then maybe that would fix it, just logically thinking this one out
Title: Please Help! C3000 Almost Gone
Post by: lpotter on July 23, 2005, 10:09:23 pm
What makes you think you cannot access the maintence menu?
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 24, 2005, 04:18:26 am
Quote
What makes you think you cannot access the maintence menu?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89264\"][{POST_SNAPBACK}][/a][/div]

I can see it, but I cannot use it as there is no answer to key strokes or to touching the screen with the pen. Probably there are Linux devices missing as the /home/dev directory was wiped out.

Any idea on where I can find a copy of the original Sharp /root/.home_default.tar ?
I have tried to rebuild /home with the Trisoft backup but this failed. I think the reason was that there are symlinks missing there,.

Quote
I love reading these threads, because when and if(yea right lets just omit the if) I screw my 3100 up, I will need to know there is a solution out there. Perhaps if you removed the hdd and used another computer to restore the data from a backup(from trisoft or streamline, then put the hdd back in then maybe that would fix it, just logically thinking this one out

You may be sure I will try hard to devise a solution you may use in the future! I will post it, that is if I find one in the first place  

There is no need for taking out the hard drive: I can access it, it is in good shape apart from the /home directory and I can use the CF card to import files. In order to proceed I really need the original Sharp /root/.home_default.tar file, but I don't know if the C3100 one is identical to the C3000's.
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 28, 2005, 07:38:09 am
I have been asking here for a copy of the original Sharp /root/.home_default.tar so that I can try to restore my C3000.

As I got no positive answer will anyone be so kind as to provide me with a listing of this tar file? It can be obtained by typing the following in a Linux shell:

tar  tvf  /root/.home_default.tar  >  hdefault.txt

The listing I need will be in this  hdefault.txt file.

The listing of the tar file of a C3001 instead of a C3000 may help.

Thank you very much in advance!
Title: Please Help! C3000 Almost Gone
Post by: Stubear on July 28, 2005, 11:02:30 am
If you can get into the D+B rescue mode then you have to mount the "normal" partitions before you can do any work on them. D+B mode gets you to the hidden filesystem on mtdblock1 (or possible mtdblock0). The normal partions are mtdblock2 (root) and mtdblock3) home - at least that is true for the C760 and C1000 zaurus.

If you want to play around with the /home or /root directories then you will need to mount them.

If you can reboot the zaurus from debian then holding down the OK key during the reboot will get you into the flash menu.

Otherwise try removing the battery and ac adapter for about 5 minutes, then replace them, close the battery lock switch and try the external power button while holding down the OK button - this should also get you into the flash/reformat  menu.

Stu
Title: Please Help! C3000 Almost Gone
Post by: Stubear on July 28, 2005, 11:10:03 am
Forgot to post before, you can extract the *_default.tar files from the upgrade rom available on the sharp site.

All you need to do mount the initrd on a linux machine using something like this
Code: [Select]
modprobe mtdram total_size=65536
modprobe mtdblock
dd if=initrd.bin of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 /mnt/floppy

Just remember that the filesystem you boot into using D+B IS NOT the regular filesystem the zaurus uses.

Stu
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 28, 2005, 04:22:08 pm
Hi Stu,

Thanks a lot for your help!

Mounting /dev/mtdblock2 on /mnt I could check that /mnt/root/.home_default.tar is there and intact. I also checked that /dev/mtdblock3 has the /home file system. So, I think I will manage to restore the original setup. I will try to do that tomorrow and will post the result.

Quote
All you need to do mount the initrd on a linux machine using something like this
Code: [Select]
modprobe mtdram total_size=65536
modprobe mtdblock
dd if=initrd.bin of=/dev/mtdblock0
mount -t jffs2 /dev/mtdblock0 /mnt/floppy

Just remember that the filesystem you boot into using D+B IS NOT the regular filesystem the zaurus uses.

Stu
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89922\"][{POST_SNAPBACK}][/a][/div]

I tried this but my 2.6.12.1 kernel in the PC had no support for MTD. I reconfigured it but got stuck: no mtdram module, and no support for the jffs2 file system type (from /proc/filesystems). What are the kernel configuration options that must be selected?

Thanks again!
mikef
Title: Please Help! C3000 Almost Gone
Post by: sojc on July 28, 2005, 06:14:20 pm
As stated before: you might need to do a full install. Read and follow these instruction very carefully. They work

http://www.xlfag.com/zaurus/ (http://www.xlfag.com/zaurus/)
Title: Please Help! C3000 Almost Gone
Post by: Stubear on July 28, 2005, 10:00:35 pm
Here are the relevant config settings that are needed for mounting jffs2 images

Code: [Select]
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
CONFIG_JFFS_FS=m
CONFIG_JFFS_FS_VERBOSE=0
# CONFIG_JFFS_PROC_FS is not set
CONFIG_JFFS2_FS=m
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_NAND=y
# CONFIG_JFFS2_FS_NOR_ECC is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
CONFIG_CRAMFS=m
CONFIG_SQUASHFS=m
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set

#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=m
# CONFIG_MTD_DEBUG is not set
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_CONCAT=m
# CONFIG_MTD_REDBOOT_PARTS is not set
# CONFIG_MTD_CMDLINE_PARTS is not set

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=m
CONFIG_MTD_BLOCK=m
CONFIG_MTD_BLOCK_RO=m
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
CONFIG_MTD_MTDRAM=m
CONFIG_MTDRAM_TOTAL_SIZE=4096
CONFIG_MTDRAM_ERASE_SIZE=128
CONFIG_MTD_BLKMTD=m
# CONFIG_MTD_BLOCK2MTD is not set

If you want I can send you the whole config file

Stu
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 29, 2005, 05:33:33 am
Quote
Here are the relevant config settings that are needed for mounting jffs2 images

[code]#
# Miscellaneous filesystems

CONFIG_JFFS_FS=m

[div align=\"right\"][a href=\"index.php?act=findpost&pid=89989\"][{POST_SNAPBACK}][/a][/div]

Hi Stu,

Thanks! I am not at home now, but yesterday I could not find any entry for JFFS2 in this section of the 2.6.12.1 kernel in my PC. I downloaded now the 2.6.12.3 source and checked that these options are there indeed. So I will probably have to upgrade to 2.6.12.3 at home.

Thanks again!
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 29, 2005, 03:28:42 pm
Quote
If you can get into the D+B rescue mode then you have to mount the "normal" partitions before you can do any work on them. D+B mode gets you to the hidden filesystem on mtdblock1 (or possible mtdblock0). The normal partions are mtdblock2 (root) and mtdblock3) home - at least that is true for the C760 and C1000 zaurus.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89919\"][{POST_SNAPBACK}][/a][/div]

My C3000 is back thanks to the information above! Many thanks Stu!  

All I had to do was to enter into Linux using the D+B key combination and then execute the commands that are listed at the end of this message.

When rebooting there was one or two error messages (too fast to be read) but then the Qtopia environment started fine.

However the On/Off button is still not working    I intend to upgrade to the Sharp 1.1 NAND and see if it works.

Thanks for all the help!

[CODE]
cd /
mkdir x
 # this is the root of the normal file system
mount -o rw,noatime /dev/mtdblock2 x
x/sbin/eraseall /dev/mtd3
mount -o rw,noatime /dev/mtdblock3 x/home
cd x
tar xf root/.home_default.tar
 # prepare /x/dev
dd if=/dev/zero of=dev/ram1 bs=1024 count=64
mkfs.minix -i 512 dev/ram1 64
mount -t minix dev/ram1 dev
(cd home ; tar cf - dev | (cd /x ; tar xf -))
 # mount /x/tmp
mount -t tmpfs -o size=1m none dev/shm
cd dev/shm
mkdir tmp run
mkdir run/usb
chmod 4777 tmp
touch run/utmp
cd /x
 # ???
/etc/ledmode reset
 # assuming /dev/hda1 does not need to be formatted
mount -o ro /dev/hda1 hdd1
mke2fs -j /dev/hda2
e2fsck -p /dev/hda2
mount /dev/hda2 hdd2
gzip hdd1/.sys/hdimag2.tgz | tar xf -
 # ???
sltime -clear
 # prepare for reboot
cd /
umount -a
reboot
Title: Please Help! C3000 Almost Gone
Post by: mikef on July 30, 2005, 05:40:23 am
Quote
However the On/Off button is still not working    I intend to upgrade to the Sharp 1.1 NAND and see if it works.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=90077\"][{POST_SNAPBACK}][/a][/div]

I have the Qtopia environment running but I still cannot use the maintenance menus (either  resetiing with D+M or with Ok) because there is no answer to the touchscreen nor to the keyboard.

What can I do???

The commands I mentioned in my last post were adapted from the rc.rofilesys script. Is there a script for the NAND restoration somewhere?
Title: Please Help! C3000 Almost Gone
Post by: mikef on August 02, 2005, 03:38:13 pm
Quote
I have the Qtopia environment running but I still cannot use the maintenance menus (either  resetiing with D+M or with Ok) because there is no answer to the touchscreen nor to the keyboard.

What can I do???

The commands I mentioned in my last post were adapted from the rc.rofilesys script. Is there a script for the NAND restoration somewhere?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90144\"][{POST_SNAPBACK}][/a][/div]

Here are a list of things I have done successfully even without the maintenance menus:

- installation of the TriSoft C3000-2004-12-23-12-40 backup
- manual update of the Sharp ROM to version 1.11 (see below for the details)
- installation of the TriSoft C3000-2005-03-18-12-30-DEkbd-EN.zip backup (that should not be installed on C3000's running 1.01 ROMs!!!)

But this did not solve my initial problems   :
- On/Off button not working, meaning that after a suspend the only way to awake the Z is by inserting or taking the power plug
- the maintenance menus are frozen (no answer to touchscreen or keyboard)

Any help will be most welcome!

Instructions for the manual update of the Sharp ROM to version 1.11 (at your own risk!):

- in your PC
-- get the update archive from the Sharp site
-- unpack it (I used lha in Linux but cannot reproduce this step...)
-- copy the files to a CF/SD card (root directory, VFAT)
- in the Z
-- reboot while pressing the D+B keys to enter the rescue Linux
- log in as root
- insert the CF/SD card and execute:

Code: [Select]
mount
 # so that you can see the mount point for the card; mine was  /mnt/cf
 # decode updater script (this is done replaces the coded original)
/sbin/decsh /mnt/cf/updater.sh
 # run it and pray...
/mnt/cf/updater.sh /mnt/cf
 # if all goes well, there will be 3 "Success!" messages
  # reboot
reboot
Title: Please Help! C3000 Almost Gone
Post by: mikef on August 04, 2005, 06:10:06 am
Quote
But this did not solve my initial problems   :
- On/Off button not working, meaning that after a suspend the only way to awake the Z is by inserting or taking the power plug
- the maintenance menus are frozen (no answer to touchscreen or keyboard)

Any help will be most welcome!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=90533\"][{POST_SNAPBACK}][/a][/div]

Can anyone with a C3000 provide me a listing of all the files in the rescue Linux?

It can be obtained by booting with  the D+B keys, logging in as root, inserting a memory card (say CF) and executing
ls -lR > /mnt/cf/listDB

The file istDB in the card will hopefully help me in finding what files my Z is missing...

Thanks in advance!