Commit Graph

2152 Commits

Author SHA1 Message Date
David James
25602368f4 Update get_package_list to be more robust to changing output formats.
With Portage 2.1.10, the number of spaces in the output changed. This broke
the get_package_list and caused failures during unit tests. To fix this,
I've updated the script to handle this.

BUG=chromium-os:17151
TEST=Verify that get_package_list works now.

Change-Id: I2a334451807abdbeb9fb5cbb99a54ab75f234330
Reviewed-on: http://gerrit.chromium.org/gerrit/3415
Reviewed-by: Anush Elangovan <anush@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-06-29 16:45:18 -07:00
Arkaitz Ruiz Alvarez
26d68ecaa5 Add cros_debug to kernel commandline in dev images
Every developer image (and test images based on the developer image) should
include "cros_debug" in the kernel commandline. This flag is used by the
crossystem application to determine if the image being run is a developer
image. cros_make_image_bootable receives a new flag, --force_developer_mode
that appends "cros_debug" to the boot args.

BUG=chromium-os:16951
TEST=build images. Flash a base image and confirm the absence of "cros_debug"
in /proc/cmdline. Flash the developer image and confirm the existence of the
string.

Change-Id: I9f748638b5dac384be991908239e8b447ddf3b5e
Reviewed-on: http://gerrit.chromium.org/gerrit/3169
Tested-by: Arkaitz Ruiz Alvarez <arkaitzr@chromium.org>
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
2011-06-27 10:45:16 -07:00
Nick Sanders
ffd0ca6f36 Use %U on dm-verity boots on arm
BUG=chrome-os-partner:4662,chrome-os-partner:3198
TEST=run recovery

Change-Id: I54372737dc75ed19d4361e8d58a50511c34336b1
Reviewed-on: http://gerrit.chromium.org/gerrit/3226
Tested-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Will Drewry <wad@chromium.org>
2011-06-27 00:47:59 -07:00
Raymes Khoury
61e2bff39e Made libc debug symbols get copied to image when building a dev image.
libc debug symbols (libpthread in particular) are needed to debug threaded software with gdb. This CL copies
debug symbols for glibc when building a dev image.

This CL also removes an old hack related to selecting the correct path to the glibc tarball.

BUG=chromium-os:16847
TEST=Build dev image (--withdev is the default). Checked that debug info is copied. Booted image and checked
the debugging threaded programs works with gdb. Build non-dev image (--nowithdev) checked that debug info is
not copied.

Change-Id: Id908e8260b1431ed1256a13dfb86b05ac242f263
Reviewed-on: http://gerrit.chromium.org/gerrit/3091
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Raymes Khoury <raymes@chromium.org>
2011-06-24 12:53:54 -07:00
J. Richard Barnette
a655cf045d Move bootperf-bin from src/scripts to src/platform/crostestutils
BUG=chromium-os:16682
TEST=None

Change-Id: I28fe5985b1ca43c8584a84c03ab7d1db844f3092
Reviewed-on: http://gerrit.chromium.org/gerrit/2996
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Anush Elangovan <anush@chromium.org>
2011-06-23 12:32:31 -07:00
Elly Jones
8d87dbfb28 mod_image_for_recovery: be noisy if build_kernel_image fails.
This will prevent nasty surprises when it fails silently and one ends up with a
non-bootable recovery image.

BUG=chromium-os:16366
TEST=Adhoc
Hack /usr/lib/crosutils/build_kernel_image.sh to exit 1, run
mod_image_for_recovery

Change-Id: If23d181959aecf75044cb4581e25f8851d1b9840
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3097
Reviewed-by: Will Drewry <wad@chromium.org>
2011-06-23 11:13:48 -07:00
Dave Parker
43395e3a70 Only copy the final image file on local disk if it is not in the default location.
BUG=None
TEST=run with a "--to" path that is the default location where the image is generated.
Verify the final image is not 0 bytes.

Change-Id: Ib9a7feceb17054362f00a813c369564e753cd3ab
Reviewed-on: http://gerrit.chromium.org/gerrit/2988
Tested-by: Dave Parker <dparker@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-06-23 08:49:50 -07:00
Elly Jones
c871ba2df4 make_netboot: Fix syntax error.
http://chromeos-botmaster.mtv.corp.google.com:8026/builders/tegra2_dev-board-binary/builds/199/steps/cbuildbot/logs/stdio

