Q16: I am using a Cxx0 or C1000. How can I install Debian EABI to my SD card?
From OESF
(9 intermediate revisions not shown.) | |||
Line 1: |
Line 1: | ||
'''Q16''': I am using a Cxx0 or C1000. How can I install Debian EABI to my SD card? | '''Q16''': I am using a Cxx0 or C1000. How can I install Debian EABI to my SD card? | ||
| - | '''A16''': The installation comes in | + | '''A16''': The installation comes in three parts. |
| - | + | * Install the Angstrom kernel & Angstrom system | |
| - | + | * Install the Debian EABI system | |
| - | + | * After installation configurations | |
| - | + | ||
Note: | 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 ! | ||
| - | '''INSTALL THE ANGSTROM KERNEL & ANGSTROM SYSTEM''' | ||
| - | 1. 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 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 28: |
Line 29: | ||
2.1 Repartition and reformat the SD : | 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: | 2.2 Format the partition: | ||
| - | + | mkfs.ext2 /dev/mmcblk0p1 | |
| - | mkfs. | + | |
2.3 Install the rootfs | 2.3 Install the rootfs | ||
| - | a. Get the | + | a. Get the [http://armel.applieddata.net/developers/linux/eabi/armel-root-fs.tar.bz2 rootfs tarball] |
b. Uncompress it to the root of the SD: | 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. | + | 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) | ||
| - | Copy /lib/modules from your NAND to the same location on the SD (/media/card/lib/modules) | ||
Line 54: |
Line 66: | ||
The debian boot process looks for init.sysvinit instead of init, so : | The debian boot process looks for init.sysvinit instead of init, so : | ||
| - | cd /media/card/sbin | + | 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) | 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 ???) | ||
2.6 Still in Angstrom : Connect to the net, run | 2.6 Still in Angstrom : Connect to the net, run | ||
| - | ipkg update && ipkg install altboot | + | 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)] | [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)] | ||
Line 80: |
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 | + | |
After that, reboot again. | After that, reboot again. | ||
| - | 4. | + | 4. First login |
| - | + | ||
| - | + | ||
| - | Root password : (no password) | + | Login: root |
| + | Root password : (no password) | ||
5. Set up date and time | 5. Set up date and time | ||
| - | date MMDDHHMMYYYY ##Example: 102906572007 | + | date MMDDHHMMYYYY ##Example: 102906572007 |
Line 103: |
Line 119: | ||
Please see this thread: http://www.oesf.org/forum/index.php?showtopic=24941 | 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. | + | And perhaps you may also be interested to check out [http://www.oesf.org/forum/index.php?showtopic=24960&view=findpost&p=170109 this after installation tarball and script], which may save you some time extracting stuff from the Angstrom and pdaXrom packages. |
Line 112: |
Line 128: | ||
a. First extract and copy the corresponding kernel modules to /lib/modules | 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. | + | b. Prepare the correct kernel image ('''zImage.bin''') and '''updater.sh''' and install them in the Flash Menu again. |
[[Debian/Zaurus installation guide (for all C-series models)|Back to the main list.]] | [[Debian/Zaurus installation guide (for all C-series models)|Back to the main list.]] | ||
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.

