Patchwork [0/1] kernel.bbclass: Need a method to install/update for bzImage

login
register
mail settings
Submitter Hongxu Jia
Date Sept. 12, 2013, 9:25 a.m.
Message ID <cover.1378977276.git.hongxu.jia@windriver.com>
Download mbox
Permalink /patch/57865/
State New
Headers show

Pull-request

git://git.pokylinux.org/poky-contrib hongxu/update-bzimage

Comments

Hongxu Jia - Sept. 12, 2013, 9:25 a.m.
Test Case:
1. Prepare a deployed target, and make sure your boot area has enough disk
   space.

2. Download the new kernel image rpm to the target

3. Before install/update, check boot area and menu
root@qemux86:~# ls /boot/
grub        vmlinuz

root@qemux86:~# cat /boot/grub/grub.cfg
menuentry "Linux" {
    set root=(hd0,1)
    linux /vmlinuz root=/dev/hdb2  rw  console=tty0  quiet
}

4. Install/update bzImage
root@qemux86:~# rpm -i kernel-image-3.10.9-yocto-standard-3.10.9+git0+cd502a8814_7144bcc4b8-r0.qemux86.rpm 
Caution! Update kernel may affect kernel-module!
update-alternatives: Linking //boot/bzImage to bzImage-3.10.9-yocto-standard

5. After install/update, check boot area and menu
root@qemux86:~# ls /boot/ -al
drwxr-xr-x    4 root     root          1024 Sep 12 08:48 .
drwxr-xr-x   17 root     root          4096 Sep 12 07:08 ..
lrwxrwxrwx    1 root     root            29 Sep 12 08:48 bzImage -> bzImage-3.10.9-yocto-standard
-rw-r--r--    1 root     root       6172096 Sep 12 07:39 bzImage-3.10.9-yocto-standard
drwxr-xr-x    4 root     root          1024 Sep 12 08:48 grub
-rwxr-x---    1 root     root       6172096 Sep 12 08:45 vmlinuz

root@qemux86:~# cat /boot/grub/grub.cfg 
menuentry "Update bzImage-3.10.9-yocto-standard-3.10.9+gitAUTOINC+cd502a8814_7144bcc4b8" {
    set root=(hd0,1)
    linux /bzImage-3.10.9-yocto-standard root=/dev/hdb2  rw  console=tty0  quiet
}
menuentry "Linux" {
    set root=(hd0,1)
    linux /vmlinuz root=/dev/hdb2  rw  console=tty0  quiet
}

6. Reboot target, 'Update bzImage-3.10.9-yocto-standard-3.10.9+gitAUTOINC+cd502a8814_7144bcc4b8'
   will be in the boot menu.

7. It supports GRUB 0.97 in which the grub.cfg doesn't exist and menu.lst
   is used.

8. If you install the same rpm more than one time with '--force', there will
   be multiple kernel images in boot area and menu.

//Hongxu


The following changes since commit 1b814498b60d5f354d8cc5bdf568b91baf0745dc:

  bitbake: bitbake/cooker: fix some calls of cookerdata.findConfigFile method (2013-09-02 12:26:20 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/update-bzimage
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/update-bzimage

Hongxu Jia (1):
  kernel.bbclass: Need a method to install/update for bzImage

 meta/classes/kernel.bbclass | 65 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)