| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 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 # Helper script that generates the signed kernel image | 7 # Helper script that generates the signed kernel image |
| 8 | 8 |
| 9 . "$(dirname "$0")/common.sh" | 9 . "$(dirname "$0")/common.sh" |
| 10 | 10 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 # support this before shipping, but at the moment they don't. | 124 # support this before shipping, but at the moment they don't. |
| 125 if [[ "${FLAGS_arch}" = "x86" ]]; then | 125 if [[ "${FLAGS_arch}" = "x86" ]]; then |
| 126 | 126 |
| 127 # Legacy BIOS will use the kernel in the rootfs (via syslinux), as will | 127 # Legacy BIOS will use the kernel in the rootfs (via syslinux), as will |
| 128 # standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS | 128 # standard EFI BIOS (via grub, from the EFI System Partition). Chrome OS |
| 129 # BIOS will use a separate signed kernel partition, which we'll create now. | 129 # BIOS will use a separate signed kernel partition, which we'll create now. |
| 130 # FIXME: remove serial output, debugging messages. | 130 # FIXME: remove serial output, debugging messages. |
| 131 mkdir -p ${FLAGS_working_dir} | 131 mkdir -p ${FLAGS_working_dir} |
| 132 cat <<EOF | cat - "${FLAGS_working_dir}/boot.config" \ | 132 cat <<EOF | cat - "${FLAGS_working_dir}/boot.config" \ |
| 133 > "${FLAGS_working_dir}/config.txt" | 133 > "${FLAGS_working_dir}/config.txt" |
| 134 earlyprintk=serial,ttyS0,115200 | 134 quiet |
| 135 console=ttyS0,115200 | 135 console=tty2 |
| 136 init=/sbin/init | 136 init=/sbin/init |
| 137 add_efi_memmap | 137 add_efi_memmap |
| 138 boot=local | 138 boot=local |
| 139 rootwait | 139 rootwait |
| 140 ro | 140 ro |
| 141 noresume | 141 noresume |
| 142 noswap | 142 noswap |
| 143 i915.modeset=1 | 143 i915.modeset=1 |
| 144 loglevel=7 | 144 loglevel=1 |
| 145 cros_secure | 145 cros_secure |
| 146 kern_guid=%U | 146 kern_guid=%U |
| 147 tpm_tis.force=1 | 147 tpm_tis.force=1 |
| 148 tpm_tis.interrupts=0 | 148 tpm_tis.interrupts=0 |
| 149 EOF | 149 EOF |
| 150 WORK="${WORK} ${FLAGS_working_dir}/config.txt" | 150 WORK="${WORK} ${FLAGS_working_dir}/config.txt" |
| 151 | 151 |
| 152 # We sign the image with the recovery_key, because this is what goes onto the | 152 # We sign the image with the recovery_key, because this is what goes onto the |
| 153 # USB key. We can only boot from the USB drive in recovery mode. | 153 # USB key. We can only boot from the USB drive in recovery mode. |
| 154 # For dev install shim, we need to use the installer keyblock instead of | 154 # For dev install shim, we need to use the installer keyblock instead of |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 info "Cleaning up temporary files: ${WORK}" | 251 info "Cleaning up temporary files: ${WORK}" |
| 252 rm ${WORK} | 252 rm ${WORK} |
| 253 rmdir ${FLAGS_working_dir} | 253 rmdir ${FLAGS_working_dir} |
| 254 fi | 254 fi |
| 255 | 255 |
| 256 info "Kernel partition image emitted: ${FLAGS_to}" | 256 info "Kernel partition image emitted: ${FLAGS_to}" |
| 257 | 257 |
| 258 if [[ -f ${FLAGS_rootfs_hash} ]]; then | 258 if [[ -f ${FLAGS_rootfs_hash} ]]; then |
| 259 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" | 259 info "Root filesystem hash emitted: ${FLAGS_rootfs_hash}" |
| 260 fi | 260 fi |
| OLD | NEW |