Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation Kernel Upgd About Linux Networking Printing MOL UAE
Upgrading Standalone systems Upgrading Dual-Boot systems Upgrading to later kernels

AmigaOne - Linux - Dual-Boot System Kernel Upgrade

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:

  1. Log on as "root" and open a Shell.

  2. Type:
        cd /lib/modules     and press <Enter>

  3. Type:
        ls -l     and press <Enter>
    - you should see a folder corresponding to your current kernel.

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

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

  6. If installing from CD, type:
        mount /cdrom
        tar -zxvf /cdrom/modules-2.4.26.tgz
        umount /cdrom

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

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

  2. If installing from CD, type:
        mount /cdrom
        cp /cdrom/kernel-2.4.26.img /boot
        umount /cdrom

  3. If installing from USB Flash Drive, type:
        mount /flash
        cp /flash/kernel-2.4.26.img /boot
        umount /flash

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

  5. Logoff from root

  6. Reboot your system

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

  1. log on as "root" and open a Shell.

  2. type:
        cd /lib/modules     and press <Enter>

  3. if upgrading from 2.4.19, type:
        rm -rf /lib/modules/2.4.19.sav   and press <Enter>

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

  5. logoff from root

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2005 Amiga Auckland Inc. All rights reserved.
Revised: September 25, 2005.