BUG=None
TEST=Adhoc
Ran it. No error.

Change-Id: I7a6a2745bbde4a773b9c3a79df9ca135af823149
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3017
Reviewed-by: Grant Grundler <grundler@chromium.org>
2011-06-22 12:18:57 -07:00
Grant Grundler
7c4328a65f Fix ARM generic build: no u-boot/legacy_image.bin built
Additional fix needed on top of nsanders commit from yesterday:
    http://gerrit.chromium.org/gerrit/#change,2028

ARM generic doesn't build chromeos-u-boot and thus has no u-boot
directory in the $SYSROOT.

BUG=chromium-os:16833
TEST=archive_build.sh

Change-Id: Ic8422419779dca1965c6832a4a0bd73078945e69
Signed-off-by: Grant Grundler <grundler@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/3001
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2011-06-22 11:10:17 -07:00
Nick Sanders
119677f3b9 Add netboot output to factory bundle
* kernel, initrd, legacy firmware

BUG=chrome-os-partner:3667
TEST=archive_build.sh

Change-Id: I54b11067624e1c626cb6f059d4b8a52602c5837c
Reviewed-on: http://gerrit.chromium.org/gerrit/2028
Tested-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Rong Chang <rongchang@chromium.org>
2011-06-21 17:13:19 -07:00
Elly Jones
5e7a430a55 build_kernel_image: use key-value args for verity.
BUG=chromium-os:15772
TEST=Adhoc
Ran build_image.

Change-Id: I1a745076dfb0242e76f65c5e24d72a1119f29008
Signed-off-by: Elly Jones <ellyjones@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/1740
2011-06-21 07:10:46 -07:00
J. Richard Barnette
b4c138244f Refactor the results directory reading into a separate module.
This change is made in anticipation of needing more than one kind
of reader in future. Most notably, a reader to extract data from
the MySQL results database would be a nice addition.

BUG=None
TEST=run showbootdata on any pre-existing data set

Change-Id: I5811aa1427a2714ce6ba392cdec584b4236162fd
Reviewed-on: http://gerrit.chromium.org/gerrit/2644
Reviewed-by: Mike Truty <truty@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
2011-06-17 09:08:48 -07:00
Vince Laviano
6aebf31a00 build_image: incorporate mod_image_for_test
Incorporate mod_image_for_test.sh into build_image to simplify the user
interface to the build system and to remove the redundant setup that
occurs in both scripts.

We're not porting the --force_copy, --inplace, or --yes flags, because
the user is no longer passing in an existing image as input.

BUG=chromium-os:12899
TEST=Run build_image w/ various flag combos, inspect output dir, and
  boot resulting images. Flags tested include: none, --test, --factory,
  --factory_install, --factory_install --test.

Change-Id: Ie3b504b3c58fbe19f1ce351985e5f1043353766a
Reviewed-on: http://gerrit.chromium.org/gerrit/2421
Tested-by: Vince Laviano <vlaviano@chromium.org>
Reviewed-by: Anush Elangovan <anush@chromium.org>
2011-06-16 11:27:35 -07:00
Vadim Bendebury
0779f528f5 Prevent copying of offending lines when creating .ssh/config
Some ssh configuration options are not accepted by the ssh
version running inside chroot. Those options need to be filtered
out when the configuration is copied while executing
enter_chroot.sh. A new function is being added to do that. The
list of substrings to be filtered out is defined as an array and
can be extended as required.

BUG=chromium-os:16441
TEST=manual:
scripts 78 $ egrep '(UseProxyIf=|GSSAPIAuthentication no)' ~/.ssh/config
UseProxyIf=false
scripts 79 $ ./enter_chroot.sh
(Grepo1) vbendeb@eskimo ~/trunk/src/scripts $ egrep '(UseProxyIf=|GSSAPIAuthentication no)' ~/.ssh/config
(Grepo1) vbendeb@eskimo ~/trunk/src/scripts $

