Commit Graph

1911 Commits

Author SHA1 Message Date
Tom Wai-Hong Tam
6b50a07f59 Support signing kernel in update_kernel script.
This CL is separated from http://gerrit.chromium.org/gerrit/#change,1104 which
is depends on the UUID replacement. In order to make update_kernel not break on
officail ChromeOS firmware, this CL just signs the kernel and use the original
cmdline approach, i.e. /dev/${devname}${rootpart}.

TEST=./update_kernel --remote IP
BUG=none

Change-Id: I6a194da0ebb0b3f5a442b62ffb76186909eb4321
Reviewed-on: http://gerrit.chromium.org/gerrit/1538
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
2011-05-25 02:30:09 -07:00
Mario Limonciello
7052ae1732 Pass proxy variables into a chroot.
BUG=chromium-os:10048
TEST=Enter chroot with http_proxy set and check export.

Change-Id: I590bd38d22ca1be8164d2a2b408230163d9e5777
Reviewed-on: http://gerrit.chromium.org/gerrit/344
Reviewed-by: David James <davidjames@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
2011-05-23 15:56:33 -07:00
David James
72759e8c1e Update build_image to use ldd distributed with target if it's present.
BUG=chromium-os:13977
TEST=Build an image with new compiler, boot image and verify new ldd is used.
     Build image with old compiler and verify old ldd is used.

Change-Id: I8cbc5b87342245106f0a8fd0fa80ae42329eff60
Reviewed-on: http://gerrit.chromium.org/gerrit/1367
Tested-by: David James <davidjames@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
2011-05-23 11:16:03 -07:00
David James
35269d23f8 Run eclean before checking blacklist to ensure correct blacklist check.
As reported in Bug 15561, build_image sometimes reports incorrect blacklist
packages if it reports an error about a package that is not actually installed.

For example, if you install =dev-libs/glib-2.28.6, and then replace it with
=dev-libs/glib-2.26.1-r1, build_image will report a blacklist failure because
glib depends on Python. But that's wrong -- it's looking at the wrong package.

BUG=chromium-os:15561
TEST=Test that build_image does not report an error when the package it's
     complaining about is not installed anymore.

Change-Id: I86b25684d0e211fd144231c7a34276ecf5607ad7
Reviewed-on: http://gerrit.chromium.org/gerrit/1227
Reviewed-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-05-20 12:12:30 -07:00
Chris Masone
6224cba9c7 [crosutils] Make chromium/libcros mismatch messages more semantically accurate
The messages printed out by the code that checks if chromium's libcros and the system's libcros are
in sync were kind of confusing and not quite accurate.  The system library implements a range of API
versions, and it is chromium that requires a particular version of the API.  The messages now clearly
reflect this.

BUG=None
TEST=manual

Change-Id: I7308d7eb724edfb7fa11edbe0fbec86ee12c5afe
Reviewed-on: http://gerrit.chromium.org/gerrit/1136
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
2011-05-19 13:31:52 -07:00
Hung-Te Lin
cb296ab653 crosutils: rename "merge_shim_image.sh' to 'make_universal_factory_shim.sh"
The "merge_shim_image" does not work for recovery shims; and that makes the name
confusing.

This CL changed its name to a more slef-documenting one,
"make_universal_factory_shim.sh". Also updated the comments in script file to
describe its real behavior.

BUG=chrome-os-partner:2888
TEST=none # no change in code except more comments

