The section discusses how to upgrade a Dual-booting Debian Linux system where Linux is on the same hard disk as AmigaOS 4.0,
i.e where the SLB loads the kernel and there is no PPC Prep Boot partition.
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).
You need to install module-init-tools to use kernel 2.6 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
- If installing from USB Flash Drive, type:
mount /flash
tar -zxvf /flash/modules-2.4.26.tgz
umount /flash
Upgrade Kernel
The second step is to add the Linux kernel to the /boot directory.
- If installing from floppy, type:
mount /floppy
or
mount -t msdos /dev/fd0 /floppy - if no entry for floppy drive in /etc/fstab
then
cp /floppy/kernel-2.4.26.img /boot
umount /floppy
- If installing from CD, type:
mount /cdrom
cp /cdrom/kernel-2.4.26.img /boot
umount /cdrom
- If installing from USB Flash Drive, type:
mount /flash
cp /flash/kernel-2.4.26.img /boot
umount /flash
- To update a1boot.conf file, type:
nano /boot/a1boot.conf
- use the cursor to highlight the current boot parameter and select 'Copy' from the Edit menu
- reposition the cursor and select 'Paste' from the Edit menu
- change the name of the parameter, e.g. 'Linux' to 'Linux-2.4.26'
- change the entry '/boot/kernel-2.4.19.img' to the new kernel, e.g. '/boot/kernel-2.4.26.img'
- press the key combination <Ctrl>O to save the changes
- press <Enter> to confirm the file name
- press the key combination <Ctrl>X to exit the program
- Logoff from root
- Reboot your system
- An option to boot from the new kernel should show in the SLB menu as well as the old kernel. Select the new kernel to
boot Linux. If for any reason this fails, you can still select the old kernel instead.
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>
- To update a1boot.conf file, type:
nano /boot/a1boot.conf
- delete any obsolete lines
- press the key combination <Ctrl>O to save the changes
- press <Enter> to confirm the file name
- press the key combination <Ctrl>X to exit the program
- logoff from root