Change-Id: Ic52ef1ba7d015d76558efc39e178156f3d81bf78
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/2515
Reviewed-by: Chris Sosa <sosa%chromium.org@gtempaccount.com>
2011-06-13 16:37:27 -07:00
Scott James Remnant
3cb23de123 mod_for_factory: adjust patch to update-engine.conf
update-engine.conf has changed, adjust this patch to match.

BUG=chromium-os:16079
TEST=none

Change-Id: I90572f0a42bcc6eb5c501fa32212d846f2357757
Reviewed-on: http://gerrit.chromium.org/gerrit/2431
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2011-06-10 13:35:57 -07:00
Scott James Remnant
88f81686c4 mod_for_factory: adjust patch to ui.conf
ui.conf has changed, adjust this patch to match.

BUG=chromium-os:16079
TEST=none

Change-Id: I33d0bb7150a549c7203f22f4c3a05bfaea13379a
Reviewed-on: http://gerrit.chromium.org/gerrit/2430
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2011-06-10 13:33:26 -07:00
Don Garrett
11030a4b60 Clean up pushimage from src/scripts. We're using it from crostools
instead.

TEST=None
BUG=chromium-os:15959

Change-Id: Ie61e8485d077588dcf656f63c382ed89cfcd86c3
Reviewed-on: http://gerrit.chromium.org/gerrit/2409
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
2011-06-10 11:56:19 -07:00
David James
0dccff339e Allow for new toolchains to be rolled out when sdk builder completes.
New toolchains should only be rolled out to developers running with
binary packages when the sdk-builder has completed and uploaded the
prebuilts. This ensures that we've vetted the toolchain properly
before it rolls out and also speeds up binary builds for developers.

This also provides consistency with the behavior of setup_board.

BUG=chromium-os:16363
TEST=Verify these 3 packages are only updated in --usepkg builds
     when the prebuilts are also updated.

Change-Id: I6be7c6c98c12130751d3d4440bec7c71afb1d4c2
Reviewed-on: http://gerrit.chromium.org/gerrit/2391
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-06-10 00:35:18 -07:00
David James
f2ab143716 Fix *.pc files for folks who have /build/x86-mario.dev symlinked to /build/x86-mario
BUG=chromium-os:16364
TEST=Ran with symlinked directories

Change-Id: I374eced27f1b0b3147b9632d5f9dd2637b0d7d28
Reviewed-on: http://gerrit.chromium.org/gerrit/2390
Reviewed-by: Daniel Erat <derat@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-06-10 00:24:20 -07:00
Scott James Remnant
a22bde8f67 mod_for_factory: adjust patch to chrontel.conf
chrontel.conf has changed, adjust this patch to match.

BUG=chromium-os:16079
TEST=none

Change-Id: I50709efe1d37084be5d974ba5a6353e6039d65f1
Reviewed-on: http://gerrit.chromium.org/gerrit/2394
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2011-06-09 15:50:31 -07:00
Scott James Remnant
d5061a7be9 mod_for_factory: adjust patch to boot-complete
mod_for_factory patches boot-complete since it disables the ui job,
meaning that login-prompt-visible will never happen. The correct
place to move "boot-complete" to is "started boot-services" - this
means all boot services are done.

system-services depends on boot-complete, so this means that without
ui, system-services will be run on started boot-services which is
what we want.

BUG=chromium-os:16079
TEST=none

Change-Id: I93b86eefe8df9da2e9fbff75aa1e9b80a1f9ad1b
Reviewed-on: http://gerrit.chromium.org/gerrit/2323
Reviewed-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2011-06-09 15:49:01 -07:00
Tom Wai-Hong Tam
a4fca6f29b Fix typo of verify_rootfs_chksum.sh.
BUG=none
TEST=none

Change-Id: Iaed383363c0eb73a1e378cd99e39403d9296b4bf
Reviewed-on: http://gerrit.chromium.org/gerrit/2369
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
2011-06-08 23:39:46 -07:00
David James
232cb578ed Upgrade script to handle policykit -> polkit migration.
This script also helps out with chromeos-u-boot-next -> chromeos-u-boot
migration.