Change-Id: I965c93b39021935c12e21e14b63ba04fce2f43e6
Reviewed-on: http://gerrit.chromium.org/gerrit/1035
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-05-18 23:09:38 -07:00
Don Garrett
11b70cf950 Copy over updates to pushimage from crostools (isn't forking scripts fun?)
BUG=chromiumos:15513
TEST=None

Change-Id: I0d000a7a10d41707950d54c973044a551c7cdd15
Reviewed-on: http://gerrit.chromium.org/gerrit/1150
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
2011-05-18 17:35:26 -07:00
Don Garrett
234d3b7528 These files are required by 'pushimage'.
I missed two library dependancies for pushimage when I moved it from
crostools to src/script. Moving them now.

BUG=chromiumos:14372
TEST=None

Change-Id: I47fffa3c09d8eb0d119b9c8732fcf4e1ce149189
Reviewed-on: http://gerrit.chromium.org/gerrit/1120
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
2011-05-18 11:52:32 -07:00
Stéphane Marchesin
2d331404a0 Add 64bit support to the build scripts.
Change-Id: Ibbc743981b4d1d2dd4e1ceb586f2f0a092559a27
Reviewed-on: http://gerrit.chromium.org/gerrit/1098
Tested-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Anush Elangovan <anush@chromium.org>
2011-05-18 10:07:46 -07:00
Zdenek Behan
308e9fd4c4 version_hooks: integrate upgrade hooks into chroot updater
BUG=chromium-os:6151
TEST=run update_chroot

Change-Id: I1fee2428247eb3dd1a3133d5781d4e5b6d5bdeb9
Reviewed-on: http://gerrit.chromium.org/gerrit/903
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-17 15:51:32 -07:00
Hung-Te Lin
aceca1c085 crosutils: add a script to merge shim-type images
The design of Chromium OS disk image allows trying to boot with multiple
partitions. This script can merge images with different kernels (even signed
with different keys) into one single image.

Useful for factory process which usually needs to deal with DEV/PVT/MP signed
shims.

BUG=chrome-os-partner:2888
TEST=./merge_shim_image.sh mp.bin pvt.bin # output image works for both PVT/MP devices

Change-Id: I21d267bc74fab2d581ccbd0818160407aff35467
Reviewed-on: http://gerrit.chromium.org/gerrit/847
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2011-05-17 02:07:39 -07:00
Zdenek Behan
77f27827f1 Revert "upgrade_chroot: integrate upgrade hooks into chroot updater"
BUG=none (breaks bot)
TEST=none

This reverts commit 3427593fccdd16248931797dc2e37b267151e759.

Change-Id: I42967a80607e8b90f93048ed9fe7d846aab05ac0
Reviewed-on: http://gerrit.chromium.org/gerrit/900
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-13 20:28:51 -07:00
Zdenek Behan
8cfdd3d266 upgrade_chroot: integrate upgrade hooks into chroot updater
BUG=chromium-os:6151
TEST=run update_chroot

Change-Id: Ieb9afafa7961bd43f9b53ead14e698adc9d5179e
Reviewed-on: http://gerrit.chromium.org/gerrit/886
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-13 17:42:41 -07:00
Zdenek Behan
25b6f07b7c chroot_upgrade: rename things before it's too late
The name chroot_upgrade is rather confusing since we already have
"chroot_update" and those two scripts will be chained. It was the
original name before update_chroot existed.

BUG=none
TEST=run the new one, see it work the same

Change-Id: I851fc4a0f28e32a9bbd01b2e4ddedbaffc6abf1c
Reviewed-on: http://gerrit.chromium.org/gerrit/876
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-13 15:36:10 -07:00
Zdenek Behan
9562620a59 update_chroot: sort out emerge arguments into just one variable
BUG=none
TEST=update_chroot, verify all options are passed in correctly

Change-Id: Ic64ae6cce1b21bb70c04341a5607f6327cc43cb1
Reviewed-on: http://gerrit.chromium.org/gerrit/745
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-12 15:31:03 -07:00
Tom Wai-Hong Tam
a4395b5b1c Revert "ARM: enable kernel signing by default"
This reverts commit 9c5d88573f.

Change-Id: Ica876e1be20dc9ab60666af476294e093fd59498
Reviewed-on: http://gerrit.chromium.org/gerrit/762
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
2011-05-12 12:39:53 -07:00
Zdenek Behan
06aeb47c7e Revive cros_upgrade_chroot script. Prepare for initial use.
BUG=chromium-os:6151
TEST=below
1) ./cros_upgrade_chroot --version <x>
... 0 (upgrade to 1), 1 (noop), 2 (nonexistant), x (invalid)
2) rm $VERSION_FILE; ./cros_upgrade_chroot --force_latest (noop)
3) rm $VERSION_FILE; ./cros_upgrade_chroot (upgrade to 1)
4) rm $VERSION_FILE; ./cros_upgrade_chroot --skipfirst (noop to 1)

