Upgrading BUG Kernel
From BUG Wiki
Contents |
Overview
These instructions are for upgrading a BUG kernel. These instructions require a BUG that is connected to a computer with SSH and SCP available. Please note the default root password on the BUG is 'root'.
You may also need to flash your mmc with the rootfs if a new version is available, instructions can be found here: http://bugcommunity.com/wiki/index.php/Upgrade_your_BUG_memory_card
Process - Linux
Step 1: Getting new kernel onto the BUG
- Download the kernel image from the Bug Labs website. The kernel images are available at http://bugcommunity.com/downloads
- Transfer the kernel to your BUG. From a terminal, shell, or other SCP program copy the kernel image into the BUG root home directory:
# scp zImage-BUG-R1.3.bin root@10.10.10.10:/home/root root@10.10.10.10's password: zImage-BUG-R1.3.bin #
Step 2: Initializing BUG for flashing
The BUG Linux release R1.2 and later include a Linux kernel module (called bug_kflash), and an application (also called bug_kflash) that are used to upgrade the BUG.
1. SSH to the BUG as root:
# ssh root@10.10.10.10 root@10.10.10.10's password: root@10.10.10.10:~#
2. Load the bug_kflash kernel module.
root@10.10.10.10:~# modprobe bug_kflash root@10.10.10.10:~#
Step 3: Flashing the kernel
1. Move the kernel image so that the bug_kflash application can find it:
root@10.10.10.10:~# ln -s /home/root/ /root root@10.10.10.10:~# mv /root/zImage-BUG-R1.3.bin /root/new_zImage_bug
2. Run the bug_kflash application. Please be patient, it takes several minutes to complete.
root@10.10.10.10:~# /usr/bin/bug_kflash >>> CAUTION - ERASING FLASH (WAIT ...) <<< >>> CAUTION - PROGRAMMING FLASH (WAIT ...) <<< programming block at offset 0x0 ... programming block at offset 0x10000 ... ... programming block at offset 0x1a0000 ... >>> CAUTION - PROGRAMMING FLASH (WAIT ...) <<< >>> PROGRAMMING COMPLETE <<< root@10.10.10.10:~#
Step 4: Verifying the upgrade
1. Reboot your BUG: (Note, you may have to manually power off the BUG if it does not respond within a minute.)
root@10.10.10.10:~# /sbin/reboot
2. Check the kernel version, after logging back into BUG:
root@10.10.10.10:~# cat /proc/version Linux version 2.6.24.4 (build@darner) (gcc version 4.1.2) #68 PREEMPT Thu Oct 9 17:23:00 EDT 2008
That's it! We hope you enjoy all the new features that the kernel upgrade contains.
Process - OS X
Step 1: Getting new kernel onto the BUG
- Download the kernel image from the Bug Labs website. The kernel images are available at http://bugcommunity.com/downloads
- Transfer the kernel to your BUG. From a terminal, shell, or other SCP program copy the kernel image into the BUG root home directory:
# scp zImage-BUG-R1.3.bin root@10.10.10.10:/home/root root@10.10.10.10's password: zImage-BUG-R1.3.bin #
Step 2: Initializing BUG for flashing
The BUG Linux release R1.2 and later include a Linux kernel module (called bug_kflash), and an application (also called bug_kflash) that are used to upgrade the BUG.
1. SSH to the BUG as root:
# ssh root@10.10.10.10 root@10.10.10.10's password: root@10.10.10.10:~#
2. Load the bug_kflash kernel module.
root@10.10.10.10:~# modprobe bug_kflash root@10.10.10.10:~#
Step 3: Flashing the kernel
1. Move the kernel image so that the bug_kflash application can find it:
root@10.10.10.10:~# ln -s /home/root/ /root root@10.10.10.10:~# mv /root/zImage-BUG-R1.3.bin /root/new_zImage_bug
2. Run the bug_kflash application. Please be patient, it takes several minutes to complete.
root@10.10.10.10:~# /usr/bin/bug_kflash >>> CAUTION - ERASING FLASH (WAIT ...) <<< >>> CAUTION - PROGRAMMING FLASH (WAIT ...) <<< programming block at offset 0x0 ... programming block at offset 0x10000 ... ... programming block at offset 0x1a0000 ... >>> CAUTION - PROGRAMMING FLASH (WAIT ...) <<< >>> PROGRAMMING COMPLETE <<< root@10.10.10.10:~#
Step 4: Verifying the upgrade
1. Reboot your BUG: (Note, you may have to manually power off the BUG if it does not respond within a minute.)
root@10.10.10.10:~# /sbin/reboot
2. Check the kernel version, after logging back into BUG:
root@10.10.10.10:~# cat /proc/version Linux version 2.6.24.4 (build@darner) (gcc version 4.1.2) #68 PREEMPT Thu Oct 9 17:23:00 EDT 2008
That's it! We hope you enjoy all the new features that the kernel upgrade contains.
Process - Windows
Step 1: Getting new kernel onto the BUG
1. Download the kernel image from the Bug Labs website. The kernel images are available at http://bugcommunity.com/downloads
2. Transfer the kernel to your BUG. Windows users will need a SCP program copy the kernel image into the BUG root home directory. A good open source option is WinSCP that you can download | here.
WinSCP Graphical User Interface:
3. Create a session to root@10.10.10.10 (password is also root):
4. Drag and drop zImage-BUG-R1.3.bin into /home/root
Step 2: Initializing BUG for flashing
The BUG Linux release R1.2 and later include a Linux kernel module (called bug_kflash), and an application (also called bug_kflash) that are used to upgrade the BUG. Putty is good SSH client which can be downloaded here.
1. Create and connect with a Putty Session:
2. Load the bug_kflash kernel module.
root@10.10.10.10:~# modprobe bug_kflash root@10.10.10.10:~#
Step 3: Flashing the kernel
1. Move the kernel image so that the bug_kflash application can find it:
root@10.10.10.10:~# ln -s /home/root/ /root root@10.10.10.10:~# mv /root/zImage-BUG-R1.3.bin /root/new_zImage_bug
2. Run the bug_kflash application. Please be patient, it takes several minutes to complete.
root@10.10.10.10:~# /usr/bin/bug_kflash >>> CAUTION - ERASING FLASH (WAIT ...) <<< >>> CAUTION - PROGRAMMING FLASH (WAIT ...) <<< programming block at offset 0x0 ... programming block at offset 0x10000 ... ... programming block at offset 0x1a0000 ... >>> CAUTION - PROGRAMMING FLASH (WAIT ...) <<< >>> PROGRAMMING COMPLETE <<< root@10.10.10.10:~#
Step 4: Verifying the upgrade
1. Reboot your BUG: (Note, you may have to manually power off the BUG if it does not respond within a minute.)
root@10.10.10.10:~# /sbin/reboot
2. Check the kernel version, after logging back into BUG:
root@10.10.10.10:~# cat /proc/version Linux version 2.6.24.4 (build@darner) (gcc version 4.1.2) #68 PREEMPT Thu Oct 9 17:23:00 EDT 2008
That's it! We hope you enjoy all the new features that the kernel upgrade contains.