BUG=chromium-os:16310
TEST=Run the script and verify right packages are uninstalled.

Change-Id: I4ebaa0a0b3e1eea32005b4d2a47f4581e44d825c
Reviewed-on: http://gerrit.chromium.org/gerrit/2309
Tested-by: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
2011-06-08 14:48:33 -07:00
Mario Limonciello
1f56fc6481 Add a new SD card image writing script
BUG=none
TEST=Write an image to an SD card

Change-Id: I79f2ab4a30c424ab2fbeee8f2636a4900338bcd8
Reviewed-on: http://gerrit.chromium.org/gerrit/1440
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mario Limonciello <mario_limonciello@dell.com>
2011-06-08 09:56:29 -07:00
David James
0ec519a924 Upgrade chroots to remove references to ROOT from *.pc files.
TEST=Test incremental build_packages after libtool upgrade,
     verify all packages still work.
BUG=chromium-os:15595

Change-Id: I7cf130a4b537eb0b02f52681801346c62fc9fd69
Reviewed-on: http://gerrit.chromium.org/gerrit/2161
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-06-08 08:47:54 -07:00
Antoine Labour
4c64b507db Disable fsck in cros_make_image_bootable
cros_make_image_bootable is called up to 4 times in a typical workflow. The fsck
check can take up to a minute or more because it first copies 2G of the image to
run the fsck on. It adds several minutes to the build.
The check itself is just a sanity check that shouldn't trigger in normal builds.

BUG=none
TEST=build_image

Change-Id: I86512f7efc67027fe687f0c0ad8f6df32579dbe2
Reviewed-on: http://gerrit.chromium.org/gerrit/2250
Reviewed-by: Gaurav Shah <gauravsh@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
2011-06-07 15:47:06 -07:00
David James
f540249413 Nuke chroot hacks from before March and before Gerrit transition.
These hacks are all at least three months old, and our official policy is to
remove hacks after two weeks. For future hacks, the plan is to use the chroot
upgrader script so that old chroots can be supported indefinitely.

Thanks to the Gerrit transition, there are probably few old chroots around
anyway that aren't going to be recreated anyway.

BUG=chromium-os:16151
TEST=Verify enter_chroot.sh still works.
Change-Id: Ie0c777aabbd70d2a0c88b59ddd71e9b67965ca94
Reviewed-on: http://gerrit.chromium.org/gerrit/2158
Reviewed-by: Raymes Khoury <raymes@chromium.org>
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Tested-by: David James <davidjames@chromium.org>
2011-06-05 09:22:20 -07:00
Ryan Cui
780933db56 Add chroot version 2 upgrade script
Add script that adds depot_tools and chromite/bin to the PATH globally using /etc/env.d

BUG=16093
TEST=Ran make_chroot and run_chroot_version_hooks

Change-Id: I6011d7436f18ce46dfe215f01068e862d2567273
Reviewed-on: http://gerrit.chromium.org/gerrit/2022
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Ryan Cui <rcui@chromium.org>
2011-06-03 15:32:08 -07:00
Tom Wai-Hong Tam
06165e0880 Add complete script channel in make_factory_package.sh
A new parameter --complete_script is added a script to support the last-step
execution of factory install. This script is supported by a separated channel
in mini-omaha server.

BUG=chrome-os-partner:4229
TEST=./make_factory_package --release RELEASE --factory FACTORY \
  --firmware FIRMWARE --complete complete.sh # success