Change-Id: I87441f6be6c2044fbc60935559d6a2c795d76307
Reviewed-on: http://gerrit.chromium.org/gerrit/747
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-12 11:54:28 -07:00
Mandeep Singh Baines
e4096d75fd loman: Only add a project to local_manifest.xml if not in manifest.xml
Otherwise, repo gets upset

BUG=none
TEST=Unit tests pass.

Change-Id: If1af601f96f27e37259898041e1ac715f6df6d30
Reviewed-on: http://gerrit.chromium.org/gerrit/734
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
Tested-by: Mandeep Singh Baines <msb@chromium.org>
2011-05-12 10:50:42 -07:00
Zdenek Behan
a29fb20065 update_chroot: emerge with --with-bdeps=y
BUG=quickfix for bot break
TEST=run ./update_chroot

Change-Id: I459d50f3e3374c1ff8ff8fc692c8ba7f3582bbd5
Reviewed-on: http://gerrit.chromium.org/gerrit/743
Tested-by: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
2011-05-11 20:25:15 -07:00
Zdenek Behan
d7bfd869b7 update_chroot: split the process of updating chroot into a separate
script

BUG=none
TEST=run build_packages, setup_board, make_chroot, with the paths fixed
to this script (http://gerrit.chromium.org/gerrit/700), see things work

Change-Id: I5a3950ddd5949fcf900a609f86092fce33db8cbd
Reviewed-on: http://gerrit.chromium.org/gerrit/720
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
2011-05-11 16:56:47 -07:00
David James
f86703dd5d Move libcros check from chromeos-chrome into test_build_root.
This is needed for eliminating the dependency between chromeos-chrome and libcros.
This also has the benefit that builds will fail if you take a binary version of
chromeos-chrome with an incompatible version of libcros.

BUG=chromium-os:15145, chromium-os:15148
TEST=build_packages --nousepkg && build_image.
     Test that test_image fails when libcros version is wrong.

Change-Id: I46cbc4494d36b13ba1bdda699eccb6dc7fea162c
Reviewed-on: http://gerrit.chromium.org/gerrit/633
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-05-10 15:05:12 -07:00
Mandeep Singh Baines
6eaddfef05 Revert "loman: work with new gerrit workflow"
This reverts commit c7dc24c89e.

BUG=15076
TEST=Unit tests pass. Scrubbed kernel from local_manifest.xml and then
worked on it again.

Change-Id: Ia0052cf2efa330e1c6422f2876d146bf6f297378
Reviewed-on: http://gerrit.chromium.org/gerrit/625
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mandeep Singh Baines <msb@chromium.org>
2011-05-10 13:33:24 -07:00
Mandeep Singh Baines
c7dc24c89e loman: work with new gerrit workflow
Fix to handle new repository naming. Instead name="kernel", the kernel
is now name="chromiumos/third_party/kernel".

BUG=15076
TEST=Ran unittests and verified that local_manifest.xml got created
correctly when working on the kernel for the first time.

Change-Id: Ib0eef7ecb0522c3b5bcc111d0f30467c8ca19ec5
Reviewed-on: http://gerrit.chromium.org/gerrit/546
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Mandeep Singh Baines <msb@chromium.org>
2011-05-09 13:01:30 -07:00
Che-Liang Chiou
9c5d88573f ARM: enable kernel signing by default
This commit is a part of transition to enable ARM kernel signing. It is
at first an option that is enabled manually, and then (in this commit)
enabled by default. After more tests, the scripts that generate unsigned
ARM kernel partition will probably be removed.

BUG=chromium-os:12352
TEST=./build_image && load_kernel_test -b 2 /path/to/chromiumos_image.bin /usr/share/vboot/devkeys/recovery_key.vbpubk

Change-Id: I6d48d1603cd7c96514892bcbbf8994b2d4cc2a08
Reviewed-on: http://gerrit.chromium.org/gerrit/512
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
2011-05-09 03:13:56 -07:00
Raja Aluri
7145352a0b Packaging convert_recovery_to_ssd script for use during the delta generation.
BUG=15031
TEST=Ran generate-au-zip.py to generate a zip file.

Change-Id: I4b202959d25405f172b95c813f061c6f9b210d1c
Reviewed-on: http://gerrit.chromium.org/gerrit/466
Reviewed-by: David McMahon <djmm@google.com>
Tested-by: Raja Aluri <aluri@chromium.org>
Reviewed-by: Raja Aluri <aluri@chromium.org>
2011-05-06 16:18:25 -07:00
Don Garrett
6e7613d6f1 Copy pushimage from crostools so cbuildbot has access.
BUG=chromiumos:14372
TEST=None

Change-Id: Ie69f1a163138803f9bee2ed77e91f4cd38189eb3
Reviewed-on: http://gerrit.chromium.org/gerrit/457
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
2011-05-06 15:10:10 -07:00
Paul Stewart
99e580e21e Learn board type for package_to_live and image_to_target
In both cases move making contact with the remote board to
an earlier step and default the "board" option to whatever
is reported by the remote.

BUG=n0ne
TEST=Run without board flag or .default_board

Change-Id: I53330ce5ab05b4cff92ac3a384ae0202fc156953
Reviewed-on: http://gerrit.chromium.org/gerrit/433
Reviewed-by: Sam Leffler <sleffler@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
2011-05-06 11:27:07 -07:00
Dale Curtis
986317313b Fix chroot permissions on shared memory so POSIX semaphores work.
BUG=none
TEST=Enter/exit chroot. Ran python multiprocessing.

Change-Id: I645587d2750274ae1d2b445ab7f52bd8377b9d2e
Reviewed-on: http://gerrit.chromium.org/gerrit/401
Reviewed-by: Paul Pendlebury <pauldean@chromium.org>
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Tested-by: Dale Curtis <dalecurtis@chromium.org>
2011-05-05 20:10:16 -07:00
Peter Mayo
32125c5645 Archive build uses commands that may need to reassemble and re-emerge components. This gets it to pass USE flags in case some of the components are desired in a non-default configuration.
Change-Id: I3d096ec63510e470aad25de8da1112be28a5bfca

BUG=78345
TEST=Manual runs.

Review URL: http://codereview.chromium.org/6881112
2011-05-02 11:37:12 -04:00
Darin Petkov
61173f6bd1 Cleanup set_shared_user_password related transitional code.
BUG=none
TEST=set_shared_user_passwd, build_image, checked password

Change-Id: Ida251e36f32d6cb116425d475882c5cee601b9f6

Review URL: http://codereview.chromium.org/6904093
2011-04-29 10:24:26 -07:00
J. Richard Barnette
b290366b6e Fix build_image --factory_install to work again.
There were two bugs:
 1) The test [ ${ARCH} -eq "arm" ] was wrong because -eq is a
    numeric comparison operator, not legal on strings.
 2) Variable ${ARCH} was used before set.

