Q17: I am using a C3x00. How can I install Debian EABI on the internal drive?
From OESF
Q17: I am using a C3x00. How can I install Debian EABI on the internal drive?
A17: First, you have to use an EABI kernel (See Q7). If you are using kernel 2.6.23.1 yonggun, go to Q18 now. Otherwise, read on.
The installation has five parts.
- Prepare the installer files
- Prepare the internal drive
- Extract the system rootfs tarball to the internal drive
- Flash the kernel
- After installation configurations
PREPARATION
1. Prepare the SD installer
1.1 The kernel: Download and copy an EABI kernel, its corresponding updater.sh, and kernel module tarball (if available) to an SD card.
1.2 The EABI rootfs:
a. Download the armel rootfs tarball.
b. Uncompress the bz2 format: tar –zjf armel-root-fs.tar.bz2 to get the armel-root-fs.tar.
c. Copy it to the SD.
2. Prepare the internal drive
2.1 Boot into Linux Emergency Mode a. Remove power sources b. Press B and D while putting back the battery & lock the cover switch & power on). c. In the command prompt, login as "root".
2.2 Repartition the internal drive using fdisk /dev/hda (how-to: http://www.oesf.org/index.php?title=Multip..._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
SYSTEM INSTALLATION
3. Extract the system rootfs tarball, kernel modules and after installation files to the internal drive
mount /dev/hda1 /mnt/cf ## mkdir /mnt/cf if necessary
Plug in the SD card with armel-root-fs.tar and modules-xxx.tar.gz.
cd /mnt/card cp armel-root-fs.tar modules-xxx.tar.gz /zaurus-debian-eabi-afterinstall_1.0b.tar.gz mnt/cf cd /mnt/cf tar -xvpf armel-root-fs.tar cd armel-root-fs mv ./* ../ cd .. tar -xvpzf modules-xxx.tar.gz rm -r armel-root-fs armel-root-fs.tar modules-xxx.tar.gz
Reboot while pressing the [OK] button.
4. Flash the kernel
Now the Zaurus will boot into the Flash Menu
a. In the Japanese menu, choose "4" (Update) in the first screen, "2" (SD) in the second and "Y" in the third
b. The kernel will be flashed and Zaurus will be rebooted. Debian EABI is ready to go!
FIRST BOOT AND SYSTEM CONFIGURATIONS
Note: The first booting may fail and complain about being "unable to open an initial console". If that is the case, boot into the Linux Emergency mode and do this:
mount /dev/hda1 /mnt/cf cd /mnt/cf/dev MAKEDEV console
After that, reboot again.
5. First login
Login: root Root password : (no password)
6. Set up date and time
date MMDDHHMMYYYY ##Example: 102906572007
7. After installation configurations
Please see this thread: http://www.oesf.org/forum/index.php?showtopic=24941
And perhaps you may also be interested to check out this after installation tarball and script, which may save you some time extracting stuff from the Angstrom and pdaXrom packages.
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.

