Q16: I am using a Cxx0 or C1000. How can I install Debian EABI to my SD card?
From OESF
(One intermediate revision not shown.) | |||
Line 11: |
Line 11: | ||
* The 2.6.22 and 2.6.23 kernels (2.6.23 verified with angstrom 20071104) have troubles with altboot, so don't use it for now unless you know how to solve the problems. | * The 2.6.22 and 2.6.23 kernels (2.6.23 verified with angstrom 20071104) have troubles with altboot, so don't use it for now unless you know how to solve the problems. | ||
| + | New: It is tested with newes Angstrom kernel 2.6.24, they seem to work well ! | ||
| - | '''INSTALL THE ANGSTROM KERNEL & ANGSTROM SYSTEM''' | + | |
| - | Install the Angstrom 2.6. | + | '''1. INSTALL THE ANGSTROM KERNEL & ANGSTROM SYSTEM''' |
| + | Install the Angstrom 2.6.24 kernel & system in NAND flash area. | ||
Please follow the instructions here: http://www.angstrom-distribution.org/c1000-install-instructions | Please follow the instructions here: http://www.angstrom-distribution.org/c1000-install-instructions | ||
| - | resp. here: http://www.angstrom-distribution.org/zaurus-c7x0-c8x0 | + | resp. here: http://www.angstrom-distribution.org/zaurus-c7x0-c8x0 to install the latest angstrom. |
| + | |||
| + | You'll have to replace the kernel and modules with 2.6.24 ones. | ||
| + | |||
'''2. INSTALL THE DEBIAN EABI SYSTEM''' | '''2. INSTALL THE DEBIAN EABI SYSTEM''' | ||
Line 24: |
Line 29: | ||
2.1 Repartition and reformat the SD : | 2.1 Repartition and reformat the SD : | ||
| - | Create a linux ( | + | Create a linux (must be Ext2, as Ext3 is not known by the bootloader) partition on the SD (for details see: http://www.oesf.org/index.php?title=Multiple_partitions_on_a_CF_/_SD_card ) |
2.2 Format the partition: | 2.2 Format the partition: | ||
| - | mkfs. | + | mkfs.ext2 /dev/mmcblk0p1 |
Line 36: |
Line 41: | ||
b. Uncompress it to the root of the SD: | b. Uncompress it to the root of the SD: | ||
| - | tar -xvjpf | + | tar -xvjpf armel-root-fs.tar.bz2 |
| + | |||
| + | Attention: You will recognize, there is a directory (armel-root-fs) on the sd, where all is unpacked ! | ||
| + | After it is all unpacked, you can do an rsync to the root of the sd-card (I use rsync, cause it keeps | ||
| + | the symlinks.) | ||
| + | rsync -avz /media/card/armel-root-fs/ /media/card/ | ||
| - | 2.4 Put the 2.6. | + | |
| + | 2.4 Put the 2.6.24 kernel modules on the SD | ||
cp -a /lib/modules /media/card/lib/modules | cp -a /lib/modules /media/card/lib/modules | ||
| + | |||
| + | (or use rsync) | ||
| + | |||
| + | rsync -avz /lib/modules /media/card/lib/ | ||
| + | |||
| + | Using rsync, you can save them from a running Angstrom system (i.e. for testing purposes) | ||
| + | |||
Line 51: |
Line 69: | ||
ln -s init init.sysvinit | 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) | You need to change the mounted root from the standard /dev/hda1 (Microdrive) for titchy to /dev/mmcblk0p1 (= SD card) | ||
| + | |||
Edit /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) | Edit /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) | ||
| + | |||
| + | --------- | ||
| + | (I did not need to do that two things! Might be an orphaned procedure ???) | ||
Line 75: |
Line 98: | ||
If that is the case, do this: | If that is the case, do this: | ||
| - | cd ../dev ## use the [Tab] key to help you find "/" | + | cd ../dev ## use the [Tab] key to help you find "/" or use the command "pwd", so you see, where you are. |
MAKEDEV console | MAKEDEV console | ||
Current revision
Q16: I am using a Cxx0 or C1000. How can I install Debian EABI to my SD card?
A16: The installation comes in three parts.
- Install the Angstrom kernel & Angstrom system
- Install the Debian EABI system
- After installation configurations
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 and 2.6.23 kernels (2.6.23 verified with angstrom 20071104) have troubles with altboot, so don't use it for now unless you know how to solve the problems.
New: It is tested with newes Angstrom kernel 2.6.24, they seem to work well !
1. INSTALL THE ANGSTROM KERNEL & ANGSTROM SYSTEM
Install the Angstrom 2.6.24 kernel & system in NAND flash area.
Please follow the instructions here: http://www.angstrom-distribution.org/c1000-install-instructions resp. here: http://www.angstrom-distribution.org/zaurus-c7x0-c8x0 to install the latest angstrom.
You'll have to replace the kernel and modules with 2.6.24 ones.
2. INSTALL THE DEBIAN EABI SYSTEM
2. Install the Debian system
2.1 Repartition and reformat the SD :
Create a linux (must be Ext2, as Ext3 is not known by the bootloader) partition on the SD (for details see: http://www.oesf.org/index.php?title=Multiple_partitions_on_a_CF_/_SD_card )
2.2 Format the partition:
mkfs.ext2 /dev/mmcblk0p1
2.3 Install the rootfs
a. Get the rootfs tarball
b. Uncompress it to the root of the SD:
tar -xvjpf armel-root-fs.tar.bz2 Attention: You will recognize, there is a directory (armel-root-fs) on the sd, where all is unpacked ! After it is all unpacked, you can do an rsync to the root of the sd-card (I use rsync, cause it keeps the symlinks.)
rsync -avz /media/card/armel-root-fs/ /media/card/
2.4 Put the 2.6.24 kernel modules on the SD
cp -a /lib/modules /media/card/lib/modules
(or use rsync)
rsync -avz /lib/modules /media/card/lib/
Using rsync, you can save them from a running Angstrom system (i.e. for testing purposes)
2.5 Modify some system setting files in the Debian system
The debian boot process looks for init.sysvinit instead of init, so :
cd /media/card/sbin 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)
Edit /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)
(I did not need to do that two things! Might be an orphaned procedure ???)
2.6 Still in Angstrom : Connect to the net, run
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)]
FIRST BOOT & AFTER INSTALLATION CONFIGURATIONS
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:
cd ../dev ## use the [Tab] key to help you find "/" or use the command "pwd", so you see, where you are. MAKEDEV console
After that, reboot again.
4. First login
Login: root Root password : (no password)
5. Set up date and time
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.

