Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: utility/dev_debug_vboot

Issue 6698022: vboot_reference/dev_debug_vboot: use new flashrom syntax (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # 5 #
6 # Usage: dev_debug_vboot [ --cleanup | DIRECTORY ] 6 # Usage: dev_debug_vboot [ --cleanup | DIRECTORY ]
7 # 7 #
8 # This extracts some useful debugging information about verified boot. A short 8 # This extracts some useful debugging information about verified boot. A short
9 # summary is printed on stdout, more detailed information and working files are 9 # summary is printed on stdout, more detailed information and working files are
10 # left in a log directory. 10 # left in a log directory.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 echo "Saving verbose log as $(pwd)/$LOGFILE" 110 echo "Saving verbose log as $(pwd)/$LOGFILE"
111 111
112 BIOS=bios.rom 112 BIOS=bios.rom
113 113
114 # Find BIOS and kernel images 114 # Find BIOS and kernel images
115 if [ -n "$USE_EXISTING" ]; then 115 if [ -n "$USE_EXISTING" ]; then
116 info "Using images in $(pwd)/" 116 info "Using images in $(pwd)/"
117 else 117 else
118 require_chromeos_bios 118 require_chromeos_bios
119 info "Extracting BIOS image from flash..." 119 info "Extracting BIOS image from flash..."
120 log flashrom --wp-status 120 log flashrom -p internal:bus=spi --wp-status
121 log flashrom -r ${BIOS} 121 log flashrom -p internal:bus=spi -r ${BIOS}
122 122
123 HD_KERN_A="${HD}2" 123 HD_KERN_A="${HD}2"
124 HD_KERN_B="${HD}4" 124 HD_KERN_B="${HD}4"
125 tmp=$(rootdev -s -d)2 125 tmp=$(rootdev -s -d)2
126 if [ "$tmp" != "$HD_KERN_A" ]; then 126 if [ "$tmp" != "$HD_KERN_A" ]; then
127 USB_KERN_A="$tmp" 127 USB_KERN_A="$tmp"
128 fi 128 fi
129 129
130 info "Extracting kernel images from drives..." 130 info "Extracting kernel images from drives..."
131 log dd if=${HD_KERN_A} of=hd_kern_a.blob 131 log dd if=${HD_KERN_A} of=hd_kern_a.blob
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 loghead od -Ax -tx1 $keyblock 179 loghead od -Ax -tx1 $keyblock
180 done 180 done
181 181
182 # Test each kernel with each key 182 # Test each kernel with each key
183 for key in kernel_subkey_a.vbpubk kernel_subkey_b.vbpubk recoverykey.vbpubk; do 183 for key in kernel_subkey_a.vbpubk kernel_subkey_b.vbpubk recoverykey.vbpubk; do
184 for kern in *kern*.blob; do 184 for kern in *kern*.blob; do
185 infon "Verify $kern with $key... " 185 infon "Verify $kern with $key... "
186 log vbutil_kernel --verify $kern --signpubkey $key ; result 186 log vbutil_kernel --verify $kern --signpubkey $key ; result
187 done 187 done
188 done 188 done
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698