본문 바로가기

Linux

Spitz/Install

출처 : http://wiki.openzaurus.org/Spitz/Install

Spitz/Install

From OpenZaurus

Contents

[hide]

How to install OpenZaurus on the Spitz.

For 2.6 kernels we ignore the flash entirely and install/boot directly from the microdrive. The first partition (/dev/hda1) on the microdrive becomes the root partition, /dev/hda2 is /home and /dev/hda3 becomes /media/hdd. For SL-C 3000 a standard partitioning scheme will work, SL-C3100/3200 need repartitioning, (See Section 2. below). The files required for reflashing are:

  • gnu-tar
  • hdimage1.tgz (rename from XXX-image-XXX-spitz.rootfs.tar.gz)
  • zImage.bin (rename from zImage-XXXXX.bin)
  • updater.sh (rename from updater.sh.spitz)

Make sure the files are named this way. You don't need the modules tarball.


The flashing process.

Place the needed files (determined from the lists above) into the root directory of a CF or SD card and make sure the names match those given above. The filenames are case sensitive if you use a case-sensitive filesystem. It's easiest to just use VFAT on the card.

  • Turn the zaurus over and flip the battery case switch to “Unlocked”. Remove the battery cover, and find the small reset microswitch on the left. The battery cover or the stylus can be used to press it.
  • Replace the battery cover and switch to “Locked”.
  • Insert the card with files if not inserted already.
  • Plug in the AC power jack. The yellow charge lamp must be on indicating external power, or you will get an error message in japanese later.
  • Press the “OK” key (in the middle of the arrow keys) and keep it pressed while pressing the “On/Off” button on the front of the device.
  • The Maintenance Screen will display. Choose “Update”, this is item 4.
  • The next screen will ask for the source to install the image from. Choose “CF” or “SD” as appropriate.
  • The next screen asks for confirmation, choose “Y” (Yes), this is the left button.
  • The Zaurus will now erase the flash, write the new image, then reboot to your new Operating System.

It's no longer required to immediately remove the card after flashing. Booting works just fine with a CF or SD card inserted. Except OPIE images which will block on start.

How to repartition microdrive to install OpenZaurus on the SL-C3100/SL-C3200.

This document was written with the best intentions, however, if there is an error in the document that damages your hardware or data, the responsibility is yours. We will not be held liable. You do this at your own risk.

You have been warned!!

If there is an error in this document please fix it.

Back Up Your Zaurus

Before flashing your Zaurus you should back it up if you wish to keep the data.

Note: The following procedure was tested with the SL-C3100(borzoi) in mind. It should also work for the SL-C3000(spitz) and SL-C3200(terrier) but there are no guarantees. It also assumes that you have a previously working(mountable) CF/SD card and/or USB connection and that you are using the original Sharp OS that came with your Zaurus or an upgrade to it.

In order to backup your Zaurus you will need a CF or SD card large enough to hold anything that you want off of your Zaurus or a USB connection to a PC. Before following these procedures you will want to plug your Zaurus into external power. This will help in case your battery is not charged completely because the internal hard drive does take a lot of power.

First you should make use of the included backup/restore program. It can be found under the settings tab/QT menu and is very easy to use. First insert your CF/SD card, if you are using one, then select it, or Internal Disk, under Media, the program will tell you if your card is large enough or not, then press the start button. At this time your Zaurus will restart and you will eventually see a status bar that will show you the progress of the backup. Once it is done you will be taken back to first the clock settings screen and then the default startup screen and the backup/restore program will be closed.

Second is the hard drive backup. To do this it is best to make use of the USB connection to your PC. However it can be done with a large enough CF or SD card. When doing it with the USB connection then it is as simple as a copy-paste job with the only question being what data to move and where is it at. Personally I recommend moving the entire Documents directory structure as it contains much of what you as a user will use. However if you also make use of the translation and dictionary programs than you will also want to copy everything else. Either way it will take awhile due to the slow speed of the internal hard drive of your Zaurus. Now the only other thing you need to know is where is all this stuff when you plug in your Zaurus to your PC. This can be tricky depending on the setup on your PC. If you are using a Linux OS then you may be faced with many options. When I plugged my Zaurus into my SuSE 9 PC I got sda thru sdh as possible drives/partitions. That's 8 different drives to choose from. (This also happens in opensuse 10.1) I found that sda, the first one, contained my information including the Documents directory and the files for the translator/dictionary. The others were merely mirror devices, they contained the same thing as the first one. Although I can't be certain because I don't use it, I do believe that Windows users will find this easier as the Zaurus was designed with Windows as the OS that most people would use to hook up their Zaurus to. It should come up as usual and be available as a regular device for the very simply copy-paste operation.