The code change includes comment changes to clarify the reasons for
the code, and a future-proofing logic change.

Change-Id: I63f502cc33cf8a9a441b4b305fc49ed57d0a55b1

BUG=None
TEST=build_image --factory_install, and boot the resulting image

Review URL: http://codereview.chromium.org/6905119
2011-04-28 17:14:34 -07:00
Chris Sosa
237b686be8 Arbitrarily large output can't be used in an exception.
It seems like we are seeing whacky errors with sys.stderr
dying when trying to print out a process and its exception.
I think controlling how the output is printed in RunCommand
is better than passing it with the exception.

Change-Id: I3711575e5d9e710c3aea6ff19d43d149fd83f44c

BUG=chromium-os:14398
TEST=Ran it with au_test_harness

Review URL: http://codereview.chromium.org/6902129
2011-04-28 15:29:12 -07:00
Mandeep Singh Baines
118692ab3f src/scripts: remove all references to verity_depth
This option is now deprecated. Remove from all scripts

To understand the impact of this change ran the following searches:

http://codesearch.google.com/codesearch?as_q=package%3Achromiumos+verity_depth
http://codesearch.google.com/codesearch?hl=en&lr=&q=package%3Achromiumos+verity_tree_depth

BUG=chromium-os:14357
TEST=Ran build_image, mod_image_for_test.sh, chromeos-install, and mod_image_for_recovery.sh.

Change-Id: I79e0e5fe1c917fbb54cc7c7f152d3c97d5f5c9b5

R=wad@chromium.org,scottz@chromium.org,gauravsh@chromium.org

