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

Issue 5989010: Create Chrome OS recovery firmware procedure. (Closed)

Created:
9 years, 12 months ago by Tom Wai-Hong Tam
Modified:
9 years, 5 months ago
CC:
chromium-os-reviews_chromium.org, dneiss, Olof Johansson, chromeboy, amoljadi
Visibility:
Public.

Description

Create Chrome OS recovery firmware procedure The command cros_rec is the main procedure the recovery firmware runs by default. It also appears in developer image for debug purpose. BUG=chromium-os:1305 TEST=build successfully and boot like: U-Boot 2010.09 (Mar 09 2011 - 17:16:01) Board: Tegra2 chromeos/tegra2/seaboard/recovery DRAM: 1 GiB Using default environment In: tegra-kbc Out: serial Err: serial Hit any key to stop autoboot: 0 EMMC 1 Probed Successfully EMMC 1 Probed Successfully[mmc_legacy_init:231] EMMC 1 Probe Failed USB: Tegra ehci init hccr c5008100 and hcor c5008140 hc_length 64 Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found [mmc_legacy_init:231] EMMC 1 Probe Failed USB: Tegra ehci init hccr c5008100 and hcor c5008140 hc_length 64 Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found EMMC 1 Probed Successfully EMMC 1 Probed Successfully DEBUG: TPM: Startup DEBUG: TPM: command 0x99 returned 0x0 DEBUG: TPM: Self test full DEBUG: TPM: command 0x50 returned 0x0 ReadSingle Operation failed. mmc_bread:133 READ : failed ReadSingle Operation failed. mmc_bread:133 READ : failed DEBUG: GptNextKernelEntry looking at new prio partition 1 DEBUG: GptNextKernelEntry s1 t15 p15 DEBUG: GptNextKernelEntry looking at new prio partition 3 DEBUG: GptNextKernelEntry s0 t15 p0 DEBUG: GptNextKernelEntry looking at new prio partition 5 DEBUG: GptNextKernelEntry s0 t15 p0 DEBUG: GptNextKernelEntry likes that one DEBUG: Found kernel entry at 4096 size 32768 DEBUG: Checking key block signature... DEBUG: Kernel preamble is good. DEBUG: Partition is good. DEBUG: In recovery mode or dev-signed kernel DEBUG: Updating GPT header 2 Write failed. Block=8388606 mmc_bwrite:171 WRITE : failed DEBUG: Updating GPT entries 2 Write failed. Block=8388607 mmc_bwrite:171 WRITE : failed DEBUG: Good_partition >= 0 Success; good kernel found on device partition_number: 2 bootloader_address: 0x68c000bootloader_size: 0x1000partition_guid: 10 22 57 b6 1a 5f 41 e8 b9 fc 75 a2 7c a9 fa 30 ## Booting kernel from Legacy Image at 0040c000 ... Image Name: kernel Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5807272 Bytes = 5.5 MiB Load Address: 10008000 Entry Point: 10008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Change-Id: Iee8c703b934c7d7b7fb244355c8f4399bf3d057e Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=dc0cc33

Patch Set 1 #

Patch Set 2 : Add more workable parts into it #

Patch Set 3 : add kernel verification and more #

Total comments: 28

Patch Set 4 : fix reviewers suggested #

Patch Set 5 : update new vboot struct #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -0 lines) Patch
M common/Makefile View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A common/cmd_cros_rec.c View 1 2 3 4 1 chunk +264 lines, -0 lines 0 comments Download
M include/config_cmd_all.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/configs/chromeos/developer.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M include/configs/chromeos/recovery.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Tom Wai-Hong Tam
9 years, 12 months ago (2010-12-27 02:49:37 UTC) #1
Tom Wai-Hong Tam
clchiou: reviewer robotboy: fyi
9 years, 12 months ago (2010-12-27 02:51:37 UTC) #2
Che-Liang Chiou
The code looks generally okay. Thanks for the effort. As the offline discussion, please submit ...
9 years, 12 months ago (2010-12-27 05:35:56 UTC) #3
Tom Wai-Hong Tam
Thanks for your feedback. Please suspend you review and wait me complete all the dummy ...
9 years, 12 months ago (2010-12-27 09:47:33 UTC) #4
robotboy
Thanks Tom and Che-Lian, this looks like you're on the right track, or at least ...
9 years, 11 months ago (2011-01-05 18:38:47 UTC) #5
robotboy
http://codereview.chromium.org/5989010/diff/14001/common/lcd.c File common/lcd.c (right): http://codereview.chromium.org/5989010/diff/14001/common/lcd.c#newcode84 common/lcd.c:84: char *const argv[]); This should be a separate CL ...
9 years, 9 months ago (2011-03-08 21:07:26 UTC) #6
Che-Liang Chiou
I scan through the CL and did a partial review. http://codereview.chromium.org/5989010/diff/14001/common/cmd_cros_rec.c File common/cmd_cros_rec.c (right): http://codereview.chromium.org/5989010/diff/14001/common/cmd_cros_rec.c#newcode2 ...
9 years, 9 months ago (2011-03-09 02:37:53 UTC) #7
Che-Liang Chiou
Hi Tom, I finished code review. Thanks for the efforts. http://codereview.chromium.org/5989010/diff/14001/common/cmd_cros_rec.c File common/cmd_cros_rec.c (right): http://codereview.chromium.org/5989010/diff/14001/common/cmd_cros_rec.c#newcode78 ...
9 years, 9 months ago (2011-03-09 06:55:26 UTC) #8
Tom Wai-Hong Tam
http://codereview.chromium.org/5989010/diff/14001/common/cmd_cros_rec.c File common/cmd_cros_rec.c (right): http://codereview.chromium.org/5989010/diff/14001/common/cmd_cros_rec.c#newcode2 common/cmd_cros_rec.c:2: * Copyright 2010, Google Inc. On 2011/03/09 02:37:53, Che-Liang ...
9 years, 9 months ago (2011-03-09 10:15:05 UTC) #9
robotboy
I have not done a review of the core code (cms_cros_rec.c). But all of the ...
9 years, 9 months ago (2011-03-10 00:17:10 UTC) #10
Che-Liang Chiou
Hi Tom, Please update with latest vboot_reference changes. You may see it here: http://codereview.chromium.org/6626045/ http://codereview.chromium.org/6658009/ ...
9 years, 9 months ago (2011-03-10 07:13:02 UTC) #11
Tom Wai-Hong Tam
Thanks. I updated to use the new vboot struct.
9 years, 9 months ago (2011-03-11 08:02:16 UTC) #12
Che-Liang Chiou
9 years, 9 months ago (2011-03-14 06:32:08 UTC) #13
LGTM, thanks.

Powered by Google App Engine
This is Rietveld 408576698