$ cat ../platform/dev/miniomaha.conf
config = [
{
   'qual_ids': set(["tegra2_kaen"]),
   'factory_image': 'rootfs-test.gz',
   'factory_checksum': 'jNk+g6VurGVmnW7kehvIK1gpkjw=',
   'release_image': 'rootfs-release.gz',
   'release_checksum': 'vkds6CqN8M+gTofM8VFefeG2o1Y=',
   'oempartitionimg_image': 'oem.gz',
   'oempartitionimg_checksum': '8ED3wHGIrxy/g81StZhJvHy7fJA=',
   'efipartitionimg_image': 'efi.gz',
   'efipartitionimg_checksum': 'eyoAysb4WkLmKagb515mlM3jhts=',
   'stateimg_image': 'state.gz',
   'stateimg_checksum': 'MD7X6Yc5Gipkqt3i7jMn5hoWBvM=',
   'firmware_image': 'firmware.gz',
   'firmware_checksum': 'yAdtPbG7vjwsCPO6AUJ+fyw8z78=',
   'complete_image': 'complete.gz',
   'complete_checksum': '8Nq3fhtK+mTZk3PkaVS47tqEHCI=',
 },
]
$ ls -l ../platform/dev/static/
total 473828
drwxr-xr-x 2 waihong eng       4096 May  5 15:43 cache/
-rw-r--r-- 1 waihong eng         56 Jun  2 17:25 complete.gz
-rw-r--r-- 1 waihong eng      26606 Jun  2 17:25 efi.gz
-rw-r--r-- 1 waihong eng     827934 Jun  2 17:25 firmware.gz
-rw-r--r-- 1 waihong eng      26125 Jun  2 17:25 oem.gz
lrwxrwxrwx 1 waihong eng          6 May  5 11:35 pkgroot -> /build
-rw-rw-rw- 1 root    root 222747636 Jun  2 17:25 rootfs-release.gz
-rw-rw-rw- 1 root    root 222767859 Jun  2 17:25 rootfs-test.gz
-rw-r--r-- 1 waihong eng   38284201 Jun  2 17:25 state.gz

Change-Id: I3ab36835c3d1cd564429d6d646dca80501986b14
Reviewed-on: http://gerrit.chromium.org/gerrit/2026
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
2011-06-03 01:31:33 -07:00
Rong Chang
c291a48995 Add "blkdevram" USE flag when building ARM factory install kernel
Default netroot factory install kernel mounts rootfs in ram. The
USE flag "blkdevram" was implemented in
  http://gerrit.chromium.org/gerrit/#change,1802

BUG=None
TEST=Build factory install kernel and rootfs uimg. Kernel should
be able to mount the in-ram initrd downloaded from tftp.

Change-Id: Idb83375e0587432c5dec87357a8aa8e229f40af2
Reviewed-on: http://gerrit.chromium.org/gerrit/1803
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Rong Chang <rongchang@chromium.org>
2011-06-03 00:30:15 -07:00
Taylor Hutt
60da642e64 Fix regression in 'update_kernel.sh' for Tegra2 boards.
This 'update_kernel.sh' script gratuitiously broke on ARM targets
because the bootloader file has been changed to 'bootloader.bin' from
its previous name.

TEST=Used the script with a small kernel change to my Arthur board.
BUG=none

Change-Id: I146f08256543ffe2c4c52995625b26a1b3f28318
Reviewed-on: http://gerrit.chromium.org/gerrit/1989
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Taylor Hutt <thutt@chromium.org>
Tested-by: Taylor Hutt <thutt@chromium.org>
2011-06-02 14:28:42 -07:00
Hung-Te Lin
fbc89da362 crosutils: add --hwid_updater in make_factory_package.sh
A new parameter --hwid_updater is added to support updating
HWID component list by mini-omaha server.

BUG=chrome-os-partner:4276
TEST=./make_factory_package --release RELEASE --factory FACTORY \
     --firmware FIRMWARE --hwid hwid_updater.sh # success

Change-Id: I5889bf63545f0ed118320b60963e22ebc00c76f7
Reviewed-on: http://gerrit.chromium.org/gerrit/1826
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
2011-06-01 21:26:46 -07:00
Mandeep Singh Baines
981555b638 update_kernel.sh: don't assume pwd
The script used to assume that you were running it from src/scripts.

That assumption has now been removed.

BUG=none
TEST=After this change I can run update_kernel.sh from anywhere.

Change-Id: I2676e1c16f5682d06be48e99c915660e4cb35be8
Reviewed-on: http://gerrit.chromium.org/gerrit/1933
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Mandeep Singh Baines <msb@chromium.org>
2011-06-01 21:06:05 -07:00
Chris Sosa
e1b5bfad0e Cp testtarball to outdir and upload from there.
This solves this issue where if we don't upload to gsutil and instead
just archive locally we still have the test tarball.