Review URL: http://codereview.chromium.org/6901005
2011-04-28 13:50:33 -07:00
Tom Wai-Hong Tam
a6af201ff8 Use initramfs on x86 but not on arm for factory install image.
On x86, booting factory install shim on SD card needs to have the kernel
initrmafs enabled. But on ARM, booting factory install image on network does
not needs initramfs.

TEST=build_image --factory_install
BUG=chromium-os:13211

Change-Id: Id008a3bfaf4f17772e04f02d18844dd09b33fbe1

R=rongchang@chromium.org

Review URL: http://codereview.chromium.org/6901047
2011-04-28 12:12:08 +08:00
Mandeep Singh Baines
e388e18b67 build_kernel_image.sh: set default verity_depth to 0
verity_depth must be 0. No other values are supported. So changing the
default to 0.

Needs to go in before:

http://codereview.chromium.org/6901005

BUG=chromium-os:14357
TEST=Ran build_image, mod_image_for_test.sh, mod_image_for_recovery.sh
     chromeos-install, and image_to_live.sh.
Change-Id: I6208327d9ce68c9ba56d78e99bc145e34bee9d1d

R=wad@chromium.org,scottz@chromium.org,gauravsh@chromium.org

Review URL: http://codereview.chromium.org/6902061
2011-04-27 13:53:39 -07:00
Darin Petkov
61fbb352f3 Blacklist pulseaudio and perl to make sure they don't creep in.
BUG=chromium-os:12984
TEST=x86-mario build_packages, build_image, mod_image_for_test

Change-Id: Ia1fb9c214210c6e58acf25da59f40a7e5ab67d70

Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=34c8389

Review URL: http://codereview.chromium.org/6674001
2011-04-26 11:50:52 -07:00
Tom Wai-Hong Tam
1f6a0ba388 Enable fbconsole in recovery and factory shims
This CL depends on http://codereview.chromium.org/6765018 which adds fbconsole
USE flag.

Change-Id: I159680e2cd53b6493545f6c0b1caaa8a7e833cb3

BUG=chromium-os:13607
TEST=run mod_image_for_recovery.sh and boot to recovery image to see messages
showed on framebuffer console.

Review URL: http://codereview.chromium.org/6814041
2011-04-26 18:09:16 +08:00
Che-Liang Chiou
d7d79fed66 Revert "Install VbNvContext storage file"
This reverts commit dc2cb4b8f6.

This commit is reverted because it is not needed.

R=rongchang@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6882115

Change-Id: If21b788986c878c5d0e3e29487b6d58b86532775
2011-04-22 15:55:53 +08:00
Olof Johansson
8488f5a3c5 update_kernel: be smarter
Auto-detect use of verity, and if verity is not used, copy over modules and firmware.

Also, while I was at it, I added a --noreboot argument.

And also copy over vmlinux.uimg on ARM if on non-verity.

Change-Id: Ida9d3fbf4f342db65ebd0002a8b1a528440ea7fe

BUG=chromium-os:13321
TEST=Build kernel, try updating on x86 and ARM, both with and without verity

Review URL: http://codereview.chromium.org/6881029
2011-04-20 17:27:37 -07:00
Mandeep Singh Baines
95026958c1 cros_make_image_bootable: default to verity_depth=0
Verity only supports a depth of 0. Passing anything other than 0 will
cause a verity failure.

BUG=14314
TEST=Verified that verity does not fail when do depth is passed.
     Before this change, verity would fail with the error message
     reported in the bug.

Change-Id: I68495c4486284744ee0779b6c9cdc0ef214519c7

R=gauravsh@google.com,scottz@google.com,drewry@google.com

Review URL: http://codereview.chromium.org/6873134
2011-04-20 16:28:54 -07:00
Che-Liang Chiou
dc2cb4b8f6 Install VbNvContext storage file
R=rongchang@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6883046

Change-Id: I8818938f9e40120c0e88d80a9452641518a6ba44
2011-04-20 15:08:48 +08:00
Chris Sosa
c894a0a0a0 Add combine_stdout_stderr as well as make success less verbose.
Change-Id: If46fd1558a00498ce4721dd756532e916f49bc19

