Q15: I am using a C3x00. How can I install Debian OABI on the internal drive using the rootfs tarball?

From OESF

Revision as of 06:16, 17 October 2009 by 65.115.164.130 (Talk)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Q15: I am using a C3x00. How can I install Debian OABI on the internal drive using the rootfs tarball?

A15: The installation has four parts

  • Prepare the SD installer
  • Prepare the internal drive
  • Flash the kernel and install the system
  • After installation configurations


PREPARATION

1. Prepare the SD installer Download the following four files from http://www.bigbridgezau.sakura.ne.jp/dev/debian/ and copy them to the root of SD:

a. updater.sh

b. gnu-tar

c. zImage-2.6.17-cpufreq-fastfpe.bin OR zImage-2.6.20-cpufreq.bin (This is the kernel; rename it to zImage.bin)

d. hddrootfs.tar.gz (This is the base system and Etch; rename it to hdimage1.tgz)


2. Prepare the internal drive

2.1 Boot into Linux Emergency Mode (remove power sources, press B and D while putting back the battery & lock the cover switch & power on). Login as root.

2.2 Repartition the internal drive using fdisk /dev/hda ( [How-to: http://www.oesf.org/index.php?title=Multiple_partitions_on_a_CF_/_SD_card] ). Create two partitions.

/dev/hda1 is the root partition (ext3);

/dev/hda2 is the swap partition (default ~180.9MB in Debian CD installation, but you can make a bigger swap partition if you want to run very resource-hungry programs, or do onboard compilation).

2.3 Reformat the partitions:

   mke2fs -j /dev/hda1
   mkswap /dev/hda2


INSTALLATION

3. Flash the kernel and install the rootfs

3.1. Remove baterry, wait 5 secs, place battery and attach AC power.

3.2. Press "OK" key and keep it pressed, then press "On/Off" button.

3.3. In the maintenance menu, choose "4" (Update) in the first screen, "2" (SD) in the second and "Y" in the third

3.4. First the kernel will be flashed. Next the system tarball will be extracted to the internal drive. And then Zaurus will be rebooted. Debian is ready to go!


FIRST BOOT

4. First login

   Login: root
   Root password: kuroadmin


5. Do some initial system settings

5.1 Edit /etc/fstab to make sure the root filessystem, swap partition and other things are mounted properly.

5.2 From now on you will need network connection to update and upgrade the system.


6. Set up network connection

Set up your network profile in /etc/network/interfaces and /etc/resolv.conf, blacklist hostap if you are using Ambicom WL1100C (for details see this post: http://www.oesf.org/forum/index.php?act=fi...&pid=168621 ). You can then do the postinstallation steps as descibed in "After installation" in the titchy linux wiki: http://wiki.neilandtheresa.co.uk/Titchy_Linux/Installing


7. System upgrade: to Lenny (recommended) or Sid (for the brave hearts)

7.1 In /etc/apt/sources.list, change "etch" to "lenny" or “sid”

7.2 Update the package lists

   apt-get update

7.3 Upgrade the installed packages

   apt-get dist-upgrade


CHANGE KERNELS

If you want to switch to other kernels,

a. first extract and copy the corresponding kernel modules to /lib/modules

b. Prepare the correct kernel image (zImage.bin) and updater.sh and install them in the Flash Menu again.

Note: this method work for all kernel except 2.6.23.1 yonggun, which uses uboot to install, for details see Q18-20.


Back to the main list.

Personal tools