OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

15 Pages V  < 1 2 3 4 > »   
Reply to this topicStart new topic
> How To Install Debian On Your Zaurus (obsolete), ** pls refer to the pinned threads instead **
ZDevil
post Oct 27 2007, 11:02 AM
Post #16





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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: 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:
CODE
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: 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 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.

This post has been edited by ZDevil: Nov 1 2007, 01:15 PM
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:02 AM
Post #17





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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: http://www.oesf.org/index.php?title=Multip..._a_CF_/_SD_card )
b. Format the partition:
CODE
mkfs.ext3 /dev/mmcblk0p1

a. Get the rootfs from http://armel.applieddata.net/developers/li...root-fs.tar.bz2
b. Uncompress it to the root of the SD:
CODE
tar -xvzpf hddrootfs.tar.gz

2.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
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
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
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
date MMDDHHMMYYYY   ##Example: 102906572007


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


Go back to the main list.


This post has been edited by ZDevil: Nov 1 2007, 12:46 PM
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:03 AM
Post #18





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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: 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:
CODE
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
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
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.


Go back to the main list.

This post has been edited by ZDevil: Nov 1 2007, 01:15 PM
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:03 AM
Post #19





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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: 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).

4. Reformat the two partitions:
CODE
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 http://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
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
date MMDDHHMMYYYY   ##Example: 102906572007

10. 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
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
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
./2nd-cfg.sh

When 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! wink.gif


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

This post has been edited by ZDevil: Nov 1 2007, 01:15 PM
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:04 AM
Post #20





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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: 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).

4. Reformat the two partitions:
CODE
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 http://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
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
date MMDDHHMMYYYY   ##Example: 102906572007

10. 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
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
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
./2nd-cfg.sh

When 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! wink.gif

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

This post has been edited by ZDevil: Nov 1 2007, 01:15 PM
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:04 AM
Post #21





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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: 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).

4. Reformat the two partitions:
CODE
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 http://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
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
date MMDDHHMMYYYY   ##Example: 102906572007

10. 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
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
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
./2nd-cfg.sh

When 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! wink.gif

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

This post has been edited by ZDevil: Nov 2 2007, 02:33 AM
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:05 AM
Post #22





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Q??: So at the end of the days, which one is the best?

A??: Oh, sorry, sweatheart, it's just for funTM, 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.
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:06 AM
Post #23





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



(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?
Go to the top of the page
 
+Quote Post
cortez
post Oct 27 2007, 11:42 AM
Post #24





Group: Members
Posts: 376
Joined: 18-March 04
From: The Netherlands
Member No.: 2,380



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!
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 11:57 AM
Post #25





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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 ...
Go to the top of the page
 
+Quote Post
tux
post Oct 27 2007, 12:23 PM
Post #26





Group: Members
Posts: 450
Joined: 12-August 03
From: Leeds, UK
Member No.: 346



QUOTE(ZDevil @ Oct 27 2007, 08:57 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 ...

cool.gif 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. biggrin.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 27 2007, 01:30 PM
Post #27





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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!).
Go to the top of the page
 
+Quote Post
walkman
post Oct 27 2007, 02:17 PM
Post #28





Group: Members
Posts: 76
Joined: 26-September 07
Member No.: 20,757



Very nice piece of docs.
Go to the top of the page
 
+Quote Post
RX Shorty
post Oct 27 2007, 04:18 PM
Post #29





Group: Members
Posts: 121
Joined: 12-October 07
From: The Netherlands
Member No.: 20,813



Very nice...

To bad I aint own a C serie... maybe soon hmmm wink.gif
Go to the top of the page
 
+Quote Post
scottlfa
post Oct 27 2007, 05:55 PM
Post #30





Group: Members
Posts: 283
Joined: 1-October 07
From: Blacksburg, SC, USA
Member No.: 20,773



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
Go to the top of the page
 
+Quote Post

15 Pages V  < 1 2 3 4 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th November 2014 - 01:34 AM