BUG=chromium-os:12950
TEST=Ran with autestharness and ran unittests.

Review URL: http://codereview.chromium.org/6877015
2011-04-18 17:19:10 -07:00
J. Richard Barnette
eb5246f8d9 Standardize invocations of emerge in build_image.
Also includes a style nit fix:  don't quote arguments to numeric
comparison test operators.

BUG=chromium-os:13582
TEST=setup_board --force && build_packages && build_image; boot the result

Review URL: http://codereview.chromium.org/6801027

Change-Id: I689ca9697a05cf93a789fde1242fb2fa50f21612
2011-04-08 10:34:31 -07:00
Olof Johansson
dd5e04a875 fix factory scripts based on nvrm changes
Change-Id: Iaa0d1d8325894d3e300275bab99a04e4f83ec9b4

BUG=chromium-os:13971
TEST=Run mod_image_for_test -f, make sure it doesn't break.

Review URL: http://codereview.chromium.org/6826001
2011-04-08 10:00:01 -07:00
Olof Johansson
24e10cb3db remove quiet and loglevel=1 from arm cmdline for now
It makes debugging system boot issues harder, so let's re-enable console
output for a while. It will be quieted down again later.

Change-Id: I7c543c09818c0152470c9f5e54d36c614d05bf3a

BUG=chrome-os-partner:3199
TEST=Boot a system, check for console output before login screen

Review URL: http://codereview.chromium.org/6801045
2011-04-07 15:08:08 -07:00
Mandeep Singh Baines
de162521ed build_image: hard-code verity_depth to 0
Plan is to eventually deprecate depth as a configurable parameter.
depth=0 means compute the depth based on a regular trie with a
single block of hashes at the root node.

BUG=chromium-os:9752
TEST=platform_DMVerity

Change-Id: I5c5f1b1f2c2079d7e1ef6c7a55c859b463a59aee

R=wad@chromium.org,taysom@chromium.org,ups@chromium.org,gauravsh@chromium.org,jimherbert@chromium.org

Review URL: http://codereview.chromium.org/6810006
2011-04-07 10:12:08 -07:00
Zdenek Behan
e28239d294 enter_chroot: introduce a sync process that synchronizes given files between chroot and host
Currently used for resolv.conf and hosts, because these files can
change during the lifetime of a chroot, for example on computers
with more dynamic network (laptops).

While this creates a persistent process in the background for the
sole purpose of syncing files, the performance impact is negligible.

BUG=12316
TEST=below
1) enter_chroot once+quit, many times + quit, verify correct exit
behaviour
2) enter_chroot, modify host resolv.conf, see chroot being updated

Change-Id: I26573570c027acc2c214a00838a6f982a7585b13

R=robotboy@chromium.org,dparker@chromium.org,sosa@chromium.org

Review URL: http://codereview.chromium.org/6720005
2011-04-07 00:37:20 +02:00
Zdenek Behan
b3cf233d4c build_image: provide USE flags when installing chromeos-dev
This fixes an issue where passing USE= to build_packages would always
cause build_image to fail.

BUG=none
TEST=create a USE-inconsistent package, run build_image, observe it working

Change-Id: Id9eb3891d9c292423c837a0d097a33155f03b794

R=davidjames@chromium.org,kliegs@chromium.org

Review URL: http://codereview.chromium.org/6677163
2011-04-05 23:20:16 +02:00
Hung-Te Lin
a05ed3172e mod_image_for_factor: never touch firmware for factory test images
we don't want any possibility for firmware to be changed in factory setup

BUG=none
TEST=build_image; image_to_usb --factory

Change-Id: Ibef767ea621193afb7fbca5ea96120a506891dcb

R=nsanders@chromium.org

Review URL: http://codereview.chromium.org/6764010
2011-04-01 15:31:02 +08:00
Jim Hebert
8a2e04fab6 Broaden jimhebert watchlist to include both sources of kernelparam changes
Change-Id: If1b04bd996161ace5da9e54d00c2b35dde6e42ba

BUG=chromium-os:13716
TEST=Ran watchlists.py build_image; watchlists.py build_kernel_image.sh; verified I show up.

Review URL: http://codereview.chromium.org/6670131
2011-03-31 14:15:46 -07:00