The section discusses how to upgrade a standalone Debian Linux system, i.e where a PPC Prep Boot partition is used to boot
Linux rather than the SLB configuration used on a Dual-booting system with AmigaOS 4.0 on the same hard disk.
Sourcing the Upgrade
Upgrading to 2.4.26 (latest 'official' release)
The kernel image (kernel-2.4.26.img), the gzipped kernel image (vimlinux-2.4.26.gz), and the associated modules
(modules-2.4.26.tgz) can be downloaded from AmigaOne Linux
SourceForge or they can be downloaded from here (kernel image,
gzipped kernel) and modules).
Upgrading to 2.6.9-064 (latest 'un-official' release as at Aug 1,2005)
The kernel image (kernel-2.6.9-064.img), and the associated modules (modules-2.6.9-064.tgz) can be downloaded from
Henri Chapelle's website or they can be downloaded from here
(kernel image, and modules).
Once you have downloaded the appropriate files you are ready to begin. The following procedures should be applicable to
any version of the kernel.
For the purpose of the following examples, let us assume you are upgrading from 2.4.19 to 2.4.26. For other versions of the
kernel, simply substitute the appropriate version numbers for 2.4.19 and 2.4.26 as used below:
Upgrade Modules
The first step is to rename the existing modules as a backup. Follow the instructions carefully:
- log on as "root" and open a Shell.
- type:
cd /lib/modules and press <Enter>
- type:
ls -l and press <Enter>
- you should see a folder corresponding to your current kernel.
- If for some reason the new kernel has the same name as the existing one, or you suspect it does, and you want to keep
the existing one, rename the folder by typing:
mv 2.4.19 2.4.19.sav and press <Enter>
- if installing from floppy, type:
mount /floppy
or
mount -t msdos /dev/fd0 /floppy - if no entry for floppy drive in /etc/fstab
then
tar -zxvf /floppy/modules-2.4.26.tgz
umount /floppy
- if installing from CD, type:
mount /cdrom
tar -zxvf /cdrom/modules-2.4.26.tgz
umount /cdrom
Upgrade Kernel
The second step is to replace the Linux kernel in the PPC Prep Boot partition.
In the following command you MUST replace X and Y with the values specific to your configuration:
X is the drive, i.e.
"a" for Primary Master,
"b" for Primary Slave,
"c" for Secondary Master
"d" for Secondary Slave.
|
|
Y is the partition number where your kernel is stored.
|
If you followed the install guide, then you would have placed your kernel on the first disk drive - "hda".
and in the first partition "1", so you would specify /dev/hda1.
If you specify the wrong partition you will trash Debian and the only recourse is to reinstall from scratch.
- if installing from floppy, type:
mount /floppy
or
mount -t msdos /dev/fd0 /floppy - if no entry for floppy drive in /etc/fstab
then
dd if=/floppy/kernel-2.4.26.img of=/dev/hdXY
umount /floppy
- if installing from CD, type:
mount /cdrom
dd if=/cdrom/kernel-2.4.26.img of=/dev/hdXY
umount /cdrom
- logoff from root
- reboot your system
- should now show Linux-2.4.26 during boot sequence
Remove Old Modules
The third step, once you are satisfied that the upgrade has been successful, you may want to delete any old files saved in
Step 1.
- log on as "root" and open a Shell.
- type:
cd /lib/modules and press <Enter>
- if upgrading from 2.4.19, type:
rm -rf /lib/modules/2.4.19.sav and press <Enter>
- logoff from root