If you will be using a CF or SD card as your backup device then things can be a little more difficult. You will also need a card with a lot of space, as an example the stuff on my Zaurus' hard drive took up about 2 GB of space. Now, this can be done with one command. After closing out all of your running programs, start up a terminal. Now enter the following command minus quotes "cp -r /hdd3/* /mnt/cf/" This command will copy almost everything from the hard drive to your storage card. It will copy your Documents directory and all of the files for the translator/dictionary. If you only want your Documents directory than use this command, once again minus quotes “cp -r /hdd3/Documents/ /mnt/cf” In both of these commands I assume that you are using a CF card. If you are using an SD card than replace cf with sd in the commands.

Once you have finished than your Zaurus has been backed up. You can now continue.

Preparing the Hard Drive

For 2.6 kernels we ignore the flash entirely and install onto the microdrive directly. The first partition (/dev/hda1) on the microdrive becomes the root partition, /dev/hda2 is /home and /dev/hda3 becomes /media/hdd.

The standard microdrive’s partitioning won’t work as the root partition is too small. You need to resize the first partition to at least 100MB using fdisk before attempting to flash a 2.6 kernel.

In other words, you need to fdisk your hard drive while you still have an operating system on your Zaurus.

You can boot to a console from NAND using these instructions:

  1. Turn the zaurus over and flip the battery case switch to “Unlocked”.
  2. Remove the battery cover.
  3. Hold down "D" and "B" on the keyboard while performing the next 3 steps.
  4. Find the small reset microswitch to the left of the battery. Press it with the stylus or battery cover.
    • You can also remove and replace the battery instead of pressing the reset switch.
  5. Put the battery cover back on and switch back to Locked.
  6. Press the On button.
  7. Once the Sharp screen comes up you can release the "D" and "B" buttons.
The device should boot to a login prompt.
Use "root" as your login name. You will not be prompted for a password.

A word of warning before repartioning: It is a good idea to remove all compact flash cards from the zaurus prior to doing the NAND booting to console. The reason is that if the zaurus (verified on 3100) is NAND booted with a CF inserted, the compact flash slot becomes /dev/hda and the internal microdrive becomes /dev/hdc. If you NAND boot without the compact flash slot filled, the internal microdrive is /dev/hda and if you later insert a CF card, it becomes /dev/hdc. You wouldn't want to inadvertently blow away the wrong partition table.

As root in a console do the following:

# fdisk /dev/hda

Command (m for help): o (Blow away the partition table)

Command (m for help): n (New partition)
Partition type: p (Primary partition [1-4])
Partition number (1-4): 1 (Root partition)
First cylinder (1-7936, default 1): 1 (Start of disk)
Last cylinder or size: +150M (150 Mbyte, adjust as desired)

Command (m for help): n (New partition)
Partition type: p (Primary partition [1-4])
Partition number (1-4): 2 (Home partition)
First cylinder (293-7936, default 293): [hit enter] (Just after hda1)
Last cylinder or size: +40M (40 Mbyte, adjust as desired)

Command (m for help): n (New partition)
Partition type: p (Primary partition [1-4])
Partition number (1-4): 3 (Root partition)
First cylinder (372-7936, default 372): [hit enter] (Just after hda2)
Last cylinder or size: [hit enter] (Rest of disk)
Command (m for help): w (Write to disk)

# halt

Flashing

Follow instructions for SL-C3000(spitz).

Finishing Up

Once your Zaurus has booted into your chosen environment, format the last two partitions as root from a console with the following commands. To format vfat you may need to first install the dosfstools package. (With 3.5.4.1, this is already included.)

su -
mke2fs -j /dev/hda2
mkfs.vfat -F 32 /dev/hda3

The second line works on oe3.5.4.1 rc2 (assuming the dosfstools package is installed).

Credit goes to Frodo for this formatting tip.

It is a good idea to update your Zaurus at this time (if you have an internet connection).

From a console as root type:

ipkg update;ipkg upgrade

Comments


Don't forget to use 4 tildes if you want to leave your name when you leave your questions or comments. -- KennV 23:39, 30 April 2006 (BST)

'Linux' 카테고리의 다른 글

grep 과 find 2  (0) 2010.10.17
우분투(ubuntu) samba 사용  (0) 2010.09.17
Grep과 Find  (0) 2010.07.22
[debian] Andromeda - customized rootfs  (0) 2009.02.27
Ubuntu 8.10 in VMware  (0) 2009.02.23