OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to update the kernel on a live running ChromiumOS instance. | 7 # Script to update the kernel on a live running ChromiumOS instance. |
8 | 8 |
9 # Load common constants. This should be the first executable line. | 9 # Load common constants. This should be the first executable line. |
10 # The path to common.sh should be relative to your script's location. | 10 # The path to common.sh should be relative to your script's location. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 old_kernel="${REMOTE_OUT}" | 59 old_kernel="${REMOTE_OUT}" |
60 | 60 |
61 cmd="vbutil_kernel --pack new_kern.bin \ | 61 cmd="vbutil_kernel --pack new_kern.bin \ |
62 --keyblock /usr/share/vboot/devkeys/kernel.keyblock \ | 62 --keyblock /usr/share/vboot/devkeys/kernel.keyblock \ |
63 --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \ | 63 --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \ |
64 --version 1 \ | 64 --version 1 \ |
65 --config ../build/images/${FLAGS_board}/latest/config.txt \ | 65 --config ../build/images/${FLAGS_board}/latest/config.txt \ |
66 --bootloader /lib64/bootstub/bootstub.efi \ | 66 --bootloader /lib64/bootstub/bootstub.efi \ |
67 --vmlinuz /build/${FLAGS_board}/boot/vmlinuz" | 67 --vmlinuz /build/${FLAGS_board}/boot/vmlinuz" |
68 | 68 |
69 ./enter_chroot.sh -- "${cmd}" | 69 ./enter_chroot.sh -- ${cmd} |
70 | 70 |
71 learn_partition | 71 learn_partition |
72 | 72 |
73 remote_cp_to new_kern.bin /tmp | 73 remote_cp_to new_kern.bin /tmp |
74 | 74 |
75 remote_sh dd if=/tmp/new_kern.bin of="${FLAGS_partition}" | 75 remote_sh dd if=/tmp/new_kern.bin of="${FLAGS_partition}" |
76 | 76 |
77 remote_reboot | 77 remote_reboot |
78 | 78 |
79 remote_sh uname -r -v | 79 remote_sh uname -r -v |
80 | 80 |
81 info "old kernel: ${old_kernel}" | 81 info "old kernel: ${old_kernel}" |
82 | 82 |
83 info "new kernel: ${REMOTE_OUT}" | 83 info "new kernel: ${REMOTE_OUT}" |
84 } | 84 } |
85 | 85 |
86 main $@ | 86 main $@ |
OLD | NEW |