BUG=chromium-os:16014
TEST=Ran with no gsutil option set and a tarball file.

Change-Id: I5e14801f7b0a58f589a400278274fb566e580bea
Reviewed-on: http://gerrit.chromium.org/gerrit/1921
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
2011-06-01 16:39:10 -07:00
Sam Leffler
71afd1fe1a scripts: adjust to change in flimflam.conf
Update sed cmd to reflect multi-profile changes.

BUG=chromium-os:12948
TEST=run mod_image_for_test; boot and verify flimflam.conf is properly edited

Change-Id: I9f58aabc4c302b1e24737b0fcb15fc2719d120d6
Reviewed-on: http://gerrit.chromium.org/gerrit/1198
Tested-by: Sam Leffler <sleffler@chromium.org>
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
2011-06-01 11:57:57 -07:00
Che-Liang Chiou
69faa267cd Remove obsolete u-boot script in kernel partition
BUG=chromium-os:14572
TEST=./build_kernel_image.sh \
    --arch=arm
    --vmlinuz=/build/tegra2_seaboard/boot/vmlinuz
    --keys_dir=/usr/share/vboot/devkeys --use_dev_keys

Change-Id: I85e8b96ef0b79bf17976e718bcfb59040a557c1f
Reviewed-on: http://gerrit.chromium.org/gerrit/1876
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
2011-06-01 03:45:15 -07:00
Scott James Remnant
105eb52ba5 mount /dev and /proc while altering rootfs image
Various members of /dev are used (such as /dev/random) in this script,
and <() style redirection is used which requires a mounted /proc in the
image.

So bind-mount /dev and /proc while running so they work.

BUG=chromiumos:15951
TEST=examined output before/after

Change-Id: I3e8f0edef0da7e63b2af6736e8becfa1cd6d723d
Reviewed-on: http://gerrit.chromium.org/gerrit/1846
Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Scott James Remnant <keybuk@chromium.org>
2011-05-31 17:19:13 -07:00
Mandeep Singh Baines
175422fec6 remote_access.sh: fix learn_arch to return x86 instead of i686
learn_arch is only called by update_kernel.sh. Until recently, we
were only using learn_arch to detect whether the device is arm or not.
However, with a recent change, update_kernel.sh is now passing the
arch flag to vbutil_kernel which only knows about x86 and not i686.

BUG=chromium-os:15932
TEST=Before change update_kernel.sh fails on x86 and now it works.

Change-Id: Idafc71c017c8ed0595fd0260fce63f327ff021bd
Reviewed-on: http://gerrit.chromium.org/gerrit/1831
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: Mandeep Singh Baines <msb@chromium.org>
2011-05-31 14:31:49 -07:00
Darin Petkov
7961f9dbe1 Run DepsToCopy on all ldd_files, not just the first one.
This avoid skipping the dependencies of bsdiff, bspatch and cgpt.

BUG=chromium-os:15766
TEST=ran generate_au_zip, ensured bsdiff dependencies are included in the .zip

Change-Id: I7dfe5d1a3197df0f6036e33a20989813a22b16cc
Reviewed-on: http://gerrit.chromium.org/gerrit/1564
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: David McMahon <djmm@google.com>
Tested-by: David McMahon <djmm@google.com>
Tested-by: David McMahon <djmm@chromium.org>
Reviewed-by: David McMahon <djmm@chromium.org>
2011-05-25 14:38:40 -07:00
Nick Sanders
f9fa9f532a Add kern_guid to cmdline
BUG=chromium-os:14022,15683
TEST=not yet

Change-Id: I50437a10218f0dcf15cdc8ce86e63f4b44e11189
Reviewed-on: http://gerrit.chromium.org/gerrit/1467
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Tested-by: Nick Sanders <nsanders@chromium.org>
2011-05-25 03:00:45 -07:00
Nick Sanders
b795deba76 Cherry-pick: 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: I7d4ecc566f9c5cc0106a7af59255fc63fdfe017a
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Rong Chang <rongchang@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/1319
Tested-by: Nick Sanders <nsanders@chromium.org>
2011-05-25 02:56:21 -07:00
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