Changeset 12286


Ignore:
Timestamp:
2008-08-12T08:02:06+02:00 (8 years ago)
Author:
florian
Message:

Allow routerboard users to kexec into the newly installed kernel if kexec-tools is installed

Location:
trunk/target/linux
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/adm5120/router_le/base-files/sbin/wget2nand

    r11399 r12286  
    6464ls /tmp/wget2nand-kernel/ 
    6565ls /tmp/wget2nand-rootfs/ 
     66# use kexec if present 
     67[ -x /usr/sbin/kexec ] && { 
     68        kexec -l /tmp/wget2nand-kernel/kernel --command-line="$(cat /proc/cmdline) rootfstype=yaffs2 root=$mtd_kernel" 
     69        kexec -e 
     70} 
    6671# unmount the partitions and remove the directories into which they were mounted 
    6772umount /tmp/wget2nand-kernel 
  • trunk/target/linux/adm5120/router_le/config-2.6.26

    r12255 r12286  
    144144# CONFIG_IWLWIFI_LEDS is not set 
    145145# CONFIG_JOLIET is not set 
     146CONFIG_KEXEC=y 
    146147# CONFIG_LEDS_ALIX is not set 
    147148CONFIG_LEDS_GPIO=m 
  • trunk/target/linux/rb532/base-files/sbin/cf2nand

    r9985 r12286  
    5454echo "chmod ugo+x /" > /tmp/cf2nand/p2/etc/uci-defaults/set_root_permission 
    5555sync 
     56# Use kexec is present 
     57[ -x /usr/bin/kexec ] && { 
     58        kexec -l /tmp/cf2nand/p1/kernel --command-line="$(cat /proc/cmdline) root=/dev/mtdblock1 rootfstype=yaffs2 init=/etc/preinit" 
     59        kexec -e 
     60} 
    5661umount /tmp/cf2nand/p2 
    5762rmdir /tmp/cf2nand/p2 
  • trunk/target/linux/rb532/base-files/sbin/wget2nand

    r11897 r12286  
    5656ls /tmp/wget2nand-boot/ 
    5757ls /tmp/wget2nand/ 
     58# use kexec if present 
     59[ -x /usr/bin/kexec ] && { 
     60        kexec -l /tmp/wget2nand-boot/kernel --command-line="$(cat /proc/cmdline) root=$main rootfstype=yaffs2 init=/etc/preinit" 
     61        kexec -e 
     62} 
     63 
    5864# unmount the partitions and remove the directories into which they were mounted 
    5965umount /tmp/wget2nand-boot 
  • trunk/target/linux/rb532/config-2.6.23

    r11097 r12286  
    6161CONFIG_INPUT_KEYBOARD=y 
    6262CONFIG_IRQ_CPU=y 
     63CONFIG_KEXEC=y 
    6364# CONFIG_KEYBOARD_ATKBD is not set 
    6465CONFIG_KEYBOARD_GPIO=y 
Note: See TracChangeset for help on using the changeset viewer.