Author Topic: How To Install Debian On Your Zaurus (obsolete)  (Read 124799 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #15 on: October 27, 2007, 03:02:24 pm »
Q15: I am using a C3x00. How can I install Debian OABI on the internal drive using the rootfs tarball?

A15: The installation has three parts
1. Prepare the SD installer; 2. Prepare the internal drive; 3. Flash the kernel and install the system

==========
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:
i.   updater.sh
ii.   gnu-tar
iii.   zImage-2.6.17-cpufreq-fastfpe.bin OR zImage-2.6.20-cpufreq.bin (This is the kernel; rename it to zImange.bin)
iv.   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: https://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:
Code: [Select]
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!


==========
1st boot
==========
4. 1st 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: https://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 Run "apt-get update" in the terminal
7.3 Run "apt-get dist-upgrade" in the terminal


==========
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.


Go back to the main list.
« Last Edit: November 01, 2007, 05:15:58 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #16 on: October 27, 2007, 03:02:41 pm »
Q16: I am using a Cxx0 or C1000. How can I install Debian EABI to my SD card?

A16: The installation comes in two parts. 1. Install the Angstrom kernel & Angstrom system; 2. Install the Debian EABI system
Note:
-- If your Zaurus is already running with uboot (such as the new pdaXrom versions), then you have to do a NAND Restore to revert to the factory stock rom in order to flash this kernel.
-- If you want to keep using uboot, go to Q20 now.
-- The 2.6.22 kernel (2.6.23 yet to be verified) has troubles with altboot, so don't use it for now unless you know how to solve the problems.


==============================
Install the Angstrom kernel & Angstrom system
==============================
1. Install the Angstrom 2.6.21 kernel & system in NAND flash area.
1a. Remove baterry, wait 5 secs, place battery and attach AC power.
1b. Press "OK" key and keep it pressed, then press "On/Off" button.
1c. In the maintenance menu, choose "4" (Update) in the first screen, "1" (CF) in the second and "Y" in the third
1d. The kernel will be flashed and Zaurus will be rebooted.


====================
Install the Debian EABI system
====================
2. Install the Debian system
2.1 Repartition and reformat the SD :
a. Create a linux partition on the SD (for details see: https://www.oesf.org/index.php?title=Multip..._a_CF_/_SD_card )
b. Format the partition:
Code: [Select]
mkfs.ext3 /dev/mmcblk0p1a. Get the rootfs from http://armel.applieddata.net/developers/li...root-fs.tar.bz2
b. Uncompress it to the root of the SD:
Code: [Select]
tar -xvzpf hddrootfs.tar.gz2.3 Put the 2.6.21 kernel modules on the SD
Copy /lib/modules from your NAND to the same location on the SD (/media/card/lib/modules)
2.4 Modify some system setting files in the Debian system
The debian boot process looks for init.sysvinit instead of init, so :
Code: [Select]
cd /media/card/sbin and "ln -s init init.sysvinit"You need to change the mounted root from the standard /dev/hda1 (Microdrive) for titchy to /dev/mmcblk0p1 (= SD card)
Eit /etc/fstab to make /dev/mmcblk0p1 mount to / and make it bootable. (Remember to remove the lines mounting /dev/hdaX to / because you don't have a microdrive)

2.5 Still in Angstrom : Connect to the net, run
Code: [Select]
ipkg update && ipkg install altboot[Notes : You'll have to edit network settings before you can reach your network (/etc/network/interfaces; /etc/resolv.conf contains some kuro-specific-things)]


====================
1st boot: System configuration
====================

3. Reboot
Reboot and hit the "any" key when asked to launch altboot then choose "boot from SD"
(the "any" key is the 35th key counting diagonal from the lower left corner or maybe some other key)
At this stage, booting may fail and complain about being "unable to open an initial console".
If that is the case, do this:
Code: [Select]
cd ../dev    ## use the [Tab] key to help you find "/"
MAKEDEV console
After that, reboot again.

4.  1st login
Login: root
Root password : (no password)

5. Set up date and time
Code: [Select]
date MMDDHHMMYYYY   ##Example: 102906572007
6. After installation configurations
Please see this thread: https://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.


Go back to the main list.
« Last Edit: November 01, 2007, 04:46:05 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #17 on: October 27, 2007, 03:03:20 pm »
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 four parts.
1. Prepare the installer files; 2. Prepare the internal drive; 3. Extract the system rootfs tarball to the internal drive; 4. Flash the kernel

==========
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 to another computer
http://armel.applieddata.net/developers/li...root-fs.tar.bz2 .
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. Rremove 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: https://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:
Code: [Select]
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
a. mount /dev/hda1 /mnt/cf (mkdir /mnt/cf if necessary)
b. Plug in the SD card with armel-root-fs.tar and modules-xxx.tar.gz.
c. cd /mnt/card
d. cp armel-root-fs.tar modules-xxx.tar.gz /zaurus-debian-eabi-afterinstall_1.0b.tar.gz  mnt/cf
e. cd /mnt/cf
f. tar -xvpf armel-root-fs.tar
g. cd armel-root-fs
h. mv ./* ../
i. cd ..
j. tar -xvpzf modules-xxx.tar.gz
k. rm -r armel-root-fs  armel-root-fs.tar modules-xxx.tar.gz
l. 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!

====================
1st boot: System configuration
====================

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:
Code: [Select]
mount /dev/hda1 /mnt/cf
cd /mnt/cf/dev
MAKEDEV console
After that, reboot again.

5.  1st login
Login: root
Root password : (no password)

6. Set up date and time
Code: [Select]
date MMDDHHMMYYYY   ##Example: 102906572007
7. After installation configurations
Please see this thread: https://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.


Go back to the main list.
« Last Edit: November 01, 2007, 05:15:32 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #18 on: October 27, 2007, 03:03:40 pm »
Q18: I am using a C3x00, and I want to use kernel 2.6.23.1 yonggun with uboot. How can I install Debian EABI on the internal drive?

A18: The installation comes in four parts: 1. Prepare the internal drive; 2. Install the EABI rootfs; 3. Install uboot; 4. Flash the kernel

==========
Preparation
==========
1. Prepare the internal drive
[Note: If you are already using the new pdaXrom versions using uboot, you can simply repartition and reformat the internal drive without using the method below. Go directly to 5.]

2. 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.

3. Repartition the internal drive using fdisk /dev/hda (how-to: https://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).

4. Reformat the two partitions:
Code: [Select]
mke2fs -j /dev/hda1
mkswap /dev/hda2

============
System Installation
============
5. Install the system rootfs, kernel modules and after installation files to the internal drive
a. mount /dev/hda1 /mnt/cf (mkdir /mnt/cf if necessary)
b. Plug in the SD card with armel-root-fs.tar (first uncompress the .bz2 format), modules-2.6.23.1-yonggun.tar.gz, and zaurus-debian-eabi-afterinstall_1.1.tar.gz
c. cd /mnt/card
d. cp armel-root-fs.tar  modules-2.6.23.1-yonggun.tar.gz  zaurus-debian-eabi-afterinstall_1.1.tar.gz  /mnt/cf
e. cd /mnt/cf
f. tar -xvpf armel-root-fs.tar
g. cd armel-root-fs
h. mv ./* ../
i. cd ..
j. tar -xvpzf modules-2.6.23.1-yonggun.tar.gz
k. tar -xvzf zaurus-debian-eabi-afterinstall_1.1.tar.gz
l. rm -r  armel-root-fs  armel-root-fs.tar  modules-2.6.23.1-yonggun.tar.gz   zaurus-debian-eabi-afterinstall_1.1.tar.gz


===========
Uboot installation
===========
6. Install uboot  
(adapted from http://www.pdaxrom.org/?q=node/106 )
[If your Zaurus is already using uboot, go directly to 7]
Fresh installation on Zaurus with Sharp bootloader (applicable to Sharp rom, Cacko rom, pdaXrom 1.1.0 Beta 1/Beta3, pdaXii, Angstrom)
a. Download ( http://distro.ibiblio.org/pub/linux/distri...akita-uboot.zip ) and unzip u-boot archive to CF or MMC/SD card, you will see FOUR files: emergenc.img, u-boot.bin, updater.pro and updater.sh
b. Remove baterry, wait 5 secs, place battery and attach AC power.
c. Press "OK" key and keep it pressed, then press "On/Off" button.
d. In the maintenance menu, choose "4" (Update) in the first screen, "2" (SD) in the second and "Y" in the third
e. The kernel will be flashed
f. Press and hold [OK] during reboot - emergency system will boot up


============
Kernel installation
============
7.  Flash the kernel in the uboot emergency system
7.1 Eject the SD card and remove all the uboot installation files on the SD card.
7.2 Download and copy kernel.img.2.6.23.1.cpufreq-fastfpe.hda1 (rename to kernel.img) from http://yonggun.tistory.com/53 and autoboot.sh from https://www.oesf.org/forum/index.php?act=at...ost&id=4969 (simply remove the tar.gz extension; it is just a plain text file) and put them on the SD card.
7.3 Reboot the Zaurus while pressing the [Ok] button.
7.4 In the uboot emergency system, you will be asked "Proceed with debian installation or boot to emergency system? [y/n]". Press [y] and [Enter]. The new kernel flashing process will start and complete very quickly.

After reboot, your Z will be running Debian EABI!
[NOTE: Press "2" when (re)booting]



====================
1st boot: System configuration
====================

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:
Code: [Select]
mount /dev/hda1 /mnt/cf
cd /mnt/cf/dev
MAKEDEV console
After that, reboot again. (Press [2] when boot starts)

8.  1st login
Login: root
Root password : (no password)

9. Set up date and time
Code: [Select]
date MMDDHHMMYYYY   ##Example: 10290657200710. The first part of after installation configurations
The after installation process is divided into two parts. Now let's do the first part.
[Note: The after installation scripts (1st-cfg.sh and 2nd-cfg.sh) are intended to be applied only once to a clean, fresh install before any tweaking. Mixing any other different tweak with the application of these scripts may produce unexpected results.]
Do this and follow the instructions:
Code: [Select]
cd ../afterinstall  ## Use the [Tab] key to help you get  "/"
../afterinstall/1st-cfg.sh
When the process completes, you will be reminded to set up a proper network connection before proceeding to the second part.

11. Set up network connection
11.1 nano /etc/network/interfaces.
For example, for my Symbol Spectrum 24 wifi CF with a static IP in a home network:
Quote
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.

auto lo
iface lo inet loopback

auto eth2
#  iface eth2 inet dhcp
allow-hotplug eth2
iface eth2 inet static
   address 192.168.0.199
   network 192.168.0.0
   netmask 255.255.255.0
   broadcast 192.168.0.255
   gateway 192.168.0.1
   wireless-essid DON'T_BE_STUPID
   wireless-key I_KNOW_YOU_KNOW_THAT
   wireless-mode managed
   dns-nameservers 192.168.0.1
11.2 nano /etc/resolv.conf
Simply put down your router's IP, e.g.
Quote
192.168.0.1
11.3 You can do a very simple test to see if your network connection is working:
For example, if your Zaurus is connecting to a wireless router, then do
Code: [Select]
ping 192.168.0.1    ##Or the correct IP address of the router
ping www.google.com    ##This will make sure that your Zaurus can connect to the internet
If ping doesn't report any package loss, then you are ready to proceed to 12.

12. Now we begin the second part of the after installation process.  
Go to the afterinstallation directory again. Then
Code: [Select]
./2nd-cfg.shWhen asked to confirm whether you want to install anything, just type [y] and [Enter].
After this a fully working EABI system is set up. Time to play!

That's it. Have fun!  


==========
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 Uboot Emergency Mode again.


Go back to the main list.
« Last Edit: November 01, 2007, 05:15:18 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #19 on: October 27, 2007, 03:04:05 pm »
Q19: I am using a C3x00, and I want to use kernel 2.6.23.1 yonggun with uboot. How can I install Debian EABI on SD?

A19: The installation comes in four parts: 1. Prepare the SD 2. Install the EABI rootfs; 3. Install uboot; 4. Flash the kernel

==========
Preparation
==========
1. Prepare the SD card
[Note: If you are already using the new pdaXrom versions using uboot, you can simply repartition and reformat the internal drive, without using the method below. Go directly to II)]

2. 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.

3. Repartition the internal drive using fdisk /dev/hda
(how-to: https://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).

4. Reformat the two partitions:
Code: [Select]
mke2fs -j /dev/mmcblk0p1
mkswap /dev/mmcblk0p2

==========
System Installation
==========
5. Extract the system rootfs tarball, kernel modules and after installation files to the SD card
a. mount /dev/mmcblk0p1 /mnt/card
b. Plug in the CF card with armel-root-fs.tar (first uncompress the .bz2 format), modules-2.6.23.1-yonggun.tar.gz, and zaurus-debian-eabi-afterinstall_1.1.tar.gz
c. cd /mnt/cf
d. cp armel-root-fs.tar  modules-2.6.23.1-yonggun.tar.gz  zaurus-debian-eabi-afterinstall_1.1.tar.gz  /mnt/card
e. cd /mnt/card
f. tar -xvpf armel-root-fs.tar
g. cd armel-root-fs
h. mv ./* ../
i. cd ..
j. tar -xvpzf modules-2.6.23.1-yonggun.tar.gz
k. tar -xvzf zaurus-debian-eabi-afterinstall_1.1.tar.gz
l. rm -r  armel-root-fs  armel-root-fs.tar  modules-2.6.23.1-yonggun.tar.gz   zaurus-debian-eabi-afterinstall_1.1.tar.gz

===========
Uboot installation
===========
6. Install uboot  
(adapted from http://www.pdaxrom.org/?q=node/106 )
[If your Zaurus is already using uboot, go directly to 7]
Fresh installation on Zaurus with Sharp bootloader (applicable to Sharp rom, Cacko rom, pdaXrom 1.1.0 Beta 1/Beta3, pdaXii, Angstrom)
a. Download ( http://distro.ibiblio.org/pub/linux/distri...akita-uboot.zip ) and unzip u-boot archive to CF, you will see FOUR files: emergenc.img, u-boot.bin, updater.pro and updater.sh
b. Remove baterry, wait 5 secs, place battery and attach AC power.
c. Press "OK" key and keep it pressed, then press "On/Off" button.
d. In the maintenance menu, choose "4" (Update) in the first screen, "1" (CF) in the second and "Y" in the third
e. The kernel will be flashed
f. Press and hold [OK] during reboot - emergency system will boot up


============
Kernel installation
============
7.  Flash the kernel in the uboot emergency system
7.1 Eject the CF card and remove all the uboot installation files on the CF card.
7.2 Download and copy kernel.img.2.6.23.1.cpufreq-fastfpe.sd (rename to kernel.img) from http://yonggun.tistory.com/53 and autoboot.sh from https://www.oesf.org/forum/index.php?act=at...ost&id=4969 (simply remove the tar.gz extension; it is just a plain text file) and put them on the CF card.
7.3 Reboot the Zaurus while pressing the [Ok] button.
7.4 In the uboot emergency system, you will be asked "Proceed with debian installation or boot to emergency system? [y/n]". Press [y] and [Enter]. The new kernel flashing process will start and complete very quickly.

After reboot, your Z will be running Debian EABI!
[NOTE: Press "1" when (re)booting]


====================
1st boot: System configuration
====================

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:
Code: [Select]
mount /dev/hda1 /mnt/cf
cd /mnt/cf/dev
MAKEDEV console
After that, reboot again. (Press [1] when boot starts)

8.  1st login
Login: root
Root password : (no password)

9. Set up date and time
Code: [Select]
date MMDDHHMMYYYY   ##Example: 10290657200710. The first part of after installation configurations
The after installation process is divided into two parts. Now let's do the first part.
[Note: The after installation scripts (1st-cfg.sh and 2nd-cfg.sh) are intended to be applied only once to a clean, fresh install before any tweaking. Mixing any other different tweak with the application of these scripts may produce unexpected results.]
Do this and follow the instructions:
Code: [Select]
cd ../afterinstall  ## Use the [Tab] key to help you get  "/"
../afterinstall/1st-cfg.sh
When the process completes, you will be reminded to set up a proper network connection before proceeding to the second part.

11. Set up network connection
11.1 nano /etc/network/interfaces.
For example, for my Symbol Spectrum 24 wifi CF with a static IP in a home network:
Quote
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.

auto lo
iface lo inet loopback

auto eth2
#  iface eth2 inet dhcp
allow-hotplug eth2
iface eth2 inet static
    address  192.168.0.199
    network  192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    wireless-essid DON'T_BE_STUPID
    wireless-key I_KNOW_YOU_KNOW_THAT
    wireless-mode managed
    dns-nameservers 192.168.0.1
11.2 nano /etc/resolv.conf
Simply put down your router's IP, e.g.
Quote
192.168.0.1
11.3 You can do a very simple test to see if your network connection is working:
For example, if your Zaurus is connecting to a wireless router, then do
Code: [Select]
ping 192.168.0.1    ##Or the correct IP address of the router
ping www.google.com    ##This will make sure that your Zaurus can connect to the internet
If ping doesn't report any package loss, then you are ready to proceed to 12.

12. Now we begin the second part of the after installation process.  
Go to the afterinstallation directory again. Then
Code: [Select]
./2nd-cfg.shWhen asked to confirm whether you want to install anything, just type [y] and [Enter].
After this, a fully working EABI system is set up. Time to play!

That's it. Have fun!  

==========
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 Uboot Emergency Mode again.

Go back to the main list.
« Last Edit: November 01, 2007, 05:15:03 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #20 on: October 27, 2007, 03:04:44 pm »
Q20: I am using a C1x00, and I want to use kernel 2.6.23.1 yonggun with uboot. How can I install Debian EABI on SD?

A20: [The method should be the same as Q19, but this remains to be tested.]

==========
Preparation
==========
1. Prepare the SD card
[Note: If you are already using the new pdaXrom versions using uboot, you can simply repartition and reformat the internal drive, without using the method below. Go directly to II)]

2. 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.

3. Repartition the internal drive using fdisk /dev/hda
(how-to: https://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).

4. Reformat the two partitions:
Code: [Select]
mke2fs -j /dev/mmcblk0p1
mkswap /dev/mmcblk0p2

==========
System Installation
==========
5. Extract the system rootfs tarball, kernel modules and after installation files to the SD card
a. mount /dev/mmcblk0p1 /mnt/card
b. Plug in the CF card with armel-root-fs.tar (first uncompress the .bz2 format), modules-2.6.23.1-yonggun.tar.gz, and zaurus-debian-eabi-afterinstall_1.1.tar.gz
c. cd /mnt/cf
d. cp armel-root-fs.tar  modules-2.6.23.1-yonggun.tar.gz  zaurus-debian-eabi-afterinstall_1.1.tar.gz  /mnt/card
e. cd /mnt/card
f. tar -xvpf armel-root-fs.tar
g. cd armel-root-fs
h. mv ./* ../
i. cd ..
j. tar -xvpzf modules-2.6.23.1-yonggun.tar.gz
k. tar -xvzf zaurus-debian-eabi-afterinstall_1.1.tar.gz
l. rm -r  armel-root-fs  armel-root-fs.tar  modules-2.6.23.1-yonggun.tar.gz   zaurus-debian-eabi-afterinstall_1.1.tar.gz


===========
Uboot installation
===========
6. Install uboot  
(adapted from http://www.pdaxrom.org/?q=node/106 )
[If your Zaurus is already using uboot, go directly to 7]
Fresh installation on Zaurus with Sharp bootloader (applicable to Sharp rom, Cacko rom, pdaXrom 1.1.0 Beta 1/Beta3, pdaXii, Angstrom)
a. Download ( http://distro.ibiblio.org/pub/linux/distri...akita-uboot.zip ) and unzip u-boot archive to CF, you will see FOUR files: emergenc.img, u-boot.bin, updater.pro and updater.sh
b. Remove baterry, wait 5 secs, place battery and attach AC power.
c. Press "OK" key and keep it pressed, then press "On/Off" button.
d. In the maintenance menu, choose "4" (Update) in the first screen, "1" (CF) in the second and "Y" in the third
e. The kernel will be flashed
f. Press and hold [OK] during reboot - emergency system will boot up


============
Kernel installation
============
7.  Flash the kernel in the uboot emergency system
7.1 Eject the CF card and remove all the uboot installation files on the CF card.
7.2 Download and copy kernel.img.2.6.23.1.cpufreq-fastfpe.sd (rename to kernel.img) from http://yonggun.tistory.com/53 and autoboot.sh from https://www.oesf.org/forum/index.php?act=at...ost&id=4969 (simply remove the tar.gz extension; it is just a plain text file) and put them on the CF card.
7.3 Reboot the Zaurus while pressing the [Ok] button.
7.4 In the uboot emergency system, you will be asked "Proceed with debian installation or boot to emergency system? [y/n]". Press [y] and [Enter]. The new kernel flashing process will start and complete very quickly.

After reboot, your Z will be running Debian EABI!
[NOTE: Press "1" when (re)booting]


====================
1st boot: System configuration
====================

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:
Code: [Select]
mount /dev/hda1 /mnt/cf
cd /mnt/cf/dev
MAKEDEV console
After that, reboot again. (Press [1] when boot starts)

8.  1st login
Login: root
Root password : (no password)

9. Set up date and time
Code: [Select]
date MMDDHHMMYYYY   ##Example: 10290657200710. The first part of after installation configurations
The after installation process is divided into two parts. Now let's do the first part.
[Note: The after installation scripts (1st-cfg.sh and 2nd-cfg.sh) are intended to be applied only once to a clean, fresh install before any tweaking. Mixing any other different tweak with the application of these scripts may produce unexpected results.]
Do this and follow the instructions:
Code: [Select]
cd ../afterinstall  ## Use the [Tab] key to help you get  "/"
../afterinstall/1st-cfg.sh
When the process completes, you will be reminded to set up a proper network connection before proceeding to the second part.

11. Set up network connection
11.1 nano /etc/network/interfaces.
For example, for my Symbol Spectrum 24 wifi CF with a static IP in a home network:
Quote
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.

auto lo
iface lo inet loopback

auto eth2
#  iface eth2 inet dhcp
allow-hotplug eth2
iface eth2 inet static
    address  192.168.0.199
    network  192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    wireless-essid DON'T_BE_STUPID
    wireless-key I_KNOW_YOU_KNOW_THAT
    wireless-mode managed
    dns-nameservers 192.168.0.1
11.2 nano /etc/resolv.conf
Simply put down your router's IP, e.g.
Quote
192.168.0.1
11.3 You can do a very simple test to see if your network connection is working:
For example, if your Zaurus is connecting to a wireless router, then do
Code: [Select]
ping 192.168.0.1    ##Or the correct IP address of the router
ping www.google.com    ##This will make sure that your Zaurus can connect to the internet
If ping doesn't report any package loss, then you are ready to proceed to 12.

12. Now we begin the second part of the after installation process.  
Go to the afterinstallation directory again. Then
Code: [Select]
./2nd-cfg.shWhen asked to confirm whether you want to install anything, just type [y] and [Enter].
After this, a fully working EABI system is set up. Time to play!

That's it. Have fun!  

==========
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 Uboot Emergency Mode again.


Go back to the main list.
« Last Edit: November 02, 2007, 06:33:37 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #21 on: October 27, 2007, 03:05:26 pm »
Q??: So at the end of the days, which one is the best?

A??: Oh, sorry, sweatheart, it's just for [size=]fun[/size][size=]TM[/size][/b][/color][/font], and so I'm not gonna tell you, "Look, my Richard beats your Jimmy hands down!"  This is impolite.


Go back to the main list.
« Last Edit: October 28, 2007, 07:15:30 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #22 on: October 27, 2007, 03:06:08 pm »
(This post is reserved for general purpose)

Upcoming:

Part II   FAQs  
No rules to follow, but just one basic principle of KISS (keep it short and simple)

Rough outline:
1. After installation
2. Network connection
3. Basic package management commands (apt-get)
4. Binding mouse buttons to keyboards
5. Brightness adjustment
6. Bluetooth
7. X-windows (including WMs)
8. Sound issues
9. Compilation: onboard and cross
10. Other known issues

**********

Well, I think the FAQs deserve a separate thread, lest we make this one too big and long and hard to read. What do you folks think?
« Last Edit: October 27, 2007, 05:04:33 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
How To Install Debian On Your Zaurus (obsolete)
« Reply #23 on: October 27, 2007, 03:42:43 pm »
Great work. It may be huge, but this post makes it a one-stop place for all the bits of information that is scattering around the place. Thanks a lot!
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #24 on: October 27, 2007, 03:57:14 pm »
No, no, it's A collective work of many random nameless rogue user joez here...

One joe now keeps himself busy making the notes look better.

Thanks cortez for your notes. Now following your suggested format ...

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #25 on: October 27, 2007, 04:23:57 pm »
Quote from: ZDevil
No, no, it's A collective work of many random nameless rogue user joez here...

One joe now keeps himself busy making the notes look better.

Thanks cortez for your notes. Now following your suggested format ...
 Cheers ZDevil, a good bit of work. I'm, slowly, going through the printed version you sent and I'll pop any bright ideas i have back to you.
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #26 on: October 27, 2007, 05:30:22 pm »
Hey, folks, this is certainly not the end!

If you come up with alternative and better installation methods, write me the notes and I will incorporate them here (with your name of course!).

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

walkman

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
How To Install Debian On Your Zaurus (obsolete)
« Reply #27 on: October 27, 2007, 06:17:02 pm »
Very nice piece of docs.
Sharp SL-C1000 Akita + D-Link 660W

RX Shorty

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • http://www.lindoboom.nl
How To Install Debian On Your Zaurus (obsolete)
« Reply #28 on: October 27, 2007, 08:18:53 pm »
Very nice...

To bad I aint own a C serie... maybe soon hmmm
Owning a Zaurus SL-C860, SL-C3200, SL-6000, Netwalker
Got the GPD Win!

scottlfa

  • Sr. Member
  • ****
  • Posts: 281
    • View Profile
    • http://
How To Install Debian On Your Zaurus (obsolete)
« Reply #29 on: October 27, 2007, 09:55:51 pm »
Very well covered thanks.

Q20: I am using a C1x00, and I want to use kernel 2.6.22.9 yonggun with uboot. How can I install Debian EABI on SD?

Sent a PM ZDevil
"So there I was, spitting on my goldfish trying to keep it alive ..."
---------------------------------------------------------------< O >-------------------------------------------------------
Viliv N5 [Debian]
Acer One Running OSX 10.5.7 [Dell 3190 & Ram Upgraded]
SL-C1000 [ZUbuntu], JasJar [WM 6.5], Nokia N900, and Samsung Galaxy S 4G.
Sony Ux280P [Kbuntu 10.4 Lucid], PsP Go and DSi